diff options
author | Nick Clifton <nickc@redhat.com> | 2018-07-30 09:34:40 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2018-07-30 09:34:40 +0100 |
commit | 7d8a31665739412395f6dd370d2279acd322e78e (patch) | |
tree | d0cdcd79dfabc9fa991d749e48e3cb9efa0f198c /ld | |
parent | 906c6f2c54425f18eccb30e3ae54cbe620f0fe86 (diff) | |
download | gdb-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 'ld')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/scripttempl/elf.sc | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 61e2c6d..0f3906b 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -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 diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc index 444aef2..6bf6936 100644 --- a/ld/scripttempl/elf.sc +++ b/ld/scripttempl/elf.sc @@ -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 |