gold patch committed: Add --section-start

Ian Lance Taylor iant@google.com
Wed Jan 6 22:38:00 GMT 2010


I committed this patch to gold to add the --section-start option.

Ian


2010-01-06  Ian Lance Taylor  <iant@google.com>

	PR 10980
	* options.cc (General_options::parse_section_start): New function.
	(General_options::section_start): New function.
	(General_options::General_options): Initialize all members.
	* options.h: Include <map>
	(class General_options): Add --section-start.  Add section_starts_
	member.
	* layout.cc (Layout::attach_allocated_section_to_segment): If
	--section-start was used, set the address of the segment.  Remove
	local sort_sections.
	(Layout::relaxation_loop_body): If the address of the load segment
	has been set by --section-start, don't use it.
	* output.h (Output_segment::update_flags_for_output_section): New
	function.
	* output.cc (Output_segment::add_output_section): Call
	update_flags_for_output_section.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 8751 bytes
Desc: section-start
URL: <https://sourceware.org/pipermail/binutils/attachments/20100106/3c0decbf/attachment.bin>


More information about the Binutils mailing list