Blame SOURCES/binutils-fix-testsuite-failures-2.patch

066696
--- binutils.orig/ld/testsuite/ld-elf/shared.exp	2019-04-23 13:07:23.111291978 +0100
066696
+++ binutils-2.30/ld/testsuite/ld-elf/shared.exp	2019-04-23 14:51:29.083611504 +0100
066696
@@ -1143,5 +1143,5 @@ proc mix_pic_and_non_pic {xfails cflags
066696
     }
066696
 }
066696
 
066696
-mix_pic_and_non_pic [list "arm*-*-*" "aarch64*-*-*"] "" "" "pr19719"
066696
+mix_pic_and_non_pic [list "arm*-*-*" "aarch64*-*-*" "s390x-*-*"] "" "" "pr19719"
066696
 mix_pic_and_non_pic [] "-fPIE" "-pie" "pr19719pie"
066696
--- binutils.orig/ld/testsuite/ld-plugin/plugin.exp	2019-04-23 13:07:23.039292481 +0100
066696
+++ binutils-2.30/ld/testsuite/ld-plugin/plugin.exp	2019-04-23 16:21:20.757147989 +0100
066696
@@ -283,17 +283,21 @@ if { !$can_compile || $failed_compile }
066696
     foreach testitem $plugin_tests {
066696
 	$failure_kind [lindex $testitem 0]
066696
     }
