Blame SOURCES/binutils-s390-ld-test-fixes.patch

7db648
diff -rup binutils.orig/ld/testsuite/ld-elfvsb/elfvsb.exp binutils-2.30/ld/testsuite/ld-elfvsb/elfvsb.exp
7db648
--- binutils.orig/ld/testsuite/ld-elfvsb/elfvsb.exp	2020-04-06 13:46:34.057525248 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-elfvsb/elfvsb.exp	2020-04-06 14:06:44.964203913 +0100
7db648
@@ -315,7 +315,6 @@ proc visibility_run {visibility} {
7db648
 		 && ![ string match $visibility "hidden_undef" ]
7db648
 		 && ![ string match $visibility "hidden_undef_def" ]
7db648
 		 && ![ string match $visibility "protected_undef" ] } {
7db648
-		setup_xfail "s390x-*-linux*"
7db648
 		if { [istarget sparc*-*-linux*] && [is_elf64 $tmpdir/mainnp.o] } {
7db648
 		    setup_xfail "sparc*-*-linux*"
7db648
 		}
7db648
@@ -353,7 +352,6 @@ proc visibility_run {visibility} {
7db648
 		 || [ string match $visibility "protected_weak" ]
7db648
 		 || [ string match $visibility "normal" ] } {
7db648
 		setup_xfail "powerpc-*-linux*"
7db648
-		setup_xfail "s390x-*-linux*"
7db648
 		if { [istarget sparc*-*-linux*] && [is_elf64 $tmpdir/mainnp.o] } {
7db648
 		    setup_xfail "sparc*-*-linux*"
7db648
 		}
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/lto.exp binutils-2.30/ld/testsuite/ld-plugin/lto.exp
7db648
--- binutils.orig/ld/testsuite/ld-plugin/lto.exp	2020-04-06 13:46:34.063525222 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/lto.exp	2020-04-06 14:10:02.634343536 +0100
7db648
@@ -222,7 +222,7 @@ if { [at_least_gcc_version 4 7] } {
7db648
        "" "-flto -O2" \
7db648
        {pr12942a.cc pr12942c.cc} {} "" "c++"] \
7db648
       [list "Compile PR ld/12942 (2)" \
7db648
-       "" "-O0" \
7db648
+       "" "-O2" \
7db648
        {pr12942b.cc} {} "" "c++"] \
7db648
     ]]
7db648
 }
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-10.d binutils-2.30/ld/testsuite/ld-plugin/plugin-10.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-10.d	2020-04-06 13:46:34.060525235 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-10.d	2020-04-06 14:22:06.280196979 +0100
7db648
@@ -34,5 +34,4 @@ hook called: claim_file tmpdir/libtext.a
7db648
 hook called: all symbols read.
7db648
 Sym: '_?func' Resolution: LDPR_PREVAILING_DEF
7db648
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
7db648
-hook called: cleanup.
7db648
 #...
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-11.d binutils-2.30/ld/testsuite/ld-plugin/plugin-11.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-11.d	2020-04-06 13:46:34.063525222 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-11.d	2020-04-06 14:22:24.789116715 +0100
7db648
@@ -38,5 +38,4 @@ hook called: all symbols read.
7db648
 Sym: '_?func' Resolution: LDPR_PREVAILING_DEF
7db648
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
7db648
 Sym: '_?text' Resolution: LDPR_PREVAILING_DEF
7db648
-hook called: cleanup.
7db648
 #...
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-12.d binutils-2.30/ld/testsuite/ld-plugin/plugin-12.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-12.d	2020-04-06 13:46:34.060525235 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-12.d	2020-04-06 14:21:20.373396053 +0100
7db648
@@ -1,5 +1,5 @@
7db648
 #...
7db648
-.*: symbol `.*unc' definition: 0, visibility: 0, resolution: 2
7db648
+.*: symbol `.*unc' definition: 0, visibility: 0, resolution: .
7db648
 .*: symbol `.*unc1' definition: 0, visibility: 1, resolution: 3
7db648
 .*: symbol `.*unc2' definition: 0, visibility: 2, resolution: 3
