Blame SOURCES/binutils-merge-attribute-sections.patch
|
|
381f6c |
diff -rup binutils.orig/gold/layout.cc binutils-2.30/gold/layout.cc
|
|
|
381f6c |
--- binutils.orig/gold/layout.cc 2018-07-27 12:02:14.160444849 +0100
|
|
|
381f6c |
+++ binutils-2.30/gold/layout.cc 2018-07-27 12:03:11.543820863 +0100
|
|
|
381f6c |
@@ -5133,6 +5133,7 @@ const Layout::Section_name_mapping Layou
|
|
|
381f6c |
MAPPING_INIT(".gnu.linkonce.armextab.", ".ARM.extab"),
|
|
|
381f6c |
MAPPING_INIT(".ARM.exidx", ".ARM.exidx"),
|
|
|
381f6c |
MAPPING_INIT(".gnu.linkonce.armexidx.", ".ARM.exidx"),
|
|
|
381f6c |
+ MAPPING_INIT(".gnu.build.attributes.", ".gnu.build.attributes"),
|
|
|
381f6c |
};
|
|
|
381f6c |
#undef MAPPING_INIT
|
|
|
381f6c |
#undef MAPPING_INIT_EXACT
|
|
|
381f6c |
diff -rup binutils.orig/ld/scripttempl/elf.sc binutils-2.30/ld/scripttempl/elf.sc
|
|
|
381f6c |
--- binutils.orig/ld/scripttempl/elf.sc 2018-07-27 12:02:13.992446676 +0100
|
|
|
381f6c |
+++ binutils-2.30/ld/scripttempl/elf.sc 2018-07-27 12:02:42.292138945 +0100
|
|
|
381f6c |
@@ -692,6 +692,8 @@ cat <
|
|
|
381f6c |
|
|
|
381f6c |
.comment 0 : { *(.comment) }
|
|
|
381f6c |
|
|
|
381f6c |
+ .gnu.build.attributes : { *(.gnu.build.attributes .gnu.build.attributes.*) }
|
|
|
381f6c |
+
|
|
|
381f6c |
EOF
|
|
|
381f6c |
|
|
|
381f6c |
. $srcdir/scripttempl/DWARF.sc
|