summaryrefslogtreecommitdiffstats
path: root/binutils-2.22/gold/layout.cc
Commit message (Collapse)AuthorAgeFilesLines
* Remove old versions of binutils.Dan Albert2015-06-171-5617/+0
| | | | Change-Id: If634d8d30cfa8c88ca3ba59691a0df4ee5596f85
* [2.21, 2.22, 2.23] Backport of the patch for keeping lto sectionsAlexander Ivchenko2014-03-051-1/+2
| | | | | | | | | | | | when linking with "-r" options (ld bfd behaviour). 2012-10-16 Sriraman Tallam <tmsriram@google.com> * layout.cc (Layout::include_section): Keep sections marked SHF_EXCLUDE when doing relocatable links. Change-Id: Icc49c2b8e34097ec95d869a70d367ef6faf320ed Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
* [2.21], [2.22], [2.23] Backport of the patch for fixing large symbol alignment.Alexander Ivchenko2013-06-061-1/+7
| | | | | | | | | | | | | | | 2013-06-05 Alexander Ivchenko <alexander.ivchenko@intel.com> gold/ * layout.cc (Layout::set_segment_offsets): Taking care of the case when the maximum segment alignment is larger than the page size. * testsuite/Makefile.am (large_symbol_alignment): Test that Gold correctly aligns the symbols with large alignemnt. * testsuite/Makefile.in: Regenerate. * testsuite/large_symbol_alignment.cc: New file. Change-Id: I2fe5b73b9e76050f0f42bbbc9086d0d5824c0020 Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
* [2.22], [2.23] Backport of the patch that enables "--sort-section=name"Alexander Ivchenko2013-05-311-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | command line option in gold. 2013-05-30 Alexander Ivchenko <alexander.ivchenko@intel.com> Sriraman Tallam <tmsriram@google.com> * options.h (sort_section): New option. * output.h (Input_section_sort_section_prefix_special_ordering_compare): Rename from Input_section_sort_section_name_special_ordering_compare. (Input_section_sort_section_name_compare): New struct. * output.cc (Output_section::Input_section_sort_section_name_compare:: operator()): New function. (Output_section::sort_attached_input_sections): Use new sort function for .text if --sort-section=name is specified. * layout.cc (Layout::make_output_section): Add sorting by name when --sort-section=name is specified. * testsuite/Makefile.am (text_section_grouping): Test option --sort-section=name. * testsuite/Makefile.in: Regenerate. * testsuite/section_sorting_name.cc: New file. * testsuite/section_sorting_name.sh: New file. Change-Id: Icbb4bb11b95398c1f052326145aefaa2bdf41614 Signed-off-by: Alexander Ivchenko <alexander.ivchenko@intel.com>
* [2.22.90] Backport of three patches to fix text section reorderingAndrew Hsieh2013-01-271-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2013-01-24 Sriraman Tallam <tmsriram@google.com> * layout.cc (Layout::layout): Check for option text_reorder. (Layout::make_output_section): Ditto. * options.h (text_reorder): New option. * output.cc (Input_section_sort_compare): Remove special ordering of section names. (Output_section:: Input_section_sort_section_name_special_ordering_compare:: operator()): New function. (Output_section::sort_attached_input_sections): Use new sort function for .text. * output.h (Input_section_sort_section_name_special_ordering_compare): New struct. * testsuite/Makefile.am (text_section_grouping): Test option --no-text-reorder * testsuite/Makefile.in: Regenerate. * testsuite/text_section_grouping.sh: Check order of functions without default text reordering. 2013-01-16 Sriraman Tallam <tmsriram@google.com> * testsuite/plugin_final_layout.cc: Fix comment. 2013-01-16 Sriraman Tallam <tmsriram@google.com> * layout.cc (Layout::layout): Do not do default sorting for text sections when section ordering is specified. (make_output_section): Ditto. * testsuite/plugin_final_layout.cc: Name the function sections to catch reordering issues. Change-Id: I3413636486d578d3482f9a8ec1d93a0ec0a8f7d8
* [2.22.90] Backport of two patches from mainline that enableAlexander Ivchenko2013-01-251-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sorting of text sections Author: Sriraman Tallam <tmsriram@google.com> Date: Thu Jan 10 00:18:14 2013 +0000 Make linker scripts and section ordering via --section-ordering-file or linker plugins work. This patch lets linker scripts take precedence. 2013-01-09 Sriraman Tallam <tmsriram@google.com> * output.h (sort_attached_input_sections): Change to be public. * script-sections.cc (Output_section_definition::set_section_addresses): Sort attached input sections according to section order before linker script assigns section addresses. (Orphan_output_section::set_section_addresses): Sort attached input sections according to section order before linker script assigns section addresses. * Makefile.am (final_layout.sh): Use a simple linker script to check if section ordering still works. * Makefile.in: Regenerate. Author: Ian Lance Taylor <ian@airs.com> Date: Fri Dec 21 06:24:31 2012 +0000 * layout.cc (Layout::special_ordering_of_input_section): New function. (Layout::layout): If input section requires special ordering, must sort input sections. (Layout::make_output_section): May sort .text input sections. (Layout::is_section_name_prefix_grouped): Remove. * layout.h (class Layout): Declare special_ordering_of_input_section. Don't declare is_section_name_prefix_grouped. * output.cc (Output_section::add_input_section): Revert last change. (Output_section::Input_section_sort::match_file_name): Don't crash if called on output section data. (Output_section::Input_section_sort_compare): Sort based on special ordering. (Output_section::Input_section_sort_section_order_index_compare): Revert last patch. (Output_section::sort_attached_input_sections): Likewise. Change-Id: I385c609300f697abcdeb82324c9af903259fe2b6
* Refresh binutils to 2.22.90.Ben Cheng2012-11-011-237/+500
| | | | | | Missing local patches will be added after. Change-Id: I7e5f7529f165a48db48a07f08b85f36c2faa8d4a
* Initial checkin of unmodified binutils 2.22.Ben Cheng2012-09-101-0/+5296
Change-Id: I8c1bf4cf62df8eb16439021f1a1bac6437f5c470