gold bug combining .bss sections...

Ian Lance Taylor
Fri Apr 11 22:56:00 GMT 2008

David Miller <> writes:

> If, for example, we have a normal .bss in the final link with only a
> necessary alignment of 4, and we also have a dynbss .bss with a copy
> reloc needing an alignment of 8, gold outputs the final combined .bss
> section with only an alignment of 4.

I just committed this patch which I think should fix this problem.


2008-04-11  Ian Lance Taylor  <>

	* output.h (class Output_section_data): Remove inline definition
	of set_addralign.
	* (Output_section_data::set_addralign): New function.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 1317 bytes
Desc: Pass alignment change to section
URL: <>

More information about the Binutils mailing list