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

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