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

e89428
diff -rupN --no-dereference binutils-2.37/bfd/elfnn-aarch64.c binutils-2.37-new/bfd/elfnn-aarch64.c
e89428
--- binutils-2.37/bfd/elfnn-aarch64.c	2021-07-08 13:37:19.000000000 +0200
e89428
+++ binutils-2.37-new/bfd/elfnn-aarch64.c	2021-07-24 21:59:12.398868364 +0200
e89428
@@ -5473,6 +5473,7 @@ elfNN_aarch64_final_link_relocate (reloc
e89428
      it here if it is defined in a non-shared object.  */
e89428
   if (h != NULL
e89428
       && h->type == STT_GNU_IFUNC
e89428
+      && (input_section->flags & SEC_ALLOC)
e89428
       && h->def_regular)
e89428
     {
e89428
       asection *plt;