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

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