This is the mail archive of the binutils@sources.redhat.com 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]

Re: -Tbss on ELF harmful?



> 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.


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