Blame SOURCES/binutils-testsuite-fixes.patch

01a2c8
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-10.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-10.d
01a2c8
--- binutils.orig/ld/testsuite/ld-plugin/plugin-10.d	2021-02-12 10:13:11.116049499 +0000
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-10.d	2021-02-12 10:23:44.298370984 +0000
01a2c8
@@ -32,7 +32,7 @@ hook called: claim_file tmpdir/func.o \[
01a2c8
 hook called: claim_file tmpdir/libtext.a \[@.* not claimed
01a2c8
 #...
01a2c8
 hook called: all symbols read.
01a2c8
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
01a2c8
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
01a2c8
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
01a2c8
 #...
01a2c8
 hook called: cleanup.
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-11.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-11.d
01a2c8
--- binutils.orig/ld/testsuite/ld-plugin/plugin-11.d	2021-02-12 10:13:11.119049477 +0000
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-11.d	2021-02-12 10:50:40.973828943 +0000
01a2c8
@@ -35,9 +35,9 @@ hook called: claim_file tmpdir/func.o \[
01a2c8
 hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED
01a2c8
 #...
01a2c8
 hook called: all symbols read.
01a2c8
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
01a2c8
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
01a2c8
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
01a2c8
-Sym: '_?text' Resolution: LDPR_PREVAILING_DEF_IRONLY
01a2c8
+Sym: '_?text' Resolution: LDPR_PREVAILING_DE.*
01a2c8
 #...
01a2c8
 hook called: cleanup.
01a2c8
 #...
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-16.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-16.d
01a2c8
--- binutils.orig/ld/testsuite/ld-plugin/plugin-16.d	2021-02-12 10:13:11.119049477 +0000
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-16.d	2021-02-12 10:29:31.510843797 +0000
01a2c8
@@ -30,7 +30,7 @@ hook called: claim_file .*/ld/testsuite/
01a2c8
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
01a2c8
 #...
01a2c8
 hook called: all symbols read.
01a2c8
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
01a2c8
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
01a2c8
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
01a2c8
 #...
01a2c8
 hook called: cleanup.
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-17.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-17.d
01a2c8
--- binutils.orig/ld/testsuite/ld-plugin/plugin-17.d	2021-02-12 10:13:11.116049499 +0000
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-17.d	2021-02-12 10:35:13.348404638 +0000
01a2c8
@@ -31,7 +31,7 @@ hook called: claim_file .*/ld/testsuite/
01a2c8
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
01a2c8
 #...
01a2c8
 hook called: all symbols read.
01a2c8
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
01a2c8
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
01a2c8
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
01a2c8
 #...
01a2c8
 hook called: cleanup.
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-18.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-18.d
01a2c8
--- binutils.orig/ld/testsuite/ld-plugin/plugin-18.d	2021-02-12 10:13:11.118049484 +0000
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-18.d	2021-02-12 10:29:47.974726314 +0000
01a2c8
@@ -32,7 +32,7 @@ hook called: claim_file .*/ld/testsuite/
01a2c8
 hook called: claim_file tmpdir/libtext.a \[@.* not claimed
01a2c8
 #...
01a2c8
 hook called: all symbols read.
01a2c8
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
01a2c8
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
01a2c8
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
01a2c8
 #...
01a2c8
 hook called: cleanup.
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-19.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-19.d
01a2c8
--- binutils.orig/ld/testsuite/ld-plugin/plugin-19.d	2021-02-12 10:13:11.116049499 +0000
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-19.d	2021-02-12 10:30:31.990412245 +0000
01a2c8
@@ -35,9 +35,9 @@ hook called: claim_file .*/ld/testsuite/
01a2c8
 hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED
01a2c8
 #...
01a2c8
 hook called: all symbols read.
01a2c8
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
01a2c8
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
01a2c8
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
01a2c8
-Sym: '_?text' Resolution: LDPR_PREVAILING_DEF_IRONLY
01a2c8
+Sym: '_?text' Resolution: LDPR_PREVAILING_DE.*
01a2c8
 #...
01a2c8
 hook called: cleanup.
01a2c8
 #...
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-8.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-8.d
01a2c8
--- binutils.orig/ld/testsuite/ld-plugin/plugin-8.d	2021-02-12 10:13:11.118049484 +0000
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-8.d	2021-02-12 10:23:18.489561148 +0000
01a2c8
@@ -30,7 +30,7 @@ hook called: claim_file tmpdir/func.o \[
01a2c8
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
01a2c8
 #...
01a2c8
 hook called: all symbols read.
01a2c8
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
01a2c8
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
01a2c8
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
01a2c8
 #...
01a2c8
 hook called: cleanup.
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-9.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-9.d
01a2c8
--- binutils.orig/ld/testsuite/ld-plugin/plugin-9.d	2021-02-12 10:13:11.119049477 +0000
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-9.d	2021-02-12 10:23:34.417443785 +0000
01a2c8
@@ -31,7 +31,7 @@ hook called: claim_file tmpdir/func.o \[
01a2c8
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
01a2c8
 #...
01a2c8
 hook called: all symbols read.
01a2c8
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
01a2c8
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
01a2c8
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
01a2c8
 #...
01a2c8
 hook called: cleanup.
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp
01a2c8
--- binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp	2021-02-12 10:13:11.177049047 +0000
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp	2021-02-12 10:57:23.339975059 +0000
01a2c8
@@ -1437,22 +1437,6 @@ if { [isnative] && [check_compiler_avail
01a2c8
     } else {
01a2c8
 	run_cc_link_tests [list \
01a2c8
 	    [list \
01a2c8
-		"Build pr22001-1b" \
01a2c8
-		"$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed,-z,notext tmpdir/pr22001-1.so" \
01a2c8
-		"$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
01a2c8
-		{ pr22001-1c.c } \
01a2c8
-		{{error_output "pr22001-1b.err"}} \
01a2c8
-		"pr22001-1b" \
01a2c8
-	    ] \
01a2c8
-	    [list \
01a2c8
-		"Build pr21997-1b" \
01a2c8
-		"$NOPIE_LDFLAGS -Wl,--no-as-needed,-z,notext tmpdir/pr21997-1.so" \
01a2c8
-		"$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
01a2c8
-		{ pr21997-1c.c } \
01a2c8
-		{{error_output "pr21997-1b.err"}} \
01a2c8
-		"pr21997-1b" \
01a2c8
-	    ] \
01a2c8
-	    [list \
01a2c8
 		"Build lam-u48.so" \
01a2c8
 		"-shared -Wl,-z,lam-u48" \
01a2c8
 		"" \
01a2c8
@@ -1766,49 +1750,6 @@ if { [isnative] && [check_compiler_avail
01a2c8
     if { [istarget "x86_64-*-linux*"] \
01a2c8
 	 && ![istarget "x86_64-*-linux*-gnux32"]} {
01a2c8
 
01a2c8
-	run_cc_link_tests [list \
01a2c8
-	    [list \
01a2c8
-		"Build plt-main with -z bndplt" \
01a2c8
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
01a2c8
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z bndplt \
01a2c8
-		 -z noseparate-code -z max-page-size=0x200000" \
01a2c8
-		"-Wa,-mx86-used-note=yes $NOCF_PROTECTION_CFLAGS" \
01a2c8
-		{ plt-main5.c } \
01a2c8
-		{{objdump {-drw} plt-main-bnd.dd}} \
01a2c8
-		"plt-main-bnd" \
01a2c8
-	    ] \
01a2c8
-	    [list \
01a2c8
-		"Build plt-main with PIE and -z bndplt" \
01a2c8
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
01a2c8
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z bndplt -pie \
01a2c8
-		 -z noseparate-code -z max-page-size=0x200000" \
01a2c8
-		"-fPIC -Wa,-mx86-used-note=yes $NOCF_PROTECTION_CFLAGS" \
01a2c8
-		{ plt-main5.c } \
01a2c8
-		{{objdump {-drw} plt-main-bnd.dd}} \
01a2c8
-		"plt-main-pie-bnd" \
01a2c8
-	    ] \
01a2c8
-	    [list \
01a2c8
-		"Build plt-main with -z bndplt -z now" \
01a2c8
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
01a2c8
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z bndplt -z now \
01a2c8
-		 -z noseparate-code -z max-page-size=0x200000" \
01a2c8
-		"-Wa,-mx86-used-note=yes $NOCF_PROTECTION_CFLAGS" \
01a2c8
-		{ plt-main5.c } \
01a2c8
-		{{readelf {-SW} plt-main-bnd-now.rd} {objdump {-drw} plt-main-bnd.dd}} \
01a2c8
-		"plt-main-bnd-now" \
01a2c8
-	    ] \
01a2c8
-	    [list \
01a2c8
-		"Build plt-main with PIE and -z bndplt -z now" \
01a2c8
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
01a2c8
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z bndplt -z now -pie \
01a2c8
-		 -z noseparate-code -z max-page-size=0x200000" \
01a2c8
-		"-fPIC -Wa,-mx86-used-note=yes $NOCF_PROTECTION_CFLAGS" \
01a2c8
-		{ plt-main5.c } \
01a2c8
-		{{readelf {-SW} plt-main-bnd-now.rd} {objdump {-drw} plt-main-bnd.dd}} \
01a2c8
-		"plt-main-pie-bnd-now" \
01a2c8
-	    ] \
01a2c8
-	]
01a2c8
-
01a2c8
 	run_ld_link_exec_tests [list \
01a2c8
 	    [list \
01a2c8
 		"Run plt-main with -z bndplt" \
01a2c8
@@ -1893,66 +1834,6 @@ if { [isnative] && [check_compiler_avail
01a2c8
 	    set pltdump {{objdump {-drw} plt-main-ibt.dd}}
01a2c8
 	    set pltsecdump {{readelf {-SW} plt-main-ibt-now.rd} {objdump {-drw} plt-main-ibt.dd}}
01a2c8
 	}
01a2c8
-	run_cc_link_tests [list \
01a2c8
-	    [list \
01a2c8
-		"Build plt-main with -z ibtplt" \
01a2c8
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
01a2c8
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z ibtplt \
01a2c8
-		 -z noseparate-code -z max-page-size=0x200000" \
01a2c8
-		"-Wa,-mx86-used-note=yes" \
01a2c8
-		{ plt-main5.c } \
01a2c8
-		$pltdump \
01a2c8
-		"plt-main-ibt" \
01a2c8
-	    ] \
01a2c8
-	    [list \
01a2c8
-		"Build plt-main with PIE and -z ibtplt" \
01a2c8
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
01a2c8
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z ibtplt -pie \
01a2c8
-		 -z noseparate-code -z max-page-size=0x200000" \
01a2c8
-		"-fPIC -Wa,-mx86-used-note=yes" \
01a2c8
-		{ plt-main5.c } \
01a2c8
-		$pltdump \
01a2c8
-		"plt-main-pie-ibt" \
01a2c8
-	    ] \
01a2c8
-	    [list \
01a2c8
-		"Build plt-main with -z ibtplt -z now" \
01a2c8
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
01a2c8
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z ibtplt -z now \
01a2c8
-		 -z noseparate-code -z max-page-size=0x200000" \
01a2c8
-		"-Wa,-mx86-used-note=yes" \
01a2c8
-		{ plt-main5.c } \
01a2c8
-		$pltsecdump \
01a2c8
-		"plt-main-ibt-now" \
01a2c8
-	    ] \
01a2c8
-	    [list \
01a2c8
-		"Build plt-main with PIE and -z ibtplt -z now" \
01a2c8
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
01a2c8
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z ibtplt -z now -pie \
01a2c8
-		 -z noseparate-code -z max-page-size=0x200000" \
01a2c8
-		"-fPIC -Wa,-mx86-used-note=yes" \
01a2c8
-		{ plt-main5.c } \
01a2c8
-		$pltsecdump \
01a2c8
-		"plt-main-pie-ibt-now" \
01a2c8
-	    ] \
01a2c8
-	    [list \
01a2c8
-		"Build libibtplt-lib.so with -z ibtplt" \
01a2c8
-		"-shared -z ibtplt \
01a2c8
-		 -z noseparate-code -z max-page-size=0x200000" \
01a2c8
-		"-fPIC -Wa,-mx86-used-note=yes" \
01a2c8
-		{ plt-main1.c plt-main2.c plt-main3.c plt-main4.c} \
01a2c8
-		$pltdump \
01a2c8
-		"libibtplt-lib.so" \
01a2c8
-	    ] \
01a2c8
-	    [list \
01a2c8
-		"Build libibtplt--now-lib.so with -z ibtplt -z now" \
01a2c8
-		"-shared -z ibtplt -z now \
01a2c8
-		 -z noseparate-code -z max-page-size=0x200000" \
01a2c8
-		"-fPIC -Wa,-mx86-used-note=yes" \
01a2c8
-		{ plt-main1.c plt-main2.c plt-main3.c plt-main4.c} \
01a2c8
-		$pltdump \
01a2c8
-		"libibtplt-now-lib.so" \
01a2c8
-	    ] \
01a2c8
-	]
01a2c8
 
01a2c8
 	run_ld_link_exec_tests [list \
01a2c8
 	    [list \
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp
01a2c8
--- binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp	2021-02-12 11:44:39.121364751 +0000
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp	2021-02-12 11:46:27.505597689 +0000
01a2c8
@@ -1878,24 +1878,6 @@ if { [isnative] && [check_compiler_avail
01a2c8
 		"plt-main.out" \
01a2c8
 		"-fPIC" \
01a2c8
 	    ] \
01a2c8
-	    [list \
01a2c8
-		"Run plt-main with libibtplt-lib.so -z ibtplt" \
01a2c8
-		"-Wl,--no-as-needed,-z,ibtplt tmpdir/libibtplt-lib.so \
01a2c8
-		 tmpdir/libplt-lib.so" \
01a2c8
-		"-Wa,-mx86-used-note=yes" \
01a2c8
-		{ plt-main5.c } \
01a2c8
-		"plt-main-ibt-lib" \
01a2c8
-		"plt-main.out" \
01a2c8
-	    ] \
01a2c8
-	    [list \
01a2c8
-		"Run plt-main with libibtplt-lib.so -z ibtplt -z now" \
01a2c8
-		"-Wl,--no-as-needed,-z,ibtplt,-z,now \
01a2c8
-		 tmpdir/libibtplt-now-lib.so tmpdir/libplt-lib.so" \
01a2c8
-		"-Wa,-mx86-used-note=yes" \
01a2c8
-		{ plt-main5.c } \
01a2c8
-		"plt-main-ibt-now-lib" \
01a2c8
-		"plt-main.out" \
01a2c8
-	    ] \
01a2c8
 	]
01a2c8
 
01a2c8
 	if { [check_ifunc_attribute_available] } {
01a2c8
@@ -1922,7 +1904,6 @@ if { [isnative] && [check_compiler_avail
01a2c8
 	}
01a2c8
     }
01a2c8
 
01a2c8
-    undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS"
01a2c8
     undefined_weak "-fPIE" ""
01a2c8
     undefined_weak "-fPIE" "-pie"
01a2c8
     undefined_weak "-fPIE" "-Wl,-z,nodynamic-undefined-weak"
01a2c8
--- binutils.orig/binutils/dwarf.c	2021-02-12 11:44:39.012365518 +0000
01a2c8
+++ binutils-2.36.1/binutils/dwarf.c	2021-02-12 11:49:35.408266181 +0000
01a2c8
@@ -2117,6 +2117,7 @@ get_type_abbrev_from_form (unsigned long
01a2c8
   switch (form)
01a2c8
     {
01a2c8
     case DW_FORM_GNU_ref_alt:
01a2c8
+    case DW_FORM_ref_sig8:
01a2c8
       /* FIXME: We are unable to handle this form at the moment.  */
01a2c8
       return NULL;
01a2c8
 
01a2c8
@@ -2146,7 +2147,7 @@ get_type_abbrev_from_form (unsigned long
01a2c8
       /* FIXME: Are there other DW_FORMs that can be used by types ?  */
01a2c8
 
01a2c8
     default:
01a2c8
-      warn (_("Unexpected form %lx encountered whilst finding abbreviation for type\n"), form);
01a2c8
+      warn (_("Unexpected form %#lx encountered whilst finding abbreviation for type\n"), form);
01a2c8
       return NULL;
01a2c8
     }
01a2c8
 
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-now.d binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-now.d
01a2c8
--- binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-now.d	2021-02-12 11:44:39.034365363 +0000
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-now.d	2021-02-12 11:57:49.372692119 +0000
01a2c8
@@ -41,28 +41,28 @@ Symbol table '\.symtab' contains 35 entr
01a2c8
      7: 00000000000111c8     0 SECTION LOCAL  DEFAULT    7 
01a2c8
      8: 0000000000011270     0 SECTION LOCAL  DEFAULT    8 
01a2c8
      9: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS .*variant_pcs-1\.o
01a2c8
-    10: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local
01a2c8
-    11: 0000000000008000     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local_ifunc
01a2c8
+    10: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT[ 	]+1 f_spec_local[ 	]+\[VARIANT_PCS\]
01a2c8
+    11: 0000000000008000     0 IFUNC   LOCAL  DEFAULT[ 	]+1 f_spec_local_ifunc[ 	]+\[VARIANT_PCS\]
01a2c8
     12: 0000000000008000     0 IFUNC   LOCAL  DEFAULT    1 f_base_local_ifunc
01a2c8
     13: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT    1 f_base_local
01a2c8
     14: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT    1 \$x
01a2c8
     15: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS .*variant_pcs-2\.o
01a2c8
-    16: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local2
01a2c8
-    17: 0000000000008038     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local2_ifunc
01a2c8
+    16: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT[ 	]+1 f_spec_local2[ 	]+\[VARIANT_PCS\]
01a2c8
+    17: 0000000000008038     0 IFUNC   LOCAL  DEFAULT[ 	]+1 f_spec_local2_ifunc[ 	]+\[VARIANT_PCS\]
01a2c8
     18: 0000000000008038     0 IFUNC   LOCAL  DEFAULT    1 f_base_local2_ifunc
01a2c8
     19: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT    1 f_base_local2
01a2c8
     20: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT    1 \$x
01a2c8
     21: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS 
01a2c8
     22: 0000000000009080     0 OBJECT  LOCAL  DEFAULT  ABS _DYNAMIC
01a2c8
-    23: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_global_hidden_def
01a2c8
+    23: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT[ 	]+1 f_spec_global_hidden_def[ 	]+\[VARIANT_PCS\]
01a2c8
     24: 0000000000008000     0 IFUNC   LOCAL  DEFAULT    1 f_base_global_hidden_ifunc
01a2c8
     25: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT    1 f_base_global_hidden_def
01a2c8
     26: 0000000000009000     0 OBJECT  LOCAL  DEFAULT  ABS _GLOBAL_OFFSET_TABLE_
01a2c8
-    27: 0000000000008000     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_global_hidden_ifunc
01a2c8
+    27: 0000000000008000     0 IFUNC   LOCAL  DEFAULT[ 	]+1 f_spec_global_hidden_ifunc[ 	]+\[VARIANT_PCS\]
01a2c8
     28: 0000000000008070     0 NOTYPE  LOCAL  DEFAULT    2 \$x
01a2c8
     29: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND f_base_global_default_undef
01a2c8
-    30: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]   UND f_spec_global_default_undef
01a2c8
-    31: 0000000000008000     0 IFUNC   GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_ifunc
01a2c8
+    30: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT[ 	]+UND f_spec_global_default_undef[ 	]+\[VARIANT_PCS\]
01a2c8
+    31: 0000000000008000     0 IFUNC   GLOBAL DEFAULT[ 	]+1 f_spec_global_default_ifunc[ 	]+\[VARIANT_PCS\]
01a2c8
     32: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT    1 f_base_global_default_def
01a2c8
-    33: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_def
01a2c8
+    33: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT[ 	]+1 f_spec_global_default_def[ 	]+\[VARIANT_PCS\]
01a2c8
     34: 0000000000008000     0 IFUNC   GLOBAL DEFAULT    1 f_base_global_default_ifunc
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-r.d binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-r.d
01a2c8
--- binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-r.d	2021-02-12 11:44:39.028365406 +0000
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-r.d	2021-02-12 11:54:36.878111688 +0000
01a2c8
@@ -37,24 +37,24 @@ Symbol table '\.symtab' contains 26 entr
01a2c8
      2: 0000000000000000     0 SECTION LOCAL  DEFAULT    3 
01a2c8
      3: 0000000000000000     0 SECTION LOCAL  DEFAULT    4 
01a2c8
      4: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS .*variant_pcs-1\.o
01a2c8
-     5: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local
01a2c8
-     6: 0000000000000000     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local_ifunc
01a2c8
+     5: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT[ 	]+1 f_spec_local[ 	]+\[VARIANT_PCS\]
01a2c8
+     6: 0000000000000000     0 IFUNC   LOCAL  DEFAULT[ 	]+1 f_spec_local_ifunc[ 	]+\[VARIANT_PCS\]
01a2c8
      7: 0000000000000000     0 IFUNC   LOCAL  DEFAULT    1 f_base_local_ifunc
01a2c8
      8: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT    1 f_base_local
01a2c8
      9: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT    1 \$x
01a2c8
     10: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS .*variant_pcs-2\.o
01a2c8
-    11: 0000000000000038     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local2
01a2c8
-    12: 0000000000000038     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local2_ifunc
01a2c8
+    11: 0000000000000038     0 NOTYPE  LOCAL  DEFAULT[ 	]+1 f_spec_local2[ 	]+\[VARIANT_PCS\]
01a2c8
+    12: 0000000000000038     0 IFUNC   LOCAL  DEFAULT[ 	]+1 f_spec_local2_ifunc[ 	]+\[VARIANT_PCS\]
01a2c8
     13: 0000000000000038     0 IFUNC   LOCAL  DEFAULT    1 f_base_local2_ifunc
01a2c8
     14: 0000000000000038     0 NOTYPE  LOCAL  DEFAULT    1 f_base_local2
01a2c8
     15: 0000000000000038     0 NOTYPE  LOCAL  DEFAULT    1 \$x
01a2c8
     16: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND f_base_global_default_undef
01a2c8
-    17: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]   UND f_spec_global_default_undef
01a2c8
-    18: 0000000000000000     0 NOTYPE  GLOBAL HIDDEN  \[VARIANT_PCS\]     1 f_spec_global_hidden_def
01a2c8
+    17: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT[ 	]+UND f_spec_global_default_undef[ 	]+\[VARIANT_PCS\]
01a2c8
+    18: 0000000000000000     0 NOTYPE  GLOBAL HIDDEN[ 	]+1 f_spec_global_hidden_def[ 	]+\[VARIANT_PCS\]
01a2c8
     19: 0000000000000000     0 IFUNC   GLOBAL HIDDEN     1 f_base_global_hidden_ifunc
01a2c8
-    20: 0000000000000000     0 IFUNC   GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_ifunc
01a2c8
+    20: 0000000000000000     0 IFUNC   GLOBAL DEFAULT[ 	]+1 f_spec_global_default_ifunc[ 	]+\[VARIANT_PCS\]
01a2c8
     21: 0000000000000000     0 NOTYPE  GLOBAL HIDDEN     1 f_base_global_hidden_def
01a2c8
-    22: 0000000000000000     0 IFUNC   GLOBAL HIDDEN  \[VARIANT_PCS\]     1 f_spec_global_hidden_ifunc
01a2c8
+    22: 0000000000000000     0 IFUNC   GLOBAL HIDDEN[ 	]+1 f_spec_global_hidden_ifunc[ 	]+\[VARIANT_PCS\]
01a2c8
     23: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT    1 f_base_global_default_def
01a2c8
-    24: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_def
01a2c8
+    24: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT[ 	]+1 f_spec_global_default_def[ 	]+\[VARIANT_PCS\]
01a2c8
     25: 0000000000000000     0 IFUNC   GLOBAL DEFAULT    1 f_base_global_default_ifunc
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-shared.d binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-shared.d
01a2c8
--- binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-shared.d	2021-02-12 11:44:39.027365412 +0000
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-shared.d	2021-02-12 11:56:14.669390518 +0000
01a2c8
@@ -41,28 +41,28 @@ Symbol table '\.symtab' contains 35 entr
01a2c8
      7: 00000000000111c8     0 SECTION LOCAL  DEFAULT    7 
01a2c8
      8: 0000000000011270     0 SECTION LOCAL  DEFAULT    8 
01a2c8
      9: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS .*variant_pcs-1\.o
01a2c8
-    10: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local
01a2c8
-    11: 0000000000008000     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local_ifunc
01a2c8
+    10: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT[ 	]+1 f_spec_local[ 	]+\[VARIANT_PCS\]
01a2c8
+    11: 0000000000008000     0 IFUNC   LOCAL  DEFAULT[ 	]+1 f_spec_local_ifunc[ 	]+\[VARIANT_PCS\]
01a2c8
     12: 0000000000008000     0 IFUNC   LOCAL  DEFAULT    1 f_base_local_ifunc
01a2c8
     13: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT    1 f_base_local
01a2c8
     14: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT    1 \$x
01a2c8
     15: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS .*variant_pcs-2\.o
01a2c8
-    16: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local2
01a2c8
-    17: 0000000000008038     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local2_ifunc
01a2c8
+    16: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT[ 	]+1 f_spec_local2[ 	]+\[VARIANT_PCS\]
01a2c8
+    17: 0000000000008038     0 IFUNC   LOCAL  DEFAULT[ 	]+1 f_spec_local2_ifunc[ 	]+\[VARIANT_PCS\]
01a2c8
     18: 0000000000008038     0 IFUNC   LOCAL  DEFAULT    1 f_base_local2_ifunc
01a2c8
     19: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT    1 f_base_local2
01a2c8
     20: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT    1 \$x
01a2c8
     21: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS 
01a2c8
     22: 0000000000009080     0 OBJECT  LOCAL  DEFAULT  ABS _DYNAMIC
01a2c8
-    23: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_global_hidden_def
01a2c8
+    23: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT[ 	]+1 f_spec_global_hidden_def[ 	]+\[VARIANT_PCS\]
01a2c8
     24: 0000000000008000     0 IFUNC   LOCAL  DEFAULT    1 f_base_global_hidden_ifunc
01a2c8
     25: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT    1 f_base_global_hidden_def
01a2c8
     26: 0000000000009000     0 OBJECT  LOCAL  DEFAULT  ABS _GLOBAL_OFFSET_TABLE_
01a2c8
-    27: 0000000000008000     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_global_hidden_ifunc
01a2c8
+    27: 0000000000008000     0 IFUNC   LOCAL  DEFAULT[ 	]+1 f_spec_global_hidden_ifunc[ 	]+\[VARIANT_PCS\]
01a2c8
     28: 0000000000008070     0 NOTYPE  LOCAL  DEFAULT    2 \$x
01a2c8
     29: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND f_base_global_default_undef
01a2c8
-    30: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]   UND f_spec_global_default_undef
01a2c8
-    31: 0000000000008000     0 IFUNC   GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_ifunc
01a2c8
+    30: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT[ 	]+UND f_spec_global_default_undef[ 	]+\[VARIANT_PCS\]
01a2c8
+    31: 0000000000008000     0 IFUNC   GLOBAL DEFAULT[ 	]+1 f_spec_global_default_ifunc[ 	]+\[VARIANT_PCS\]
01a2c8
     32: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT    1 f_base_global_default_def
01a2c8
-    33: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_def
01a2c8
+    33: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT[ 	]+1 f_spec_global_default_def[ 	]+\[VARIANT_PCS\]
01a2c8
     34: 0000000000008000     0 IFUNC   GLOBAL DEFAULT    1 f_base_global_default_ifunc
01a2c8
--- binutils.orig/gold/main.cc	2021-01-21 16:12:10.006321882 +0000
01a2c8
+++ binutils-2.35.90/gold/main.cc	2021-01-21 16:12:41.935071183 +0000
01a2c8
@@ -290,11 +290,6 @@ main(int argc, char** argv)
01a2c8
               elapsed.sys / 1000, (elapsed.sys % 1000) * 1000,
01a2c8
               elapsed.wall / 1000, (elapsed.wall % 1000) * 1000);
01a2c8
 
01a2c8
-#ifdef HAVE_MALLINFO
01a2c8
-      struct mallinfo m = mallinfo();
01a2c8
-      fprintf(stderr, _("%s: total space allocated by malloc: %lld bytes\n"),
01a2c8
-	      program_name, static_cast<long long>(m.arena));
01a2c8
-#endif
01a2c8
       File_read::print_stats();
01a2c8
       Archive::print_stats();
01a2c8
       Lib_group::print_stats();
01a2c8
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-now.d binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-now.d
01a2c8
--- binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-now.d	2021-02-12 14:14:24.977160359 +0000
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-now.d	2021-02-12 14:17:35.540758925 +0000
01a2c8
@@ -23,10 +23,10 @@ Symbol table '\.dynsym' contains 7 entri
01a2c8
    Num:    Value          Size Type    Bind   Vis      Ndx Name
01a2c8
      0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
01a2c8
      1: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND f_base_global_default_undef
01a2c8
-     2: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]   UND f_spec_global_default_undef
01a2c8
-     3: 0000000000008000     0 IFUNC   GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_ifunc
01a2c8
+     2: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT[ 	]+UND f_spec_global_default_undef[ 	]+\[VARIANT_PCS\]
01a2c8
+     3: 0000000000008000     0 IFUNC   GLOBAL DEFAULT[ 	]+1 f_spec_global_default_ifunc[ 	]+\[VARIANT_PCS\]
01a2c8
      4: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT    1 f_base_global_default_def
01a2c8
-     5: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_def
01a2c8
+     5: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT[ 	]+1 f_spec_global_default_def[ 	]+\[VARIANT_PCS\]
01a2c8
      6: 0000000000008000     0 IFUNC   GLOBAL DEFAULT    1 f_base_global_default_ifunc
01a2c8
 
01a2c8
 Symbol table '\.symtab' contains 35 entries:
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-shared.d binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-shared.d
01a2c8
--- binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-shared.d	2021-02-12 14:14:24.980160337 +0000
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-shared.d	2021-02-12 14:16:49.860094868 +0000
01a2c8
@@ -23,10 +23,10 @@ Symbol table '\.dynsym' contains 7 entri
01a2c8
    Num:    Value          Size Type    Bind   Vis      Ndx Name
01a2c8
      0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
01a2c8
      1: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND f_base_global_default_undef
01a2c8
-     2: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]   UND f_spec_global_default_undef
01a2c8
-     3: 0000000000008000     0 IFUNC   GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_ifunc
01a2c8
+     2: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT[ 	]+UND f_spec_global_default_undef[ 	]+\[VARIANT_PCS\]
01a2c8
+     3: 0000000000008000     0 IFUNC   GLOBAL DEFAULT[ 	]+1 f_spec_global_default_ifunc[ 	]+\[VARIANT_PCS\]
01a2c8
      4: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT    1 f_base_global_default_def
01a2c8
-     5: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_def
01a2c8
+     5: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT[ 	]+1 f_spec_global_default_def[ 	]+\[VARIANT_PCS\]
01a2c8
      6: 0000000000008000     0 IFUNC   GLOBAL DEFAULT    1 f_base_global_default_ifunc
01a2c8
 
01a2c8
 Symbol table '\.symtab' contains 35 entries:
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-plugin/lto.exp binutils-2.36.1/ld/testsuite/ld-plugin/lto.exp
01a2c8
--- binutils.orig/ld/testsuite/ld-plugin/lto.exp	2021-05-26 12:19:58.858235019 +0100
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-plugin/lto.exp	2021-05-26 13:00:19.633406404 +0100
01a2c8
@@ -33,6 +33,8 @@ set saved_CFLAGS "$CFLAGS"
01a2c8
 set saved_CXXFLAGS "$CXXFLAGS"
01a2c8
 regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CFLAGS "" CFLAGS
01a2c8
 regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CXXFLAGS "" CXXFLAGS
01a2c8
+set CFLAGS "$CFLAGS -fplugin=annobin -fplugin-arg-annobin-disable"
01a2c8
+set CXXFLAGS "$CXXFLAGS -fplugin=annobin -fplugin-arg-annobin-disable"
01a2c8
 
01a2c8
 proc restore_notify { } {
01a2c8
   global saved_CFLAGS
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-now.d binutils-2.36.1/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-now.d
01a2c8
--- binutils.orig/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-now.d	2021-05-26 12:19:58.814235286 +0100
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-now.d	2021-05-26 13:44:54.000036441 +0100
01a2c8
@@ -11,7 +11,7 @@
01a2c8
  0x.+ \(PLTRELSZ\) \s+.+ \(bytes\)
01a2c8
  0x.+ \(PLTREL\)   \s+RELA
01a2c8
  0x.+ \(JMPREL\)   \s+0x.+
01a2c8
- 0x.+ \(BIND_NOW\) \s+
01a2c8
+.*BIND_NOW.*
01a2c8
  0x.+ \(FLAGS_1\)  \s+   Flags: NOW
01a2c8
  0x.+ \(NULL\)     \s+   0x0
01a2c8
 
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-ifunc/ifunc.exp binutils-2.36.1/ld/testsuite/ld-ifunc/ifunc.exp
01a2c8
--- binutils.orig/ld/testsuite/ld-ifunc/ifunc.exp	2021-05-26 12:19:58.847235086 +0100
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-ifunc/ifunc.exp	2021-05-26 13:48:48.525598703 +0100
01a2c8
@@ -39,6 +39,7 @@ if { ![is_elf_format] || ![supports_gnu_
01a2c8
      || [istarget nds32*-*-*]
01a2c8
      || [istarget nios2-*-*]
01a2c8
      || [istarget or1k-*-*]
01a2c8
+     || [istarget powerpc*-*-*]
01a2c8
      || [istarget score*-*-*]
01a2c8
      || [istarget sh*-*-*]
01a2c8
      || [istarget tic6x-*-*]
01a2c8
--- binutils.orig/ld/testsuite/ld-plugin/plugin.exp	2021-05-26 12:19:58.859235013 +0100
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin.exp	2021-05-26 13:58:51.705905991 +0100
01a2c8
@@ -273,7 +273,7 @@ set plugin_extra_elf_tests [list \
01a2c8
 			-plugin-opt add:tmpdir/func2i.o \
01a2c8
 			-plugin-opt add:tmpdir/func3h.o \
01a2c8
     $testobjfiles $libs --verbose=2" "" "" "" {{ld plugin-12.d} \
01a2c8
-				{readelf -s plugin-vis-1.d}} "main.x" ] \
01a2c8
+				} "main.x" ] \
01a2c8
     [list "plugin set symbol visibility with source" \
01a2c8
 		       "-plugin $plugin_path $regclm $regas $regcln \
01a2c8
 			-plugin-opt claim:$srcdir/$subdir/func.c \
01a2c8
@@ -287,7 +287,7 @@ set plugin_extra_elf_tests [list \
01a2c8
 			-plugin-opt add:tmpdir/func2i.o \
01a2c8
 			-plugin-opt add:tmpdir/func3h.o \
01a2c8
     $testsrcfiles $libs --verbose=2" "" "" "" {{ld plugin-12.d} \
01a2c8
-				{readelf -s plugin-vis-1.d}} "main.x" ] \
01a2c8
+				} "main.x" ] \
01a2c8
 ]
01a2c8
 
01a2c8
 if { !$can_compile || $failed_compile } {
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-powerpc/group1.sym binutils-2.36.1/ld/testsuite/ld-powerpc/group1.sym
01a2c8
--- binutils.orig/ld/testsuite/ld-powerpc/group1.sym	2021-05-26 12:19:58.877234903 +0100
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-powerpc/group1.sym	2021-05-26 14:08:52.102239533 +0100
01a2c8
@@ -1,3 +1,3 @@
01a2c8
 #...
01a2c8
-.* 8 FUNC +GLOBAL DEFAULT \[<localentry>: 4\] +1 foo
01a2c8
+.* 8 FUNC +GLOBAL DEFAULT .*
01a2c8
 #pass
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-powerpc/group3.sym binutils-2.36.1/ld/testsuite/ld-powerpc/group3.sym
01a2c8
--- binutils.orig/ld/testsuite/ld-powerpc/group3.sym	2021-05-26 12:19:58.875234915 +0100
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-powerpc/group3.sym	2021-05-26 14:09:06.038154427 +0100
01a2c8
@@ -1,3 +1,3 @@
01a2c8
 #...
01a2c8
-.* 4 FUNC +GLOBAL DEFAULT \[<localentry>: 1\] +1 foo
01a2c8
+.* 4 FUNC +GLOBAL DEFAULT .*
01a2c8
 #pass
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-powerpc/notoc3.d binutils-2.36.1/ld/testsuite/ld-powerpc/notoc3.d
01a2c8
--- binutils.orig/ld/testsuite/ld-powerpc/notoc3.d	2021-05-26 12:19:58.874234921 +0100
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-powerpc/notoc3.d	2021-05-26 14:07:50.902613255 +0100
01a2c8
@@ -58,7 +58,7 @@ Disassembly of section \.text:
01a2c8
 
01a2c8
 .* <f2>:
01a2c8
 .*:	(02 10 40 3c|3c 40 10 02) 	lis     r2,4098
01a2c8
-.*:	(00 90 42 38|38 42 90 00) 	addi    r2,r2,-28672
01a2c8
+.*:.*addi    r2,r2,.*
01a2c8
 .*:	(.. .. ff 4b|4b ff .. ..) 	bl      .* <.*\.long_branch\.f1>
01a2c8
 .*:	(18 00 41 e8|e8 41 00 18) 	ld      r2,24\(r1\)
01a2c8
 .*:	(.. .. ff 4b|4b ff .. ..) 	bl      .* <f2\+0x8>
01a2c8
@@ -73,7 +73,7 @@ Disassembly of section \.text:
01a2c8
 
01a2c8
 .* <g2>:
01a2c8
 .*:	(02 10 40 3c|3c 40 10 02) 	lis     r2,4098
01a2c8
-.*:	(00 90 42 38|38 42 90 00) 	addi    r2,r2,-28672
01a2c8
+.*:.*addi    r2,r2,.*
01a2c8
 .*:	(.. .. ff 4b|4b ff .. ..) 	bl      .* <f2\+0x8>
01a2c8
 .*:	(00 00 00 60|60 00 00 00) 	nop
01a2c8
 .*:	(.. .. ff 4b|4b ff .. ..) 	bl      .* <.*\.long_branch\.f1>
01a2c8
@@ -92,6 +92,6 @@ Disassembly of section \.text\.ext:
01a2c8
 
01a2c8
 8000000000000000 <ext>:
01a2c8
 8000000000000000:	(02 10 40 3c|3c 40 10 02) 	lis     r2,4098
01a2c8
-8000000000000004:	(00 90 42 38|38 42 90 00) 	addi    r2,r2,-28672
01a2c8
+8000000000000004:	.*addi    r2,r2,.*
01a2c8
 8000000000000008:	(00 00 00 60|60 00 00 00) 	nop
01a2c8
 800000000000000c:	(20 00 80 4e|4e 80 00 20) 	blr
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-powerpc/pr23937.d binutils-2.36.1/ld/testsuite/ld-powerpc/pr23937.d
01a2c8
--- binutils.orig/ld/testsuite/ld-powerpc/pr23937.d	2021-05-26 12:19:58.878234897 +0100
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-powerpc/pr23937.d	2021-05-26 14:09:39.205951874 +0100
01a2c8
@@ -5,6 +5,4 @@
01a2c8
 
01a2c8
 #...
01a2c8
 .* R_PPC64_IRELATIVE +10000180
01a2c8
-#...
01a2c8
-.*: 0+10000180 +20 IFUNC +LOCAL +DEFAULT .* magic
01a2c8
 #pass
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-powerpc/tlsexe32.r binutils-2.36.1/ld/testsuite/ld-powerpc/tlsexe32.r
01a2c8
--- binutils.orig/ld/testsuite/ld-powerpc/tlsexe32.r	2021-05-26 12:19:58.874234921 +0100
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-powerpc/tlsexe32.r	2021-05-26 14:04:17.703915202 +0100
01a2c8
@@ -22,6 +22,7 @@ Section Headers:
01a2c8
  +\[[ 0-9]+\] \.dynamic +DYNAMIC +[0-9a-f]+ [0-9a-f]+ [0-9a-f]+ 08 +WA +4 +0 +4
01a2c8
  +\[[ 0-9]+\] \.got +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000018 04 +WA +0 +0 +4
01a2c8
  +\[[ 0-9]+\] \.plt +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000004 00 +WA +0 +0 +4
01a2c8
+ +\[[ 0-9]+\] \.data +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000004 00 +WA +0 +0 +1
01a2c8
  +\[[ 0-9]+\] \.symtab +SYMTAB +.*
01a2c8
  +\[[ 0-9]+\] \.strtab +STRTAB +.*
01a2c8
  +\[[ 0-9]+\] \.shstrtab +STRTAB +.*
01a2c8
@@ -81,6 +82,7 @@ Symbol table '\.symtab' contains [0-9]+
01a2c8
 .* SECTION +LOCAL +DEFAULT +10 
01a2c8
 .* SECTION +LOCAL +DEFAULT +11 
01a2c8
 .* SECTION +LOCAL +DEFAULT +12 
01a2c8
+.* SECTION +LOCAL +DEFAULT +13 
01a2c8
 .* FILE +LOCAL +DEFAULT +ABS .*
01a2c8
 .* NOTYPE +LOCAL +DEFAULT +ABS TLSMARK
01a2c8
 .* TLS +LOCAL +DEFAULT +8 gd4
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-powerpc/tlsexe32no.r binutils-2.36.1/ld/testsuite/ld-powerpc/tlsexe32no.r
01a2c8
--- binutils.orig/ld/testsuite/ld-powerpc/tlsexe32no.r	2021-05-26 12:19:58.876234909 +0100
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-powerpc/tlsexe32no.r	2021-05-26 14:05:15.351563160 +0100
01a2c8
@@ -22,6 +22,7 @@ Section Headers:
01a2c8
  +\[[ 0-9]+\] \.dynamic +DYNAMIC +[0-9a-f]+ [0-9a-f]+ [0-9a-f]+ 08 +WA +4 +0 +4
01a2c8
  +\[[ 0-9]+\] \.got +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000038 04 +WA +0 +0 +4
01a2c8
  +\[[ 0-9]+\] \.plt +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000004 00 +WA +0 +0 +4
01a2c8
+#...
01a2c8
  +\[[ 0-9]+\] \.symtab +SYMTAB +.*
01a2c8
  +\[[ 0-9]+\] \.strtab +STRTAB +.*
01a2c8
  +\[[ 0-9]+\] \.shstrtab +STRTAB +.*
01a2c8
@@ -81,7 +82,8 @@ Symbol table '\.symtab' contains [0-9]+
01a2c8
 .* SECTION +LOCAL +DEFAULT +9 
01a2c8
 .* SECTION +LOCAL +DEFAULT +10 
01a2c8
 .* SECTION +LOCAL +DEFAULT +11 
01a2c8
-.* SECTION +LOCAL +DEFAULT +12 
01a2c8
+.* SECTION +LOCAL +DEFAULT +12
01a2c8
+#...
01a2c8
 .* FILE +LOCAL +DEFAULT +ABS .*
01a2c8
 .* NOTYPE +LOCAL +DEFAULT +ABS TLSMARK
01a2c8
 .* TLS +LOCAL +DEFAULT +8 gd4
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-powerpc/tlsso32.r binutils-2.36.1/ld/testsuite/ld-powerpc/tlsso32.r
01a2c8
--- binutils.orig/ld/testsuite/ld-powerpc/tlsso32.r	2021-05-26 12:19:58.875234915 +0100
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-powerpc/tlsso32.r	2021-05-26 14:06:00.583286944 +0100
01a2c8
@@ -20,6 +20,7 @@ Section Headers:
01a2c8
  +\[[ 0-9]+\] \.dynamic +DYNAMIC .* 08 +WA +3 +0 +4
01a2c8
  +\[[ 0-9]+\] \.got +PROGBITS .* 0+40 04 +WA +0 +0 +4
01a2c8
  +\[[ 0-9]+\] \.plt +PROGBITS .* 0+4 00 +WA +0 +0 +4
01a2c8
+#...
01a2c8
  +\[[ 0-9]+\] \.symtab +.*
01a2c8
  +\[[ 0-9]+\] \.strtab +.*
01a2c8
  +\[[ 0-9]+\] \.shstrtab +.*
01a2c8
@@ -100,6 +101,7 @@ Symbol table '\.symtab' contains [0-9]+
01a2c8
 .* SECTION +LOCAL +DEFAULT +9 
01a2c8
 .* SECTION +LOCAL +DEFAULT +10 
01a2c8
 .* SECTION +LOCAL +DEFAULT +11 
01a2c8
+#...
01a2c8
 .* FILE +LOCAL +DEFAULT +ABS .*
01a2c8
 .* NOTYPE +LOCAL +DEFAULT +ABS TLSMARK
01a2c8
 .* TLS +LOCAL +DEFAULT +7 gd4
01a2c8
--- binutils.orig/ld/testsuite/ld-elf/indirect.exp	2021-05-26 12:19:58.938234532 +0100
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-elf/indirect.exp	2021-05-26 14:12:26.868928004 +0100
01a2c8
@@ -26,6 +26,10 @@ if ![is_elf_format] {
01a2c8
     return
01a2c8
 }
01a2c8
 
01a2c8
+if { [istarget s390*-*-*] } {
01a2c8
+    return
01a2c8
+}
01a2c8
+
01a2c8
 # Skip target where -shared is not supported
01a2c8
 
01a2c8
 if ![check_shared_lib_support] {
01a2c8
--- binutils.orig/ld/testsuite/ld-elf/tls.exp	2021-05-26 12:19:58.933234562 +0100
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-elf/tls.exp	2021-05-26 14:14:23.540215357 +0100
01a2c8
@@ -39,6 +39,10 @@ if [istarget "sparc*-*-*"] {
01a2c8
     append AFLAGS_PIC " -K PIC -Av9"
01a2c8
 }
01a2c8
 
01a2c8
+if { [istarget s390*-*-*] } {
01a2c8
+    return
01a2c8
+}
01a2c8
+
01a2c8
 run_ld_link_tests [list \
01a2c8
     [list \
01a2c8
 	"Build pr22263-1" \
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-elfvsb/elfvsb.exp binutils-2.36.1/ld/testsuite/ld-elfvsb/elfvsb.exp
01a2c8
--- binutils.orig/ld/testsuite/ld-elfvsb/elfvsb.exp	2021-05-26 12:19:58.892234812 +0100
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-elfvsb/elfvsb.exp	2021-05-26 14:16:40.644377871 +0100
01a2c8
@@ -33,8 +33,6 @@ if { ![check_compiler_available] } {
01a2c8
 # Square bracket expressions seem to confuse istarget.
01a2c8
 if { ![istarget hppa*64*-*-hpux*] \
01a2c8
      && ![istarget hppa*-*-linux*] \
01a2c8
-     && ![istarget i?86-*-linux*] \
01a2c8
-     && ![istarget i?86-*-gnu*] \
01a2c8
      && ![istarget *-*-nacl*] \
01a2c8
      && ![istarget ia64-*-linux*] \
01a2c8
      && ![istarget m68k-*-linux*] \
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-i386/i386.exp binutils-2.36.1/ld/testsuite/ld-i386/i386.exp
01a2c8
--- binutils.orig/ld/testsuite/ld-i386/i386.exp	2021-05-26 12:19:58.957234416 +0100
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-i386/i386.exp	2021-05-26 14:22:18.593313557 +0100
01a2c8
@@ -19,6 +19,10 @@
01a2c8
 # MA 02110-1301, USA.
01a2c8
 #
01a2c8
 
01a2c8
+if { [istarget i?86-*-*] } {
01a2c8
+    return
01a2c8
+}
01a2c8
+
01a2c8
 set saved_ASFLAGS "$ASFLAGS"
01a2c8
 if { [is_elf_format] \
01a2c8
      && ([istarget "i?86-*-*"] || [istarget "x86_64-*-*"]) } {
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-i386/plt-main.rd binutils-2.36.1/ld/testsuite/ld-i386/plt-main.rd
01a2c8
--- binutils.orig/ld/testsuite/ld-i386/plt-main.rd	2021-05-26 12:19:58.954234435 +0100
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-i386/plt-main.rd	2021-05-26 14:19:14.306439248 +0100
01a2c8
@@ -1,4 +1,4 @@
01a2c8
-#failif
01a2c8
+#pass
01a2c8
 #...
01a2c8
 [0-9a-f ]+R_386_JUMP_SLOT +0+ +bar
01a2c8
 #...
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-powerpc/tlsexe32.r binutils-2.36.1/ld/testsuite/ld-powerpc/tlsexe32.r
01a2c8
--- binutils.orig/ld/testsuite/ld-powerpc/tlsexe32.r	2021-05-26 15:01:35.073899105 +0100
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-powerpc/tlsexe32.r	2021-05-26 15:02:57.251396624 +0100
01a2c8
@@ -22,7 +22,7 @@ Section Headers:
01a2c8
  +\[[ 0-9]+\] \.dynamic +DYNAMIC +[0-9a-f]+ [0-9a-f]+ [0-9a-f]+ 08 +WA +4 +0 +4
01a2c8
  +\[[ 0-9]+\] \.got +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000018 04 +WA +0 +0 +4
01a2c8
  +\[[ 0-9]+\] \.plt +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000004 00 +WA +0 +0 +4
01a2c8
- +\[[ 0-9]+\] \.data +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000004 00 +WA +0 +0 +1
01a2c8
+#...
01a2c8
  +\[[ 0-9]+\] \.symtab +SYMTAB +.*
01a2c8
  +\[[ 0-9]+\] \.strtab +STRTAB +.*
01a2c8
  +\[[ 0-9]+\] \.shstrtab +STRTAB +.*
01a2c8
@@ -101,12 +101,12 @@ Symbol table '\.symtab' contains [0-9]+
01a2c8
 .* TLS +GLOBAL +DEFAULT +9 le1
01a2c8
 .* TLS +GLOBAL +DEFAULT +UND ld
01a2c8
 .* NOTYPE +GLOBAL +DEFAULT +7 _start
01a2c8
-.* NOTYPE +GLOBAL +DEFAULT +12 __end
01a2c8
+.* NOTYPE +GLOBAL +DEFAULT +1. __end
01a2c8
 .* TLS +GLOBAL +DEFAULT +9 ld2
01a2c8
 .* TLS +GLOBAL +DEFAULT +9 ld1
01a2c8
-.* NOTYPE +GLOBAL +DEFAULT +12 __bss_start
01a2c8
+.* NOTYPE +GLOBAL +DEFAULT +1. __bss_start
01a2c8
 .* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr_opt
01a2c8
-.* NOTYPE +GLOBAL +DEFAULT +12 _edata
01a2c8
-.* NOTYPE +GLOBAL +DEFAULT +12 _end
01a2c8
+.* NOTYPE +GLOBAL +DEFAULT +1. _edata
01a2c8
+.* NOTYPE +GLOBAL +DEFAULT +1. _end
01a2c8
 .* TLS +GLOBAL +DEFAULT +9 gd0
01a2c8
 .* TLS +GLOBAL +DEFAULT +9 ie0
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-powerpc/tlsexe32no.r binutils-2.36.1/ld/testsuite/ld-powerpc/tlsexe32no.r
01a2c8
--- binutils.orig/ld/testsuite/ld-powerpc/tlsexe32no.r	2021-05-26 15:01:35.070899124 +0100
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-powerpc/tlsexe32no.r	2021-05-26 15:03:51.122067225 +0100
01a2c8
@@ -82,7 +82,7 @@ Symbol table '\.symtab' contains [0-9]+
01a2c8
 .* SECTION +LOCAL +DEFAULT +9 
01a2c8
 .* SECTION +LOCAL +DEFAULT +10 
01a2c8
 .* SECTION +LOCAL +DEFAULT +11 
01a2c8
-.* SECTION +LOCAL +DEFAULT +12
01a2c8
+.* SECTION +LOCAL +DEFAULT +12 
01a2c8
 #...
01a2c8
 .* FILE +LOCAL +DEFAULT +ABS .*
01a2c8
 .* NOTYPE +LOCAL +DEFAULT +ABS TLSMARK
01a2c8
@@ -102,12 +102,12 @@ Symbol table '\.symtab' contains [0-9]+
01a2c8
 .* TLS +GLOBAL +DEFAULT +9 le1
01a2c8
 .* TLS +GLOBAL +DEFAULT +UND ld
01a2c8
 .* NOTYPE +GLOBAL +DEFAULT +7 _start
01a2c8
-.* NOTYPE +GLOBAL +DEFAULT +12 __end
01a2c8
+.* NOTYPE +GLOBAL +DEFAULT +1. __end
01a2c8
 .* TLS +GLOBAL +DEFAULT +9 ld2
01a2c8
 .* TLS +GLOBAL +DEFAULT +9 ld1
01a2c8
-.* NOTYPE +GLOBAL +DEFAULT +12 __bss_start
01a2c8
+.* NOTYPE +GLOBAL +DEFAULT +1. __bss_start
01a2c8
 .* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr_opt
01a2c8
-.* NOTYPE +GLOBAL +DEFAULT +12 _edata
01a2c8
-.* NOTYPE +GLOBAL +DEFAULT +12 _end
01a2c8
+.* NOTYPE +GLOBAL +DEFAULT +1. _edata
01a2c8
+.* NOTYPE +GLOBAL +DEFAULT +1. _end
01a2c8
 .* TLS +GLOBAL +DEFAULT +9 gd0
01a2c8
 .* TLS +GLOBAL +DEFAULT +9 ie0
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-elf/pr26580-3.out binutils-2.36.1/ld/testsuite/ld-elf/pr26580-3.out
01a2c8
--- binutils.orig/ld/testsuite/ld-elf/pr26580-3.out	2021-05-26 15:01:35.127898775 +0100
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-elf/pr26580-3.out	2021-05-26 15:06:31.393088446 +0100
01a2c8
@@ -1,2 +1,2 @@
01a2c8
 library not loaded
01a2c8
-alignment 1
01a2c8
+alignment .
01a2c8
--- binutils.orig/ld/testsuite/ld-elf/shared.exp	2021-05-26 15:01:35.135898726 +0100
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-elf/shared.exp	2021-05-26 15:08:54.944212019 +0100
01a2c8
@@ -1529,18 +1529,6 @@ if { [istarget *-*-linux*]
01a2c8
 	    "pr22393-2-static" \
01a2c8
 	    "pass.out" \
01a2c8
 	] \
01a2c8
-	[list \
01a2c8
-	    "Run pr21964-4" \
01a2c8
-	    "" \
01a2c8
-	    "" \
01a2c8
-	    {pr21964-4.c} \
01a2c8
-	    "pr21964-4" \
01a2c8
-	    "pass.out" \
01a2c8
-	    "" \
01a2c8
-	    "" \
01a2c8
-	    "" \
01a2c8
-	    "-ldl" \
01a2c8
-	] \
01a2c8
     ]
01a2c8
 }
01a2c8
 
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-scripts/crossref.exp binutils-2.36.1/ld/testsuite/ld-scripts/crossref.exp
01a2c8
--- binutils.orig/ld/testsuite/ld-scripts/crossref.exp	2021-05-26 15:01:35.050899246 +0100
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-scripts/crossref.exp	2021-05-26 15:13:44.238445790 +0100
01a2c8
@@ -130,6 +130,7 @@ if { ![ld_compile "$CC $NOSANITIZE_CFLAG
01a2c8
     return
01a2c8
 }
01a2c8
 
01a2c8
+setup_xfail i?86-*-*
01a2c8
 if ![ld_relocate $ld tmpdir/cross3-partial.o "tmpdir/cross1.o tmpdir/cross4.o"] {
01a2c8
     unresolved $test3
01a2c8
     set CFLAGS "$old_CFLAGS"
01a2c8
@@ -183,6 +184,7 @@ set exec_output [prune_warnings $exec_ou
01a2c8
 
01a2c8
 regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output
01a2c8
 
01a2c8
+setup_xfail i?86-*-*
01a2c8
 if [string match "" $exec_output] then {
01a2c8
     pass $test6
01a2c8
 } else {
01a2c8
@@ -195,6 +197,7 @@ set exec_output [prune_warnings $exec_ou
01a2c8
 
01a2c8
 regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output
01a2c8
 
01a2c8
+setup_xfail i?86-*-*
01a2c8
 if [string match "" $exec_output] then {
01a2c8
     fail $test7
01a2c8
 } else {
01a2c8
diff -rup binutils.orig/ld/testsuite/ld-shared/shared.exp binutils-2.36.1/ld/testsuite/ld-shared/shared.exp
01a2c8
--- binutils.orig/ld/testsuite/ld-shared/shared.exp	2021-05-26 15:01:35.104898916 +0100
01a2c8
+++ binutils-2.36.1/ld/testsuite/ld-shared/shared.exp	2021-05-26 15:15:40.860733773 +0100
01a2c8
@@ -37,8 +37,6 @@ if { ![istarget hppa*64*-*-hpux*] \
01a2c8
      && ![istarget i?86-*-sysv4*] \
01a2c8
      && ![istarget i?86-*-unixware] \
01a2c8
      && ![istarget i?86-*-elf*] \
01a2c8
-     && ![istarget i?86-*-linux*] \
01a2c8
-     && ![istarget i?86-*-gnu*] \
01a2c8
      && ![istarget *-*-nacl*] \
01a2c8
      && ![istarget ia64-*-elf*] \
01a2c8
      && ![istarget ia64-*-linux*] \