0002-arm-pie-tls.diff 700 B

1234567891011121314151617181920
  1. --- binutils-2.32/bfd/elf32-arm.c.orig 2019-10-02 07:47:36.153918869 -0400
  2. +++ binutils-2.32/bfd/elf32-arm.c 2019-10-02 08:37:09.108263016 -0400
  3. @@ -11624,7 +11624,7 @@
  4. {
  5. /* If we don't know the module number, create a relocation
  6. for it. */
  7. - if (bfd_link_pic (info))
  8. + if (bfd_link_dll (info))
  9. {
  10. Elf_Internal_Rela outrel;
  11. @@ -11728,7 +11728,7 @@
  12. now, and emit any relocations. If both an IE GOT and a
  13. GD GOT are necessary, we emit the GD first. */
  14. - if ((bfd_link_pic (info) || indx != 0)
  15. + if ((bfd_link_dll (info) || indx != 0)
  16. && (h == NULL
  17. || (ELF_ST_VISIBILITY (h->other) == STV_DEFAULT
  18. && !resolved_to_zero)