0009-arm-pie-tls.diff 707 B

1234567891011121314151617181920
  1. --- binutils-2.25.1/bfd/elf32-arm.c.orig 2019-10-02 10:41:56.188034263 -0400
  2. +++ binutils-2.25.1/bfd/elf32-arm.c 2019-10-02 10:42:45.553394647 -0400
  3. @@ -9493,7 +9493,7 @@
  4. {
  5. /* If we don't know the module number, create a relocation
  6. for it. */
  7. - if (info->shared)
  8. + if (!info->executable)
  9. {
  10. Elf_Internal_Rela outrel;
  11. @@ -9581,7 +9581,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 ((info->shared || indx != 0)
  15. + if ((!info->executable || indx != 0)
  16. && (h == NULL
  17. || ELF_ST_VISIBILITY (h->other) == STV_DEFAULT
  18. || h->root.type != bfd_link_hash_undefweak))