Blob Blame History Raw
diff -rupN --no-dereference binutils-2.36.1/bfd/elfnn-aarch64.c binutils-2.36.1-new/bfd/elfnn-aarch64.c
--- binutils-2.36.1/bfd/elfnn-aarch64.c	2021-01-09 11:47:33.000000000 +0100
+++ binutils-2.36.1-new/bfd/elfnn-aarch64.c	2021-02-13 18:13:13.323258545 +0100
@@ -5473,6 +5473,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;