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

82154a
diff -rupN --no-dereference binutils-2.39/gold/layout.cc binutils-2.39-new/gold/layout.cc
82154a
--- binutils-2.39/gold/layout.cc	2022-07-08 11:46:48.000000000 +0200
82154a
+++ binutils-2.39-new/gold/layout.cc	2022-10-30 12:41:32.255023774 +0100
e89428
@@ -869,6 +869,7 @@ Layout::get_output_section(const char* n
e89428
 		  && (same_name->flags() & elfcpp::SHF_TLS) == 0)
e89428
 		os = same_name;
e89428
 	    }
e89428
+#if 0 /* BZ 1722715, PR 17556.  */
e89428
 	  else if ((flags & elfcpp::SHF_TLS) == 0)
e89428
 	    {
e89428
 	      elfcpp::Elf_Xword zero_flags = 0;
e89428
@@ -879,6 +880,7 @@ Layout::get_output_section(const char* n
e89428
 	      if (p != this->section_name_map_.end())
e89428
 		os = p->second;
e89428
 	    }
e89428
+#endif
e89428
 	}
e89428
 
e89428
       if (os == NULL)