-Tbss on ELF harmful?

DJ Delorie dj@redhat.com
Mon Oct 29 20:00:00 GMT 2001


> Your problem can be solved by e.g. using SIZEOF (.sbss).  At
> least I think so.  If not, there's a bug in
> ld/emulparams/criself.sh.

If .sbss and .bss aren't contiguous, then naive startup code may
attempt to zero out not only .sbss and .bss, but also whatever falls
between them - which could be anything.

And if there were no naive startup codes, we never would have put
__bss_start before .sbss in the first place.



More information about the Binutils mailing list