[binutils-gdb] Fix thinko in the placement of the .gnu.build.attributes section.
Nick Clifton
nickc@sourceware.org
Mon Jul 30 11:36:00 GMT 2018
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4570c3d98c0a35e52fa4117d07b78d4f461b6f26
commit 4570c3d98c0a35e52fa4117d07b78d4f461b6f26
Author: Nick Clifton <nickc@redhat.com>
Date: Mon Jul 30 12:35:37 2018 +0100
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.
Diff:
---
ld/ChangeLog | 5 +++++
ld/scripttempl/elf.sc | 3 ++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 60deb47..8a8c2f1 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2018-07-30 Nick Clifton <nickc@redhat.com>
+
+ * scripttempl/elf.sc: Move the .gnu.build.attributes section to
+ after the .comment section.
+
2018-07-30 Andrew Jenner <andrew@codesourcery.com>
* Makefile.am (ALL_EMULATION_SOURCES): Add C-SKY emulations.
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
More information about the Binutils-cvs
mailing list