Blame SOURCES/binutils-verdef.patch

de02ff
--- binutils.orig/bfd/elflink.c	2022-03-07 14:59:10.275856785 +0000
de02ff
+++ binutils-2.30/bfd/elflink.c	2022-03-07 15:00:19.129562705 +0000
de02ff
@@ -4578,7 +4578,8 @@ error_free_dyn:
de02ff
 		 || h->root.type == bfd_link_hash_warning)
de02ff
 	    h = (struct elf_link_hash_entry *) h->root.u.i.link;
de02ff
 
de02ff
-	  if (elf_tdata (abfd)->verdef != NULL
de02ff
+	  if (h->versioned != unversioned
de02ff
+	      && elf_tdata (abfd)->verdef != NULL
de02ff
 	      && vernum > 1
de02ff
 	      && definition)
de02ff
 	    h->verinfo.verdef = &elf_tdata (abfd)->verdef[vernum - 1];