.bss section and bss_start symbol
Alan Modra
amodra@bigpond.net.au
Mon May 18 11:23:00 GMT 2009
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
More information about the Binutils
mailing list