This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: .bss section and bss_start symbol


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]