diff options
author | Alexander Ivchenko <alexander.ivchenko@intel.com> | 2013-01-25 14:35:38 +0400 |
---|---|---|
committer | Alexander Ivchenko <alexander.ivchenko@intel.com> | 2013-01-25 15:38:32 +0400 |
commit | 43cc3f59831134ed0b2447bb21767371417ac54a (patch) | |
tree | c10353fa1c13ac509d4d2269f8d15ac71d78eee4 /binutils-2.21/gold | |
parent | 8415ff0aaeb157307bb01a45373dba81919882fc (diff) | |
download | toolchain_binutils-43cc3f59831134ed0b2447bb21767371417ac54a.zip toolchain_binutils-43cc3f59831134ed0b2447bb21767371417ac54a.tar.gz toolchain_binutils-43cc3f59831134ed0b2447bb21767371417ac54a.tar.bz2 |
[2.22.90] Backport of two patches from mainline that enable
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
Diffstat (limited to 'binutils-2.21/gold')
0 files changed, 0 insertions, 0 deletions