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

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