www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/19/13:06:39

Date: Mon, 19 Apr 1999 14:06:10 -0400
Message-Id: <199904191806.OAA02268@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
CC: djgpp AT delorie DOT com
In-reply-to: <01be894d$bb12a140$LocalHost@thendren> (paradox@gye.satnet.net)
Subject: Re: RELOC_XXXXX
References: <01be894d$bb12a140$LocalHost AT thendren>
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> According to the paragraph above in the instructions, "If the symbol
> is in the same object, the symbol table will have entries that refer
> to the sections themselves (always there and always private) that
> will be referred to. When you relocate the section itself, these
> symbols will reflect its new location."

When the relocation is to a static variable in the same object, the
assembler will create a dummy symbol that refers to the section
itself, and offset into the section to get to the static variable.

There's always a symbol involed, even if it's a fake symbol.

- Raw text -


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