2010-03-01 Doug Kwan <dougkwan@google.com>
commitb6924e7257f2d100beba646d8afb110840fee130
authorDoug Kwan <dougkwan@google.com>
Mon, 1 Mar 2010 21:43:49 +0000 (1 21:43 +0000)
committerDoug Kwan <dougkwan@google.com>
Mon, 1 Mar 2010 21:43:49 +0000 (1 21:43 +0000)
tree9ae81eb4a98aa71e055467bc52a50849458871fb
parent7dc446e3e1d20ae766c5c5f22622220729ae8a3a
2010-03-01  Doug Kwan  <dougkwan@google.com>

* layout.cc (Layout::Layout): Force section types of .init_array*,
.preinit_array* and .fini_array* sections.
* output.cc (Output_section::Input_section_sort_entry::has_priority):
Fix check of return value of std::string::find.().
(Output_section::Input_section_sort_compare::operator()): Remove
comment about .init_array.
(Output_section::Input_section_sort_init_fini_compare::operator()):
New method.
(Output_section::sort_attached_input_sections): Handle .init_array
and .fini_array specially.
* output.h (Output_section::Inut_section_sort_compare): Update
comment.
(Output_section::Input_section_sort_init_fini_compare): New struct.
gold/ChangeLog
gold/layout.cc
gold/output.cc
gold/output.h