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

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