OSDN Git Service

PR 10980
authorian <ian>
Thu, 7 Jan 2010 07:37:18 +0000 (07:37 +0000)
committerian <ian>
Thu, 7 Jan 2010 07:37:18 +0000 (07:37 +0000)
commitf86fc00ce5723c43167646687d0567e8f6931dd9
treebc214887829fb506e87c4e5cfd8e72f0b0b74395
parent686de6962079c4617f438c94d6f6f2f17565bf7f
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.
gold/ChangeLog
gold/layout.cc
gold/options.cc
gold/options.h
gold/output.cc
gold/output.h