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.
This commit is contained in:
Nick Clifton 2018-07-30 09:34:40 +01:00
parent 906c6f2c54
commit 7d8a316657
4 changed files with 12 additions and 0 deletions

View 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.

View 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.

View 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

View 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