066696
-    if { [is_elf_format] } {
066696
-	foreach testitem $plugin_extra_elf_tests {
066696
-	    $failure_kind [lindex $testitem 0]
066696
+
066696
+    if { ![istarget "ppc64*-*-*"] && ![istarget "powerpc*-*-*"] } {
066696
+	if { [is_elf_format] } {
066696
+	    foreach testitem $plugin_extra_elf_tests {
066696
+		$failure_kind [lindex $testitem 0]
066696
+	    }
066696
 	}
066696
     }
066696
+
066696
     return
066696
 }
066696
 
066696
 run_ld_link_tests $plugin_tests
066696
 
066696
-if { ! [istarget "ppc*-*-*"] } {
066696
+if { ! [istarget "ppc*-*-*"] && ![istarget "powerpc*-*-*"] } {
066696
 if { [is_elf_format] \
066696
      && [ld_compile "$CC $CFLAGS" $srcdir/$subdir/func1p.c tmpdir/func1p.o] \
066696
      && [ld_compile "$CC $CFLAGS" $srcdir/$subdir/func2i.c tmpdir/func2i.o] \
066696
--- binutils.orig/ld/testsuite/ld-elfvers/vers.exp	2019-04-23 13:07:23.032292531 +0100
066696
+++ binutils-2.30/ld/testsuite/ld-elfvers/vers.exp	2019-04-23 16:21:36.469038125 +0100
066696
@@ -938,7 +938,7 @@ if [string match "yes" $pic] then {
066696
     build_exec "vers23" vers23.c vers23 "-Wl,--no-as-needed tmpdir/vers23a.so tmpdir/vers23b.o tmpdir/vers23b.so" "" vers23.ver vers23.dsym ""
066696
 }
066696
 
066696
-if {! [istarget ppc64*-*-*] } {
066696
+if {! [istarget ppc64*-*-*] && ![istarget "powerpc*-*-*"] } {
066696
 # Test .symver x,x@VERS.0
066696
 set as_pic_flags ""
066696
 if [istarget sparc*-*-*] {
066696
--- binutils.orig/ld/testsuite/ld-ifunc/ifunc.exp	2019-04-23 13:07:23.032292531 +0100
066696
+++ binutils-2.30/ld/testsuite/ld-ifunc/ifunc.exp	2019-04-23 16:44:54.811226619 +0100
066696
@@ -284,14 +284,12 @@ if {! [check_osabi tmpdir/static_nonifun
066696
 # The linked ifunc using executables and the shared library containing
066696
 # ifunc should contain an IFUNC symbol.  The non-ifunc using executable
066696
 # should not.
066696
-if { ![istarget "ppc*-*-*"] } {
066696
+if { ![istarget "ppc*-*-*"] && ![istarget "powerpc*-*-*"] } {
066696
 if {[contains_ifunc_symbol tmpdir/libshared_ifunc.so] != 1} {
066696
     fail "Shared libraries containing ifunc does not contain an IFUNC symbol"
066696
     set fails [expr $fails + 1]
066696
 }
066696
-}
066696
 
066696
-if { ![istarget "ppc*-*-*"] } {
066696
 if {[contains_ifunc_symbol tmpdir/local_prog] != 1} {
066696
     fail "Local ifunc-using executable does not contain an IFUNC symbol"
066696
     set fails [expr $fails + 1]
066696
@@ -301,6 +299,7 @@ if {[contains_ifunc_symbol tmpdir/static
066696
     set fails [expr $fails + 1]
066696
 }
066696
 }
066696
+
066696
 if {[contains_ifunc_symbol tmpdir/dynamic_prog] != 0} {
066696
     fail "Dynamic ifunc-using executable contains an IFUNC symbol"
066696
     set fails [expr $fails + 1]
066696
@@ -467,6 +466,9 @@ run_ld_link_exec_tests [list \
066696
 	"pr16467.out" \
066696
 	"" \
066696
     ] \
066696
+]
066696
+
066696
+run_ld_link_exec_tests [list \
066696
     [list \
066696
 	"Run pr16467 (-z now)" \
066696
 	"-Wl,-z,now -Wl,--no-as-needed tmpdir/pr16467c.o tmpdir/libpr16467bn.so tmpdir/libpr16467an.so" \
066696
@@ -476,6 +478,9 @@ run_ld_link_exec_tests [list \
066696
 	"pr16467.out" \
066696
 	"" \
066696
     ] \
066696
+] aarch64-*-*
066696
+
066696
+run_ld_link_exec_tests [list \
066696
     [list \
066696
 	"Run ifunc-main" \
066696
 	"-Wl,--no-as-needed tmpdir/libifunc-lib.so" \
066696
@@ -492,7 +497,10 @@ run_ld_link_exec_tests [list \
066696
 	"ifunc-main" \
066696
 	"ifunc-main.out" \
066696
 	"-fpic" \
066696
-    ] \
066696
+	] \
066696
+]
066696
+
066696
+run_ld_link_exec_tests [list \
066696
     [list \
066696
 	"Run ifunc-main (-z now)" \
066696
 	"-Wl,-z,now -Wl,--no-as-needed tmpdir/libifunc-libn.so" \
066696
@@ -500,7 +508,7 @@ run_ld_link_exec_tests [list \
066696
 	{ ifunc-main.c } \
066696
 	"ifunc-mainn" \
066696
 	"ifunc-main.out" \
066696
-    ] \
066696
+	] \
066696
     [list \
066696
 	"Run ifunc-main with PIE (-z now)" \
066696
 	"-pie -Wl,-z,now -Wl,--no-as-needed tmpdir/libifunc-libn.so" \
066696
@@ -510,7 +518,7 @@ run_ld_link_exec_tests [list \
066696
 	"ifunc-main.out" \
066696
 	"-fpie" \
066696
     ] \
066696
-]
066696
+] aarch64-*-*
066696
 
066696
 # Run-time tests which require working ifunc attribute support.
066696
 if { ![check_ifunc_attribute_available] } {
066696
@@ -593,6 +601,9 @@ run_ld_link_exec_tests [list \
066696
 	"pr18808" \
066696
 	"pr18808.out" \
066696
     ] \
066696
+]
066696
+
066696
+run_ld_link_exec_tests [list \
066696
     [list \
066696
 	"Run pr18808 (-z now)" \
066696
 	"-Wl,-z,now -Wl,--no-as-needed tmpdir/pr18808a.o tmpdir/libpr18808n.so" \
066696
@@ -609,6 +620,9 @@ run_ld_link_exec_tests [list \
066696
 	"pr18841b" \
066696
 	"pr18841.out" \
066696
     ] \
066696
+] aarch64-*-*
066696
+
066696
+run_ld_link_exec_tests [list \
066696
     [list \
066696
 	"Run pr18841 with libpr18841c.so" \
066696
 	"-Wl,--as-needed tmpdir/pr18841a.o tmpdir/libpr18841c.so" \
066696
@@ -617,6 +631,9 @@ run_ld_link_exec_tests [list \
066696
 	"pr18841c" \
066696
 	"pr18841.out" \
066696
     ] \
066696
+]
066696
+
066696
+run_ld_link_exec_tests [list \
066696
     [list \
066696
 	"Run pr18841 with libpr18841bn.so (-z now)" \
066696
 	"-Wl,-z,now -Wl,--no-as-needed tmpdir/pr18841a.o tmpdir/libpr18841bn.so" \
066696
@@ -625,6 +642,9 @@ run_ld_link_exec_tests [list \
066696
 	"pr18841bn" \
066696
 	"pr18841.out" \
066696
     ] \
066696
+] aarch64-*-*
066696
+
066696
+run_ld_link_exec_tests [list \
066696
     [list \
066696
 	"Run pr18841 with libpr18841cn.so (-z now)" \
066696
 	"-Wl,-z,now -Wl,--as-needed tmpdir/pr18841a.o tmpdir/libpr18841cn.so" \
066696
--- binutils.orig/ld/testsuite/ld-i386/i386.exp	2019-04-23 13:07:23.026292573 +0100
066696
+++ binutils-2.30/ld/testsuite/ld-i386/i386.exp	2019-04-23 17:15:41.694274606 +0100
066696
@@ -579,24 +579,6 @@ if { [isnative]
066696
 	    "libplt-main4.a" \
066696
 	] \
066696
 	[list \
066696
-	    "Build plt-main" \
066696
-	    "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
066696
-	     tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
066696
-	    "" \
066696
-	    { plt-main5.c } \
066696
-	    {{readelf {-Wr} plt-main.rd}} \
066696
-	    "plt-main" \
066696
-	] \
066696
-	[list \
066696
-	    "Build plt-main with PIE" \
066696
-	    "tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
066696
-	     tmpdir/plt-main4.o tmpdir/libplt-lib.so -pie" \
066696
-	    "-fPIC" \
066696
-	    { plt-main5.c } \
066696
-	    {{readelf {-Wr} plt-main.rd}} \
066696
-	    "plt-main" \
066696
-	] \
066696
-	[list \
066696
 	    "Build copyreloc-lib.so" \
066696
 	    "-shared" \
066696
 	    "-fPIC" \
066696
@@ -1202,24 +1184,6 @@ if { [isnative]
066696
 		"" \
066696
 		"pr21168-ibt.so" \
066696
 	    ] \
066696
-	    [list \
066696
-		"Build ifunc-1a with -z ibtplt" \
066696
-		"-Wl,-z,ibtplt $NOPIE_LDFLAGS tmpdir/ifunc-1a.o \
066696
-		 tmpdir/ifunc-1b.o tmpdir/ifunc-1c.o tmpdir/ifunc-1d.o" \
066696
-		"" \
066696
-		{ dummy.c } \
066696
-		{{objdump {-dw} plt-main-ibt.dd}} \
066696
-		"ifunc-1a-ibt" \
066696
-	    ] \
066696
-	    [list \
066696
-		"Build ifunc-1a with PIE -z ibtplt" \
066696
-		"-Wl,-z,ibtplt -pie tmpdir/ifunc-1a.o \
066696
-		 tmpdir/ifunc-1b.o tmpdir/ifunc-1c.o tmpdir/ifunc-1d.o" \
066696
-		"" \
066696
-		{ dummy.c } \
066696
-		{{objdump {-dw} plt-pie-ibt.dd}} \
066696
-		"ifunc-1a-pie-ibt" \
066696
-	    ] \
066696
 	]
066696
 
066696
 	run_ld_link_exec_tests [list \