The .sbss section on ELF/x86

H . J . Lu hjl@lucon.org
Tue Nov 13 22:27:00 GMT 2001
On Mon, Nov 26, 2001 at 04:45:37PM -0800, Geoff Keating wrote:
> > > 
> > > if not, then either PROVIDE should be changed, so that it is skipped if the
> > > containing output section is empty, or some other keyword should be used
> > > instead. Having empty .sbss in every binary/library is strange...
> > > 
> > 
> > Geoff, I think your patch:
> > 
> > http://sources.redhat.com/ml/binutils/2000-04/msg00125.html
> > 
> > caused the empty .sbss section. Could you please tell us how to remove
> > the empty .sbss section? If only PPC needs it, can we turn them on only
> > when needed?
> 
> I'm not sure what needs it now---that patch went in over a year ago,
> it's quite likely that something else is now using those symbols.  Is
> there some reason why it's causing problems?
> 

ELF/x86 doesn't use/have the .sbss section. I don't want it in every
ELF/x86 binary. To the least, ld should output the .bss section only
for targets which actually use it.


H.J.



More information about the Binutils mailing list