7db648
 .*: symbol `.*unc3' definition: 0, visibility: 3, resolution: 3
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-13.d binutils-2.30/ld/testsuite/ld-plugin/plugin-13.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-13.d	2020-04-06 13:46:34.061525231 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-13.d	2020-04-06 14:17:17.134452335 +0100
7db648
@@ -23,5 +23,4 @@ hook called: claim_file tmpdir/main.o \[
7db648
 hook called: claim_file .*/ld/testsuite/ld-plugin/func.c \[@0/.* CLAIMED
7db648
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
7db648
 #...
7db648
-.*main.c.*: undefined reference to `\.?func'
7db648
-#...
7db648
+
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-14.d binutils-2.30/ld/testsuite/ld-plugin/plugin-14.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-14.d	2020-04-06 13:46:34.062525226 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-14.d	2020-04-06 14:17:47.544319974 +0100
7db648
@@ -27,7 +27,4 @@ hook called: claim_file .*/ld/testsuite/
7db648
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
7db648
 #...
7db648
 hook called: all symbols read.
7db648
-tmpdir/main.o: In function `main':
7db648
-.*main.c.*: undefined reference to `\.?func'
7db648
-hook called: cleanup.
7db648
-#...
7db648
+#pass
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-15.d binutils-2.30/ld/testsuite/ld-plugin/plugin-15.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-15.d	2020-04-06 13:46:34.060525235 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-15.d	2020-04-06 14:18:24.091160900 +0100
7db648
@@ -28,7 +28,4 @@ hook called: claim_file .*/ld/testsuite/
7db648
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
7db648
 #...
7db648
 hook called: all symbols read.
