Blame SOURCES/binutils-gold-mismatched-section-flags.patch

00b3bd
diff -rup binutils.orig/gold/layout.cc binutils-2.32/gold/layout.cc
00b3bd
--- binutils.orig/gold/layout.cc	2019-06-24 14:37:36.013086899 +0100
00b3bd
+++ binutils-2.32/gold/layout.cc	2019-06-24 14:41:40.054517479 +0100
00b3bd
@@ -868,6 +868,7 @@ Layout::get_output_section(const char* n
00b3bd
 		  && (same_name->flags() & elfcpp::SHF_TLS) == 0)
00b3bd
 		os = same_name;
00b3bd
 	    }
00b3bd
+#if 0 /* BZ 1722715, PR 17556.  */
00b3bd
 	  else if ((flags & elfcpp::SHF_TLS) == 0)
00b3bd
 	    {
00b3bd
 	      elfcpp::Elf_Xword zero_flags = 0;
00b3bd
@@ -878,6 +879,7 @@ Layout::get_output_section(const char* n
00b3bd
 	      if (p != this->section_name_map_.end())
00b3bd
 		os = p->second;
00b3bd
 	    }
00b3bd
+#endif
00b3bd
 	}
00b3bd
 
00b3bd
       if (os == NULL)