delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/03/28/16:04:33

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Mon, 28 Mar 2005 16:04:05 -0500
Message-Id: <200503282104.j2SL45Es019590@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <1112040129.145035.176910@o13g2000cwo.googlegroups.com>
(ahmadwaris AT hotmail DOT com)
Subject: Re: symbol for bss_start and bss_end ??
References: <1112040129 DOT 145035 DOT 176910 AT o13g2000cwo DOT googlegroups 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

> I am modifying a small OS kernel in which I need to zero the bss.
> Are there variables defined by djgpp which refer to the start and end
> of the bss area? e.g. In cygwin, the corresponding variables are called
> _bss_start and _bss_end. 

If you build any djgpp program and use "nm -an program.exe" you can
see all the symbols that are available.  You want &edata and &end.

However, if you're writing your own OS at some point you'll probably
write your own linker script, and would provide your own symbols.

- Raw text -


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