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

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