diff -rupN --no-dereference binutils-2.40/gold/layout.cc binutils-2.40-new/gold/layout.cc
--- binutils-2.40/gold/layout.cc	2023-01-14 01:00:00.000000000 +0100
+++ binutils-2.40-new/gold/layout.cc	2023-03-09 14:51:59.908322697 +0100
@@ -872,6 +872,7 @@ Layout::get_output_section(const char* n
 		  && (same_name->flags() & elfcpp::SHF_TLS) == 0)
 		os = same_name;
 	    }
+#if 0 /* BZ 1722715, PR 17556.  */
 	  else if ((flags & elfcpp::SHF_TLS) == 0)
 	    {
 	      elfcpp::Elf_Xword zero_flags = 0;
@@ -882,6 +883,7 @@ Layout::get_output_section(const char* n
 	      if (p != this->section_name_map_.end())
 		os = p->second;
 	    }
+#endif
 	}
 
       if (os == NULL)
