Blame SOURCES/binutils-i686-ld-testsuite-fixes.patch

471a60
diff -rup binutils.orig/ld/testsuite/ld-elfvsb/elfvsb.exp binutils-2.35/ld/testsuite/ld-elfvsb/elfvsb.exp
471a60
--- binutils.orig/ld/testsuite/ld-elfvsb/elfvsb.exp	2020-07-28 13:07:26.277506755 +0100
471a60
+++ binutils-2.35/ld/testsuite/ld-elfvsb/elfvsb.exp	2020-07-28 13:29:32.252877646 +0100
471a60
@@ -264,6 +264,7 @@ proc visibility_run {visibility} {
471a60
     remote_file host delete $tmpdir/sh1p.o $tmpdir/sh2p.o $tmpdir/sh1np.o $tmpdir/sh2np.o
471a60
 
471a60
     if { [istarget powerpc*-*-linux*] \
471a60
+         || [istarget i686*-*-*] \
471a60
 	 || ( [istarget mips*-*-linux*] && [at_least_gcc_version 4 3] )} {
471a60
 	# Testing non-PIC libraries is a waste of effort on any target.
471a60
 	# If you don't pass -fpic or -fPIC to gcc, gcc will assume quite
471a60
@@ -345,6 +346,7 @@ proc visibility_run {visibility} {
471a60
 		 || [ string match $visibility "protected_undef_def" ]
471a60
 		 || [ string match $visibility "protected_weak" ]
471a60
 		 || [ string match $visibility "normal" ] } {
471a60
+		setup_xfail "i686-*-*"
471a60
 		setup_xfail "powerpc-*-linux*"
471a60
 		setup_xfail "s390x-*-linux*"
471a60
 		if { [istarget sparc*-*-linux*] && [is_elf64 $tmpdir/mainnp.o] } {
471a60
@@ -393,7 +395,8 @@ proc visibility_run {visibility} {
471a60
 	}
471a60
     }}
471a60
 
471a60
-    if { [istarget powerpc*-*-linux*] } {
471a60
+    if { [istarget powerpc*-*-linux*]
471a60
+	 || [istarget i686*-*-*] } {
471a60
 	# Don't bother.
471a60
     } else {
471a60
     # Now do the same tests again, but this time compile main.c PIC.