0004-mips-pie-tls.diff 826 B

123456789101112131415161718192021
  1. diff -ur binutils-2.27.orig/bfd/elfxx-mips.c binutils-2.27/bfd/elfxx-mips.c
  2. --- binutils-2.27.orig/bfd/elfxx-mips.c 2016-08-03 03:36:51.000000000 -0400
  3. +++ binutils-2.27/bfd/elfxx-mips.c 2018-01-31 12:11:22.458824584 -0500
  4. @@ -3242,7 +3242,7 @@
  5. && (!bfd_link_pic (info) || !SYMBOL_REFERENCES_LOCAL (info, h)))
  6. indx = h->dynindx;
  7. - if ((bfd_link_pic (info) || indx != 0)
  8. + if ((bfd_link_dll (info) || indx != 0)
  9. && (h == NULL
  10. || ELF_ST_VISIBILITY (h->other) == STV_DEFAULT
  11. || h->root.type != bfd_link_hash_undefweak))
  12. @@ -3354,7 +3354,7 @@
  13. if (entry->tls_initialized)
  14. return;
  15. - if ((bfd_link_pic (info) || indx != 0)
  16. + if ((bfd_link_dll (info) || indx != 0)
  17. && (h == NULL
  18. || ELF_ST_VISIBILITY (h->root.other) == STV_DEFAULT
  19. || h->root.type != bfd_link_hash_undefweak))