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

be6651
diff -rup binutils.orig/bfd/elfnn-aarch64.c binutils-2.27/bfd/elfnn-aarch64.c
be6651
--- binutils.orig/bfd/elfnn-aarch64.c	2017-02-21 10:45:19.311956006 +0000
be6651
+++ binutils-2.27/bfd/elfnn-aarch64.c	2017-02-21 11:55:07.517922655 +0000
be6651
@@ -4947,6 +4947,7 @@ elfNN_aarch64_final_link_relocate (reloc
be6651
      it here if it is defined in a non-shared object.  */
be6651
   if (h != NULL
be6651
       && h->type == STT_GNU_IFUNC
be6651
+      && (input_section->flags & SEC_ALLOC)
be6651
       && h->def_regular)
be6651
     {
be6651
       asection *plt;
be6651
Only in binutils.orig/ld/testsuite/ld-ifunc: .#pr18808b.c
be6651
Only in binutils.orig/ld/testsuite/ld-ifunc: #pr18808b.c#
be6651
diff -rup binutils.orig/ld/testsuite/ld-ifunc/pr18808b.c binutils-2.27/ld/testsuite/ld-ifunc/pr18808b.c
be6651
--- binutils.orig/ld/testsuite/ld-ifunc/pr18808b.c	2017-02-21 10:45:27.418826491 +0000
be6651
+++ binutils-2.27/ld/testsuite/ld-ifunc/pr18808b.c	2017-02-21 10:45:41.049608726 +0000
be6651
@@ -6,7 +6,7 @@ static int foo_impl(int x)
be6651
   return x;
be6651
 }
be6651
 
be6651
-int bar()
be6651
+void bar ()
be6651
 {
be6651
   int (*f)(int) = foo;
be6651