2010-01-22 Doug Kwan <dougkwan@google.com>
commitd8864df2146adb5059f7f1b6cd94e135ca86b658
authorDoug Kwan <dougkwan@google.com>
Sat, 23 Jan 2010 01:07:59 +0000 (23 01:07 +0000)
committerDoug Kwan <dougkwan@google.com>
Sat, 23 Jan 2010 01:07:59 +0000 (23 01:07 +0000)
treefb5ef117795120d209ecd4fff5eb17b4af2540f3
parent9a0ef337a83d66a3ecf1e940f04fd177285cf567
2010-01-22  Doug Kwan  <dougkwan@google.com>

* arm.cc (Target_arm::do_relax): Record an output section for section
offset adjustment it contains any stub table that has changed.
* layout.cc (Layout::clean_up_after_relaxation): Adjust section
offsets in an output section if necessary.
* output.cc (Output_section::Output_section): Initialize
section_offsets_need_adjustments_.
(Output_section::add_input_section_for_script): Renamed to
Output_section::add_simple_input_section.
(Output_section::save_states): Add a comment.
(Output_section::discard_states): New method defintion.
(Output_section::adjust_section_offsets): Same.
* output.h (Output_section::add_input_section_for_script): Renamed to
Output_section::add_simple_input_section.
(Output_section::discard_states): New method declaration.
(Output_section::adjust_section_offsets): Same.
(Output_section::section_offsets_need_adjustment,
Output_section::set_section_offsets_need_adjustment): New method
definitions.
(Output_section::section_offsets_need_adjustment_): New data member.
* script-sections.cc
(Output_section_element_input::set_section_address): Adjust code for
renaming of Output_section::add_input_section_for_script.
(Orphan_output_section::set_section_address): Same.
gold/ChangeLog
gold/arm.cc
gold/layout.cc
gold/output.cc
gold/output.h
gold/script-sections.cc