Blame SOURCES/binutils-2.27-aarch64-ifunc.patch

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