Blame SOURCES/binutils-merge-attribute-sections.patch

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