Blob Blame History Raw
diff -rupN --no-dereference binutils-2.42/bfd/elfnn-aarch64.c binutils-2.42-new/bfd/elfnn-aarch64.c
--- binutils-2.42/bfd/elfnn-aarch64.c	2024-01-29 01:00:00.000000000 +0100
+++ binutils-2.42-new/bfd/elfnn-aarch64.c	2024-02-18 23:54:42.927988781 +0100
@@ -5685,6 +5685,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;