This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

[PATCH] PR gold/16711 Exclude bss from elf when using linker scripts.


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.

Attachment: gold_pr_16711.patch
Description: gold_pr_16711.patch


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