Make linker scripts and section ordering via --section-ordering-file or
authorSriraman Tallam <tmsriram@google.com>
Thu, 10 Jan 2013 00:18:15 +0000 (00:18 +0000)
committerSriraman Tallam <tmsriram@google.com>
Thu, 10 Jan 2013 00:18:15 +0000 (00:18 +0000)
commit9e9143bc874ab4742433b7498413313fb1723e8b
treeaffd5cff00b087689a5da91d989d3fcdc3527f47
parent40c134978ad094bc831acd08703edee156b68f75
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.
gold/ChangeLog
gold/output.h
gold/script-sections.cc
gold/testsuite/Makefile.am
gold/testsuite/Makefile.in