[PATCH] PR gold/16711 Exclude bss from elf when using linker scripts.
Johan Karlsson
Johan.Karlsson@enea.com
Thu Sep 17 07:52:00 GMT 2015
Hi all,
This patch fixes so that NOBITS sections don't take up space in the elf.
It also fixes so that the program header correctly exclude nobits sections.
gold/ChangeLog:
2015-09-17 Johan Karlsson <johan.karlsson@enea.com>
PR gold/16711
* output.cc (Output_segment::set_section_list_addresses): Only move
the file offset for non-NOBITS sections.
(Output_segment::set_section_addresses): Set memsz based on addresses
instead of file offsets.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gold_pr_16711.patch
Type: application/octet-stream
Size: 2214 bytes
Desc: gold_pr_16711.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20150917/04322e54/attachment.obj>
More information about the Binutils
mailing list