forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -491,6 +491,7 @@ cat <<EOF
|
||||
${RELOCATING+*(.text.exit .text.exit.*)}
|
||||
${RELOCATING+*(.text.startup .text.startup.*)}
|
||||
${RELOCATING+*(.text.hot .text.hot.*)}
|
||||
${RELOCATING+*(SORT(.text.sorted.*))}
|
||||
*(.text .stub${RELOCATING+ .text.* .gnu.linkonce.t.*})
|
||||
/* .gnu.warning sections are handled specially by elf.em. */
|
||||
*(.gnu.warning)
|
||||
|
||||
@@ -514,6 +514,7 @@ cat <<EOF
|
||||
${RELOCATING+*(.text.exit .text.exit.*)}
|
||||
${RELOCATING+*(.text.startup .text.startup.*)}
|
||||
${RELOCATING+*(.text.hot .text.hot.*)}
|
||||
${RELOCATING+*(SORT(.text.sorted.*))}
|
||||
*(.text .stub${RELOCATING+ .text.* .gnu.linkonce.t.*})
|
||||
/* .gnu.warning sections are handled specially by elf.em. */
|
||||
*(.gnu.warning)
|
||||
|
||||
@@ -512,6 +512,7 @@ cat <<EOF
|
||||
${RELOCATING+*(.text.exit .text.exit.*)}
|
||||
${RELOCATING+*(.text.startup .text.startup.*)}
|
||||
${RELOCATING+*(.text.hot .text.hot.*)}
|
||||
${RELOCATING+*(SORT(.text.sorted.*))}
|
||||
*(.text .stub${RELOCATING+ .text.* .gnu.linkonce.t.*})
|
||||
/* .gnu.warning sections are handled specially by elf.em. */
|
||||
*(.gnu.warning)
|
||||
|
||||
@@ -438,6 +438,7 @@ cat <<EOF
|
||||
${RELOCATING+*(.text.exit .text.exit.*)}
|
||||
${RELOCATING+*(.text.startup .text.startup.*)}
|
||||
${RELOCATING+*(.text.hot .text.hot.*)}
|
||||
${RELOCATING+*(SORT(.text.sorted.*))}
|
||||
*(.text .stub${RELOCATING+ .text.* .gnu.linkonce.t.*})
|
||||
/* .gnu.warning sections are handled specially by elf.em. */
|
||||
*(.gnu.warning)
|
||||
|
||||
Reference in New Issue
Block a user