binutils-2.27-aarch64-ifunc.patch 500 B

123456789101112
  1. diff -rup binutils.orig/bfd/elfnn-aarch64.c binutils-2.27/bfd/elfnn-aarch64.c
  2. --- binutils.orig/bfd/elfnn-aarch64.c 2017-02-21 10:45:19.311956006 +0000
  3. +++ binutils-2.27/bfd/elfnn-aarch64.c 2017-02-21 11:55:07.517922655 +0000
  4. @@ -4947,6 +4947,7 @@ elfNN_aarch64_final_link_relocate (reloc
  5. it here if it is defined in a non-shared object. */
  6. if (h != NULL
  7. && h->type == STT_GNU_IFUNC
  8. + && (input_section->flags & SEC_ALLOC)
  9. && h->def_regular)
  10. {
  11. asection *plt;