Introduce new .text.sorted.* sections.
authorMartin Liska <mliska@suse.cz>
Wed, 18 Sep 2019 11:23:34 +0000 (13:23 +0200)
committerMartin Liska <mliska@suse.cz>
Tue, 26 Nov 2019 16:20:10 +0000 (17:20 +0100)
commit5fa5f8f5fe494ba4fe98c11899a5464cd164ec75
tree451d1fa4e113336dd195ecb9628767da592d9553
parent239b426b11425c4bd6b36aa7fd92a01e74fd42cb
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.
13 files changed:
gold/ChangeLog
gold/layout.cc
gold/output.cc
gold/testsuite/section_sorting_name.cc
gold/testsuite/section_sorting_name.sh
ld/ChangeLog
ld/scripttempl/arclinux.sc
ld/scripttempl/elf.sc
ld/scripttempl/elf64bpf.sc
ld/scripttempl/nds32elf.sc
ld/testsuite/ld-arm/arm-no-rel-plt.ld
ld/testsuite/ld-arm/fdpic-main.ld
ld/testsuite/ld-arm/fdpic-shared.ld