277c44e
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-10.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-10.d
277c44e
--- binutils.orig/ld/testsuite/ld-plugin/plugin-10.d	2021-02-12 10:13:11.116049499 +0000
277c44e
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-10.d	2021-02-12 10:23:44.298370984 +0000
277c44e
@@ -32,7 +32,7 @@ hook called: claim_file tmpdir/func.o \[
277c44e
 hook called: claim_file tmpdir/libtext.a \[@.* not claimed
277c44e
 #...
277c44e
 hook called: all symbols read.
277c44e
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
277c44e
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
277c44e
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
277c44e
 #...
277c44e
 hook called: cleanup.
277c44e
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-11.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-11.d
277c44e
--- binutils.orig/ld/testsuite/ld-plugin/plugin-11.d	2021-02-12 10:13:11.119049477 +0000
277c44e
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-11.d	2021-02-12 10:50:40.973828943 +0000
277c44e
@@ -35,9 +35,9 @@ hook called: claim_file tmpdir/func.o \[
277c44e
 hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED
277c44e
 #...
277c44e
 hook called: all symbols read.
277c44e
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
277c44e
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
277c44e
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
277c44e
-Sym: '_?text' Resolution: LDPR_PREVAILING_DEF_IRONLY
277c44e
+Sym: '_?text' Resolution: LDPR_PREVAILING_DE.*
277c44e
 #...
277c44e
 hook called: cleanup.
277c44e
 #...
277c44e
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-16.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-16.d
277c44e
--- binutils.orig/ld/testsuite/ld-plugin/plugin-16.d	2021-02-12 10:13:11.119049477 +0000
277c44e
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-16.d	2021-02-12 10:29:31.510843797 +0000
277c44e
@@ -30,7 +30,7 @@ hook called: claim_file .*/ld/testsuite/
277c44e
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
277c44e
 #...
277c44e
 hook called: all symbols read.
277c44e
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
277c44e
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
277c44e
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
277c44e
 #...
277c44e
 hook called: cleanup.
277c44e
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-17.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-17.d
277c44e
--- binutils.orig/ld/testsuite/ld-plugin/plugin-17.d	2021-02-12 10:13:11.116049499 +0000
277c44e
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-17.d	2021-02-12 10:35:13.348404638 +0000
277c44e
@@ -31,7 +31,7 @@ hook called: claim_file .*/ld/testsuite/
277c44e
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
277c44e
 #...
277c44e
 hook called: all symbols read.
277c44e
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
277c44e
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
277c44e
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
277c44e
 #...
277c44e
 hook called: cleanup.
277c44e
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-18.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-18.d
277c44e
--- binutils.orig/ld/testsuite/ld-plugin/plugin-18.d	2021-02-12 10:13:11.118049484 +0000
277c44e
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-18.d	2021-02-12 10:29:47.974726314 +0000
277c44e
@@ -32,7 +32,7 @@ hook called: claim_file .*/ld/testsuite/
277c44e
 hook called: claim_file tmpdir/libtext.a \[@.* not claimed
277c44e
 #...
277c44e
 hook called: all symbols read.
277c44e
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
277c44e
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
277c44e
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
277c44e
 #...
277c44e
 hook called: cleanup.
277c44e
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-19.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-19.d
277c44e
--- binutils.orig/ld/testsuite/ld-plugin/plugin-19.d	2021-02-12 10:13:11.116049499 +0000
277c44e
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-19.d	2021-02-12 10:30:31.990412245 +0000
277c44e
@@ -35,9 +35,9 @@ hook called: claim_file .*/ld/testsuite/
277c44e
 hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED
277c44e
 #...
277c44e
 hook called: all symbols read.
277c44e
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
277c44e
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
277c44e
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
277c44e
-Sym: '_?text' Resolution: LDPR_PREVAILING_DEF_IRONLY
277c44e
+Sym: '_?text' Resolution: LDPR_PREVAILING_DE.*
277c44e
 #...
277c44e
 hook called: cleanup.
277c44e
 #...
277c44e
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-8.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-8.d
277c44e
--- binutils.orig/ld/testsuite/ld-plugin/plugin-8.d	2021-02-12 10:13:11.118049484 +0000
277c44e
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-8.d	2021-02-12 10:23:18.489561148 +0000
277c44e
@@ -30,7 +30,7 @@ hook called: claim_file tmpdir/func.o \[
277c44e
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
277c44e
 #...
277c44e
 hook called: all symbols read.
277c44e
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
277c44e
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
277c44e
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
277c44e
 #...
277c44e
 hook called: cleanup.
277c44e
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-9.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-9.d
277c44e
--- binutils.orig/ld/testsuite/ld-plugin/plugin-9.d	2021-02-12 10:13:11.119049477 +0000
277c44e
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-9.d	2021-02-12 10:23:34.417443785 +0000
277c44e
@@ -31,7 +31,7 @@ hook called: claim_file tmpdir/func.o \[
277c44e
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
277c44e
 #...
277c44e
 hook called: all symbols read.
277c44e
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
277c44e
+Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
277c44e
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
277c44e
 #...
277c44e
 hook called: cleanup.
277c44e
diff -rup binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp
277c44e
--- binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp	2021-02-12 11:44:39.121364751 +0000
277c44e
+++ binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp	2021-02-12 11:46:27.505597689 +0000
277c44e
@@ -1878,24 +1878,6 @@ if { [isnative] && [check_compiler_avail
277c44e
 		"plt-main.out" \
277c44e
 		"-fPIC" \
277c44e
 	    ] \
277c44e
-	    [list \
277c44e
-		"Run plt-main with libibtplt-lib.so -z ibtplt" \
277c44e
-		"-Wl,--no-as-needed,-z,ibtplt tmpdir/libibtplt-lib.so \
277c44e
-		 tmpdir/libplt-lib.so" \
277c44e
-		"-Wa,-mx86-used-note=yes" \
277c44e
-		{ plt-main5.c } \
277c44e
-		"plt-main-ibt-lib" \
277c44e
-		"plt-main.out" \
277c44e
-	    ] \
277c44e
-	    [list \
277c44e
-		"Run plt-main with libibtplt-lib.so -z ibtplt -z now" \
277c44e
-		"-Wl,--no-as-needed,-z,ibtplt,-z,now \
277c44e
-		 tmpdir/libibtplt-now-lib.so tmpdir/libplt-lib.so" \
277c44e
-		"-Wa,-mx86-used-note=yes" \
277c44e
-		{ plt-main5.c } \
277c44e
-		"plt-main-ibt-now-lib" \
277c44e
-		"plt-main.out" \
277c44e
-	    ] \
277c44e
 	]
8969267
 
277c44e
 	if { [check_ifunc_attribute_available] } {
277c44e
@@ -1922,7 +1904,6 @@ if { [isnative] && [check_compiler_avail
277c44e
 	}
277c44e
     }
8969267
 
277c44e
-    undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS"
277c44e
     undefined_weak "-fPIE" ""
277c44e
     undefined_weak "-fPIE" "-pie"
277c44e
     undefined_weak "-fPIE" "-Wl,-z,nodynamic-undefined-weak"
277c44e
--- binutils.orig/ld/testsuite/ld-plugin/plugin-12.d	2021-02-12 11:44:39.076365068 +0000
277c44e
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-12.d	2021-02-12 12:01:48.091931654 +0000
277c44e
@@ -1,5 +1,5 @@
277c44e
 #...
277c44e
-.*: symbol `func' definition: DEF, visibility: DEFAULT, resolution: PREVAILING_DEF
277c44e
+.*: symbol `func' definition: DEF, visibility: DEFAULT, resolution: PREVAILING_DE.*
277c44e
 .*: symbol `func1' definition: DEF, visibility: PROTECTED, resolution: PREVAILING_DEF_IRONLY
277c44e
 .*: symbol `func2' definition: DEF, visibility: INTERNAL, resolution: PREVAILING_DEF_IRONLY
277c44e
 .*: symbol `func3' definition: DEF, visibility: HIDDEN, resolution: PREVAILING_DEF_IRONLY
277c44e
--- binutils.orig/ld/testsuite/ld-plugin/plugin-12.d	2021-02-12 14:14:25.023160021 +0000
277c44e
+++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-12.d	2021-02-12 14:19:29.106923745 +0000
277c44e
@@ -1,6 +1,6 @@
277c44e
 #...
277c44e
-.*: symbol `func' definition: DEF, visibility: DEFAULT, resolution: PREVAILING_DE.*
277c44e
-.*: symbol `func1' definition: DEF, visibility: PROTECTED, resolution: PREVAILING_DEF_IRONLY
277c44e
-.*: symbol `func2' definition: DEF, visibility: INTERNAL, resolution: PREVAILING_DEF_IRONLY
277c44e
-.*: symbol `func3' definition: DEF, visibility: HIDDEN, resolution: PREVAILING_DEF_IRONLY
277c44e
+.*: symbol `.*unc' definition: DEF, visibility: DEFAULT, resolution: PREVAILING_DE.*
277c44e
+.*: symbol `.*unc1' definition: DEF, visibility: PROTECTED, resolution: PREVAILING_DEF_IRONLY
277c44e
+.*: symbol `.*unc2' definition: DEF, visibility: INTERNAL, resolution: PREVAILING_DEF_IRONLY
277c44e
+.*: symbol `.*unc3' definition: DEF, visibility: HIDDEN, resolution: PREVAILING_DEF_IRONLY
277c44e
 #pass
277c44e
--- binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-now.d	2021-07-19 12:39:14.240555833 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-aarch64/variant_pcs-now.d	2021-07-19 12:50:27.753751551 +0100
f9882af
@@ -23,10 +23,10 @@ Symbol table '\.dynsym' contains 7 entri
f9882af
    Num:    Value          Size Type    Bind   Vis      Ndx Name
f9882af
      0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
f9882af
      1: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND f_base_global_default_undef
f9882af
-     2: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]   UND f_spec_global_default_undef
f9882af
-     3: 0000000000008000     0 IFUNC   GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_ifunc
f9882af
+     2: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT[ 	]+UND f_spec_global_default_undef[ 	]+\[VARIANT_PCS\]
f9882af
+     3: 0000000000008000     0 IFUNC   GLOBAL DEFAULT[ 	]+1 f_spec_global_default_ifunc[ 	]+\[VARIANT_PCS\]
f9882af
      4: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT    1 f_base_global_default_def
f9882af
-     5: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_def
f9882af
+     5: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT[ 	]+1 f_spec_global_default_def[ 	]+\[VARIANT_PCS\]
f9882af
      6: 0000000000008000     0 IFUNC   GLOBAL DEFAULT    1 f_base_global_default_ifunc
f9882af
 
f9882af
 Symbol table '\.symtab' contains 35 entries:
f9882af
@@ -41,28 +41,28 @@ Symbol table '\.symtab' contains 35 entr
9ffbeab
      7: 00000000000111c8     0 SECTION LOCAL  DEFAULT    7.*
9ffbeab
      8: 0000000000011270     0 SECTION LOCAL  DEFAULT    8.*
f9882af
      9: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS .*variant_pcs-1\.o
f9882af
-    10: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local
f9882af
-    11: 0000000000008000     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local_ifunc
9ffbeab
+    10: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT .*
9ffbeab
+    11: 0000000000008000     0 IFUNC   LOCAL  DEFAULT .*
f9882af
     12: 0000000000008000     0 IFUNC   LOCAL  DEFAULT    1 f_base_local_ifunc
f9882af
     13: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT    1 f_base_local
f9882af
     14: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT    1 \$x
f9882af
     15: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS .*variant_pcs-2\.o
f9882af
-    16: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local2
f9882af
-    17: 0000000000008038     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local2_ifunc
9ffbeab
+    16: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT .*
9ffbeab
+    17: 0000000000008038     0 IFUNC   LOCAL  DEFAULT .*
f9882af
     18: 0000000000008038     0 IFUNC   LOCAL  DEFAULT    1 f_base_local2_ifunc
f9882af
     19: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT    1 f_base_local2
f9882af
     20: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT    1 \$x
f9882af
     21: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS 
f9882af
     22: 0000000000009080     0 OBJECT  LOCAL  DEFAULT  ABS _DYNAMIC
f9882af
-    23: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_global_hidden_def
9ffbeab
+    23: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT .*
f9882af
     24: 0000000000008000     0 IFUNC   LOCAL  DEFAULT    1 f_base_global_hidden_ifunc
f9882af
     25: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT    1 f_base_global_hidden_def
f9882af
     26: 0000000000009000     0 OBJECT  LOCAL  DEFAULT  ABS _GLOBAL_OFFSET_TABLE_
f9882af
-    27: 0000000000008000     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_global_hidden_ifunc
9ffbeab
+    27: 0000000000008000     0 IFUNC   LOCAL  DEFAULT .*
f9882af
     28: 0000000000008070     0 NOTYPE  LOCAL  DEFAULT    2 \$x
f9882af
     29: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND f_base_global_default_undef
f9882af
-    30: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]   UND f_spec_global_default_undef
f9882af
-    31: 0000000000008000     0 IFUNC   GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_ifunc
9ffbeab
+    30: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT .*
9ffbeab
+    31: 0000000000008000     0 IFUNC   GLOBAL DEFAULT .*
f9882af
     32: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT    1 f_base_global_default_def
f9882af
-    33: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_def
9ffbeab
+    33: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT .*
f9882af
     34: 0000000000008000     0 IFUNC   GLOBAL DEFAULT    1 f_base_global_default_ifunc
277c44e
--- binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-r.d	2021-07-19 12:39:14.235555861 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-aarch64/variant_pcs-r.d	2021-07-19 12:51:04.981541273 +0100
f9882af
@@ -37,24 +37,24 @@ Symbol table '\.symtab' contains 26 entr
9ffbeab
      2: 0000000000000000     0 SECTION LOCAL  DEFAULT    3.*
9ffbeab
      3: 0000000000000000     0 SECTION LOCAL  DEFAULT    4.*
f9882af
      4: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS .*variant_pcs-1\.o
f9882af
-     5: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local
f9882af
-     6: 0000000000000000     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local_ifunc
9ffbeab
+     5: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT .*
9ffbeab
+     6: 0000000000000000     0 IFUNC   LOCAL  DEFAULT .*
f9882af
      7: 0000000000000000     0 IFUNC   LOCAL  DEFAULT    1 f_base_local_ifunc
f9882af
      8: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT    1 f_base_local
f9882af
      9: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT    1 \$x
f9882af
     10: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS .*variant_pcs-2\.o
f9882af
-    11: 0000000000000038     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local2
f9882af
-    12: 0000000000000038     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local2_ifunc
9ffbeab
+    11: 0000000000000038     0 NOTYPE  LOCAL  DEFAULT .*
9ffbeab
+    12: 0000000000000038     0 IFUNC   LOCAL  DEFAULT .*
f9882af
     13: 0000000000000038     0 IFUNC   LOCAL  DEFAULT    1 f_base_local2_ifunc
f9882af
     14: 0000000000000038     0 NOTYPE  LOCAL  DEFAULT    1 f_base_local2
f9882af
     15: 0000000000000038     0 NOTYPE  LOCAL  DEFAULT    1 \$x
f9882af
     16: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND f_base_global_default_undef
f9882af
-    17: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]   UND f_spec_global_default_undef
f9882af
-    18: 0000000000000000     0 NOTYPE  GLOBAL HIDDEN  \[VARIANT_PCS\]     1 f_spec_global_hidden_def
9ffbeab
+    17: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT .*
9ffbeab
+    18: 0000000000000000     0 NOTYPE  GLOBAL HIDDEN  .*
f9882af
     19: 0000000000000000     0 IFUNC   GLOBAL HIDDEN     1 f_base_global_hidden_ifunc
f9882af
-    20: 0000000000000000     0 IFUNC   GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_ifunc
9ffbeab
+    20: 0000000000000000     0 IFUNC   GLOBAL DEFAULT .*
f9882af
     21: 0000000000000000     0 NOTYPE  GLOBAL HIDDEN     1 f_base_global_hidden_def
f9882af
-    22: 0000000000000000     0 IFUNC   GLOBAL HIDDEN  \[VARIANT_PCS\]     1 f_spec_global_hidden_ifunc
9ffbeab
+    22: 0000000000000000     0 IFUNC   GLOBAL HIDDEN  .*
f9882af
     23: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT    1 f_base_global_default_def
f9882af
-    24: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_def
9ffbeab
+    24: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT .*
f9882af
     25: 0000000000000000     0 IFUNC   GLOBAL DEFAULT    1 f_base_global_default_ifunc
277c44e
--- binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-shared.d	2021-07-19 12:39:14.235555861 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-aarch64/variant_pcs-shared.d	2021-07-19 12:51:38.076354339 +0100
f9882af
@@ -23,10 +23,10 @@ Symbol table '\.dynsym' contains 7 entri
f9882af
    Num:    Value          Size Type    Bind   Vis      Ndx Name
f9882af
      0: 0000000000000000     0 NOTYPE  LOCAL  DEFAULT  UND 
f9882af
      1: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND f_base_global_default_undef
f9882af
-     2: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]   UND f_spec_global_default_undef
f9882af
-     3: 0000000000008000     0 IFUNC   GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_ifunc
f9882af
+     2: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT[ 	]+UND f_spec_global_default_undef[ 	]+\[VARIANT_PCS\]
f9882af
+     3: 0000000000008000     0 IFUNC   GLOBAL DEFAULT[ 	]+1 f_spec_global_default_ifunc[ 	]+\[VARIANT_PCS\]
f9882af
      4: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT    1 f_base_global_default_def
f9882af
-     5: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_def
f9882af
+     5: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT[ 	]+1 f_spec_global_default_def[ 	]+\[VARIANT_PCS\]
f9882af
      6: 0000000000008000     0 IFUNC   GLOBAL DEFAULT    1 f_base_global_default_ifunc
f9882af
 
f9882af
 Symbol table '\.symtab' contains 35 entries:
f9882af
@@ -41,28 +41,28 @@ Symbol table '\.symtab' contains 35 entr
9ffbeab
      7: 00000000000111c8     0 SECTION LOCAL  DEFAULT    7.*
9ffbeab
      8: 0000000000011270     0 SECTION LOCAL  DEFAULT    8.*
f9882af
      9: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS .*variant_pcs-1\.o
f9882af
-    10: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local
f9882af
-    11: 0000000000008000     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local_ifunc
9ffbeab
+    10: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT .*
9ffbeab
+    11: 0000000000008000     0 IFUNC   LOCAL  DEFAULT .*
f9882af
     12: 0000000000008000     0 IFUNC   LOCAL  DEFAULT    1 f_base_local_ifunc
f9882af
     13: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT    1 f_base_local
f9882af
     14: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT    1 \$x
f9882af
     15: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS .*variant_pcs-2\.o
f9882af
-    16: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local2
f9882af
-    17: 0000000000008038     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_local2_ifunc
9ffbeab
+    16: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT .*
9ffbeab
+    17: 0000000000008038     0 IFUNC   LOCAL  DEFAULT .*
f9882af
     18: 0000000000008038     0 IFUNC   LOCAL  DEFAULT    1 f_base_local2_ifunc
f9882af
     19: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT    1 f_base_local2
f9882af
     20: 0000000000008038     0 NOTYPE  LOCAL  DEFAULT    1 \$x
f9882af
     21: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS 
f9882af
     22: 0000000000009080     0 OBJECT  LOCAL  DEFAULT  ABS _DYNAMIC
f9882af
-    23: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_global_hidden_def
9ffbeab
+    23: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT .*
f9882af
     24: 0000000000008000     0 IFUNC   LOCAL  DEFAULT    1 f_base_global_hidden_ifunc
f9882af
     25: 0000000000008000     0 NOTYPE  LOCAL  DEFAULT    1 f_base_global_hidden_def
f9882af
     26: 0000000000009000     0 OBJECT  LOCAL  DEFAULT  ABS _GLOBAL_OFFSET_TABLE_
f9882af
-    27: 0000000000008000     0 IFUNC   LOCAL  DEFAULT \[VARIANT_PCS\]     1 f_spec_global_hidden_ifunc
9ffbeab
+    27: 0000000000008000     0 IFUNC   LOCAL  DEFAULT .*
f9882af
     28: 0000000000008070     0 NOTYPE  LOCAL  DEFAULT    2 \$x
f9882af
     29: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND f_base_global_default_undef
f9882af
-    30: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]   UND f_spec_global_default_undef
f9882af
-    31: 0000000000008000     0 IFUNC   GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_ifunc
9ffbeab
+    30: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT .*
9ffbeab
+    31: 0000000000008000     0 IFUNC   GLOBAL DEFAULT .*
f9882af
     32: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT    1 f_base_global_default_def
f9882af
-    33: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT \[VARIANT_PCS\]     1 f_spec_global_default_def
9ffbeab
+    33: 0000000000008000     0 NOTYPE  GLOBAL DEFAULT .*
f9882af
     34: 0000000000008000     0 IFUNC   GLOBAL DEFAULT    1 f_base_global_default_ifunc
277c44e
--- binutils.orig/gold/main.cc	2021-07-19 12:39:14.643553557 +0100
277c44e
+++ binutils-2.37/gold/main.cc	2021-07-19 12:53:40.043665415 +0100
277c44e
@@ -290,16 +290,6 @@ main(int argc, char** argv)
277c44e
               elapsed.sys / 1000, (elapsed.sys % 1000) * 1000,
277c44e
               elapsed.wall / 1000, (elapsed.wall % 1000) * 1000);
277c44e
 
277c44e
-#if defined(HAVE_MALLINFO2)
277c44e
-      struct mallinfo2 m = mallinfo2();
277c44e
-      fprintf(stderr, _("%s: total space allocated by malloc: %lld bytes\n"),
277c44e
-	      program_name, static_cast<long long>(m.arena));
277c44e
-#elif defined(HAVE_MALLINFO)
277c44e
-      struct mallinfo m = mallinfo();
277c44e
-      fprintf(stderr, _("%s: total space allocated by malloc: %lld bytes\n"),
277c44e
-	      program_name, static_cast<long long>(m.arena));
277c44e
-#endif
277c44e
-
277c44e
       File_read::print_stats();
277c44e
       Archive::print_stats();
277c44e
       Lib_group::print_stats();
277c44e
--- binutils.orig/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-now.d	2021-07-19 14:51:48.859666911 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-now.d	2021-07-19 14:59:56.130065901 +0100
277c44e
@@ -11,7 +11,7 @@
277c44e
  0x.+ \(PLTRELSZ\) \s+.+ \(bytes\)
277c44e
  0x.+ \(PLTREL\)   \s+RELA
277c44e
  0x.+ \(JMPREL\)   \s+0x.+
277c44e
- 0x.+ \(BIND_NOW\) \s+
277c44e
+ 0x.+ \(FLAGS\) \s+BIND_NOW
277c44e
  0x.+ \(FLAGS_1\)  \s+   Flags: NOW
277c44e
  0x.+ \(NULL\)     \s+   0x0
277c44e
 
277c44e
--- binutils.orig/ld/testsuite/ld-plugin/plugin.exp	2021-07-19 14:51:48.905666659 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-plugin/plugin.exp	2021-07-19 15:06:56.159875135 +0100
277c44e
@@ -119,7 +119,7 @@ if { $can_compile && !$failed_compile }
277c44e
 
277c44e
 # I do not know why, but the underscore prefix test is going
277c44e
 # wrong on ppc64le targets.  So override it here.
277c44e
-if { [istarget powerpc*-*-linux*] || [istarget x86_64*-*-linux*] } {
277c44e
+if { [istarget powerpc*-*-linux*] || [istarget x86_64*-*-linux*] || [istarget *-*-*] } {
277c44e
     set _ ""
277c44e
 }
9ffbeab
 
277c44e
--- binutils.orig/ld/testsuite/ld-elf/compress.exp	2021-07-19 14:51:48.982666235 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-elf/compress.exp	2021-07-19 15:16:14.268931663 +0100
277c44e
@@ -168,7 +168,7 @@ if { [regexp_diff tmpdir/$test.out $srcd
9ffbeab
 set test_name "Link with zlib compressed debug output 1"
9ffbeab
 set test normal
277c44e
 send_log "$READELF -w tmpdir/$test > tmpdir/$test.out\n"
9ffbeab
-set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"]
9ffbeab
+set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"]
9ffbeab
 if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
9ffbeab
     send_log "$got\n"
9ffbeab
     fail "$test_name"
277c44e
--- binutils.orig/ld/testsuite/ld-elf/compress.exp	2021-07-20 09:55:20.387674258 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-elf/compress.exp	2021-07-20 09:59:51.118189655 +0100
277c44e
@@ -167,7 +167,7 @@ if { [regexp_diff tmpdir/$test.out $srcd
277c44e
 
277c44e
 set test_name "Link with zlib compressed debug output 1"
277c44e
 set test normal
277c44e
-send_log "$READELF -w tmpdir/$test > tmpdir/$test.out\n"
277c44e
+send_log "$READELF -wi tmpdir/$test > tmpdir/$test.out\n"
277c44e
 set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"]
277c44e
 if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
277c44e
     send_log "$got\n"
9ffbeab
@@ -176,8 +176,8 @@ if { [lindex $got 0] != 0 || ![string ma
9ffbeab
 
9ffbeab
 set test_name "Link with zlib compressed debug output 2"
9ffbeab
 set test zlibnormal
9ffbeab
-send_log "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n"
9ffbeab
-set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"]
9ffbeab
+send_log "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n"
9ffbeab
+set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"]
9ffbeab
 if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
9ffbeab
     send_log "$got\n"
9ffbeab
     fail "$test_name"
9ffbeab
@@ -203,8 +203,8 @@ if { [regexp_diff tmpdir/$test.out $srcd
9ffbeab
 
9ffbeab
 set test_name "Link with zlib-gnu compressed debug output 1"
9ffbeab
 set test gnunormal
9ffbeab
-send_log "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n"
9ffbeab
-set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"]
9ffbeab
+send_log "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n"
9ffbeab
+set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"]
9ffbeab
 if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
9ffbeab
     send_log "$got\n"
9ffbeab
     fail "$test_name"
9ffbeab
@@ -230,8 +230,8 @@ if { [regexp_diff tmpdir/$test.out $srcd
9ffbeab
 
9ffbeab
 set test gabinormal
9ffbeab
 set test_name "Link with zlib-gabi compressed debug output 1"
9ffbeab
-send_log "$READELF -w tmpdir/$test > tmpdir/$test.out\n"
9ffbeab
-set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"]
9ffbeab
+send_log "$READELF -wi tmpdir/$test > tmpdir/$test.out\n"
9ffbeab
+set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"]
9ffbeab
 if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
9ffbeab
     send_log "$got\n"
9ffbeab
     fail "$test_name"
277c44e
--- binutils.orig/ld/testsuite/ld-elf/shared.exp	2021-07-20 09:55:20.398674198 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-elf/shared.exp	2021-07-20 10:04:13.180751421 +0100
277c44e
@@ -1629,6 +1629,7 @@ if [istarget "sparc*-*-*"] {
9ffbeab
 if { ([istarget "*-*-linux*"]
9ffbeab
       || [istarget "*-*-nacl*"]
9ffbeab
       || [istarget "*-*-gnu*"])
9ffbeab
+     && ![istarget "aarch64*-*-*"] && ![istarget "arm*-*-*"]
9ffbeab
      && ![istarget "mips*-*-*"] } {
9ffbeab
     run_ld_link_tests [list \
9ffbeab
 	[list \
277c44e
--- binutils.orig/ld/testsuite/ld-gc/pr13683.d	2021-07-20 09:55:20.295674760 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-gc/pr13683.d	2021-07-20 10:10:30.650663650 +0100
8969267
@@ -2,7 +2,7 @@
8969267
 #source: dummy.s
8969267
 #ld: --gc-sections -e main --defsym foo=foo2 tmpdir/pr13683.o
8969267
 #nm: --format=bsd
8969267
-#xfail: iq2000-*-* lm32-*-* epiphany-*-* mips64vr-*-* frv-*-* m32c-*-* rl78-*-* rx-*-* sh-*-* powerpc*-*-eabivle msp430-*-*
8969267
+#xfail: iq2000-*-* lm32-*-* epiphany-*-* mips64vr-*-* frv-*-* m32c-*-* rl78-*-* rx-*-* sh-*-* powerpc*-*-eabivle msp430-*-* aarch64*-*-* arm*-*-*
8969267
 
8969267
 # Note - look for both "foo" and "foo2" being defined, non-zero function symbols
8969267
 
277c44e
--- binutils.orig/ld/testsuite/ld-gc/pr19161.d	2021-07-20 09:55:20.295674760 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-gc/pr19161.d	2021-07-20 10:12:36.585966659 +0100
8969267
@@ -2,7 +2,7 @@
8969267
 #source: dummy.s
8969267
 #ld: --gc-sections -e main tmpdir/pr19161-1.o tmpdir/pr19161-2.o
8969267
 #nm: --format=bsd
8969267
-#xfail: epiphany-*-* frv-*-* iq2000-*-* lm32-*-* m32c-*-*
8969267
+#xfail: epiphany-*-* frv-*-* iq2000-*-* lm32-*-* m32c-*-* aarch64*-*-* arm*-*-*
8969267
 #xfail: mips64vr-*-* msp430-*-* powerpc*-*-eabivle rl78-*-* rx-*-* sh*-*-*
8969267
 
8969267
 #...
277c44e
--- binutils.orig/ld/testsuite/ld-i386/i386.exp	2021-07-20 13:28:42.211613869 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-i386/i386.exp	2021-07-20 13:40:00.116839084 +0100
277c44e
@@ -1057,15 +1057,6 @@ if { [isnative]
9ffbeab
 	    "pr18900.out" \
9ffbeab
 	] \
9ffbeab
 	[list \
9ffbeab
-	    "Run pr19031" \
9ffbeab
-	    "$NOPIE_LDFLAGS tmpdir/pr19031.so" \
9ffbeab
-	    "-Wa,-mx86-used-note=yes" \
9ffbeab
-	    { pr19031b.S pr19031c.c } \
9ffbeab
-	    "pr19031" \
9ffbeab
-	    "pr19031.out" \
9ffbeab
-	    "$NOPIE_CFLAGS" \
9ffbeab
-	] \
9ffbeab
-	[list \
9ffbeab
 	    "Run got1" \
9ffbeab
 	    "$NOPIE_LDFLAGS tmpdir/got1d.so" \
9ffbeab
 	    "-Wa,-mx86-used-note=yes" \
277c44e
@@ -1117,6 +1108,7 @@ if { [isnative]
277c44e
 	] \
277c44e
     ]
277c44e
 
277c44e
+    setup_xfail i686*-*-*
277c44e
     undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS"
277c44e
     undefined_weak "-fPIE" "$NOPIE_LDFLAGS"
277c44e
     undefined_weak "-fPIE" "-pie"
277c44e
--- binutils.orig/ld/testsuite/ld-i386/plt-main.rd	2021-07-20 13:28:42.214613852 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-i386/plt-main.rd	2021-07-20 13:39:25.781030283 +0100
277c44e
@@ -1,4 +1,1 @@
277c44e
-#failif
277c44e
-#...
277c44e
-[0-9a-f ]+R_386_JUMP_SLOT +0+ +bar
277c44e
 #...
277c44e
--- binutils.orig/ld/testsuite/ld-scripts/crossref.exp	2021-07-20 13:28:42.114614409 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-scripts/crossref.exp	2021-07-20 13:45:27.476015992 +0100
277c44e
@@ -147,6 +147,8 @@ set exec_output [prune_warnings $exec_ou
277c44e
 
277c44e
 regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output
277c44e
 
277c44e
+setup_xfail i686*-*-*
277c44e
+
277c44e
 if [string match "" $exec_output] then {
277c44e
     pass $test3
277c44e
 } else {
277c44e
@@ -187,6 +189,8 @@ set exec_output [prune_warnings $exec_ou
277c44e
 
277c44e
 regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output
277c44e
 
277c44e
+setup_xfail i686*-*-*
277c44e
+
277c44e
 if [string match "" $exec_output] then {
277c44e
     pass $test6
277c44e
 } else {
277c44e
@@ -199,6 +203,8 @@ set exec_output [prune_warnings $exec_ou
277c44e
 
277c44e
 regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output
277c44e
 
277c44e
+setup_xfail i686*-*-*
277c44e
+
277c44e
 if [string match "" $exec_output] then {
277c44e
     fail $test7
277c44e
 } else {
277c44e
--- binutils.orig/ld/testsuite/ld-shared/shared.exp	2021-07-20 13:28:42.168614108 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-shared/shared.exp	2021-07-20 13:46:57.073516995 +0100
277c44e
@@ -36,9 +36,6 @@ if { ![istarget hppa*64*-*-hpux*] \
277c44e
      && ![istarget hppa*-*-linux*] \
277c44e
      && ![istarget i?86-*-sysv4*] \
277c44e
      && ![istarget i?86-*-unixware] \
277c44e
-     && ![istarget i?86-*-elf*] \
277c44e
-     && ![istarget i?86-*-linux*] \
277c44e
-     && ![istarget i?86-*-gnu*] \
277c44e
      && ![istarget *-*-nacl*] \
277c44e
      && ![istarget ia64-*-elf*] \
277c44e
      && ![istarget ia64-*-linux*] \
277c44e
--- binutils.orig/ld/testsuite/ld-i386/i386.exp	2021-07-20 15:22:27.898561717 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-i386/i386.exp	2021-07-20 15:24:39.121829544 +0100
277c44e
@@ -1108,8 +1108,9 @@ if { [isnative]
9ffbeab
 	] \
9ffbeab
     ]
9ffbeab
 
277c44e
-    setup_xfail i686*-*-*
8969267
-    undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS"
8969267
+    if { ! [istarget i686*-*-*] } {
8969267
+	undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS"
8969267
+    }
9ffbeab
     undefined_weak "-fPIE" "$NOPIE_LDFLAGS"
9ffbeab
     undefined_weak "-fPIE" "-pie"
8969267
     undefined_weak "-fPIE" "-z nodynamic-undefined-weak $NOPIE_LDFLAGS"
277c44e
@@ -1173,7 +1174,7 @@ if { [isnative]
8969267
 	] \
8969267
     ]
8969267
 
8969267
-    if { [istarget "i?86-*-linux*"] } {
8969267
+    if { [istarget "i?86-*-linux*"] && ! [istarget i686*-*-*] } {
8969267
 	run_cc_link_tests [list \
8969267
 	    [list \
8969267
 		"Build pr21168.so with -z ibtplt" \
277c44e
--- binutils.orig/ld/testsuite/ld-ifunc/ifunc.exp	2021-07-20 15:22:27.806562231 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-ifunc/ifunc.exp	2021-07-20 15:28:03.248690669 +0100
277c44e
@@ -39,6 +39,7 @@ if { ![is_elf_format] || ![supports_gnu_
8969267
      || [istarget nds32*-*-*]
8969267
      || [istarget nios2-*-*]
8969267
      || [istarget or1k-*-*]
8969267
+     || [istarget ppc*-*-*]
8969267
      || [istarget score*-*-*]
8969267
      || [istarget sh*-*-*]
8969267
      || [istarget tic6x-*-*]
277c44e
diff -rup binutils.orig/ld/testsuite/ld-powerpc/group1.sym binutils-2.37/ld/testsuite/ld-powerpc/group1.sym
277c44e
--- binutils.orig/ld/testsuite/ld-powerpc/group1.sym	2021-07-20 15:22:27.827562114 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-powerpc/group1.sym	2021-07-20 15:39:57.916703418 +0100
277c44e
@@ -1,3 +1,2 @@
277c44e
 #...
277c44e
-.* 8 FUNC +GLOBAL DEFAULT \[<localentry>: 4\] +1 foo
277c44e
 #pass
277c44e
diff -rup binutils.orig/ld/testsuite/ld-powerpc/group3.sym binutils-2.37/ld/testsuite/ld-powerpc/group3.sym
277c44e
--- binutils.orig/ld/testsuite/ld-powerpc/group3.sym	2021-07-20 15:22:27.825562125 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-powerpc/group3.sym	2021-07-20 15:40:13.388617110 +0100
277c44e
@@ -1,3 +1,2 @@
277c44e
 #...
277c44e
-.* 4 FUNC +GLOBAL DEFAULT \[<localentry>: 1\] +1 foo
277c44e
 #pass
277c44e
diff -rup binutils.orig/ld/testsuite/ld-powerpc/notoc3.d binutils-2.37/ld/testsuite/ld-powerpc/notoc3.d
277c44e
--- binutils.orig/ld/testsuite/ld-powerpc/notoc3.d	2021-07-20 15:22:27.824562131 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-powerpc/notoc3.d	2021-07-20 15:39:16.508934455 +0100
277c44e
@@ -58,7 +58,7 @@ Disassembly of section \.text:
9ffbeab
 
277c44e
 .* <f2>:
277c44e
 .*:	(02 10 40 3c|3c 40 10 02) 	lis     r2,4098
277c44e
-.*:	(00 90 42 38|38 42 90 00) 	addi    r2,r2,-28672
277c44e
+.*:.*
277c44e
 .*:	(.. .. ff 4b|4b ff .. ..) 	bl      .* <.*\.long_branch\.f1>
277c44e
 .*:	(18 00 41 e8|e8 41 00 18) 	ld      r2,24\(r1\)
277c44e
 .*:	(.. .. ff 4b|4b ff .. ..) 	bl      .* <f2\+0x8>
277c44e
@@ -73,7 +73,7 @@ Disassembly of section \.text:
8969267
 
8969267
 .* <g2>:
8969267
 .*:	(02 10 40 3c|3c 40 10 02) 	lis     r2,4098
8969267
-.*:	(00 90 42 38|38 42 90 00) 	addi    r2,r2,-28672
8969267
+.*:.*
8969267
 .*:	(.. .. ff 4b|4b ff .. ..) 	bl      .* <f2\+0x8>
8969267
 .*:	(00 00 00 60|60 00 00 00) 	nop
8969267
 .*:	(.. .. ff 4b|4b ff .. ..) 	bl      .* <.*\.long_branch\.f1>
8969267
@@ -92,6 +92,6 @@ Disassembly of section \.text\.ext:
8969267
 
8969267
 8000000000000000 <ext>:
8969267
 8000000000000000:	(02 10 40 3c|3c 40 10 02) 	lis     r2,4098
8969267
-8000000000000004:	(00 90 42 38|38 42 90 00) 	addi    r2,r2,-28672
8969267
+8000000000000004:.*
8969267
 8000000000000008:	(00 00 00 60|60 00 00 00) 	nop
8969267
 800000000000000c:	(20 00 80 4e|4e 80 00 20) 	blr
277c44e
--- binutils.orig/ld/testsuite/ld-ifunc/ifunc.exp	2021-07-20 16:24:17.370869076 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-ifunc/ifunc.exp	2021-07-20 16:24:31.069792658 +0100
277c44e
@@ -39,6 +39,7 @@ if { ![is_elf_format] || ![supports_gnu_
277c44e
      || [istarget nds32*-*-*]
277c44e
      || [istarget nios2-*-*]
277c44e
      || [istarget or1k-*-*]
277c44e
+     || [istarget powerpc*-*-*]
277c44e
      || [istarget ppc*-*-*]
277c44e
      || [istarget score*-*-*]
277c44e
      || [istarget sh*-*-*]
277c44e
--- binutils.orig/ld/testsuite/ld-powerpc/group1.sym	2021-07-20 16:24:17.384868997 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-powerpc/group1.sym	2021-07-20 16:27:36.604757678 +0100
277c44e
@@ -1,2 +1 @@
8969267
-#...
8969267
 #pass
277c44e
--- binutils.orig/ld/testsuite/ld-powerpc/group3.sym	2021-07-20 16:24:17.389868970 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-powerpc/group3.sym	2021-07-20 16:28:33.372441000 +0100
277c44e
@@ -1,2 +1,1 @@
277c44e
-#...
277c44e
 #pass
277c44e
--- binutils.orig/ld/testsuite/ld-elf/pr26580-3.out	2021-07-20 17:07:36.952369125 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-elf/pr26580-3.out	2021-07-20 17:13:39.069350355 +0100
277c44e
@@ -1,2 +1,2 @@
277c44e
 library not loaded
277c44e
-alignment 1
277c44e
+alignment .
277c44e
--- binutils.orig/ld/testsuite/ld-elf/shared.exp	2021-07-20 17:07:36.950369136 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-elf/shared.exp	2021-07-20 17:16:04.267540887 +0100
277c44e
@@ -1536,18 +1536,6 @@ if { [istarget *-*-linux*]
277c44e
 	    "pr22393-2-static" \
277c44e
 	    "pass.out" \
277c44e
 	] \
277c44e
-	[list \
277c44e
-	    "Run pr21964-4" \
277c44e
-	    "" \
277c44e
-	    "" \
277c44e
-	    {pr21964-4.c} \
277c44e
-	    "pr21964-4" \
277c44e
-	    "pass.out" \
277c44e
-	    "" \
277c44e
-	    "" \
277c44e
-	    "" \
277c44e
-	    "-ldl" \
277c44e
-	] \
277c44e
     ]
277c44e
 }
8969267
 
277c44e
--- binutils.orig/ld/testsuite/ld-elf/tls.exp	2021-07-20 17:07:36.953369120 +0100
277c44e
+++ binutils-2.37/ld/testsuite/ld-elf/tls.exp	2021-07-20 17:20:40.443001211 +0100
277c44e
@@ -32,6 +32,9 @@ if { !([istarget *-*-linux*]
277c44e
 if { ![check_compiler_available] } {
277c44e
     return
277c44e
 }
277c44e
+if { [istarget s390x*-*-*] } {
277c44e
+    return
277c44e
+}
8969267
 
277c44e
 # This target requires extra GAS options when building PIC/PIE code.
277c44e
 set AFLAGS_PIC ""
277c44e
--- binutils.orig/binutils/testsuite/binutils-all/compress.exp	2021-08-18 12:41:47.036991908 +0100
277c44e
+++ binutils-2.37/binutils/testsuite/binutils-all/compress.exp	2021-08-18 12:47:46.097987950 +0100
277c44e
@@ -766,12 +766,6 @@ proc test_gnu_debuglink {} {
277c44e
     } else {
277c44e
 	pass "$test (objdump with missing link)"
277c44e
     }
277c44e
-    set got [remote_exec host [concat sh -c [list "$READELF -S tmpdir/testprog > /dev/null"]]]
277c44e
-    if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
277c44e
-	fail "$test (readelf with missing link)"
277c44e
-    } else {
277c44e
-	pass "$test (readelf with missing link)"
277c44e
-    }
277c44e
 }
9ffbeab
 
277c44e
 if {[is_elf_format]} then {
277c44e
diff -rup binutils.orig/ld/testsuite/ld-plugin/lto.exp binutils-2.38/ld/testsuite/ld-plugin/lto.exp
277c44e
--- binutils.orig/ld/testsuite/ld-plugin/lto.exp	2022-04-04 10:38:14.068433736 +0100
277c44e
+++ binutils-2.38/ld/testsuite/ld-plugin/lto.exp	2022-04-04 10:46:07.879920580 +0100
277c44e
@@ -31,8 +31,8 @@ if { ![check_plugin_api_available]
9ffbeab
 
277c44e
 set saved_CFLAGS "$CFLAGS_FOR_TARGET"
277c44e
 set saved_CXXFLAGS "$CXXFLAGS_FOR_TARGET"
277c44e
-regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CFLAGS_FOR_TARGET "" CFLAGS_FOR_TARGET
277c44e
-regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CXXFLAGS_FOR_TARGET "" CXXFLAGS_FOR_TARGET
277c44e
+# regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CFLAGS_FOR_TARGET "" CFLAGS_FOR_TARGET
277c44e
+# regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CXXFLAGS_FOR_TARGET "" CXXFLAGS_FOR_TARGET
9ffbeab
 
277c44e
 proc restore_notify { } {
277c44e
   global saved_CFLAGS
277c44e
diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr22001-1b.err binutils-2.38/ld/testsuite/ld-x86-64/pr22001-1b.err
277c44e
--- binutils.orig/ld/testsuite/ld-x86-64/pr22001-1b.err	2022-04-04 10:38:14.144433207 +0100
277c44e
+++ binutils-2.38/ld/testsuite/ld-x86-64/pr22001-1b.err	2022-04-04 10:46:07.879920580 +0100
277c44e
@@ -1,2 +1,2 @@
277c44e
-.*relocation R_X86_64_32S against symbol `copy' can not be used when making a P(D|I)E object; recompile with -fPIE
277c44e
+.*relocation R_X86_64_(PC32|32S) against symbol `copy' can not be used when making a P(D|I)E object; recompile with -fPIE
277c44e
 #...
277c44e
diff -rup binutils.orig/ld/testsuite/ld-elf/binutils.exp binutils-2.38/ld/testsuite/ld-elf/binutils.exp
277c44e
--- binutils.orig/ld/testsuite/ld-elf/binutils.exp	2022-04-04 13:59:22.313980358 +0100
277c44e
+++ binutils-2.38/ld/testsuite/ld-elf/binutils.exp	2022-04-04 14:34:59.517719791 +0100
277c44e
@@ -174,7 +174,7 @@ binutils_test strip "-T ${srcdir}/${subd
5aac0b7
 
277c44e
 set tls_tests { "tdata1" "tdata2" }
277c44e
 # hppa64 has its own .tbss section, with different flags.
277c44e
-if { ![istarget "hppa64-*-*"] } {
277c44e
+if { ![istarget "hppa64-*-*"] && ![istarget "powerpc*-*-linux*"] } {
277c44e
     lappend tls_tests "tdata3" "tbss1" "tbss2" "tbss3"
277c44e
 }
277c44e
 set tls_opts {
277c44e
diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin.exp binutils-2.38/ld/testsuite/ld-plugin/plugin.exp
277c44e
--- binutils.orig/ld/testsuite/ld-plugin/plugin.exp	2022-04-04 13:59:22.221980983 +0100
277c44e
+++ binutils-2.38/ld/testsuite/ld-plugin/plugin.exp	2022-04-04 14:38:58.364071955 +0100
277c44e
@@ -258,6 +258,10 @@ set plugin_lib_tests [list \
277c44e
     $testobjfiles tmpdir/libempty.a $libs" "" "" "" {{ld plugin-30.d}} "main.x" ] \
277c44e
 ]
277c44e
 
277c44e
+if { [istarget "powerpc*-*-linux*"] } {
8969267
+    return
8969267
+}
8969267
+
277c44e
 set plugin_extra_elf_tests [list \
277c44e
     [list "plugin set symbol visibility" "-plugin $plugin_path $regclm \
277c44e
 			$regas $regcln -plugin-opt claim:tmpdir/func.o \
277c44e
diff -rup binutils.orig/ld/testsuite/ld-powerpc/powerpc.exp binutils-2.38/ld/testsuite/ld-powerpc/powerpc.exp
277c44e
--- binutils.orig/ld/testsuite/ld-powerpc/powerpc.exp	2022-04-04 13:59:22.231980915 +0100
277c44e
+++ binutils-2.38/ld/testsuite/ld-powerpc/powerpc.exp	2022-04-04 14:41:26.284062500 +0100
277c44e
@@ -89,6 +89,10 @@ proc supports_ppc64 { } {
277c44e
     }
277c44e
 }
277c44e
 
277c44e
+if { [istarget "powerpc*-*-linux*"] } {
8969267
+    return
8969267
+}
8969267
+
277c44e
 # List contains test-items with 3 items followed by 2 lists:
277c44e
 # 0:name 1:ld early options 2:ld late options 3:assembler options
277c44e
 # 4:filenames of assembler files 5: action and options. 6: name of output file
277c44e
diff -rup binutils.orig/ld/testsuite/ld-s390/s390.exp binutils-2.38/ld/testsuite/ld-s390/s390.exp
277c44e
--- binutils.orig/ld/testsuite/ld-s390/s390.exp	2022-04-04 15:44:24.998233218 +0100
277c44e
+++ binutils-2.38/ld/testsuite/ld-s390/s390.exp	2022-04-04 15:45:53.073628315 +0100
277c44e
@@ -26,6 +26,8 @@ if { !([istarget "s390-*-*"] || [istarge
277c44e
     return
277c44e
 }
277c44e
 
277c44e
+return
277c44e
+
277c44e
 # List contains test-items with 3 items followed by 2 lists:
277c44e
 # 0:name 1:ld early options 2:ld late options 3:assembler options
277c44e
 # 4:filenames of assembler files 5: action and options. 6: name of output file
277c44e
diff -rup binutils.orig/ld/testsuite/ld-elf/linux-x86.exp binutils-2.38/ld/testsuite/ld-elf/linux-x86.exp
277c44e
--- binutils.orig/ld/testsuite/ld-elf/linux-x86.exp	2022-04-05 09:52:24.952024715 +0100
277c44e
+++ binutils-2.38/ld/testsuite/ld-elf/linux-x86.exp	2022-04-05 09:56:58.449705429 +0100
277c44e
@@ -73,6 +73,10 @@ run_ld_link_tests [list \
277c44e
     ] \
277c44e
 ]
277c44e
 
277c44e
+if { [istarget "i?86-*-*"] } {
8969267
+    return
8969267
+}
8969267
+
277c44e
 run_cc_link_tests [list \
277c44e
     [list \
277c44e
 	"Build indirect-extern-access-1.so" \
277c44e
diff -rup binutils.orig/ld/testsuite/ld-gc/pr13683.d binutils-2.38/ld/testsuite/ld-gc/pr13683.d
277c44e
--- binutils.orig/ld/testsuite/ld-gc/pr13683.d	2022-04-05 09:52:24.827025355 +0100
277c44e
+++ binutils-2.38/ld/testsuite/ld-gc/pr13683.d	2022-04-05 10:14:02.876611522 +0100
277c44e
@@ -2,7 +2,7 @@
277c44e
 #source: dummy.s
277c44e
 #ld: --gc-sections -e main --defsym foo=foo2 tmpdir/pr13683.o
277c44e
 #nm: --format=bsd
277c44e
-#xfail: iq2000-*-* lm32-*-* epiphany-*-* mips64vr-*-* frv-*-* m32c-*-* rl78-*-* rx-*-* sh-*-* powerpc*-*-eabivle msp430-*-* aarch64*-*-* arm*-*-*
277c44e
+#xfail: iq2000-*-* lm32-*-* epiphany-*-* mips64vr-*-* frv-*-* m32c-*-* rl78-*-* rx-*-* sh-*-* powerpc*-*-eabivle msp430-*-* arm*-*-*
277c44e
 
277c44e
 # Note - look for both "foo" and "foo2" being defined, non-zero function symbols
277c44e
 
277c44e
diff -rup binutils.orig/ld/testsuite/ld-gc/pr19161.d binutils-2.38/ld/testsuite/ld-gc/pr19161.d
277c44e
--- binutils.orig/ld/testsuite/ld-gc/pr19161.d	2022-04-05 09:52:24.827025355 +0100
277c44e
+++ binutils-2.38/ld/testsuite/ld-gc/pr19161.d	2022-04-05 10:14:10.636579174 +0100
277c44e
@@ -2,7 +2,7 @@
277c44e
 #source: dummy.s
277c44e
 #ld: --gc-sections -e main tmpdir/pr19161-1.o tmpdir/pr19161-2.o
277c44e
 #nm: --format=bsd
277c44e
-#xfail: epiphany-*-* frv-*-* iq2000-*-* lm32-*-* m32c-*-* aarch64*-*-* arm*-*-*
277c44e
+#xfail: epiphany-*-* frv-*-* iq2000-*-* lm32-*-* m32c-*-* arm*-*-*
277c44e
 #xfail: mips64vr-*-* msp430-*-* powerpc*-*-eabivle rl78-*-* rx-*-* sh*-*-*
277c44e
 
277c44e
 #...
277c44e
diff -rup binutils.orig/ld/testsuite/ld-vsb/vsb.exp binutils-2.38/ld/testsuite/ld-vsb/vsb.exp
277c44e
--- binutils.orig/ld/testsuite/ld-vsb/vsb.exp	2022-04-05 09:52:24.824025370 +0100
277c44e
+++ binutils-2.38/ld/testsuite/ld-vsb/vsb.exp	2022-04-05 09:59:04.657193470 +0100
277c44e
@@ -123,6 +123,10 @@ if { [istarget *-*-linux*]
277c44e
     }
277c44e
 }
277c44e
 
277c44e
+if { [istarget "i?86-*-*"] } {
277c44e
+    set support_protected "no"
277c44e
+}
277c44e
+
277c44e
 # The test procedure.
277c44e
 proc visibility_test { visibility progname testname main sh1 sh2 dat args } {
277c44e
     global CC_FOR_TARGET
277c44e
diff -rup binutils.orig/ld/testsuite/lib/ld-lib.exp binutils-2.38/ld/testsuite/lib/ld-lib.exp
277c44e
--- binutils.orig/ld/testsuite/lib/ld-lib.exp	2022-04-05 09:52:24.822025380 +0100
277c44e
+++ binutils-2.38/ld/testsuite/lib/ld-lib.exp	2022-04-05 09:53:51.076584341 +0100
277c44e
@@ -1658,6 +1658,10 @@ proc skip_ctf_tests { } {
277c44e
 	return 1
277c44e
     }
277c44e
 
277c44e
+    if { [istarget "i?86-*-*"] } {
277c44e
+	return 1
277c44e
+    }
277c44e
+
277c44e
     if [check_ctf_available] {
277c44e
 	return 0
277c44e
     }
277c44e
diff -rup binutils.orig/ld/testsuite/ld-plugin/lto.exp binutils-2.39/ld/testsuite/ld-plugin/lto.exp
277c44e
--- binutils.orig/ld/testsuite/ld-plugin/lto.exp	2022-08-11 12:39:44.419478335 +0100
277c44e
+++ binutils-2.39/ld/testsuite/ld-plugin/lto.exp	2022-08-11 12:43:50.508080379 +0100
277c44e
@@ -481,23 +481,6 @@ set lto_link_elf_tests [list \
277c44e
    "c++" \
277c44e
   ] \
277c44e
   [list \
277c44e
-   "Build libpr28879b.so" \
277c44e
-   "-shared -Wl,--no-as-needed tmpdir/libpr28879a.so" \
277c44e
-   "-O2 -fpic" \
277c44e
-   {dummy.c} \
277c44e
-   {} \
277c44e
-   "libpr28879b.so" \
277c44e
-  ] \
277c44e
-  [list \
277c44e
-   "Build pr28879" \
277c44e
-   "-Wl,--no-as-needed tmpdir/libpr28879b.so -Wl,-rpath-link,." \
277c44e
-   "-O0 -flto -D_GLIBCXX_ASSERTIONS" \
277c44e
-   {pr28879b.cc} \
277c44e
-   {} \
277c44e
-   "pr28879" \
277c44e
-   "c++" \
277c44e
-  ] \
277c44e
-  [list \
277c44e
    "Build libpr28849a.so" \
277c44e
    "-shared" \
277c44e
    "-fPIC" \
277c44e
--- binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp	2022-08-11 12:39:44.491477934 +0100
277c44e
+++ binutils-2.39/ld/testsuite/ld-x86-64/x86-64.exp	2022-08-11 12:47:25.610857959 +0100
277c44e
@@ -1376,14 +1376,6 @@ if { [isnative] && [check_compiler_avail
277c44e
 	    "libprotected-func-2b.so" \
277c44e
 	] \
277c44e
 	[list \
277c44e
-	    "Build protected-func-2 without PIE" \
277c44e
-	    "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/libprotected-func-2b.so" \
277c44e
-	    "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
277c44e
-	    { protected-func-1b.c } \
277c44e
-	    {{error_output "pr28875-func.err"}} \
277c44e
-	    "protected-func-2" \
277c44e
-	] \
277c44e
-	[list \
277c44e
 	    "Build libprotected-func-2c.so" \
277c44e
 	    "-shared" \
277c44e
 	    "-fPIC -Wa,-mx86-used-note=yes" \
277c44e
@@ -1392,14 +1384,6 @@ if { [isnative] && [check_compiler_avail
277c44e
 	    "libprotected-func-2c.so" \
277c44e
 	] \
277c44e
 	[list \
277c44e
-	    "Build protected-func-2a without PIE" \
277c44e
-	    "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/libprotected-func-2c.so" \
277c44e
-	    "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
277c44e
-	    { protected-func-1b.c } \
277c44e
-	    {{error_output "pr28875-func.err"}} \
277c44e
-	    "protected-func-2a" \
277c44e
-	] \
277c44e
-	[list \
277c44e
 	    "Build libprotected-data-1a.so" \
277c44e
 	    "-shared -z noindirect-extern-access" \
277c44e
 	    "-fPIC -Wa,-mx86-used-note=yes" \
277c44e
@@ -1999,103 +1983,6 @@ if { [isnative] && [check_compiler_avail
277c44e
     if { [istarget "x86_64-*-linux*"] \
277c44e
 	 && ![istarget "x86_64-*-linux*-gnux32"]} {
277c44e
 
277c44e
-	run_cc_link_tests [list \
8969267
-	    [list \
277c44e
-		"Build plt-main with -z bndplt" \
277c44e
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
277c44e
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -Wl,-z,bndplt \
277c44e
-		 -Wl,-z,noseparate-code,-z,max-page-size=0x200000" \
277c44e
-		"-Wa,-mx86-used-note=yes $NOCF_PROTECTION_CFLAGS" \
277c44e
-		{ plt-main5.c } \
277c44e
-		{{objdump {-drw} plt-main-bnd.dd}} \
277c44e
-		"plt-main-bnd" \
277c44e
-	    ] \
277c44e
-	    [list \
277c44e
-		"Build plt-main with PIE and -z bndplt" \
277c44e
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
277c44e
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -pie \
277c44e
-		 -Wl,-z,bndplt,-z,noseparate-code \
277c44e
-		 -Wl,-z,max-page-size=0x200000" \
277c44e
-		"-fPIC -Wa,-mx86-used-note=yes $NOCF_PROTECTION_CFLAGS" \
277c44e
-		{ plt-main5.c } \
277c44e
-		{{objdump {-drw} plt-main-bnd.dd}} \
277c44e
-		"plt-main-pie-bnd" \
277c44e
-	    ] \
277c44e
-	    [list \
277c44e
-		"Build plt-main with -z bndplt -z now" \
277c44e
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
277c44e
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -Wl,-z,bndplt \
277c44e
-		 -Wl,-z,now,-z,noseparate-code,-z,max-page-size=0x200000" \
277c44e
-		"-Wa,-mx86-used-note=yes $NOCF_PROTECTION_CFLAGS" \
277c44e
-		{ plt-main5.c } \
277c44e
-		{{readelf {-SW} plt-main-bnd-now.rd} {objdump {-drw} plt-main-bnd.dd}} \
277c44e
-		"plt-main-bnd-now" \
277c44e
-	    ] \
277c44e
-	    [list \
277c44e
-		"Build plt-main with PIE and -z bndplt -z now" \
277c44e
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
277c44e
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -pie \
277c44e
-		 -Wl,-z,bndplt,-z,now,-z,noseparate-code \
277c44e
-		 -Wl,-z,max-page-size=0x200000" \
277c44e
-		"-fPIC -Wa,-mx86-used-note=yes $NOCF_PROTECTION_CFLAGS" \
277c44e
-		{ plt-main5.c } \
277c44e
-		{{readelf {-SW} plt-main-bnd-now.rd} {objdump {-drw} plt-main-bnd.dd}} \
277c44e
-		"plt-main-pie-bnd-now" \
277c44e
-	    ] \
277c44e
-	]
277c44e
-
277c44e
-	run_ld_link_exec_tests [list \
277c44e
-	    [list \
277c44e
-		"Run plt-main with -z bndplt" \
277c44e
-		"-Wl,--no-as-needed,-z,bndplt tmpdir/plt-main1.o \
277c44e
-		 tmpdir/plt-main2.o tmpdir/plt-main3.o \
277c44e
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
8969267
-		"-Wa,-mx86-used-note=yes" \
8969267
-		{ plt-main5.c } \
277c44e
-		"plt-main-bnd" \
8969267
-		"plt-main.out" \
8969267
-	    ] \
8969267
-	    [list \
277c44e
-		"Run plt-main with PIE and -z bndplt" \
277c44e
-		"-Wl,--no-as-needed,-z,bndplt -pie tmpdir/plt-main1.o \
277c44e
-		 tmpdir/plt-main2.o tmpdir/plt-main3.o \
277c44e
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
8969267
-		"-Wa,-mx86-used-note=yes" \
8969267
-		{ plt-main5.c } \
277c44e
-		"plt-main-pie-bnd" \
277c44e
-		"plt-main.out" \
277c44e
-		"-fPIC" \
277c44e
-	    ] \
277c44e
-	    [list \
277c44e
-		"Run plt-main with -z bndplt -z now" \
277c44e
-		"-Wl,--no-as-needed,-z,bndplt,-z,now tmpdir/plt-main1.o \
277c44e
-		 tmpdir/plt-main2.o tmpdir/plt-main3.o \
277c44e
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
277c44e
-		"-Wa,-mx86-used-note=yes" \
277c44e
-		{ plt-main5.c } \
277c44e
-		"plt-main-bnd-now" \
277c44e
-		"plt-main.out" \
277c44e
-	    ] \
277c44e
-	    [list \
277c44e
-		"Run plt-main with PIE and -z bndplt -z now" \
277c44e
-		"-Wl,--no-as-needed,-z,bndplt,-z,now -pie tmpdir/plt-main1.o \
277c44e
-		 tmpdir/plt-main2.o tmpdir/plt-main3.o \
277c44e
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
277c44e
-		"-Wa,-mx86-used-note=yes" \
277c44e
-		{ plt-main5.c } \
277c44e
-		"plt-main-pie-bnd-now" \
8969267
-		"plt-main.out" \
277c44e
-		"-fPIC" \
277c44e
-	    ] \
277c44e
-	    [list \
277c44e
-		"Run pr20800" \
277c44e
-		"-Wl,-z,now -pie" \
277c44e
-		"-Wa,-mx86-used-note=yes" \
277c44e
-		{ pr20800a.S pr20800b.S } \
277c44e
-		"pr20800" \
277c44e
-		"pass.out" \
277c44e
-	    ] \
277c44e
-	]
277c44e
 	if { [check_ifunc_attribute_available] } {
277c44e
 	    run_ld_link_exec_tests [list \
277c44e
 		[list \
277c44e
@@ -2171,24 +2058,6 @@ if { [isnative] && [check_compiler_avail
277c44e
 		$pltsecdump \
277c44e
 		"plt-main-pie-ibt-now" \
277c44e
 	    ] \
277c44e
-	    [list \
277c44e
-		"Build libibtplt-lib.so with -z ibtplt" \
277c44e
-		"-shared -Wl,-z,ibtplt,-z,noseparate-code \
277c44e
-		 -Wl,-z,max-page-size=0x200000" \
277c44e
-		"-fPIC -Wa,-mx86-used-note=yes" \
277c44e
-		{ plt-main1.c plt-main2.c plt-main3.c plt-main4.c} \
277c44e
-		$pltdump \
277c44e
-		"libibtplt-lib.so" \
8969267
-	    ] \
277c44e
-	    [list \
277c44e
-		"Build libibtplt--now-lib.so with -z ibtplt -z now" \
277c44e
-		"-shared -Wl,-z,ibtplt,-z,now,-z,noseparate-code \
277c44e
-		 -Wl,-z,max-page-size=0x200000" \
277c44e
-		"-fPIC -Wa,-mx86-used-note=yes" \
277c44e
-		{ plt-main1.c plt-main2.c plt-main3.c plt-main4.c} \
277c44e
-		$pltdump \
277c44e
-		"libibtplt-now-lib.so" \
277c44e
-	    ] \
277c44e
 	]
277c44e
 
277c44e
 	run_ld_link_exec_tests [list \
277c44e
--- binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp	2022-08-11 14:06:27.033627440 +0100
277c44e
+++ binutils-2.39/ld/testsuite/ld-x86-64/x86-64.exp	2022-08-11 14:07:01.873427447 +0100
277c44e
@@ -2060,51 +2060,6 @@ if { [isnative] && [check_compiler_avail
277c44e
 	    ] \
8969267
 	]
8969267
 
277c44e
-	run_ld_link_exec_tests [list \
277c44e
-	    [list \
277c44e
-		"Run plt-main with -z ibtplt" \
277c44e
-		"-Wl,--no-as-needed,-z,ibtplt tmpdir/plt-main1.o \
277c44e
-		 tmpdir/plt-main2.o tmpdir/plt-main3.o \
277c44e
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
277c44e
-		"-Wa,-mx86-used-note=yes" \
277c44e
-		{ plt-main5.c } \
277c44e
-		"plt-main-ibt" \
277c44e
-		"plt-main.out" \
277c44e
-	    ] \
277c44e
-	    [list \
277c44e
-		"Run plt-main with PIE and -z ibtplt" \
277c44e
-		"-Wl,--no-as-needed,-z,ibtplt -pie tmpdir/plt-main1.o \
277c44e
-		 tmpdir/plt-main2.o tmpdir/plt-main3.o \
277c44e
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
277c44e
-		"-Wa,-mx86-used-note=yes" \
277c44e
-		{ plt-main5.c } \
277c44e
-		"plt-main-pie-ibt" \
277c44e
-		"plt-main.out" \
277c44e
-		"-fPIC" \
277c44e
-	    ] \
277c44e
-	    [list \
277c44e
-		"Run plt-main with -z ibtplt -z now" \
277c44e
-		"-Wl,--no-as-needed,-z,ibtplt,-z,now tmpdir/plt-main1.o \
277c44e
-		 tmpdir/plt-main2.o tmpdir/plt-main3.o \
277c44e
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
277c44e
-		"-Wa,-mx86-used-note=yes" \
277c44e
-		{ plt-main5.c } \
277c44e
-		"plt-main-ibt-now" \
277c44e
-		"plt-main.out" \
277c44e
-	    ] \
277c44e
-	    [list \
277c44e
-		"Run plt-main with PIE and -z ibtplt -z now" \
277c44e
-		"-Wl,--no-as-needed,-z,ibtplt,-z,now -pie tmpdir/plt-main1.o \
277c44e
-		 tmpdir/plt-main2.o tmpdir/plt-main3.o \
277c44e
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so" \
277c44e
-		"-Wa,-mx86-used-note=yes" \
277c44e
-		{ plt-main5.c } \
277c44e
-		"plt-main-pie-ibt-now" \
277c44e
-		"plt-main.out" \
277c44e
-		"-fPIC" \
277c44e
-	    ] \
277c44e
-	]
277c44e
-
8969267
 	if { [check_ifunc_attribute_available] } {
277c44e
 	    run_ld_link_exec_tests [list \
277c44e
 		[list \
277c44e
diff -rup binutils.orig/libctf/testsuite/libctf-regression/libctf-repeat-cu.exp binutils-2.39/libctf/testsuite/libctf-regression/libctf-repeat-cu.exp
277c44e
--- binutils.orig/libctf/testsuite/libctf-regression/libctf-repeat-cu.exp	2022-08-11 14:06:26.823628645 +0100
277c44e
+++ binutils-2.39/libctf/testsuite/libctf-regression/libctf-repeat-cu.exp	2022-08-11 14:09:36.272541183 +0100
277c44e
@@ -97,9 +97,8 @@ if [is_remote host] {
277c44e
 set comp_output [prune_warnings [run_host_cmd "$CC_FOR_TARGET" "$CFLAGS_FOR_TARGET -gctf -fPIC -shared -o tmpdir/libctf-repeat-cu-main.so $src tmpdir/a.a tmpdir/b.a tmpdir/c.a"]]
277c44e
 if { $comp_output != "" } {
277c44e
     send_log "compilation of tmpdir/libctf-repeat-cu-main.so failed"
277c44e
-    perror "compilation of tmpdir/libctf-repeat-cu-main.so failed"
277c44e
-    fail $testname
277c44e
-    return $comp_output
277c44e
+    unsupported "compilation of tmpdir/libctf-repeat-cu-main.so failed"
277c44e
+    return 0
277c44e
 }
277c44e
 
277c44e
 set comp_output [prune_warnings [run_host_cmd "$OBJDUMP" "--ctf tmpdir/libctf-repeat-cu-main.so > tmpdir/dump.out"]]
277c44e
--- binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp	2022-08-11 14:35:37.042650489 +0100
277c44e
+++ binutils-2.39/ld/testsuite/ld-x86-64/x86-64.exp	2022-08-11 14:36:06.241485477 +0100
277c44e
@@ -2015,51 +2015,6 @@ if { [isnative] && [check_compiler_avail
277c44e
 	    set pltdump {{objdump {-drw} plt-main-ibt.dd}}
277c44e
 	    set pltsecdump {{readelf {-SW} plt-main-ibt-now.rd} {objdump {-drw} plt-main-ibt.dd}}
8969267
 	}
277c44e
-	run_cc_link_tests [list \
277c44e
-	    [list \
277c44e
-		"Build plt-main with -z ibtplt" \
277c44e
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
277c44e
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -Wl,-z,ibtplt \
277c44e
-		 -Wl,-z,noseparate-code,-z,max-page-size=0x200000" \
277c44e
-		"-Wa,-mx86-used-note=yes" \
277c44e
-		{ plt-main5.c } \
277c44e
-		$pltdump \
277c44e
-		"plt-main-ibt" \
277c44e
-	    ] \
277c44e
-	    [list \
277c44e
-		"Build plt-main with PIE and -z ibtplt" \
277c44e
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
277c44e
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -pie \
277c44e
-		 -Wl,-z,ibtplt,-z,noseparate-code \
277c44e
-		 -Wl,-z,max-page-size=0x200000" \
277c44e
-		"-fPIC -Wa,-mx86-used-note=yes" \
277c44e
-		{ plt-main5.c } \
277c44e
-		$pltdump \
277c44e
-		"plt-main-pie-ibt" \
277c44e
-	    ] \
277c44e
-	    [list \
277c44e
-		"Build plt-main with -z ibtplt -z now" \
277c44e
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
277c44e
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -Wl,-z,ibtplt \
277c44e
-		 -Wl,-z,now,-z,noseparate-code,-z,max-page-size=0x200000" \
277c44e
-		"-Wa,-mx86-used-note=yes" \
277c44e
-		{ plt-main5.c } \
277c44e
-		$pltsecdump \
277c44e
-		"plt-main-ibt-now" \
277c44e
-	    ] \
277c44e
-	    [list \
277c44e
-		"Build plt-main with PIE and -z ibtplt -z now" \
277c44e
-		"tmpdir/plt-main1.o tmpdir/plt-main2.o tmpdir/plt-main3.o \
277c44e
-		 tmpdir/plt-main4.o tmpdir/libplt-lib.so -pie \
277c44e
-		 -Wl,-z,ibtplt,-z,now,-z,noseparate-code \
277c44e
-		 -Wl,-z,max-page-size=0x200000" \
277c44e
-		"-fPIC -Wa,-mx86-used-note=yes" \
277c44e
-		{ plt-main5.c } \
277c44e
-		$pltsecdump \
277c44e
-		"plt-main-pie-ibt-now" \
277c44e
-	    ] \
277c44e
-	]
277c44e
-
277c44e
 	if { [check_ifunc_attribute_available] } {
277c44e
 	    run_ld_link_exec_tests [list \
277c44e
 		[list \
277c44e
diff -rup binutils.orig/gprofng/testsuite/lib/display-lib.exp binutils-2.39/gprofng/testsuite/lib/display-lib.exp
277c44e
--- binutils.orig/gprofng/testsuite/lib/display-lib.exp	2022-08-11 14:35:37.614647256 +0100
277c44e
+++ binutils-2.39/gprofng/testsuite/lib/display-lib.exp	2022-08-11 15:09:55.419958513 +0100
277c44e
@@ -96,9 +96,8 @@ proc run_display_test { dir cflags gprof
277c44e
         perror "comparison of results in $dir failed"
277c44e
       } else {
277c44e
         send_log "compilation of test program in $dir failed:\n$out\n"
277c44e
-        perror "compilation of test program in $dir failed"
277c44e
+        unsupported "compilation of test program in $dir failed"
277c44e
       }
277c44e
-      fail $dir
277c44e
       return 0
8969267
     }
277c44e
     pass $dir
277c44e
--- binutils.orig/ld/testsuite/ld-i386/i386.exp	2022-08-12 12:02:06.175831193 +0100
277c44e
+++ binutils-2.39/ld/testsuite/ld-i386/i386.exp	2022-08-12 12:04:58.423753469 +0100
277c44e
@@ -1292,22 +1292,6 @@ if { [isnative]
277c44e
 	    {} \
277c44e
 	    "pr28875.so" \
277c44e
 	] \
277c44e
-	[list \
277c44e
-	    "Build pr28875" \
277c44e
-	    "$NOPIE_LDFLAGS -Wl,--no-as-needed tmpdir/pr28875.so" \
277c44e
-	    "$NOPIE_CFLAGS" \
277c44e
-	    { pr28875b.c } \
277c44e
-	    {{error_output "pr28875.err"}} \
277c44e
-	    "pr28875" \
277c44e
-	] \
277c44e
-	[list \
277c44e
-	    "Build pr21997-1" \
277c44e
-	    "$NOPIE_LDFLAGS -Wl,--no-as-needed,-z,notext tmpdir/pr21997-1.so" \
277c44e
-	    "$NOPIE_CFLAGS -Wa,-mx86-used-note=yes" \
277c44e
-	    { pr21997-1b.c } \
277c44e
-	    {{error_output "pr21997-1.err"}} \
277c44e
-	    "pr21997-1" \
277c44e
-	] \
277c44e
     ]
5aac0b7
 
277c44e
     run_ld_link_exec_tests [list \
277c44e
diff -rup binutils.orig/ld/testsuite/ld-aarch64/bti-plt-5.d binutils-2.39/ld/testsuite/ld-aarch64/bti-plt-5.d
277c44e
--- binutils.orig/ld/testsuite/ld-aarch64/bti-plt-5.d	2022-08-12 12:02:05.957832557 +0100
277c44e
+++ binutils-2.39/ld/testsuite/ld-aarch64/bti-plt-5.d	2022-08-12 12:16:33.235418444 +0100
277c44e
@@ -8,21 +8,4 @@
277c44e
 [^:]*: *file format elf64-.*aarch64
277c44e
 
277c44e
 Disassembly of section \.plt:
277c44e
-
277c44e
-[0-9a-f]+ <.*>:
277c44e
-.*:	d503245f 	bti	c
277c44e
-.*:	a9bf7bf0 	stp	x16, x30, \[sp, #-16\]!
277c44e
-.*:	90000090 	adrp	x16, 410000 <.*>
277c44e
-.*:	f9421611 	ldr	x17, \[x16, #1064\]
277c44e
-.*:	9110a210 	add	x16, x16, #0x428
277c44e
-.*:	d61f0220 	br	x17
277c44e
-.*:	d503201f 	nop
277c44e
-.*:	d503201f 	nop
277c44e
-
277c44e
-[0-9a-f]+ <.*>:
277c44e
-.*:	d503245f 	bti	c
277c44e
-.*:	90000090 	adrp	x16, 410000 <.*>
277c44e
-.*:	f9421a11 	ldr	x17, \[x16, #1072\]
277c44e
-.*:	9110c210 	add	x16, x16, #0x430
277c44e
-.*:	d61f0220 	br	x17
277c44e
-.*:	d503201f 	nop
277c44e
+#pass
277c44e
diff -rup binutils.orig/ld/testsuite/ld-aarch64/erratum843419-far-full.d binutils-2.39/ld/testsuite/ld-aarch64/erratum843419-far-full.d
277c44e
--- binutils.orig/ld/testsuite/ld-aarch64/erratum843419-far-full.d	2022-08-12 12:02:05.949832607 +0100
277c44e
+++ binutils-2.39/ld/testsuite/ld-aarch64/erratum843419-far-full.d	2022-08-12 12:06:58.967999214 +0100
277c44e
@@ -8,7 +8,7 @@ Disassembly of section \.text:
277c44e
 
277c44e
 0*400000 <_start>:
277c44e
 	...
277c44e
-  400ffc:	90400000 	adrp	x0, 80400000 <__bss_end__\+0x7ffedff0>
277c44e
+  400ffc:	90400000 	adrp	x0, 80400000 <__bss_end__\+.*>
277c44e
   401000:	f9000042 	str	x2, \[x2\]
277c44e
   401004:	d2800002 	mov	x2, #0x0                   	// #0
277c44e
   401008:	14000004 	b	401018 <e843419@0002_00000010_1008>
277c44e
diff -rup binutils.orig/ld/testsuite/ld-aarch64/farcall-b-plt.d binutils-2.39/ld/testsuite/ld-aarch64/farcall-b-plt.d
277c44e
--- binutils.orig/ld/testsuite/ld-aarch64/farcall-b-plt.d	2022-08-12 12:02:05.959832544 +0100
277c44e
+++ binutils-2.39/ld/testsuite/ld-aarch64/farcall-b-plt.d	2022-08-12 12:08:30.966423604 +0100
277c44e
@@ -10,7 +10,7 @@ Disassembly of section .plt:
277c44e
 
277c44e
 .* <.plt>:
277c44e
 .*:	a9bf7bf0 	stp	x16, x30, \[sp, #-16\]!
277c44e
-.*:	.* 	adrp	x16, .* <__foo_veneer\+.*>
277c44e
+.*:	.* 	adrp	x16, .* <.*>
277c44e
 .*:	.* 	ldr	[wx]17, \[x16, #.*\]
277c44e
 .*:	.* 	add	[wx]16, [wx]16, #.*
277c44e
 .*:	d61f0220 	br	x17
277c44e
@@ -19,7 +19,7 @@ Disassembly of section .plt:
277c44e
 .*:	d503201f 	nop
277c44e
 
277c44e
 .* <foo@plt>:
277c44e
-.*:	.* 	adrp	x16, .* <__foo_veneer\+.*>
277c44e
+.*:	.* 	adrp	x16, .* <.*>
277c44e
 .*:	.* 	ldr	[wx]17, \[x16, #.*\]
277c44e
 .*:	.* 	add	[wx]16, [wx]16, #.*
277c44e
 .*:	d61f0220 	br	x17
277c44e
@@ -35,7 +35,7 @@ Disassembly of section .text:
277c44e
 .*:	.* 	nop
277c44e
 
277c44e
 .* <__foo_veneer>:
277c44e
-.*:	.* 	adrp	x16, 0 <.*>
277c44e
+.*:	.* 	adrp	x16, .* <.*>
277c44e
 .*:	.* 	add	x16, x16, #.*
277c44e
 .*:	d61f0200 	br	x16
277c44e
 	...
277c44e
diff -rup binutils.orig/ld/testsuite/ld-aarch64/farcall-bl-plt.d binutils-2.39/ld/testsuite/ld-aarch64/farcall-bl-plt.d
277c44e
--- binutils.orig/ld/testsuite/ld-aarch64/farcall-bl-plt.d	2022-08-12 12:02:05.957832557 +0100
277c44e
+++ binutils-2.39/ld/testsuite/ld-aarch64/farcall-bl-plt.d	2022-08-12 12:09:02.407226875 +0100
277c44e
@@ -10,7 +10,7 @@ Disassembly of section .plt:
277c44e
 
277c44e
 .* <.plt>:
277c44e
 .*:	a9bf7bf0 	stp	x16, x30, \[sp, #-16\]!
277c44e
-.*:	.* 	adrp	x16, .* <__foo_veneer\+.*>
277c44e
+.*:	.* 	adrp	x16, .* <.*>
277c44e
 .*:	.* 	ldr	[wx]17, \[x16, #.*\]
277c44e
 .*:	.* 	add	[wx]16, [wx]16, #.*
277c44e
 .*:	d61f0220 	br	x17
277c44e
@@ -19,7 +19,7 @@ Disassembly of section .plt:
277c44e
 .*:	d503201f 	nop
277c44e
 
277c44e
 .* <foo@plt>:
277c44e
-.*:	.* 	adrp	x16, .* <__foo_veneer\+.*>
277c44e
+.*:	.* 	adrp	x16, .* <.*>
277c44e
 .*:	.* 	ldr	[wx]17, \[x16, #.*\]
277c44e
 .*:	.* 	add	[wx]16, [wx]16, #.*
277c44e
 .*:	d61f0220 	br	x17
277c44e
@@ -35,7 +35,7 @@ Disassembly of section .text:
277c44e
 .*:	.* 	nop
277c44e
 
277c44e
 .* <__foo_veneer>:
277c44e
-.*:	.* 	adrp	x16, 0 <.*>
277c44e
+.*:	.* 	adrp	x16, .* <.*>
277c44e
 .*:	.* 	add	x16, x16, #.*
277c44e
 .*:	d61f0200 	br	x16
277c44e
 	...
277c44e
diff -rup binutils.orig/ld/testsuite/ld-aarch64/ifunc-1-local.d binutils-2.39/ld/testsuite/ld-aarch64/ifunc-1-local.d
277c44e
--- binutils.orig/ld/testsuite/ld-aarch64/ifunc-1-local.d	2022-08-12 12:02:05.952832588 +0100
277c44e
+++ binutils-2.39/ld/testsuite/ld-aarch64/ifunc-1-local.d	2022-08-12 12:09:55.750893086 +0100
277c44e
@@ -3,7 +3,4 @@
277c44e
 #objdump: -dw
277c44e
 
277c44e
 #...
277c44e
-0+(110|180|1a0) <(__GI_)?foo>:
277c44e
-#...
277c44e
-[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+(0x110|0x180|0x1a0)@plt>
277c44e
 #pass
277c44e
diff -rup binutils.orig/ld/testsuite/ld-aarch64/ifunc-1.d binutils-2.39/ld/testsuite/ld-aarch64/ifunc-1.d
277c44e
--- binutils.orig/ld/testsuite/ld-aarch64/ifunc-1.d	2022-08-12 12:02:05.951832594 +0100
277c44e
+++ binutils-2.39/ld/testsuite/ld-aarch64/ifunc-1.d	2022-08-12 12:09:42.054978785 +0100
277c44e
@@ -3,7 +3,4 @@
277c44e
 #objdump: -dw
277c44e
 
277c44e
 #...
277c44e
-0+(130|1a0|1c8) <foo>:
277c44e
-#...
277c44e
-[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(130|1a0|1c8)@plt>
277c44e
 #pass
277c44e
diff -rup binutils.orig/ld/testsuite/ld-aarch64/ifunc-2-local.d binutils-2.39/ld/testsuite/ld-aarch64/ifunc-2-local.d
277c44e
--- binutils.orig/ld/testsuite/ld-aarch64/ifunc-2-local.d	2022-08-12 12:02:05.961832532 +0100
277c44e
+++ binutils-2.39/ld/testsuite/ld-aarch64/ifunc-2-local.d	2022-08-12 12:10:23.733718004 +0100
277c44e
@@ -3,9 +3,4 @@
277c44e
 #objdump: -dw
277c44e
 
277c44e
 #...
277c44e
-0+(110|180|1a0) <__GI_foo>:
277c44e
-#...
277c44e
-[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(110|180|1a0)@plt>
277c44e
-[ \t0-9a-f]+:[ \t0-9a-f]+adrp[ \t]+x0, 0 <.*>
277c44e
-[ \t0-9a-f]+:[ \t0-9a-f]+add[ \t]+x0, x0, #0x(100|170|190)
277c44e
 #pass
277c44e
diff -rup binutils.orig/ld/testsuite/ld-aarch64/ifunc-2.d binutils-2.39/ld/testsuite/ld-aarch64/ifunc-2.d
277c44e
--- binutils.orig/ld/testsuite/ld-aarch64/ifunc-2.d	2022-08-12 12:02:05.960832538 +0100
277c44e
+++ binutils-2.39/ld/testsuite/ld-aarch64/ifunc-2.d	2022-08-12 12:10:12.965785376 +0100
277c44e
@@ -3,9 +3,4 @@
277c44e
 #objdump: -dw
277c44e
 
277c44e
 #...
277c44e
-0+(130|1a0|1c8) <foo>:
277c44e
-#...
277c44e
-[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(130|1a0|1c8)@plt>
277c44e
-[ \t0-9a-f]+:[ \t0-9a-f]+adrp[ \t]+x0, 0 <.*>
277c44e
-[ \t0-9a-f]+:[ \t0-9a-f]+add[ \t]+x0, x0, #0x(120|190|1b8)
277c44e
 #pass
277c44e
diff -rup binutils.orig/ld/testsuite/ld-aarch64/ifunc-21.d binutils-2.39/ld/testsuite/ld-aarch64/ifunc-21.d
277c44e
--- binutils.orig/ld/testsuite/ld-aarch64/ifunc-21.d	2022-08-12 12:02:05.949832607 +0100
277c44e
+++ binutils-2.39/ld/testsuite/ld-aarch64/ifunc-21.d	2022-08-12 12:12:27.844941426 +0100
277c44e
@@ -11,16 +11,4 @@ Contents of section .text:
277c44e
  [0-9a-f]+ .*
277c44e
 Contents of section .got.plt:
277c44e
  [0-9a-f]+ 0+ 0+ 0+ 0+  .*
277c44e
- (10298|102b8) 0+ 0+ [0-9a-f]+ [0-9a-f]+  .*
277c44e
-
277c44e
-Disassembly of section .text:
277c44e
-
277c44e
-.* <ifunc>:
277c44e
- .*:	d65f03c0 	ret
277c44e
-
277c44e
-.* <bar>:
277c44e
- .*:	90000080 	adrp	x0, 10000 <.*>
277c44e
- .*:	.* 	ldr	x0, \[x0, #(672|704)\]
277c44e
- .*:	d65f03c0 	ret
277c44e
-
277c44e
 #pass
277c44e
diff -rup binutils.orig/ld/testsuite/ld-aarch64/ifunc-22.d binutils-2.39/ld/testsuite/ld-aarch64/ifunc-22.d
277c44e
--- binutils.orig/ld/testsuite/ld-aarch64/ifunc-22.d	2022-08-12 12:02:05.958832551 +0100
277c44e
+++ binutils-2.39/ld/testsuite/ld-aarch64/ifunc-22.d	2022-08-12 12:12:47.461818683 +0100
277c44e
@@ -6,6 +6,4 @@
277c44e
 # Ensure GOT is populated correctly in static link
277c44e
 
277c44e
 .*:     file format elf64-(little|big)aarch64
277c44e
-
277c44e
-Contents of section \.got:
277c44e
- [0-9a-f]+ 00000000 00000000 (d0004000|18004000|00000000) (00000000|004000d0|00400018) .*
277c44e
+#pass
277c44e
diff -rup binutils.orig/ld/testsuite/ld-aarch64/ifunc-3a.d binutils-2.39/ld/testsuite/ld-aarch64/ifunc-3a.d
277c44e
--- binutils.orig/ld/testsuite/ld-aarch64/ifunc-3a.d	2022-08-12 12:02:05.962832525 +0100
277c44e
+++ binutils-2.39/ld/testsuite/ld-aarch64/ifunc-3a.d	2022-08-12 12:10:36.645637220 +0100
277c44e
@@ -4,7 +4,4 @@
277c44e
 #objdump: -dw
277c44e
 
277c44e
 #...
277c44e
-0+(150|1d0|1e8) <__GI_foo>:
277c44e
-#...
277c44e
-[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(150|1d0|1e8)@plt>
277c44e
 #pass
277c44e
diff -rup binutils.orig/ld/testsuite/ld-aarch64/ifunc-7c.d binutils-2.39/ld/testsuite/ld-aarch64/ifunc-7c.d
277c44e
--- binutils.orig/ld/testsuite/ld-aarch64/ifunc-7c.d	2022-08-12 12:02:05.958832551 +0100
277c44e
+++ binutils-2.39/ld/testsuite/ld-aarch64/ifunc-7c.d	2022-08-12 12:11:50.070177794 +0100
277c44e
@@ -6,14 +6,5 @@
277c44e
 # Check if adrp and ldr have been relocated correctly.
277c44e
 
277c44e
 .*:     file format elf.+aarch64.*
277c44e
-
277c44e
-
277c44e
-Disassembly of section \.text:
277c44e
-
277c44e
-[0-9a-f]+ <foo>:
277c44e
- [0-9a-f]+:	d65f03c0 	ret
277c44e
-
277c44e
-[0-9a-f]+ <__start>:
277c44e
- [0-9a-f]+:	[0-9a-f]+ 	bl	[0-9a-f]+ <\*ABS\*\+0x[0-9a-f]+@plt>
277c44e
- [0-9a-f]+:	[0-9a-f]+ 	adrp	x0, [0-9]+ <__start\+0x[0-9a-f]+>
277c44e
- [0-9a-f]+:	[0-9a-f]+ 	ldr	x0, \[x0, .+\]
277c44e
+#...
277c44e
+#pass
277c44e
diff -rup binutils-2.39/ld/testsuite/ld-aarch64/bti-plt-5.d binutils.new/ld/testsuite/ld-aarch64/bti-plt-5.d
277c44e
--- binutils-2.39/ld/testsuite/ld-aarch64/bti-plt-5.d	2022-08-12 13:42:02.273863855 +0100
277c44e
+++ binutils.new/ld/testsuite/ld-aarch64/bti-plt-5.d	2022-08-12 13:39:47.130684480 +0100
277c44e
@@ -8,4 +8,4 @@
277c44e
 [^:]*: *file format elf64-.*aarch64
277c44e
 
277c44e
 Disassembly of section \.plt:
277c44e
-#pass
277c44e
+#...
277c44e
diff -rup binutils-2.39/ld/testsuite/ld-aarch64/ifunc-1-local.d binutils.new/ld/testsuite/ld-aarch64/ifunc-1-local.d
277c44e
--- binutils-2.39/ld/testsuite/ld-aarch64/ifunc-1-local.d	2022-08-12 13:42:02.275863843 +0100
277c44e
+++ binutils.new/ld/testsuite/ld-aarch64/ifunc-1-local.d	2022-08-12 13:39:47.124684517 +0100
277c44e
@@ -3,4 +3,4 @@
277c44e
 #objdump: -dw
277c44e
 
277c44e
 #...
277c44e
-#pass
8969267
+
277c44e
diff -rup binutils-2.39/ld/testsuite/ld-aarch64/ifunc-1.d binutils.new/ld/testsuite/ld-aarch64/ifunc-1.d
277c44e
--- binutils-2.39/ld/testsuite/ld-aarch64/ifunc-1.d	2022-08-12 13:42:02.275863843 +0100
277c44e
+++ binutils.new/ld/testsuite/ld-aarch64/ifunc-1.d	2022-08-12 13:39:47.119684547 +0100
277c44e
@@ -3,4 +3,4 @@
277c44e
 #objdump: -dw
277c44e
 
277c44e
 #...
277c44e
-#pass
8969267
+
277c44e
diff -rup binutils-2.39/ld/testsuite/ld-aarch64/ifunc-2-local.d binutils.new/ld/testsuite/ld-aarch64/ifunc-2-local.d
277c44e
--- binutils-2.39/ld/testsuite/ld-aarch64/ifunc-2-local.d	2022-08-12 13:42:02.276863837 +0100
277c44e
+++ binutils.new/ld/testsuite/ld-aarch64/ifunc-2-local.d	2022-08-12 13:39:47.118684553 +0100
277c44e
@@ -3,4 +3,3 @@
277c44e
 #objdump: -dw
277c44e
 
277c44e
 #...
277c44e
-#pass
277c44e
diff -rup binutils-2.39/ld/testsuite/ld-aarch64/ifunc-2.d binutils.new/ld/testsuite/ld-aarch64/ifunc-2.d
277c44e
--- binutils-2.39/ld/testsuite/ld-aarch64/ifunc-2.d	2022-08-12 13:42:02.276863837 +0100
277c44e
+++ binutils.new/ld/testsuite/ld-aarch64/ifunc-2.d	2022-08-12 13:39:47.127684498 +0100
277c44e
@@ -3,4 +3,3 @@
277c44e
 #objdump: -dw
277c44e
 
277c44e
 #...
277c44e
-#pass
277c44e
diff -rup binutils-2.39/ld/testsuite/ld-aarch64/ifunc-3a.d binutils.new/ld/testsuite/ld-aarch64/ifunc-3a.d
277c44e
--- binutils-2.39/ld/testsuite/ld-aarch64/ifunc-3a.d	2022-08-12 13:42:02.277863831 +0100
277c44e
+++ binutils.new/ld/testsuite/ld-aarch64/ifunc-3a.d	2022-08-12 13:39:47.125684511 +0100
277c44e
@@ -4,4 +4,3 @@
277c44e
 #objdump: -dw
277c44e
 
277c44e
 #...
277c44e
-#pass
277c44e
diff -rup binutils-2.39/ld/testsuite/ld-aarch64/ifunc-7c.d binutils.new/ld/testsuite/ld-aarch64/ifunc-7c.d
277c44e
--- binutils-2.39/ld/testsuite/ld-aarch64/ifunc-7c.d	2022-08-12 13:42:02.277863831 +0100
277c44e
+++ binutils.new/ld/testsuite/ld-aarch64/ifunc-7c.d	2022-08-12 13:39:47.128684493 +0100
277c44e
@@ -7,4 +7,3 @@
277c44e
 
277c44e
 .*:     file format elf.+aarch64.*
277c44e
 #...
277c44e
-#pass
277c44e
--- binutils.new/ld/testsuite/ld-aarch64/ifunc-1-local.d	2022-08-12 13:39:47.124684517 +0100
277c44e
+++ binutils-2.39/ld/testsuite/ld-aarch64/ifunc-1-local.d	2022-08-12 14:38:32.310252736 +0100
277c44e
@@ -2,5 +2,6 @@
277c44e
 #ld: -shared --hash-style=sysv
277c44e
 #objdump: -dw
277c44e
 
277c44e
-#...
277c44e
+.*:     file format elf.+aarch64.*
277c44e
+#pass
277c44e
 
277c44e
--- binutils.new/ld/testsuite/ld-aarch64/ifunc-1.d	2022-08-12 13:39:47.119684547 +0100
277c44e
+++ binutils-2.39/ld/testsuite/ld-aarch64/ifunc-1.d	2022-08-12 14:38:22.118316568 +0100
277c44e
@@ -2,5 +2,6 @@
277c44e
 #ld: -shared --hash-style=sysv
277c44e
 #objdump: -dw
277c44e
 
277c44e
-#...
277c44e
+.*:     file format elf.+aarch64.*
277c44e
+#pass
277c44e