mingw-binutils/binutils-gold-mismatched-section-flags.patch

20 lines
677 B
Diff
Raw Normal View History

2024-02-05 17:21:00 +08:00
diff -rupN --no-dereference binutils-2.37/gold/layout.cc binutils-2.37-new/gold/layout.cc
--- binutils-2.37/gold/layout.cc 2021-07-08 13:37:20.000000000 +0200
+++ binutils-2.37-new/gold/layout.cc 2021-07-24 21:59:20.710787409 +0200
2024-02-04 20:41:09 +08:00
@@ -869,6 +869,7 @@ Layout::get_output_section(const char* n
2020-10-08 17:29:50 +08:00
&& (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;
2024-02-04 20:41:09 +08:00
@@ -879,6 +880,7 @@ Layout::get_output_section(const char* n
2020-10-08 17:29:50 +08:00
if (p != this->section_name_map_.end())
os = p->second;
}
+#endif
}
if (os == NULL)