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

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