Blob Blame History Raw
diff -rupN --no-dereference binutils-2.41/bfd/elfnn-aarch64.c binutils-2.41-new/bfd/elfnn-aarch64.c
--- binutils-2.41/bfd/elfnn-aarch64.c	2023-07-03 01:00:00.000000000 +0200
+++ binutils-2.41-new/bfd/elfnn-aarch64.c	2023-10-17 08:36:07.259543844 +0200
@@ -5654,6 +5654,7 @@ elfNN_aarch64_final_link_relocate (reloc
      it here if it is defined in a non-shared object.  */
   if (h != NULL
       && h->type == STT_GNU_IFUNC
+      && (input_section->flags & SEC_ALLOC)
       && h->def_regular)
     {
       asection *plt;