Mail Archives: djgpp/1997/11/17/01:03:52
On Sun, 16 Nov 1997, Eli Zaretskii wrote:
> > cs
> > movw ___djgpp_ds_alias, %ds
>
> Please note that AFIK, using segment overrides with Gas is dangerous,
> as the DJGPP FAQ explains in section 17.2.
In the very *few* gas programs that I have written, I have checked the
list file *each* time and found that a override on a single line always
produced the .byte 0x??.
I was under the (probably mistaken) impression that the segment override
bug surfaces only if you include it as a part of the operand for example
movw %cs:_ds_alias, %ds ; is known to be problematic
> If the latest versions of Gas don't have this problem, please tell me
> and I will amend the FAQ. But please make *very* sure that the
> problem was fixed, because it can produxe very nasty bugs.
Is there any way to be *very* sure without going throgh the Gas source.
If there is, I would be happy to volunteer :)
- Raw text -