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

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