Mail Archives: djgpp/2001/07/31/10:55:31
On Tue, 31 Jul 2001, DJ Delorie wrote:
> > Strictly speaking, that's not true: CS and DS hold two different
> > selectors, but both these selectors point to segment descriptors
> > which describe the same memory region.
>
> GCC doesn't put jump tables, constants, or strings in the text
> segment?
Yes, it does.
> If it does, it expects CS==DS as far as memory maps go.
> (obviously, the *values* of cs and ds differ, because one is a code
> selector and the other is a data selector).
That's what I was saying: the selectors are different, but they describe
the same memory.
- Raw text -