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

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