aboutsummaryrefslogtreecommitdiff
path: root/gold/layout.cc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2019-09-18 13:23:34 +0200
committerMartin Liska <mliska@suse.cz>2019-11-26 17:20:10 +0100
commit5fa5f8f5fe494ba4fe98c11899a5464cd164ec75 (patch)
tree451d1fa4e113336dd195ecb9628767da592d9553 /gold/layout.cc
parent239b426b11425c4bd6b36aa7fd92a01e74fd42cb (diff)
downloadbinutils-5fa5f8f5fe494ba4fe98c11899a5464cd164ec75.zip
binutils-5fa5f8f5fe494ba4fe98c11899a5464cd164ec75.tar.gz
binutils-5fa5f8f5fe494ba4fe98c11899a5464cd164ec75.tar.bz2
Introduce new .text.sorted.* sections.
gold/ChangeLog: 2019-11-26 Martin Liska <mliska@suse.cz> * layout.cc (Layout::special_ordering_of_input_section): Add ".text.sorted". * output.cc: Special case ".text.sorted". * testsuite/section_sorting_name.cc: Cover also .text.sorted subsections. * testsuite/section_sorting_name.sh: Likewise. ld/ChangeLog: 2019-11-26 Martin Liska <mliska@suse.cz> * scripttempl/arclinux.sc: Add .text.sorted.* which is sorted by default. * scripttempl/elf.sc: Likewise. * scripttempl/elf64bpf.sc: Likewise. * scripttempl/nds32elf.sc: Likewise. * testsuite/ld-arm/arm-no-rel-plt.ld: Expect .text.sorted.* in the default linker script. * testsuite/ld-arm/fdpic-main.ld: Likewise. * testsuite/ld-arm/fdpic-shared.ld: Likewise.
Diffstat (limited to 'gold/layout.cc')
-rw-r--r--gold/layout.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/layout.cc b/gold/layout.cc
index 194d088c..4a6a7f6 100644
--- a/gold/layout.cc
+++ b/gold/layout.cc
@@ -1129,7 +1129,8 @@ Layout::special_ordering_of_input_section(const char* name)
".text.unlikely",
".text.exit",
".text.startup",
- ".text.hot"
+ ".text.hot",
+ ".text.sorted"
};
for (size_t i = 0;