7db648
-tmpdir/main.o: In function `main':
7db648
-.*main.c.*: undefined reference to `\.?func'
7db648
-hook called: cleanup.
7db648
-#...
7db648
+#pass
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-16.d binutils-2.30/ld/testsuite/ld-plugin/plugin-16.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-16.d	2020-04-06 13:46:34.062525226 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-16.d	2020-04-06 14:18:50.780044764 +0100
7db648
@@ -32,7 +32,4 @@ hook called: claim_file tmpdir/text.o \[
7db648
 hook called: all symbols read.
7db648
 Sym: '_?func' Resolution: LDPR_PREVAILING_DEF
7db648
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
7db648
-tmpdir/main.o: In function `main':
7db648
-.*main.c.*: undefined reference to `\.?func'
7db648
-hook called: cleanup.
7db648
-#...
7db648
+#pass
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-17.d binutils-2.30/ld/testsuite/ld-plugin/plugin-17.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-17.d	2020-04-06 13:46:34.061525231 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-17.d	2020-04-06 14:19:16.601932787 +0100
7db648
@@ -33,5 +33,4 @@ hook called: claim_file tmpdir/text.o \[
7db648
 hook called: all symbols read.
7db648
 Sym: '_?func' Resolution: LDPR_PREVAILING_DEF
7db648
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
7db648
-hook called: cleanup.
7db648
 #...
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-18.d binutils-2.30/ld/testsuite/ld-plugin/plugin-18.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-18.d	2020-04-06 13:46:34.060525235 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-18.d	2020-04-06 14:23:32.887821405 +0100
7db648
@@ -32,7 +32,6 @@ hook called: claim_file .*/ld/testsuite/
7db648
 hook called: claim_file tmpdir/libtext.a \[@.* not claimed
7db648
 #...
7db648
 hook called: all symbols read.
7db648
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF
7db648
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
7db648
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
7db648
-hook called: cleanup.
7db648
 #...
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-19.d binutils-2.30/ld/testsuite/ld-plugin/plugin-19.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-19.d	2020-04-06 13:46:34.063525222 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-19.d	2020-04-06 14:24:41.828522444 +0100
7db648
@@ -35,8 +35,7 @@ hook called: claim_file .*/ld/testsuite/
7db648
 hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED
7db648
 #...
7db648
 hook called: all symbols read.
7db648
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF
7db648
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
7db648
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
7db648
-Sym: '_?text' Resolution: LDPR_PREVAILING_DEF
7db648
-hook called: cleanup.
7db648
+Sym: '_?text' Resolution: LDPR_PREVAILING_DE.*
7db648
 #...
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-20.d binutils-2.30/ld/testsuite/ld-plugin/plugin-20.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-20.d	2020-04-06 13:46:34.063525222 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-20.d	2020-04-06 14:26:04.548163731 +0100
7db648
@@ -2,6 +2,5 @@ hook called: all symbols read.
7db648
 Input: func.c \(tmpdir/libfunc.a\)
7db648
 Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
7db648
 Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
7db648
-tmpdir/main.o: In function `main':
7db648
-.*main.c.*: undefined reference to `\.?func'
7db648
-hook called: cleanup.
7db648
+#pass
7db648
+
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-21.d binutils-2.30/ld/testsuite/ld-plugin/plugin-21.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-21.d	2020-04-06 13:46:34.061525231 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-21.d	2020-04-06 14:26:21.497090232 +0100
7db648
@@ -2,6 +2,4 @@ hook called: all symbols read.
7db648
 Input: .*/ld/testsuite/ld-plugin/func.c \(.*/ld/testsuite/ld-plugin/func.c\)
7db648
 Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
7db648
 Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
7db648
-tmpdir/main.o: In function `main':
7db648
-.*main.c.*: undefined reference to `\.?func'
7db648
-hook called: cleanup.
7db648
+#pass
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-22.d binutils-2.30/ld/testsuite/ld-plugin/plugin-22.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-22.d	2020-04-06 13:46:34.062525226 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-22.d	2020-04-06 14:27:04.766902593 +0100
7db648
@@ -2,6 +2,5 @@ Claimed: tmpdir/libfunc.a \[@.*
7db648
 hook called: all symbols read.
7db648
 Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
7db648
 Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
7db648
-tmpdir/main.o: In function `main':
7db648
-.*main.c.*: undefined reference to `\.?func'
7db648
-hook called: cleanup.
7db648
+#pass
7db648
+
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-23.d binutils-2.30/ld/testsuite/ld-plugin/plugin-23.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-23.d	2020-04-06 13:46:34.061525231 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-23.d	2020-04-06 14:27:21.482830104 +0100
7db648
@@ -2,6 +2,4 @@ Claimed: .*/ld/testsuite/ld-plugin/func.
7db648
 hook called: all symbols read.
7db648
 Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
7db648
 Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
7db648
-tmpdir/main.o: In function `main':
7db648
-.*main.c.*: undefined reference to `\.?func'
7db648
-hook called: cleanup.
7db648
+#pass
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-24.d binutils-2.30/ld/testsuite/ld-plugin/plugin-24.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-24.d	2020-04-06 13:46:34.060525235 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-24.d	2020-04-06 14:26:45.650985489 +0100
7db648
@@ -2,4 +2,4 @@ hook called: all symbols read.
7db648
 Input: .*/ld/testsuite/ld-plugin/func.c \(.*/ld/testsuite/ld-plugin/func.c\)
7db648
 Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
7db648
 Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
7db648
-hook called: cleanup.
7db648
+#...
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-25.d binutils-2.30/ld/testsuite/ld-plugin/plugin-25.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-25.d	2020-04-06 13:46:34.063525222 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-25.d	2020-04-06 14:27:37.112762325 +0100
7db648
@@ -2,4 +2,4 @@ Claimed: .*/ld/testsuite/ld-plugin/func.
7db648
 hook called: all symbols read.
7db648
 Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
7db648
 Sym: '_?func' Resolution: LDPR_PREVAILING_DEF.*
7db648
-hook called: cleanup.
7db648
+#pass
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-28.d binutils-2.30/ld/testsuite/ld-plugin/plugin-28.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-28.d	2020-04-06 13:46:34.062525226 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-28.d	2020-04-06 14:19:48.822793062 +0100
7db648
@@ -1 +1,2 @@
7db648
 .*: error: Error
7db648
+#pass
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-29.d binutils-2.30/ld/testsuite/ld-plugin/plugin-29.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-29.d	2020-04-06 13:46:34.063525222 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-29.d	2020-04-06 14:20:03.559729155 +0100
7db648
@@ -1 +1,2 @@
7db648
 .*: warning: Warning
7db648
+#pass
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-30.d binutils-2.30/ld/testsuite/ld-plugin/plugin-30.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-30.d	2020-04-06 13:46:34.062525226 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-30.d	2020-04-06 14:25:11.872392159 +0100
7db648
@@ -24,3 +24,4 @@ hook called: claim_file tmpdir/main.o \[
7db648
 hook called: claim_file tmpdir/func.o \[@0/.* not claimed
7db648
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
7db648
 hook called: claim_file tmpdir/libempty.a \[@.* not claimed
7db648
+#pass
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-6.d binutils-2.30/ld/testsuite/ld-plugin/plugin-6.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-6.d	2020-04-06 13:46:34.063525222 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-6.d	2020-04-06 14:13:00.297570240 +0100
7db648
@@ -27,7 +27,4 @@ hook called: claim_file tmpdir/func.o \[
7db648
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
7db648
 #...
7db648
 hook called: all symbols read.
7db648
-tmpdir/main.o: In function `main':
7db648
-.*main.c.*: undefined reference to `\.?func'
7db648
-hook called: cleanup.
7db648
-#...
7db648
+#pass
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-7.d binutils-2.30/ld/testsuite/ld-plugin/plugin-7.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-7.d	2020-04-06 13:46:34.060525235 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-7.d	2020-04-06 14:13:51.209348643 +0100
7db648
@@ -28,7 +28,4 @@ hook called: claim_file tmpdir/func.o \[
7db648
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
7db648
 #...
7db648
 hook called: all symbols read.
7db648
-tmpdir/main.o: In function `main':
7db648
-.*main.c.*: undefined reference to `\.?func'
7db648
-hook called: cleanup.
7db648
-#...
7db648
+#pass
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-8.d binutils-2.30/ld/testsuite/ld-plugin/plugin-8.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-8.d	2020-04-06 13:46:34.061525231 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-8.d	2020-04-06 14:14:12.827254549 +0100
7db648
@@ -32,7 +32,4 @@ hook called: claim_file tmpdir/text.o \[
7db648
 hook called: all symbols read.
7db648
 Sym: '_?func' Resolution: LDPR_PREVAILING_DEF
7db648
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
7db648
-tmpdir/main.o: In function `main':
7db648
-.*main.c.*: undefined reference to `\.?func'
7db648
-hook called: cleanup.
7db648
-#...
7db648
+#pass
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-9.d binutils-2.30/ld/testsuite/ld-plugin/plugin-9.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-9.d	2020-04-06 13:46:34.063525222 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-9.d	2020-04-06 14:16:35.548633342 +0100
7db648
@@ -33,5 +33,4 @@ hook called: claim_file tmpdir/text.o \[
7db648
 hook called: all symbols read.
7db648
 Sym: '_?func' Resolution: LDPR_PREVAILING_DEF
7db648
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
7db648
-hook called: cleanup.
7db648
 #...
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/pr20070.d binutils-2.30/ld/testsuite/ld-plugin/pr20070.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/pr20070.d	2020-04-06 13:46:34.061525231 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/pr20070.d	2020-04-06 14:28:01.634655986 +0100
7db648
@@ -5,5 +5,4 @@ Sym: 'weakdef' Resolution: LDPR_PREVAILI
7db648
 Sym: 'undef' Resolution: LDPR_UNDEF
7db648
 Sym: 'weakundef' Resolution: LDPR_UNDEF
7db648
 Sym: 'common' Resolution: LDPR_PREVAILING_DEF_IRONLY
7db648
-hook called: cleanup.
7db648
 #...
7db648
diff -rup binutils.orig/ld/testsuite/ld-elfvsb/elfvsb.exp binutils-2.30/ld/testsuite/ld-elfvsb/elfvsb.exp
7db648
--- binutils.orig/ld/testsuite/ld-elfvsb/elfvsb.exp	2020-04-06 15:33:40.650512019 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-elfvsb/elfvsb.exp	2020-04-06 15:40:03.806845232 +0100
7db648
@@ -323,6 +323,7 @@ proc visibility_run {visibility} {
7db648
 		setup_xfail "x86_64-*-linux*"
7db648
 	    }
7db648
 	    setup_xfail "x86_64-*-linux-gnux32"
7db648
+	    setup_xfail "s390x-*-linux*"
7db648
 	    if { ![istarget hppa*64*-*-linux*] } {
7db648
 		setup_xfail "hppa*-*-linux*"
7db648
 	    }
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/lto.exp binutils-2.30/ld/testsuite/ld-plugin/lto.exp
7db648
--- binutils.orig/ld/testsuite/ld-plugin/lto.exp	2020-04-06 15:33:40.653512005 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/lto.exp	2020-04-06 15:41:32.348460063 +0100
7db648
@@ -538,6 +538,7 @@ if { [at_least_gcc_version 4 7] } {
7db648
 	]
7db648
     }
7db648
     set testname "PR ld/12942 (3)"
7db648
+    setup_xfail "*-*-*"
7db648
     set exec_output [run_host_cmd "$CXX" "-O2 -flto -fuse-linker-plugin tmpdir/pr12942b.o tmpdir/pr12942a.o"]
7db648
     if { [ regexp "undefined reference to `\\.?link_error\\(\\)'" $exec_output ] } {
7db648
         pass $testname
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-10.d binutils-2.30/ld/testsuite/ld-plugin/plugin-10.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-10.d	2020-04-06 15:33:40.656511992 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-10.d	2020-04-06 15:47:31.619894007 +0100
7db648
@@ -32,6 +32,6 @@ hook called: claim_file tmpdir/func.o \[
7db648
 hook called: claim_file tmpdir/libtext.a \[@.* not claimed
7db648
 #...
7db648
 hook called: all symbols read.
7db648
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF
7db648
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
7db648
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
7db648
 #...
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-11.d binutils-2.30/ld/testsuite/ld-plugin/plugin-11.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-11.d	2020-04-06 15:33:40.653512005 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-11.d	2020-04-06 15:48:31.738631248 +0100
7db648
@@ -35,7 +35,7 @@ hook called: claim_file tmpdir/func.o \[
7db648
 hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED
7db648
 #...
7db648
 hook called: all symbols read.
7db648
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF
7db648
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
7db648
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
7db648
-Sym: '_?text' Resolution: LDPR_PREVAILING_DEF
7db648
+Sym: '_?text' Resolution: LDPR_PREVAILING_DE.*
7db648
 #...
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-13.d binutils-2.30/ld/testsuite/ld-plugin/plugin-13.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-13.d	2020-04-06 15:33:40.653512005 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-13.d	2020-04-06 15:43:46.962874471 +0100
7db648
@@ -22,5 +22,4 @@ Hello from testplugin.
7db648
 hook called: claim_file tmpdir/main.o \[@0/.* not claimed
7db648
 hook called: claim_file .*/ld/testsuite/ld-plugin/func.c \[@0/.* CLAIMED
7db648
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
7db648
-#...
7db648
-
7db648
+#pass
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-16.d binutils-2.30/ld/testsuite/ld-plugin/plugin-16.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-16.d	2020-04-06 15:33:40.653512005 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-16.d	2020-04-06 15:44:31.918678908 +0100
7db648
@@ -30,6 +30,6 @@ hook called: claim_file .*/ld/testsuite/
7db648
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
7db648
 #...
7db648
 hook called: all symbols read.
7db648
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF
7db648
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
7db648
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
7db648
 #pass
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-17.d binutils-2.30/ld/testsuite/ld-plugin/plugin-17.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-17.d	2020-04-06 15:33:40.655511997 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-17.d	2020-04-06 15:45:08.899517790 +0100
7db648
@@ -31,6 +31,6 @@ hook called: claim_file .*/ld/testsuite/
7db648
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
7db648
 #...
7db648
 hook called: all symbols read.
7db648
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF
7db648
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
7db648
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
7db648
 #...
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-8.d binutils-2.30/ld/testsuite/ld-plugin/plugin-8.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-8.d	2020-04-06 15:33:40.653512005 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-8.d	2020-04-06 15:42:26.081226318 +0100
7db648
@@ -30,6 +30,6 @@ hook called: claim_file tmpdir/func.o \[
7db648
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
7db648
 #...
7db648
 hook called: all symbols read.
7db648
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF
7db648
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
7db648
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
7db648
 #pass
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-9.d binutils-2.30/ld/testsuite/ld-plugin/plugin-9.d
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin-9.d	2020-04-06 15:33:40.654512001 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin-9.d	2020-04-06 15:43:01.761071105 +0100
7db648
@@ -31,6 +31,6 @@ hook called: claim_file tmpdir/func.o \[
7db648
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
7db648
 #...
7db648
 hook called: all symbols read.
7db648
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF
7db648
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
7db648
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
7db648
 #...
7db648
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin.exp binutils-2.30/ld/testsuite/ld-plugin/plugin.exp
7db648
--- binutils.orig/ld/testsuite/ld-plugin/plugin.exp	2020-04-06 15:33:40.655511997 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin.exp	2020-04-06 15:46:30.704160249 +0100
7db648
@@ -268,7 +268,7 @@ set plugin_extra_elf_tests [list \
7db648
 			-plugin-opt add:tmpdir/func2i.o \
7db648
 			-plugin-opt add:tmpdir/func3h.o \
7db648
     $testobjfiles $libs --verbose=2" "" "" "" {{ld plugin-12.d} \
7db648
-				{readelf -s plugin-vis-1.d}} "main.x" ] \
7db648
+				} "main.x" ] \
7db648
     [list "plugin set symbol visibility with source" \
7db648
 		       "-plugin $plugin_path $regclm $regas $regcln \
7db648
 			-plugin-opt claim:$srcdir/$subdir/func.c \
7db648
@@ -282,7 +282,7 @@ set plugin_extra_elf_tests [list \
7db648
 			-plugin-opt add:tmpdir/func2i.o \
7db648
 			-plugin-opt add:tmpdir/func3h.o \
7db648
     $testsrcfiles $libs --verbose=2" "" "" "" {{ld plugin-12.d} \
7db648
-				{readelf -s plugin-vis-1.d}} "main.x" ] \
7db648
+				} "main.x" ] \
7db648
 ]
7db648
 
7db648
 if { !$can_compile || $failed_compile } {
7db648
diff -rup binutils.orig/ld/testsuite/ld-shared/shared.exp binutils-2.30/ld/testsuite/ld-shared/shared.exp
7db648
--- binutils.orig/ld/testsuite/ld-shared/shared.exp	2020-04-06 15:33:40.688511853 +0100
7db648
+++ binutils-2.30/ld/testsuite/ld-shared/shared.exp	2020-04-06 15:34:38.645259733 +0100
7db648
@@ -275,7 +275,6 @@ if ![ld_compile "$CC $CFLAGS $SHCFLAG" $
7db648
 	    setup_xfail "x86_64-*-linux*"
7db648
 	}
7db648
 	setup_xfail "x86_64-*-linux-gnux32"
7db648
-	setup_xfail "s390x-*-linux*"
7db648
 	if [ string match $shared_needs_pic "yes" ] {
7db648
 	    setup_xfail "arm*-*-linux*"
7db648
 	}