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

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