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

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