binutils-gold-mismatched-section-flags.patch 651 B

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