aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2018-07-30 12:35:37 +0100
committerNick Clifton <nickc@redhat.com>2018-07-30 12:35:37 +0100
commit4570c3d98c0a35e52fa4117d07b78d4f461b6f26 (patch)
tree28ff9c615be2327aece199740320113ae4bbd76c /ld/scripttempl
parentb8891f8d622a31306062065813fc278d8a94fe21 (diff)
downloadfsf-binutils-gdb-4570c3d98c0a35e52fa4117d07b78d4f461b6f26.zip
fsf-binutils-gdb-4570c3d98c0a35e52fa4117d07b78d4f461b6f26.tar.gz
fsf-binutils-gdb-4570c3d98c0a35e52fa4117d07b78d4f461b6f26.tar.bz2
Fix thinko in the placement of the .gnu.build.attributes section.
* scripttempl/elf.sc: Move the .gnu.build.attributes section to after the .comment section.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/elf.sc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
index 6bf6936..b10e330 100644
--- a/ld/scripttempl/elf.sc
+++ b/ld/scripttempl/elf.sc
@@ -564,7 +564,6 @@ cat <<EOF
${CREATE_SHLIB-${SDATA2}}
${CREATE_SHLIB-${SBSS2}}
${OTHER_READONLY_SECTIONS}
- .gnu.build.attributes : { *(.gnu.build.attributes .gnu.build.attributes.*) }
.eh_frame_hdr : { *(.eh_frame_hdr) ${RELOCATING+*(.eh_frame_entry .eh_frame_entry.*)} }
.eh_frame ${RELOCATING-0} : ONLY_IF_RO { KEEP (*(.eh_frame)) ${RELOCATING+*(.eh_frame.*)} }
.gcc_except_table ${RELOCATING-0} : ONLY_IF_RO { *(.gcc_except_table
@@ -693,6 +692,8 @@ cat <<EOF
.comment 0 : { *(.comment) }
+ .gnu.build.attributes : { *(.gnu.build.attributes .gnu.build.attributes.*) }
+
EOF
. $srcdir/scripttempl/DWARF.sc