delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/07/31/10:55:31

Date: Tue, 31 Jul 2001 17:24:09 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
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: <Pine.SUN.3.91.1010731172309.3973D-100000@is>
MIME-Version: 1.0
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

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019