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

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