Blame SOURCES/binutils-testsuite-fixes.patch

8d443f
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-10.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-10.d
8d443f
--- binutils.orig/ld/testsuite/ld-plugin/plugin-10.d	2021-02-12 10:13:11.116049499 +0000
8d443f
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-10.d	2021-02-12 10:23:44.298370984 +0000
8d443f
@@ -32,7 +32,7 @@ hook called: claim_file tmpdir/func.o \[
8d443f
 hook called: claim_file tmpdir/libtext.a \[@.* not claimed
8d443f
 #...
8d443f
 hook called: all symbols read.
8d443f
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
8d443f
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
8d443f
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
8d443f
 #...
8d443f
 hook called: cleanup.
8d443f
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-11.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-11.d
8d443f
--- binutils.orig/ld/testsuite/ld-plugin/plugin-11.d	2021-02-12 10:13:11.119049477 +0000
8d443f
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-11.d	2021-02-12 10:50:40.973828943 +0000
8d443f
@@ -35,9 +35,9 @@ hook called: claim_file tmpdir/func.o \[
8d443f
 hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED
8d443f
 #...
8d443f
 hook called: all symbols read.
8d443f
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
8d443f
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
8d443f
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
8d443f
-Sym: '_?text' Resolution: LDPR_PREVAILING_DEF_IRONLY
8d443f
+Sym: '_?text' Resolution: LDPR_PREVAILING_DE.*
8d443f
 #...
8d443f
 hook called: cleanup.
8d443f
 #...
8d443f
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-16.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-16.d
8d443f
--- binutils.orig/ld/testsuite/ld-plugin/plugin-16.d	2021-02-12 10:13:11.119049477 +0000
8d443f
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-16.d	2021-02-12 10:29:31.510843797 +0000
8d443f
@@ -30,7 +30,7 @@ hook called: claim_file .*/ld/testsuite/
8d443f
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
8d443f
 #...
8d443f
 hook called: all symbols read.
8d443f
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
8d443f
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
8d443f
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
8d443f
 #...
8d443f
 hook called: cleanup.
8d443f
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-17.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-17.d
8d443f
--- binutils.orig/ld/testsuite/ld-plugin/plugin-17.d	2021-02-12 10:13:11.116049499 +0000
8d443f
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-17.d	2021-02-12 10:35:13.348404638 +0000
8d443f
@@ -31,7 +31,7 @@ hook called: claim_file .*/ld/testsuite/
8d443f
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
8d443f
 #...
8d443f
 hook called: all symbols read.
8d443f
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
8d443f
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
8d443f
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
8d443f
 #...
8d443f
 hook called: cleanup.
8d443f
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-18.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-18.d
8d443f
--- binutils.orig/ld/testsuite/ld-plugin/plugin-18.d	2021-02-12 10:13:11.118049484 +0000
8d443f
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-18.d	2021-02-12 10:29:47.974726314 +0000
8d443f
@@ -32,7 +32,7 @@ hook called: claim_file .*/ld/testsuite/
8d443f
 hook called: claim_file tmpdir/libtext.a \[@.* not claimed
8d443f
 #...
8d443f
 hook called: all symbols read.
8d443f
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
8d443f
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
8d443f
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
8d443f
 #...
8d443f
 hook called: cleanup.
8d443f
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-19.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-19.d
8d443f
--- binutils.orig/ld/testsuite/ld-plugin/plugin-19.d	2021-02-12 10:13:11.116049499 +0000
8d443f
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-19.d	2021-02-12 10:30:31.990412245 +0000
8d443f
@@ -35,9 +35,9 @@ hook called: claim_file .*/ld/testsuite/
8d443f
 hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED
8d443f
 #...
8d443f
 hook called: all symbols read.
8d443f
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
8d443f
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
8d443f
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
8d443f
-Sym: '_?text' Resolution: LDPR_PREVAILING_DEF_IRONLY
8d443f
+Sym: '_?text' Resolution: LDPR_PREVAILING_DE.*
8d443f
 #...
8d443f
 hook called: cleanup.
8d443f
 #...
8d443f
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-8.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-8.d
8d443f
--- binutils.orig/ld/testsuite/ld-plugin/plugin-8.d	2021-02-12 10:13:11.118049484 +0000
8d443f
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-8.d	2021-02-12 10:23:18.489561148 +0000
8d443f
@@ -30,7 +30,7 @@ hook called: claim_file tmpdir/func.o \[
8d443f
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
8d443f
 #...
8d443f
 hook called: all symbols read.
8d443f
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
8d443f
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
8d443f
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
8d443f
 #...
8d443f
 hook called: cleanup.
8d443f
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-9.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-9.d
8d443f
--- binutils.orig/ld/testsuite/ld-plugin/plugin-9.d	2021-02-12 10:13:11.119049477 +0000
8d443f
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-9.d	2021-02-12 10:23:34.417443785 +0000
8d443f
@@ -31,7 +31,7 @@ hook called: claim_file tmpdir/func.o \[
8d443f
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
8d443f
 #...
8d443f
 hook called: all symbols read.
8d443f
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
8d443f
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
8d443f
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
8d443f
 #...
8d443f
 hook called: cleanup.
8d443f
diff -rup binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp
8d443f
--- binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp	2021-02-12 10:13:11.177049047 +0000
8d443f
+++ binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp	2021-02-12 10:57:23.339975059 +0000
8d443f
@@ -1437,22 +1437,6 @@ if { [isnative] && [check_compiler_avail
8d443f
     } else {
8d443f
 	run_cc_link_tests [list \
8d443f
 	    [list \
8d443f
-		"Build pr22001-1b" \
8d443f
-		"$NOPIE_LDFLAGS -Wl,-z,nocopyreloc,--no-as-needed,-z,notext tmpdir/pr22001-1.so" \
8d443f
-		"$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
8d443f
-		{ pr22001-1c.c } \
8d443f
-		{{error_output "pr22001-1b.err"}} \
8d443f
-		"pr22001-1b" \
8d443f
-	    ] \
8d443f
-	    [list \
8d443f
-		"Build pr21997-1b" \
8d443f
-		"$NOPIE_LDFLAGS -Wl,--no-as-needed,-z,notext tmpdir/pr21997-1.so" \
8d443f
-		"$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
8d443f
-		{ pr21997-1c.c } \
8d443f
-		{{error_output "pr21997-1b.err"}} \
8d443f
-		"pr21997-1b" \
8d443f
-	    ] \
8d443f
-	    [list \
8d443f
 		"Build lam-u48.so" \
8d443f
 		"-shared -Wl,-z,lam-u48" \
8d443f
 		"" \
8d443f
@@ -1766,49 +1750,6 @@ if { [isnative] && [check_compiler_avail
8d443f
     if { [istarget "x86_64-*-linux*"] \
8d443f
 	 && ![istarget "x86_64-*-linux*-gnux32"]} {
8d443f
 
8d443f
-	run_cc_link_tests [list \
8d443f
-	    [list \
8d443f
-		"Build plt-main with -z bndplt" \
8d443f
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
8d443f
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z bndplt \
8d443f
-		 -z noseparate-code -z max-page-size=0x200000" \
8d443f
-		"-Wa,-mx86-used-note=yes $NOCF_PROTECTION_CFLAGS" \
8d443f
-		{ plt-main5.c } \
8d443f
-		{{objdump {-drw} plt-main-bnd.dd}} \
8d443f
-		"plt-main-bnd" \
8d443f
-	    ] \
8d443f
-	    [list \
8d443f
-		"Build plt-main with PIE and -z bndplt" \
8d443f
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
8d443f
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z bndplt -pie \
8d443f
-		 -z noseparate-code -z max-page-size=0x200000" \
8d443f
-		"-fPIC -Wa,-mx86-used-note=yes $NOCF_PROTECTION_CFLAGS" \
8d443f
-		{ plt-main5.c } \
8d443f
-		{{objdump {-drw} plt-main-bnd.dd}} \
8d443f
-		"plt-main-pie-bnd" \
8d443f
-	    ] \
8d443f
-	    [list \
8d443f
-		"Build plt-main with -z bndplt -z now" \
8d443f
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
8d443f
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z bndplt -z now \
8d443f
-		 -z noseparate-code -z max-page-size=0x200000" \
8d443f
-		"-Wa,-mx86-used-note=yes $NOCF_PROTECTION_CFLAGS" \
8d443f
-		{ plt-main5.c } \
8d443f
-		{{readelf {-SW} plt-main-bnd-now.rd} {objdump {-drw} plt-main-bnd.dd}} \
8d443f
-		"plt-main-bnd-now" \
8d443f
-	    ] \
8d443f
-	    [list \
8d443f
-		"Build plt-main with PIE and -z bndplt -z now" \
8d443f
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
8d443f
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z bndplt -z now -pie \
8d443f
-		 -z noseparate-code -z max-page-size=0x200000" \
8d443f
-		"-fPIC -Wa,-mx86-used-note=yes $NOCF_PROTECTION_CFLAGS" \
8d443f
-		{ plt-main5.c } \
8d443f
-		{{readelf {-SW} plt-main-bnd-now.rd} {objdump {-drw} plt-main-bnd.dd}} \
8d443f
-		"plt-main-pie-bnd-now" \
8d443f
-	    ] \
8d443f
-	]
8d443f
-
8d443f
 	run_ld_link_exec_tests [list \
8d443f
 	    [list \
8d443f
 		"Run plt-main with -z bndplt" \
8d443f
@@ -1893,66 +1834,6 @@ if { [isnative] && [check_compiler_avail
8d443f
 	    set pltdump {{objdump {-drw} plt-main-ibt.dd}}
8d443f
 	    set pltsecdump {{readelf {-SW} plt-main-ibt-now.rd} {objdump {-drw} plt-main-ibt.dd}}
8d443f
 	}
8d443f
-	run_cc_link_tests [list \
8d443f
-	    [list \
8d443f
-		"Build plt-main with -z ibtplt" \
8d443f
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
8d443f
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z ibtplt \
8d443f
-		 -z noseparate-code -z max-page-size=0x200000" \
8d443f
-		"-Wa,-mx86-used-note=yes" \
8d443f
-		{ plt-main5.c } \
8d443f
-		$pltdump \
8d443f
-		"plt-main-ibt" \
8d443f
-	    ] \
8d443f
-	    [list \
8d443f
-		"Build plt-main with PIE and -z ibtplt" \
8d443f
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
8d443f
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z ibtplt -pie \
8d443f
-		 -z noseparate-code -z max-page-size=0x200000" \
8d443f
-		"-fPIC -Wa,-mx86-used-note=yes" \
8d443f
-		{ plt-main5.c } \
8d443f
-		$pltdump \
8d443f
-		"plt-main-pie-ibt" \
8d443f
-	    ] \
8d443f
-	    [list \
8d443f
-		"Build plt-main with -z ibtplt -z now" \
8d443f
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
8d443f
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z ibtplt -z now \
8d443f
-		 -z noseparate-code -z max-page-size=0x200000" \
8d443f
-		"-Wa,-mx86-used-note=yes" \
8d443f
-		{ plt-main5.c } \
8d443f
-		$pltsecdump \
8d443f
-		"plt-main-ibt-now" \
8d443f
-	    ] \
8d443f
-	    [list \
8d443f
-		"Build plt-main with PIE and -z ibtplt -z now" \
8d443f
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
8d443f
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -z ibtplt -z now -pie \
8d443f
-		 -z noseparate-code -z max-page-size=0x200000" \
8d443f
-		"-fPIC -Wa,-mx86-used-note=yes" \
8d443f
-		{ plt-main5.c } \
8d443f
-		$pltsecdump \
8d443f
-		"plt-main-pie-ibt-now" \
8d443f
-	    ] \
8d443f
-	    [list \
8d443f
-		"Build libibtplt-lib.so with -z ibtplt" \
8d443f
-		"-shared -z ibtplt \
8d443f
-		 -z noseparate-code -z max-page-size=0x200000" \
8d443f
-		"-fPIC -Wa,-mx86-used-note=yes" \
8d443f
-		{ plt-main1.c plt-main2.c plt-main3.c plt-main4.c} \
8d443f
-		$pltdump \
8d443f
-		"libibtplt-lib.so" \
8d443f
-	    ] \
8d443f
-	    [list \
8d443f
-		"Build libibtplt--now-lib.so with -z ibtplt -z now" \
8d443f
-		"-shared -z ibtplt -z now \
8d443f
-		 -z noseparate-code -z max-page-size=0x200000" \
8d443f
-		"-fPIC -Wa,-mx86-used-note=yes" \
8d443f
-		{ plt-main1.c plt-main2.c plt-main3.c plt-main4.c} \
8d443f
-		$pltdump \
8d443f
-		"libibtplt-now-lib.so" \
8d443f
-	    ] \
8d443f
-	]
8d443f
 
8d443f
 	run_ld_link_exec_tests [list \
8d443f
 	    [list \
8d443f
diff -rup binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp
8d443f
--- binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp	2021-02-12 11:44:39.121364751 +0000
8d443f
+++ binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp	2021-02-12 11:46:27.505597689 +0000
8d443f
@@ -1878,24 +1878,6 @@ if { [isnative] && [check_compiler_avail
8d443f
 		"plt-main.out" \
8d443f
 		"-fPIC" \
8d443f
 	    ] \
8d443f
-	    [list \
8d443f
-		"Run plt-main with libibtplt-lib.so -z ibtplt" \
8d443f
-		"-Wl,--no-as-needed,-z,ibtplt tmpdir/libibtplt-lib.so \
8d443f
-		 tmpdir/libplt-lib.so" \
8d443f
-		"-Wa,-mx86-used-note=yes" \
8d443f
-		{ plt-main5.c } \
8d443f
-		"plt-main-ibt-lib" \
8d443f
-		"plt-main.out" \
8d443f
-	    ] \
8d443f
-	    [list \
8d443f
-		"Run plt-main with libibtplt-lib.so -z ibtplt -z now" \
8d443f
-		"-Wl,--no-as-needed,-z,ibtplt,-z,now \
8d443f
-		 tmpdir/libibtplt-now-lib.so tmpdir/libplt-lib.so" \
8d443f
-		"-Wa,-mx86-used-note=yes" \
8d443f
-		{ plt-main5.c } \
8d443f
-		"plt-main-ibt-now-lib" \
8d443f
-		"plt-main.out" \
8d443f
-	    ] \
8d443f
 	]
8d443f
 
8d443f
 	if { [check_ifunc_attribute_available] } {
8d443f
@@ -1922,7 +1904,6 @@ if { [isnative] && [check_compiler_avail
8d443f
 	}
8d443f
     }
8d443f
 
8d443f
-    undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS"
8d443f
     undefined_weak "-fPIE" ""
8d443f
     undefined_weak "-fPIE" "-pie"
8d443f
     undefined_weak "-fPIE" "-Wl,-z,nodynamic-undefined-weak"
8d443f
--- binutils.orig/binutils/dwarf.c	2021-02-12 11:44:39.012365518 +0000
8d443f
+++ binutils-2.36.1/binutils/dwarf.c	2021-02-12 11:49:35.408266181 +0000
8d443f
@@ -2117,6 +2117,7 @@ get_type_abbrev_from_form (unsigned long
8d443f
   switch (form)
8d443f
     {
8d443f
     case DW_FORM_GNU_ref_alt:
8d443f
+    case DW_FORM_ref_sig8:
8d443f
       /* FIXME: We are unable to handle this form at the moment.  */
8d443f
       return NULL;
8d443f
 
8d443f
@@ -2146,7 +2147,7 @@ get_type_abbrev_from_form (unsigned long
8d443f
       /* FIXME: Are there other DW_FORMs that can be used by types ?  */
8d443f
 
8d443f
     default:
8d443f
-      warn (_("Unexpected form %lx encountered whilst finding abbreviation for type\n"), form);
8d443f
+      warn (_("Unexpected form %#lx encountered whilst finding abbreviation for type\n"), form);
8d443f
       return NULL;
8d443f
     }
8d443f
 
8d443f
diff -rup binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-now.d binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-now.d
8d443f
--- binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-now.d	2021-02-12 11:44:39.034365363 +0000
8d443f
+++ binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-now.d	2021-02-12 11:57:49.372692119 +0000
8d443f
@@ -41,28 +41,28 @@ Symbol table '\.symtab' contains 35 entr
8d443f
      7: 00000000000111c8     0 SECTION LOCAL  DEFAULT    7 
8d443f
      8: 0000000000011270     0 SECTION LOCAL  DEFAULT    8 
8d443f
      9: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS .*variant_pcs-1\.o
8d443f
-    10: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local
8d443f
-    11: 0000000000008000     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local_ifunc
8d443f
+    10: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT[ 	]+1 f_spec_local[ 	]+\[VARIANT_PCS\]
8d443f
+    11: 0000000000008000     0 IFUNC   LOCAL  DEFAULT[ 	]+1 f_spec_local_ifunc[ 	]+\[VARIANT_PCS\]
8d443f
     12: 0000000000008000     0 IFUNC   LOCAL  DEFAULT    1 f_base_local_ifunc
8d443f
     13: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT    1 f_base_local
8d443f
     14: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT    1 \$x
8d443f
     15: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS .*variant_pcs-2\.o
8d443f
-    16: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local2
8d443f
-    17: 0000000000008038     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local2_ifunc
8d443f
+    16: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT[ 	]+1 f_spec_local2[ 	]+\[VARIANT_PCS\]
8d443f
+    17: 0000000000008038     0 IFUNC   LOCAL  DEFAULT[ 	]+1 f_spec_local2_ifunc[ 	]+\[VARIANT_PCS\]
8d443f
     18: 0000000000008038     0 IFUNC   LOCAL  DEFAULT    1 f_base_local2_ifunc
8d443f
     19: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT    1 f_base_local2
8d443f
     20: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT    1 \$x
8d443f
     21: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS 
8d443f
     22: 0000000000009080     0 OBJECT  LOCAL  DEFAULT  ABS _DYNAMIC
8d443f
-    23: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_global_hidden_def
8d443f
+    23: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT[ 	]+1 f_spec_global_hidden_def[ 	]+\[VARIANT_PCS\]
8d443f
     24: 0000000000008000     0 IFUNC   LOCAL  DEFAULT    1 f_base_global_hidden_ifunc
8d443f
     25: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT    1 f_base_global_hidden_def
8d443f
     26: 0000000000009000     0 OBJECT  LOCAL  DEFAULT  ABS _GLOBAL_OFFSET_TABLE_
8d443f
-    27: 0000000000008000     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_global_hidden_ifunc
8d443f
+    27: 0000000000008000     0 IFUNC   LOCAL  DEFAULT[ 	]+1 f_spec_global_hidden_ifunc[ 	]+\[VARIANT_PCS\]
8d443f
     28: 0000000000008070     0 NOTYPE  LOCAL  DEFAULT    2 \$x
8d443f
     29: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND f_base_global_default_undef
8d443f
-    30: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]   UND f_spec_global_default_undef
8d443f
-    31: 0000000000008000     0 IFUNC   GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_ifunc
8d443f
+    30: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT[ 	]+UND f_spec_global_default_undef[ 	]+\[VARIANT_PCS\]
8d443f
+    31: 0000000000008000     0 IFUNC   GLOBAL DEFAULT[ 	]+1 f_spec_global_default_ifunc[ 	]+\[VARIANT_PCS\]
8d443f
     32: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT    1 f_base_global_default_def
8d443f
-    33: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_def
8d443f
+    33: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT[ 	]+1 f_spec_global_default_def[ 	]+\[VARIANT_PCS\]
8d443f
     34: 0000000000008000     0 IFUNC   GLOBAL DEFAULT    1 f_base_global_default_ifunc
8d443f
diff -rup binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-r.d binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-r.d
8d443f
--- binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-r.d	2021-02-12 11:44:39.028365406 +0000
8d443f
+++ binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-r.d	2021-02-12 11:54:36.878111688 +0000
8d443f
@@ -37,24 +37,24 @@ Symbol table '\.symtab' contains 26 entr
8d443f
      2: 0000000000000000     0 SECTION LOCAL  DEFAULT    3 
8d443f
      3: 0000000000000000     0 SECTION LOCAL  DEFAULT    4 
8d443f
      4: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS .*variant_pcs-1\.o
8d443f
-     5: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local
8d443f
-     6: 0000000000000000     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local_ifunc
8d443f
+     5: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT[ 	]+1 f_spec_local[ 	]+\[VARIANT_PCS\]
8d443f
+     6: 0000000000000000     0 IFUNC   LOCAL  DEFAULT[ 	]+1 f_spec_local_ifunc[ 	]+\[VARIANT_PCS\]
8d443f
      7: 0000000000000000     0 IFUNC   LOCAL  DEFAULT    1 f_base_local_ifunc
8d443f
      8: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT    1 f_base_local
8d443f
      9: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT    1 \$x
8d443f
     10: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS .*variant_pcs-2\.o
8d443f
-    11: 0000000000000038     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local2
8d443f
-    12: 0000000000000038     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local2_ifunc
8d443f
+    11: 0000000000000038     0 NOTYPE  LOCAL  DEFAULT[ 	]+1 f_spec_local2[ 	]+\[VARIANT_PCS\]
8d443f
+    12: 0000000000000038     0 IFUNC   LOCAL  DEFAULT[ 	]+1 f_spec_local2_ifunc[ 	]+\[VARIANT_PCS\]
8d443f
     13: 0000000000000038     0 IFUNC   LOCAL  DEFAULT    1 f_base_local2_ifunc
8d443f
     14: 0000000000000038     0 NOTYPE  LOCAL  DEFAULT    1 f_base_local2
8d443f
     15: 0000000000000038     0 NOTYPE  LOCAL  DEFAULT    1 \$x
8d443f
     16: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND f_base_global_default_undef
8d443f
-    17: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]   UND f_spec_global_default_undef
8d443f
-    18: 0000000000000000     0 NOTYPE  GLOBAL HIDDEN  \[VARIANT_PCS\]     1 f_spec_global_hidden_def
8d443f
+    17: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT[ 	]+UND f_spec_global_default_undef[ 	]+\[VARIANT_PCS\]
8d443f
+    18: 0000000000000000     0 NOTYPE  GLOBAL HIDDEN[ 	]+1 f_spec_global_hidden_def[ 	]+\[VARIANT_PCS\]
8d443f
     19: 0000000000000000     0 IFUNC   GLOBAL HIDDEN     1 f_base_global_hidden_ifunc
8d443f
-    20: 0000000000000000     0 IFUNC   GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_ifunc
8d443f
+    20: 0000000000000000     0 IFUNC   GLOBAL DEFAULT[ 	]+1 f_spec_global_default_ifunc[ 	]+\[VARIANT_PCS\]
8d443f
     21: 0000000000000000     0 NOTYPE  GLOBAL HIDDEN     1 f_base_global_hidden_def
8d443f
-    22: 0000000000000000     0 IFUNC   GLOBAL HIDDEN  \[VARIANT_PCS\]     1 f_spec_global_hidden_ifunc
8d443f
+    22: 0000000000000000     0 IFUNC   GLOBAL HIDDEN[ 	]+1 f_spec_global_hidden_ifunc[ 	]+\[VARIANT_PCS\]
8d443f
     23: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT    1 f_base_global_default_def
8d443f
-    24: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_def
8d443f
+    24: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT[ 	]+1 f_spec_global_default_def[ 	]+\[VARIANT_PCS\]
8d443f
     25: 0000000000000000     0 IFUNC   GLOBAL DEFAULT    1 f_base_global_default_ifunc
8d443f
diff -rup binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-shared.d binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-shared.d
8d443f
--- binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-shared.d	2021-02-12 11:44:39.027365412 +0000
8d443f
+++ binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-shared.d	2021-02-12 11:56:14.669390518 +0000
8d443f
@@ -41,28 +41,28 @@ Symbol table '\.symtab' contains 35 entr
8d443f
      7: 00000000000111c8     0 SECTION LOCAL  DEFAULT    7 
8d443f
      8: 0000000000011270     0 SECTION LOCAL  DEFAULT    8 
8d443f
      9: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS .*variant_pcs-1\.o
8d443f
-    10: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local
8d443f
-    11: 0000000000008000     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local_ifunc
8d443f
+    10: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT[ 	]+1 f_spec_local[ 	]+\[VARIANT_PCS\]
8d443f
+    11: 0000000000008000     0 IFUNC   LOCAL  DEFAULT[ 	]+1 f_spec_local_ifunc[ 	]+\[VARIANT_PCS\]
8d443f
     12: 0000000000008000     0 IFUNC   LOCAL  DEFAULT    1 f_base_local_ifunc
8d443f
     13: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT    1 f_base_local
8d443f
     14: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT    1 \$x
8d443f
     15: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS .*variant_pcs-2\.o
8d443f
-    16: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local2
8d443f
-    17: 0000000000008038     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local2_ifunc
8d443f
+    16: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT[ 	]+1 f_spec_local2[ 	]+\[VARIANT_PCS\]
8d443f
+    17: 0000000000008038     0 IFUNC   LOCAL  DEFAULT[ 	]+1 f_spec_local2_ifunc[ 	]+\[VARIANT_PCS\]
8d443f
     18: 0000000000008038     0 IFUNC   LOCAL  DEFAULT    1 f_base_local2_ifunc
8d443f
     19: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT    1 f_base_local2
8d443f
     20: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT    1 \$x
8d443f
     21: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS 
8d443f
     22: 0000000000009080     0 OBJECT  LOCAL  DEFAULT  ABS _DYNAMIC
8d443f
-    23: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_global_hidden_def
8d443f
+    23: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT[ 	]+1 f_spec_global_hidden_def[ 	]+\[VARIANT_PCS\]
8d443f
     24: 0000000000008000     0 IFUNC   LOCAL  DEFAULT    1 f_base_global_hidden_ifunc
8d443f
     25: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT    1 f_base_global_hidden_def
8d443f
     26: 0000000000009000     0 OBJECT  LOCAL  DEFAULT  ABS _GLOBAL_OFFSET_TABLE_
8d443f
-    27: 0000000000008000     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_global_hidden_ifunc
8d443f
+    27: 0000000000008000     0 IFUNC   LOCAL  DEFAULT[ 	]+1 f_spec_global_hidden_ifunc[ 	]+\[VARIANT_PCS\]
8d443f
     28: 0000000000008070     0 NOTYPE  LOCAL  DEFAULT    2 \$x
8d443f
     29: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND f_base_global_default_undef
8d443f
-    30: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]   UND f_spec_global_default_undef
8d443f
-    31: 0000000000008000     0 IFUNC   GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_ifunc
8d443f
+    30: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT[ 	]+UND f_spec_global_default_undef[ 	]+\[VARIANT_PCS\]
8d443f
+    31: 0000000000008000     0 IFUNC   GLOBAL DEFAULT[ 	]+1 f_spec_global_default_ifunc[ 	]+\[VARIANT_PCS\]
8d443f
     32: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT    1 f_base_global_default_def
8d443f
-    33: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_def
8d443f
+    33: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT[ 	]+1 f_spec_global_default_def[ 	]+\[VARIANT_PCS\]
8d443f
     34: 0000000000008000     0 IFUNC   GLOBAL DEFAULT    1 f_base_global_default_ifunc
8d443f
--- binutils.orig/gold/main.cc	2021-01-21 16:12:10.006321882 +0000
8d443f
+++ binutils-2.35.90/gold/main.cc	2021-01-21 16:12:41.935071183 +0000
8d443f
@@ -290,11 +290,6 @@ main(int argc, char** argv)
8d443f
               elapsed.sys / 1000, (elapsed.sys % 1000) * 1000,
8d443f
               elapsed.wall / 1000, (elapsed.wall % 1000) * 1000);
8d443f
 
8d443f
-#ifdef HAVE_MALLINFO
8d443f
-      struct mallinfo m = mallinfo();
8d443f
-      fprintf(stderr, _("%s: total space allocated by malloc: %lld bytes\n"),
8d443f
-	      program_name, static_cast<long long>(m.arena));
8d443f
-#endif
8d443f
       File_read::print_stats();
8d443f
       Archive::print_stats();
8d443f
       Lib_group::print_stats();
8d443f
8d443f
diff -rup binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-now.d binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-now.d
8d443f
--- binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-now.d	2021-02-12 14:14:24.977160359 +0000
8d443f
+++ binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-now.d	2021-02-12 14:17:35.540758925 +0000
8d443f
@@ -23,10 +23,10 @@ Symbol table '\.dynsym' contains 7 entri
8d443f
    Num:    Value          Size Type    Bind   Vis      Ndx Name
8d443f
      0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
8d443f
      1: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND f_base_global_default_undef
8d443f
-     2: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]   UND f_spec_global_default_undef
8d443f
-     3: 0000000000008000     0 IFUNC   GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_ifunc
8d443f
+     2: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT[ 	]+UND f_spec_global_default_undef[ 	]+\[VARIANT_PCS\]
8d443f
+     3: 0000000000008000     0 IFUNC   GLOBAL DEFAULT[ 	]+1 f_spec_global_default_ifunc[ 	]+\[VARIANT_PCS\]
8d443f
      4: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT    1 f_base_global_default_def
8d443f
-     5: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_def
8d443f
+     5: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT[ 	]+1 f_spec_global_default_def[ 	]+\[VARIANT_PCS\]
8d443f
      6: 0000000000008000     0 IFUNC   GLOBAL DEFAULT    1 f_base_global_default_ifunc
8d443f
 
8d443f
 Symbol table '\.symtab' contains 35 entries:
8d443f
diff -rup binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-shared.d binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-shared.d
8d443f
--- binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-shared.d	2021-02-12 14:14:24.980160337 +0000
8d443f
+++ binutils-2.36.1/ld/testsuite/ld-aarch64/variant_pcs-shared.d	2021-02-12 14:16:49.860094868 +0000
8d443f
@@ -23,10 +23,10 @@ Symbol table '\.dynsym' contains 7 entri
8d443f
    Num:    Value          Size Type    Bind   Vis      Ndx Name
8d443f
      0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
8d443f
      1: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND f_base_global_default_undef
8d443f
-     2: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]   UND f_spec_global_default_undef
8d443f
-     3: 0000000000008000     0 IFUNC   GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_ifunc
8d443f
+     2: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT[ 	]+UND f_spec_global_default_undef[ 	]+\[VARIANT_PCS\]
8d443f
+     3: 0000000000008000     0 IFUNC   GLOBAL DEFAULT[ 	]+1 f_spec_global_default_ifunc[ 	]+\[VARIANT_PCS\]
8d443f
      4: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT    1 f_base_global_default_def
8d443f
-     5: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_def
8d443f
+     5: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT[ 	]+1 f_spec_global_default_def[ 	]+\[VARIANT_PCS\]
8d443f
      6: 0000000000008000     0 IFUNC   GLOBAL DEFAULT    1 f_base_global_default_ifunc
8d443f
 
8d443f
 Symbol table '\.symtab' contains 35 entries: