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

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