aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2018-07-30 09:34:40 +0100
committerNick Clifton <nickc@redhat.com>2018-07-30 09:34:40 +0100
commit7d8a31665739412395f6dd370d2279acd322e78e (patch)
treed0cdcd79dfabc9fa991d749e48e3cb9efa0f198c /gold
parent906c6f2c54425f18eccb30e3ae54cbe620f0fe86 (diff)
downloadgdb-7d8a31665739412395f6dd370d2279acd322e78e.zip
gdb-7d8a31665739412395f6dd370d2279acd322e78e.tar.gz
gdb-7d8a31665739412395f6dd370d2279acd322e78e.tar.bz2
Combine ,gnu.build.attributes.* sections into one .gnu.build.attributes section during linking.
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.
Diffstat (limited to 'gold')
-rw-r--r--gold/ChangeLog5
-rw-r--r--gold/layout.cc1
2 files changed, 6 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 93efd29..d5cc02b 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -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.
diff --git a/gold/layout.cc b/gold/layout.cc
index 0df7ed3..66162a2 100644
--- a/gold/layout.cc
+++ b/gold/layout.cc
@@ -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.