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

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