aboutsummaryrefslogtreecommitdiff
path: root/gold/output.h
diff options
context:
space:
mode:
authorSriraman Tallam <tmsriram@google.com>2013-01-10 00:18:15 +0000
committerSriraman Tallam <tmsriram@google.com>2013-01-10 00:18:15 +0000
commit9e9143bc874ab4742433b7498413313fb1723e8b (patch)
treeaffd5cff00b087689a5da91d989d3fcdc3527f47 /gold/output.h
parent40c134978ad094bc831acd08703edee156b68f75 (diff)
downloadgdb-9e9143bc874ab4742433b7498413313fb1723e8b.zip
gdb-9e9143bc874ab4742433b7498413313fb1723e8b.tar.gz
gdb-9e9143bc874ab4742433b7498413313fb1723e8b.tar.bz2
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.
Diffstat (limited to 'gold/output.h')
-rw-r--r--gold/output.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gold/output.h b/gold/output.h
index a8fe594..8f3943b 100644
--- a/gold/output.h
+++ b/gold/output.h
@@ -3300,6 +3300,10 @@ class Output_section : public Output_data
this->dynsym_index_ = index;
}
+ // Sort the attached input sections.
+ void
+ sort_attached_input_sections();
+
// Return whether the input sections sections attachd to this output
// section may require sorting. This is used to handle constructor
// priorities compatibly with GNU ld.
@@ -4253,10 +4257,6 @@ class Output_section : public Output_data
add_output_merge_section(Output_section_data* posd, bool is_string,
uint64_t entsize);
- // Sort the attached input sections.
- void
- sort_attached_input_sections();
-
// Find the merge section into which an input section with index SHNDX in
// OBJECT has been added. Return NULL if none found.
Output_section_data*