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] |
Hi, This patch fixes sorting of init_array and .fini_array input sections so that the behaviour is similar to that of ld, which has been fixed by Alan's recent patch: http://sourceware.org/ml/binutils-cvs/2010-02/msg00184.html This was tested on both x86_64 and ARM Linux. All tests passed on both platforms. -Doug 2010-03-01 Doug Kwan <dougkwan@google.com> * layout.cc (Layout::get_output_section): Force section types of .init_array and .fini_array. * 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.
Attachment:
patch-init_array.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |