www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/23/10:10:30

From: "Christopher Nelson" <paradox AT gye DOT satnet DOT net>
To: <djgpp AT delorie DOT com>
Subject: Re: RELOC_XXXXX
Date: Thu, 22 Apr 1999 20:53:11 -0600
Message-ID: <01be8d34$6cc63f20$LocalHost@thendren>
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.71.1712.3
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Reply-To: djgpp AT delorie DOT com

>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.



okay.  thanks again.  the one last question I had, and maybe this answered
it, if you have an uninitialized global variable, it list's it's section as
0 in the COFF file.  obviously 0 does not exist, since sections start at 1.
am i supposed to allocate space for all the uninitialized variables myself?
or are they stuck somewhere that's not obvious.   my guess would have been
.bss, but that's not what happens...

everything seems to be working reliably so far.  thanks for all your help.

    -={C}=-

- Raw text -


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