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

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