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

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