Blame SOURCES/binutils-common-sym-versioning.patch

8eb6fd
--- binutils.orig/bfd/elflink.c	2020-12-08 17:45:26.487260908 +0000
8eb6fd
+++ binutils-2.30/bfd/elflink.c	2020-12-08 17:48:06.650728413 +0000
8eb6fd
@@ -1895,7 +1895,7 @@ _bfd_elf_add_default_symbol (bfd *abfd,
8eb6fd
   if (skip)
8eb6fd
     goto nondefault;
8eb6fd
 
8eb6fd
-  if (hi->def_regular)
8eb6fd
+  if (hi->def_regular || ELF_COMMON_DEF_P (hi))
8eb6fd
     {
8eb6fd
       /* If the undecorated symbol will have a version added by a
8eb6fd
 	 script different to H, then don't indirect to/from the
8eb6fd
@@ -2236,7 +2236,7 @@ _bfd_elf_link_assign_sym_version (struct
8eb6fd
 
8eb6fd
   /* We only need version numbers for symbols defined in regular
8eb6fd
      objects.  */
8eb6fd
-  if (!h->def_regular)
8eb6fd
+  if (!h->def_regular && !ELF_COMMON_DEF_P (h))
8eb6fd
     return TRUE;
8eb6fd
 
8eb6fd
   bed = get_elf_backend_data (info->output_bfd);
8eb6fd
@@ -9957,7 +9957,7 @@ elf_link_output_extsym (struct bfd_hash_
8eb6fd
 	  Elf_Internal_Versym iversym;
8eb6fd
 	  Elf_External_Versym *eversym;
8eb6fd
 
8eb6fd
-	  if (!h->def_regular)
8eb6fd
+	  if (!h->def_regular && !ELF_COMMON_DEF_P (h))
8eb6fd
 	    {
8eb6fd
 	      if (h->verinfo.verdef == NULL
8eb6fd
 		  || (elf_dyn_lib_class (h->verinfo.verdef->vd_bfd)