This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: .bss section and bss_start symbol
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: wmj011 at aol dot com
- Cc: binutils at sourceware dot org
- Date: Mon, 18 May 2009 20:52:54 +0930
- Subject: Re: .bss section and bss_start symbol
- References: <8CBA5BA24663E1D-13A0-5DB4@WEBMAIL-MZ40.sysops.aol.com>
On Mon, May 18, 2009 at 06:25:46AM -0400, wmj011@aol.com wrote:
> readelf shows different addresses for .bss section and the __bss_start
> symbol. Shouldn't they be the same?
Not if you have .sbss or a bss .plt section, as these sections
are placed before .bss. It looks like __bss_start is supposed to mark
the beginning of any bss style sections, ie. alloc but non-load. I
guess there may also be a difference due to .bss section alignment.
--
Alan Modra
Australia Development Lab, IBM