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

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