]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Combine ,gnu.build.attributes.* sections into one .gnu.build.attributes section durin...
authorNick Clifton <nickc@redhat.com>
Mon, 30 Jul 2018 08:34:40 +0000 (09:34 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 30 Jul 2018 08:34:40 +0000 (09:34 +0100)
gold * layout.cc (section_name_mapping): Add an entry for
.gnu.build.attributes.

ld * scripttempl/elf.sc: Place .gnu.build.attributes sections with
other read-only sections.

gold/ChangeLog
gold/layout.cc
ld/ChangeLog
ld/scripttempl/elf.sc

index 93efd29d1cfc0d149068c0d5c791b4c182476104..d5cc02b14bdbed2df8c0525603bc33e29c738ef5 100644 (file)
@@ -1,3 +1,8 @@
+2018-07-30  Nick Clifton  <nickc@redhat.com>
+
+       * layout.cc (section_name_mapping): Add an entry for
+       .gnu.build.attributes.
+
 2018-07-18  Nick Clifton  <nickc@redhat.com>
 
        * po/fr.po: Updated French translation.
index 0df7ed37f021ee741124e8814959370065b10d55..66162a253d4791b908b11fdba5d6fe96e138bb04 100644 (file)
@@ -5429,6 +5429,7 @@ const Layout::Section_name_mapping Layout::section_name_mapping[] =
   MAPPING_INIT(".gnu.linkonce.armextab.", ".ARM.extab"),
   MAPPING_INIT(".ARM.exidx", ".ARM.exidx"),
   MAPPING_INIT(".gnu.linkonce.armexidx.", ".ARM.exidx"),
+  MAPPING_INIT(".gnu.build.attributes.", ".gnu.build.attributes"),
 };
 
 // Mapping for ".text" section prefixes with -z,keep-text-section-prefix.
index 61e2c6d643c065bd175f00f80d31753133fcd181..0f3906bd17510edf706371dc571cbbac441c3715 100644 (file)
@@ -1,3 +1,8 @@
+2018-07-30  Nick Clifton  <nickc@redhat.com>
+
+       * scripttempl/elf.sc: Place .gnu.build.attributes sections with
+       other read-only sections.
+
 2018-07-27  John Darrington  <john@darrington.wattle.id.au>
 
        * scripttempl/elfm9s12z.sc: Put input sections called .common
index 444aef29423c6ba73753dbd5d222423954523a36..6bf6936362db1fa9ad89f0213780c9f16945c95d 100644 (file)
@@ -564,6 +564,7 @@ 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