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

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