Blame SOURCES/binutils-undefined-unversioned-symbols.patch

f195d2
diff -rup binutils-2.30/bfd/elflink.c binutils.new/bfd/elflink.c
f195d2
--- binutils-2.30/bfd/elflink.c	2021-12-09 09:05:54.545468003 +0000
f195d2
+++ binutils.new/bfd/elflink.c	2021-12-09 09:03:15.366632301 +0000
f195d2
@@ -9980,7 +9980,7 @@ elf_link_output_extsym (struct bfd_hash_
f195d2
 	      if (h->verinfo.verdef == NULL
f195d2
 		  || (elf_dyn_lib_class (h->verinfo.verdef->vd_bfd)
f195d2
 		      & (DYN_AS_NEEDED | DYN_DT_NEEDED | DYN_NO_NEEDED)))
f195d2
-		iversym.vs_vers = 0;
f195d2
+		iversym.vs_vers = 1;
f195d2
 	      else
f195d2
 		iversym.vs_vers = h->verinfo.verdef->vd_exp_refno + 1;
f195d2
 	    }
f195d2
diff -rup binutils-2.30/ld/testsuite/ld-elfvers/vers16.dsym binutils.new/ld/testsuite/ld-elfvers/vers16.dsym
f195d2
--- binutils-2.30/ld/testsuite/ld-elfvers/vers16.dsym	2018-01-13 13:31:16.000000000 +0000
f195d2
+++ binutils.new/ld/testsuite/ld-elfvers/vers16.dsym	2021-12-09 09:05:03.730791511 +0000
f195d2
@@ -1,2 +1,2 @@
f195d2
 [0-9a-f]+ g +DF (\.text|\.opd|\*ABS\*)	[0-9a-f]+( +Base +)? (0x[0-9a-f]+ )?_?show_bar
f195d2
-[0-9a-f]+ +DF \*UND\*	[0-9a-f]+ +(0x[0-9a-f]+ )?_?show_foo
f195d2
+[0-9a-f]+ +DF \*UND\*	[0-9a-f]+ +Base +(0x[0-9a-f]+ )?_?show_foo
f195d2
diff -rup binutils-2.30/ld/testsuite/ld-elfvers/vers6.dsym binutils.new/ld/testsuite/ld-elfvers/vers6.dsym
f195d2
--- binutils-2.30/ld/testsuite/ld-elfvers/vers6.dsym	2018-01-13 13:31:16.000000000 +0000
f195d2
+++ binutils.new/ld/testsuite/ld-elfvers/vers6.dsym	2021-12-09 09:04:45.778917378 +0000
f195d2
@@ -1,4 +1,4 @@
f195d2
-[0-9a-f]+ +DF \*UND\*	[0-9a-f]+ +(0x[0-9a-f]+ )?_?show_foo
f195d2
+[0-9a-f]+ +DF \*UND\*	[0-9a-f]+ +Base +(0x[0-9a-f]+ )?_?show_foo
f195d2
 [0-9a-f]+ +DF \*UND\*	[0-9a-f]+ +VERS_2.0 +(0x[0-9a-f]+ )?_?show_foo
f195d2
 [0-9a-f]+ +DF \*UND\*	[0-9a-f]+ +VERS_1.2 +(0x[0-9a-f]+ )?_?show_foo
f195d2
 [0-9a-f]+ +DF \*UND\*	[0-9a-f]+ +VERS_1.1 +(0x[0-9a-f]+ )?_?show_foo