Date: Tue, 31 Jul 2001 17:24:09 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: ds==ss why? In-Reply-To: <200107311402.KAA16074@envy.delorie.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.