Gaps between BSS Variables; How are they Placed?

Alan Modra amodra@gmail.com
Thu Feb 4 11:56:00 GMT 2021


On Thu, Feb 04, 2021 at 10:53:45AM +0000, Ralph Corderoy wrote:
> When building an ELF executable using the BFD linker from a C file
> through gcc(1) on amd64/x86_64, what area of code takes care of ordering
> the common symbols in the .bss section?  I'd like to understand its
> algorithm as I'm surprised by the results.  Before I complain, I thought
> reading the code might tell me why I'm wrong.  :-)

ldlang.c:lang_common.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list