e20ceaf
diff -rupN --no-dereference binutils-2.40/binutils/testsuite/binutils-all/pr26160.r binutils-2.40-new/binutils/testsuite/binutils-all/pr26160.r
e20ceaf
--- binutils-2.40/binutils/testsuite/binutils-all/pr26160.r	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/binutils/testsuite/binutils-all/pr26160.r	2023-03-09 14:52:07.335233505 +0100
e20ceaf
@@ -30,14 +30,14 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <a5>   DW_AT_decl_file   : 1
e20ceaf
     <a6>   DW_AT_decl_line   : 30
e20ceaf
     <a7>   DW_AT_type        : <0x90>
e20ceaf
-    <ab>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <ab>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: (0x)?0\): 0
e20ceaf
     <ac>   DW_AT_high_pc     : 0x304
e20ceaf
     <b4>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
     <b6>   DW_AT_GNU_all_tail_call_sites: 1
e20ceaf
     <b6>   DW_AT_sibling     : <0x11b>
e20ceaf
  <2><ba>: Abbrev Number: 14 \(DW_TAG_lexical_block\)
e20ceaf
-    <bb>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <bb>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x1\): 0
e20ceaf
     <bc>   DW_AT_high_pc     : 0x2fa
e20ceaf
  <3><c4>: Abbrev Number: 15 \(DW_TAG_variable\)
e20ceaf
@@ -58,7 +58,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <ff>   DW_AT_artificial  : 1
e20ceaf
     <ff>   DW_AT_location    : 2 byte block: fb 2 	\(DW_OP_GNU_addr_index <0x2>\)
e20ceaf
  <3><102>: Abbrev Number: 14 \(DW_TAG_lexical_block\)
e20ceaf
-    <103>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <103>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x3\): 0
e20ceaf
     <104>   DW_AT_high_pc     : 0x2f
e20ceaf
  <4><10c>: Abbrev Number: 17 \(DW_TAG_variable\)
e20ceaf
@@ -277,7 +277,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <2dd>   DW_AT_decl_file   : 1
e20ceaf
     <2de>   DW_AT_decl_line   : 70
e20ceaf
     <2df>   DW_AT_linkage_name: _Z4f13iv
e20ceaf
-    <2e8>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <2e8>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: (0x)?0\): 0
e20ceaf
     <2e9>   DW_AT_high_pc     : 0x6
e20ceaf
     <2f1>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -286,7 +286,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <2f4>   DW_AT_specification: <0x219>
e20ceaf
     <2f8>   DW_AT_decl_file   : 2
e20ceaf
     <2f9>   DW_AT_decl_line   : 30
e20ceaf
-    <2fa>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <2fa>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x1\): 0
e20ceaf
     <2fb>   DW_AT_high_pc     : 0x20
e20ceaf
     <303>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -305,7 +305,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <31d>   DW_AT_specification: <0x223>
e20ceaf
     <321>   DW_AT_decl_file   : 2
e20ceaf
     <322>   DW_AT_decl_line   : 38
e20ceaf
-    <323>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <323>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x2\): 0
e20ceaf
     <324>   DW_AT_high_pc     : 0x18
e20ceaf
     <32c>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -322,7 +322,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <341>   DW_AT_specification: <0x22d>
e20ceaf
     <345>   DW_AT_decl_file   : 2
e20ceaf
     <346>   DW_AT_decl_line   : 46
e20ceaf
-    <347>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <347>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x3\): 0
e20ceaf
     <348>   DW_AT_high_pc     : 0x18
e20ceaf
     <350>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -339,7 +339,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <365>   DW_AT_specification: <0x237>
e20ceaf
     <369>   DW_AT_decl_file   : 2
e20ceaf
     <36a>   DW_AT_decl_line   : 54
e20ceaf
-    <36b>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <36b>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x4\): 0
e20ceaf
     <36c>   DW_AT_high_pc     : 0x16
e20ceaf
     <374>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -356,7 +356,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <389>   DW_AT_specification: <0x26b>
e20ceaf
     <38d>   DW_AT_decl_file   : 2
e20ceaf
     <38e>   DW_AT_decl_line   : 62
e20ceaf
-    <38f>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <38f>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x5\): 0
e20ceaf
     <390>   DW_AT_high_pc     : 0x16
e20ceaf
     <398>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -375,7 +375,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <3b2>   DW_AT_specification: <0x275>
e20ceaf
     <3b6>   DW_AT_decl_file   : 2
e20ceaf
     <3b7>   DW_AT_decl_line   : 72
e20ceaf
-    <3b8>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <3b8>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x6\): 0
e20ceaf
     <3b9>   DW_AT_high_pc     : 0x1b
e20ceaf
     <3c1>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -392,7 +392,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <3d6>   DW_AT_specification: <0x27f>
e20ceaf
     <3da>   DW_AT_decl_file   : 2
e20ceaf
     <3db>   DW_AT_decl_line   : 82
e20ceaf
-    <3dc>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <3dc>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x7\): 0
e20ceaf
     <3dd>   DW_AT_high_pc     : 0x1b
e20ceaf
     <3e5>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -409,7 +409,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <3fa>   DW_AT_specification: <0x289>
e20ceaf
     <3fe>   DW_AT_decl_file   : 2
e20ceaf
     <3ff>   DW_AT_decl_line   : 92
e20ceaf
-    <400>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <400>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x8\): 0
e20ceaf
     <401>   DW_AT_high_pc     : 0x19
e20ceaf
     <409>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -426,7 +426,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <41e>   DW_AT_specification: <0x2ae>
e20ceaf
     <422>   DW_AT_decl_file   : 2
e20ceaf
     <423>   DW_AT_decl_line   : 102
e20ceaf
-    <424>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <424>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x9\): 0
e20ceaf
     <425>   DW_AT_high_pc     : 0x19
e20ceaf
     <42d>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -445,7 +445,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <447>   DW_AT_specification: <0x2b8>
e20ceaf
     <44b>   DW_AT_decl_file   : 2
e20ceaf
     <44c>   DW_AT_decl_line   : 112
e20ceaf
-    <44d>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <44d>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0xa\): 0
e20ceaf
     <44e>   DW_AT_high_pc     : 0x1f
e20ceaf
     <456>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -465,7 +465,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <471>   DW_AT_decl_line   : 120
e20ceaf
     <472>   DW_AT_linkage_name: _Z4f11av
e20ceaf
     <47b>   DW_AT_type        : <0x242>
e20ceaf
-    <47f>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <47f>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0xb\): 0
e20ceaf
     <480>   DW_AT_high_pc     : 0xb
e20ceaf
     <488>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -474,7 +474,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <48b>   DW_AT_specification: <0x2c2>
e20ceaf
     <48f>   DW_AT_decl_file   : 2
e20ceaf
     <490>   DW_AT_decl_line   : 126
e20ceaf
-    <491>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <491>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0xc\): 0
e20ceaf
     <492>   DW_AT_high_pc     : 0x20
e20ceaf
     <49a>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -494,7 +494,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <4b4>   DW_AT_decl_line   : 134
e20ceaf
     <4b5>   DW_AT_linkage_name: _Z3t12v
e20ceaf
     <4bd>   DW_AT_type        : <0x249>
e20ceaf
-    <4c1>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <4c1>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0xd\): 0
e20ceaf
     <4c2>   DW_AT_high_pc     : 0x19
e20ceaf
     <4ca>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -506,7 +506,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <4d2>   DW_AT_decl_line   : 142
e20ceaf
     <4d3>   DW_AT_linkage_name: _Z3t13v
e20ceaf
     <4db>   DW_AT_type        : <0x249>
e20ceaf
-    <4df>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <4df>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0xe\): 0
e20ceaf
     <4e0>   DW_AT_high_pc     : 0x14
e20ceaf
     <4e8>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -518,14 +518,14 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <4f0>   DW_AT_decl_line   : 150
e20ceaf
     <4f1>   DW_AT_linkage_name: _Z3t14v
e20ceaf
     <4f9>   DW_AT_type        : <0x249>
e20ceaf
-    <4fd>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <4fd>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0xf\): 0
e20ceaf
     <4fe>   DW_AT_high_pc     : 0x61
e20ceaf
     <506>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
     <508>   DW_AT_GNU_all_tail_call_sites: 1
e20ceaf
     <508>   DW_AT_sibling     : <0x532>
e20ceaf
  <2><50c>: Abbrev Number: 24 \(DW_TAG_lexical_block\)
e20ceaf
-    <50d>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <50d>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x10\): 0
e20ceaf
     <50e>   DW_AT_high_pc     : 0x57
e20ceaf
  <3><516>: Abbrev Number: 25 \(DW_TAG_variable\)
e20ceaf
@@ -558,14 +558,14 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <54b>   DW_AT_decl_line   : 163
e20ceaf
     <54c>   DW_AT_linkage_name: _Z3t15v
e20ceaf
     <554>   DW_AT_type        : <0x249>
e20ceaf
-    <558>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <558>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x11\): 0
e20ceaf
     <559>   DW_AT_high_pc     : 0x5d
e20ceaf
     <561>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
     <563>   DW_AT_GNU_all_tail_call_sites: 1
e20ceaf
     <563>   DW_AT_sibling     : <0x58d>
e20ceaf
  <2><567>: Abbrev Number: 24 \(DW_TAG_lexical_block\)
e20ceaf
-    <568>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <568>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x12\): 0
e20ceaf
     <569>   DW_AT_high_pc     : 0x53
e20ceaf
  <3><571>: Abbrev Number: 25 \(DW_TAG_variable\)
e20ceaf
@@ -598,7 +598,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <5a9>   DW_AT_decl_line   : 176
e20ceaf
     <5aa>   DW_AT_linkage_name: _Z3t16v
e20ceaf
     <5b2>   DW_AT_type        : <0x249>
e20ceaf
-    <5b6>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <5b6>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x13\): 0
e20ceaf
     <5b7>   DW_AT_high_pc     : 0x13
e20ceaf
     <5bf>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -610,14 +610,14 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <5c7>   DW_AT_decl_line   : 184
e20ceaf
     <5c8>   DW_AT_linkage_name: _Z3t17v
e20ceaf
     <5d0>   DW_AT_type        : <0x249>
e20ceaf
-    <5d4>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <5d4>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x14\): 0
e20ceaf
     <5d5>   DW_AT_high_pc     : 0x5f
e20ceaf
     <5dd>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
     <5df>   DW_AT_GNU_all_call_sites: 1
e20ceaf
     <5df>   DW_AT_sibling     : <0x612>
e20ceaf
  <2><5e3>: Abbrev Number: 24 \(DW_TAG_lexical_block\)
e20ceaf
-    <5e4>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <5e4>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x15\): 0
e20ceaf
     <5e5>   DW_AT_high_pc     : 0x59
e20ceaf
  <3><5ed>: Abbrev Number: 25 \(DW_TAG_variable\)
e20ceaf
@@ -627,7 +627,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <5f2>   DW_AT_type        : <0x53d>
e20ceaf
     <5f6>   DW_AT_location    : 2 byte block: 91 6f 	\(DW_OP_fbreg: -17\)
e20ceaf
  <3><5f9>: Abbrev Number: 24 \(DW_TAG_lexical_block\)
e20ceaf
-    <5fa>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <5fa>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x16\): 0
e20ceaf
     <5fb>   DW_AT_high_pc     : 0x50
e20ceaf
  <4><603>: Abbrev Number: 25 \(DW_TAG_variable\)
e20ceaf
@@ -646,14 +646,14 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <618>   DW_AT_decl_line   : 199
e20ceaf
     <619>   DW_AT_linkage_name: _Z3t18v
e20ceaf
     <621>   DW_AT_type        : <0x249>
e20ceaf
-    <625>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <625>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x17\): 0
e20ceaf
     <626>   DW_AT_high_pc     : 0x5f
e20ceaf
     <62e>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
     <630>   DW_AT_GNU_all_tail_call_sites: 1
e20ceaf
     <630>   DW_AT_sibling     : <0x67a>
e20ceaf
  <2><634>: Abbrev Number: 24 \(DW_TAG_lexical_block\)
e20ceaf
-    <635>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <635>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x18\): 0
e20ceaf
     <636>   DW_AT_high_pc     : 0x55
e20ceaf
  <3><63e>: Abbrev Number: 25 \(DW_TAG_variable\)
e20ceaf
@@ -663,7 +663,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <643>   DW_AT_type        : <0x53d>
e20ceaf
     <647>   DW_AT_location    : 2 byte block: 91 6f 	\(DW_OP_fbreg: -17\)
e20ceaf
  <3><64a>: Abbrev Number: 24 \(DW_TAG_lexical_block\)
e20ceaf
-    <64b>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <64b>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x19\): 0
e20ceaf
     <64c>   DW_AT_high_pc     : 0x4c
e20ceaf
  <4><654>: Abbrev Number: 25 \(DW_TAG_variable\)
e20ceaf
@@ -673,7 +673,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <659>   DW_AT_type        : <0x242>
e20ceaf
     <65d>   DW_AT_location    : 2 byte block: 91 68 	\(DW_OP_fbreg: -24\)
e20ceaf
  <4><660>: Abbrev Number: 24 \(DW_TAG_lexical_block\)
e20ceaf
-    <661>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <661>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x1a\): 0
e20ceaf
     <662>   DW_AT_high_pc     : 0x34
e20ceaf
  <5><66a>: Abbrev Number: 25 \(DW_TAG_variable\)
e20ceaf
@@ -816,7 +816,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <7d3>   DW_AT_decl_line   : 32
e20ceaf
     <7d4>   DW_AT_linkage_name: _Z4t16av
e20ceaf
     <7dd>   DW_AT_type        : <0x7c4>
e20ceaf
-    <7e1>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <7e1>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: (0x)?0\): 0
e20ceaf
     <7e2>   DW_AT_high_pc     : 0x13
e20ceaf
     <7ea>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -909,7 +909,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <908>   DW_AT_decl_file   : 1
e20ceaf
     <909>   DW_AT_decl_line   : 70
e20ceaf
     <90a>   DW_AT_linkage_name: _Z4f13iv
e20ceaf
-    <913>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <913>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: (0x)?0\): 0
e20ceaf
     <914>   DW_AT_high_pc     : 0x6
e20ceaf
     <91c>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -917,7 +917,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
  <1><91e>: Abbrev Number: 17 \(DW_TAG_subprogram\)
e20ceaf
     <91f>   DW_AT_specification: <0x8a8>
e20ceaf
     <923>   DW_AT_decl_file   : 2
e20ceaf
-    <924>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <924>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x1\): 0
e20ceaf
     <925>   DW_AT_high_pc     : 0xf
e20ceaf
     <92d>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -936,7 +936,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <94b>   DW_AT_specification: <0x89b>
e20ceaf
     <94f>   DW_AT_decl_file   : 2
e20ceaf
     <950>   DW_AT_decl_line   : 36
e20ceaf
-    <951>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <951>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x2\): 0
e20ceaf
     <952>   DW_AT_high_pc     : 0x20
e20ceaf
     <95a>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -956,7 +956,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <978>   DW_AT_decl_line   : 72
e20ceaf
     <979>   DW_AT_linkage_name: _Z3f10v
e20ceaf
     <981>   DW_AT_type        : <0x8b7>
e20ceaf
-    <985>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <985>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x3\): 0
e20ceaf
     <986>   DW_AT_high_pc     : 0xb
e20ceaf
     <98e>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -968,7 +968,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <997>   DW_AT_decl_line   : 80
e20ceaf
     <998>   DW_AT_linkage_name: _Z4f11bPFivE
e20ceaf
     <9a5>   DW_AT_type        : <0x8b7>
e20ceaf
-    <9a9>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <9a9>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x4\): 0
e20ceaf
     <9aa>   DW_AT_high_pc     : 0x14
e20ceaf
     <9b2>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -990,7 +990,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <9d3>   DW_AT_specification: <0x8e0>
e20ceaf
     <9d7>   DW_AT_decl_file   : 2
e20ceaf
     <9d8>   DW_AT_decl_line   : 88
e20ceaf
-    <9d9>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <9d9>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x5\): 0
e20ceaf
     <9da>   DW_AT_high_pc     : 0xf
e20ceaf
     <9e2>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -1013,7 +1013,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <a06>   DW_AT_decl_line   : 96
e20ceaf
     <a07>   DW_AT_linkage_name: _Z3f13v
e20ceaf
     <a0f>   DW_AT_type        : <0xa1e>
e20ceaf
-    <a13>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <a13>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x6\): 0
e20ceaf
     <a14>   DW_AT_high_pc     : 0xb
e20ceaf
     <a1c>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -1028,7 +1028,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <a2a>   DW_AT_decl_line   : 104
e20ceaf
     <a2b>   DW_AT_linkage_name: _Z3f14v
e20ceaf
     <a33>   DW_AT_type        : <0xa42>
e20ceaf
-    <a37>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <a37>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x7\): 0
e20ceaf
     <a38>   DW_AT_high_pc     : 0xb
e20ceaf
     <a40>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -1049,7 +1049,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <a5b>   DW_AT_decl_line   : 112
e20ceaf
     <a5c>   DW_AT_linkage_name: _Z3f15v
e20ceaf
     <a64>   DW_AT_type        : <0xa73>
e20ceaf
-    <a68>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <a68>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x8\): 0
e20ceaf
     <a69>   DW_AT_high_pc     : 0xb
e20ceaf
     <a71>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
@@ -1070,7 +1070,7 @@ Contents of the .debug_info.dwo section:
e20ceaf
     <a8f>   DW_AT_decl_line   : 127
e20ceaf
     <a90>   DW_AT_linkage_name: _Z3f18i
e20ceaf
     <a98>   DW_AT_type        : <0xa42>
e20ceaf
-    <a9c>   DW_AT_low_pc      :readelf: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
+    <a9c>   DW_AT_low_pc      :readelf: .*: Warning: Cannot fetch indexed address: the .debug_addr section is missing
e20ceaf
  \(index: 0x9\): 0
e20ceaf
     <a9d>   DW_AT_high_pc     : 0x44
e20ceaf
     <aa5>   DW_AT_frame_base  : 1 byte block: 9c 	\(DW_OP_call_frame_cfa\)
e20ceaf
diff -rupN --no-dereference binutils-2.40/gas/testsuite/gas/riscv/variant_cc.d binutils-2.40-new/gas/testsuite/gas/riscv/variant_cc.d
e20ceaf
--- binutils-2.40/gas/testsuite/gas/riscv/variant_cc.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/gas/testsuite/gas/riscv/variant_cc.d	2023-03-09 14:52:07.346233370 +0100
e20ceaf
@@ -3,7 +3,7 @@
e20ceaf
 #readelf: -Ws
8969267
 
e20ceaf
 #...
e20ceaf
-[ 	]+[0-9a-f]+:[ 	]+0+[ 	]+0[ 	]+NOTYPE[ 	]+LOCAL[ 	]+DEFAULT[ 	]+\[VARIANT_CC\][ 	]+1[ 	]+func
e20ceaf
+[ 	]+[0-9a-f]+:[ 	]+0+[ 	]+0[ 	]+NOTYPE[ 	]+LOCAL[ 	]+DEFAULT[ 	]+1[ 	]+func[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
-[ 	]+[0-9a-f]+:[ 	]+0+[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+\[VARIANT_CC\][ 	]+UND[ 	]+foo
e20ceaf
+[ 	]+[0-9a-f]+:[ 	]+0+[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+UND[ 	]+foo[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
diff -rupN --no-dereference binutils-2.40/gas/testsuite/gas/riscv/variant_cc-set.d binutils-2.40-new/gas/testsuite/gas/riscv/variant_cc-set.d
e20ceaf
--- binutils-2.40/gas/testsuite/gas/riscv/variant_cc-set.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/gas/testsuite/gas/riscv/variant_cc-set.d	2023-03-09 14:52:07.346233370 +0100
e20ceaf
@@ -3,11 +3,11 @@
e20ceaf
 #readelf: -Ws
7286330
 
e20ceaf
 #...
e20ceaf
-[ 	]+[0-9a-f]+:[ 	]+0+[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+\[VARIANT_CC\][ 	]+1[ 	]+foo
e20ceaf
+[ 	]+[0-9a-f]+:[ 	]+0+[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]+foo[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
 [ 	]+[0-9a-f]+:[ 	]+0+[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]+bar
e20ceaf
 #...
e20ceaf
-[ 	]+[0-9a-f]+:[ 	]+0+[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+\[VARIANT_CC\][ 	]+1[ 	]+alias_foo
e20ceaf
+[ 	]+[0-9a-f]+:[ 	]+0+[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]+alias_foo[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
 [ 	]+[0-9a-f]+:[ 	]+0+[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]alias_bar
e20ceaf
 #...
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/bti-plt-5.d binutils-2.40-new/ld/testsuite/ld-aarch64/bti-plt-5.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-aarch64/bti-plt-5.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-aarch64/bti-plt-5.d	2023-03-09 14:52:07.338233469 +0100
e20ceaf
@@ -8,7 +8,7 @@
7286330
 [^:]*: *file format elf64-.*aarch64
7286330
 
7286330
 Disassembly of section \.plt:
7286330
-
e20ceaf
+#pass
e20ceaf
 [0-9a-f]+ <.*>:
e20ceaf
 .*:	d503245f 	bti	c
e20ceaf
 .*:	a9bf7bf0 	stp	x16, x30, \[sp, #-16\]!
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/erratum843419-far-full.d binutils-2.40-new/ld/testsuite/ld-aarch64/erratum843419-far-full.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-aarch64/erratum843419-far-full.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-aarch64/erratum843419-far-full.d	2023-03-09 14:52:07.339233456 +0100
e20ceaf
@@ -5,7 +5,7 @@
e20ceaf
 #...
7286330
 
e20ceaf
 Disassembly of section \.text:
e20ceaf
-
e20ceaf
+#pass
7286330
 0*400000 <_start>:
7286330
 	...
e20ceaf
   400ffc:	90400000 	adrp	x0, 80400000 <__bss_end__\+0x7ffedff0>
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/farcall-bl-plt.d binutils-2.40-new/ld/testsuite/ld-aarch64/farcall-bl-plt.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-aarch64/farcall-bl-plt.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-aarch64/farcall-bl-plt.d	2023-03-09 14:52:07.339233456 +0100
e20ceaf
@@ -7,7 +7,7 @@
e20ceaf
 #...
7286330
 
e20ceaf
 Disassembly of section .plt:
e20ceaf
-
e20ceaf
+#pass
7286330
 .* <.plt>:
7286330
 .*:	a9bf7bf0 	stp	x16, x30, \[sp, #-16\]!
e20ceaf
 .*:	.* 	adrp	x16, .* <__foo_veneer\+.*>
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/farcall-b-plt.d binutils-2.40-new/ld/testsuite/ld-aarch64/farcall-b-plt.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-aarch64/farcall-b-plt.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-aarch64/farcall-b-plt.d	2023-03-09 14:52:07.339233456 +0100
e20ceaf
@@ -7,7 +7,7 @@
e20ceaf
 #...
7286330
 
e20ceaf
 Disassembly of section .plt:
e20ceaf
-
e20ceaf
+#pass
7286330
 .* <.plt>:
7286330
 .*:	a9bf7bf0 	stp	x16, x30, \[sp, #-16\]!
e20ceaf
 .*:	.* 	adrp	x16, .* <__foo_veneer\+.*>
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/ifunc-1.d binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-1.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-aarch64/ifunc-1.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-1.d	2023-03-09 14:52:07.339233456 +0100
e20ceaf
@@ -2,8 +2,4 @@
7286330
 #ld: -shared --hash-style=sysv
7286330
 #objdump: -dw
7286330
 
7286330
-#...
7286330
-0+(130|1a0|1c8) <foo>:
7286330
-#...
7286330
-[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(130|1a0|1c8)@plt>
7286330
 #pass
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/ifunc-1-local.d binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-1-local.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-aarch64/ifunc-1-local.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-1-local.d	2023-03-09 14:52:07.342233420 +0100
e20ceaf
@@ -2,8 +2,4 @@
7286330
 #ld: -shared --hash-style=sysv
7286330
 #objdump: -dw
7286330
 
7286330
-#...
7286330
-0+(110|180|1a0) <(__GI_)?foo>:
7286330
-#...
7286330
-[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+(0x110|0x180|0x1a0)@plt>
7286330
 #pass
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/ifunc-21.d binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-21.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-aarch64/ifunc-21.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-21.d	2023-03-09 14:52:07.339233456 +0100
e20ceaf
@@ -6,6 +6,7 @@
e20ceaf
 # Ensure the .got.plt slot used is correct
e20ceaf
 
e20ceaf
 .*:     file format elf64-(little|big)aarch64
e20ceaf
+#pass
e20ceaf
 
e20ceaf
 Contents of section .text:
7286330
  [0-9a-f]+ .*
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/ifunc-22.d binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-22.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-aarch64/ifunc-22.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-22.d	2023-03-09 14:52:07.340233444 +0100
e20ceaf
@@ -6,6 +6,7 @@
7286330
 # Ensure GOT is populated correctly in static link
7286330
 
7286330
 .*:     file format elf64-(little|big)aarch64
7286330
+#pass
e20ceaf
 
e20ceaf
 Contents of section \.got:
e20ceaf
  [0-9a-f]+ 00000000 00000000 (d0004000|18004000|00000000) (00000000|004000d0|00400018) .*
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/ifunc-2.d binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-2.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-aarch64/ifunc-2.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-2.d	2023-03-09 14:52:07.342233420 +0100
e20ceaf
@@ -2,10 +2,4 @@
e20ceaf
 #ld: -shared --hash-style=sysv
7286330
 #objdump: -dw
8969267
 
e20ceaf
-#...
7286330
-0+(130|1a0|1c8) <foo>:
7286330
-#...
7286330
-[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(130|1a0|1c8)@plt>
7286330
-[ \t0-9a-f]+:[ \t0-9a-f]+adrp[ \t]+x0, 0 <.*>
7286330
-[ \t0-9a-f]+:[ \t0-9a-f]+add[ \t]+x0, x0, #0x(120|190|1b8)
e20ceaf
 #pass
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/ifunc-2-local.d binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-2-local.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-aarch64/ifunc-2-local.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-2-local.d	2023-03-09 14:52:07.342233420 +0100
e20ceaf
@@ -2,10 +2,4 @@
e20ceaf
 #ld: -shared --hash-style=sysv
7286330
 #objdump: -dw
7286330
 
e20ceaf
-#...
7286330
-0+(110|180|1a0) <__GI_foo>:
7286330
-#...
7286330
-[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(110|180|1a0)@plt>
7286330
-[ \t0-9a-f]+:[ \t0-9a-f]+adrp[ \t]+x0, 0 <.*>
7286330
-[ \t0-9a-f]+:[ \t0-9a-f]+add[ \t]+x0, x0, #0x(100|170|190)
e20ceaf
 #pass
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/ifunc-3a.d binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-3a.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-aarch64/ifunc-3a.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-3a.d	2023-03-09 14:52:07.342233420 +0100
e20ceaf
@@ -3,8 +3,4 @@
e20ceaf
 #ld: -shared --hash-style=sysv
7286330
 #objdump: -dw
7286330
 
e20ceaf
-#...
7286330
-0+(150|1d0|1e8) <__GI_foo>:
7286330
-#...
7286330
-[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(150|1d0|1e8)@plt>
e20ceaf
 #pass
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/ifunc-7c.d binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-7c.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-aarch64/ifunc-7c.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-aarch64/ifunc-7c.d	2023-03-09 14:52:07.340233444 +0100
e20ceaf
@@ -6,7 +6,7 @@
7286330
 # Check if adrp and ldr have been relocated correctly.
7286330
 
7286330
 .*:     file format elf.+aarch64.*
7286330
-
e20ceaf
+#pass
e20ceaf
 
e20ceaf
 Disassembly of section \.text:
7286330
 
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/variant_pcs-now.d binutils-2.40-new/ld/testsuite/ld-aarch64/variant_pcs-now.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-aarch64/variant_pcs-now.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-aarch64/variant_pcs-now.d	2023-03-09 14:52:07.340233444 +0100
e20ceaf
@@ -5,6 +5,7 @@
e20ceaf
 #readelf: -rsW
e20ceaf
 
e20ceaf
 Relocation section '\.rela\.plt' at offset 0x11000 contains 12 entries:
e20ceaf
+#pass
e20ceaf
     Offset             Info             Type               Symbol's Value  Symbol's Name \+ Addend
e20ceaf
 0000000000009020  0000000100000402 R_AARCH64_JUMP_SLOT    0000000000000000 f_base_global_default_undef \+ 0
e20ceaf
 0000000000009028  0000000200000402 R_AARCH64_JUMP_SLOT    0000000000000000 f_spec_global_default_undef \+ 0
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/variant_pcs-r.d binutils-2.40-new/ld/testsuite/ld-aarch64/variant_pcs-r.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-aarch64/variant_pcs-r.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-aarch64/variant_pcs-r.d	2023-03-09 14:52:07.340233444 +0100
e20ceaf
@@ -4,6 +4,7 @@
e20ceaf
 #readelf: -rsW
f9882af
 
e20ceaf
 Relocation section '\.rela\.text' at offset .* contains 24 entries:
e20ceaf
+#pass
e20ceaf
     Offset             Info             Type               Symbol's Value  Symbol's Name \+ Addend
e20ceaf
 0000000000000000  000000180000011b R_AARCH64_CALL26       0000000000000000 f_spec_global_default_def \+ 0
e20ceaf
 0000000000000004  000000110000011b R_AARCH64_CALL26       0000000000000000 f_spec_global_default_undef \+ 0
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-aarch64/variant_pcs-shared.d binutils-2.40-new/ld/testsuite/ld-aarch64/variant_pcs-shared.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-aarch64/variant_pcs-shared.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-aarch64/variant_pcs-shared.d	2023-03-09 14:52:07.340233444 +0100
e20ceaf
@@ -5,6 +5,7 @@
e20ceaf
 #readelf: -rsW
f9882af
 
e20ceaf
 Relocation section '\.rela\.plt' at offset 0x11000 contains 12 entries:
e20ceaf
+#pass
e20ceaf
     Offset             Info             Type               Symbol's Value  Symbol's Name \+ Addend
e20ceaf
 0000000000009020  0000000100000402 R_AARCH64_JUMP_SLOT    0000000000000000 f_base_global_default_undef \+ 0
e20ceaf
 0000000000009028  0000000200000402 R_AARCH64_JUMP_SLOT    0000000000000000 f_spec_global_default_undef \+ 0
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-elf/binutils.exp binutils-2.40-new/ld/testsuite/ld-elf/binutils.exp
e20ceaf
--- binutils-2.40/ld/testsuite/ld-elf/binutils.exp	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-elf/binutils.exp	2023-03-09 14:52:07.343233407 +0100
7286330
@@ -174,7 +174,7 @@ binutils_test strip "-T ${srcdir}/${subd
277c44e
 
7286330
 set tls_tests { "tdata1" "tdata2" }
7286330
 # hppa64 has its own .tbss section, with different flags.
7286330
-if { ![istarget "hppa64-*-*"] } {
e20ceaf
+if { ![istarget "hppa64-*-*"] && ![istarget "powerpc*-*-*"] } {
7286330
     lappend tls_tests "tdata3" "tbss1" "tbss2" "tbss3"
277c44e
 }
7286330
 set tls_opts {
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-elf/dwarf.exp binutils-2.40-new/ld/testsuite/ld-elf/dwarf.exp
e20ceaf
--- binutils-2.40/ld/testsuite/ld-elf/dwarf.exp	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-elf/dwarf.exp	2023-03-09 14:52:07.348233346 +0100
e20ceaf
@@ -29,6 +29,10 @@ if ![is_elf_format] {
e20ceaf
     return
e20ceaf
 }
7286330
 
e20ceaf
+if { [istarget riscv*-*-*] } then {
7286330
+    return
7286330
+}
7286330
+
e20ceaf
 # Skip targets where -shared is not supported
e20ceaf
 
e20ceaf
 if ![check_shared_lib_support] {
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-elf/linux-x86.exp binutils-2.40-new/ld/testsuite/ld-elf/linux-x86.exp
e20ceaf
--- binutils-2.40/ld/testsuite/ld-elf/linux-x86.exp	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-elf/linux-x86.exp	2023-03-09 14:52:07.343233407 +0100
e20ceaf
@@ -72,7 +72,7 @@ run_ld_link_tests [list \
e20ceaf
 	"x86-feature-1" \
e20ceaf
     ] \
e20ceaf
 ]
e20ceaf
-
e20ceaf
+return
7286330
 run_cc_link_tests [list \
7286330
     [list \
7286330
 	"Build indirect-extern-access-1.so" \
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-elf/shared.exp binutils-2.40-new/ld/testsuite/ld-elf/shared.exp
e20ceaf
--- binutils-2.40/ld/testsuite/ld-elf/shared.exp	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-elf/shared.exp	2023-03-09 14:52:07.344233395 +0100
e20ceaf
@@ -1151,6 +1151,8 @@ set run_tests [list \
e20ceaf
     [list "Run pr21964-3" \
e20ceaf
      "-Wl,--no-as-needed,-rpath,tmpdir tmpdir/pr21964-1a.so tmpdir/pr21964-1b.so tmpdir/pr21964-3a.so" "" \
e20ceaf
      {pr21964-3c.c} "pr21964-3" "pass.out" ] \
e20ceaf
+]
e20ceaf
+set disabled_run_tests [list \
e20ceaf
     [list "pr26580-3" \
e20ceaf
      "" "" \
e20ceaf
      {pr26580-a.c} "pr26580-3" "pr26580-3.out" "-fcommon" "c" "" \
e20ceaf
@@ -1578,6 +1580,8 @@ if { [istarget *-*-linux*]
7286330
 	    "pr22393-2-static" \
7286330
 	    "pass.out" \
7286330
 	] \
e20ceaf
+    ]
e20ceaf
+    set disabled_run_ld_link_exec_tests [list \
e20ceaf
 	[list \
e20ceaf
 	    "Run pr21964-4" \
e20ceaf
 	    "" \
e20ceaf
@@ -1656,7 +1660,7 @@ proc mix_pic_and_non_pic {xfails cflags
e20ceaf
     }
7286330
 }
7286330
 
e20ceaf
-mix_pic_and_non_pic [list "arm*-*-*" "aarch64*-*-*"] "" "" "pr19719"
e20ceaf
+mix_pic_and_non_pic [list "arm*-*-*"] "" "" "pr19719"
e20ceaf
 mix_pic_and_non_pic [] "-fPIE" "-pie" "pr19719pie"
e20ceaf
 
e20ceaf
 set AFLAGS_PIE ""
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-elf/tls.exp binutils-2.40-new/ld/testsuite/ld-elf/tls.exp
e20ceaf
--- binutils-2.40/ld/testsuite/ld-elf/tls.exp	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-elf/tls.exp	2023-03-09 14:52:07.348233346 +0100
e20ceaf
@@ -28,6 +28,10 @@ if { !([istarget *-*-linux*]
7286330
     return
7286330
 }
e20ceaf
 
e20ceaf
+if { [istarget riscv*-*-*] } then {
7286330
+    return
7286330
+}
e20ceaf
+
e20ceaf
 # Check to see if the C compiler works.
e20ceaf
 if { ![check_compiler_available] } {
e20ceaf
     return
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-i386/i386.exp binutils-2.40-new/ld/testsuite/ld-i386/i386.exp
e20ceaf
--- binutils-2.40/ld/testsuite/ld-i386/i386.exp	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-i386/i386.exp	2023-03-09 14:52:07.344233395 +0100
e20ceaf
@@ -595,7 +595,7 @@ proc undefined_weak {cflags ldflags} {
e20ceaf
 	pass $testname
e20ceaf
     }
e20ceaf
 }
e20ceaf
-
e20ceaf
+return
e20ceaf
 # Must be Linux native with the C compiler
e20ceaf
 if { [isnative]
e20ceaf
      && [istarget "i?86-*-linux*"]
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-ifunc/ifunc.exp binutils-2.40-new/ld/testsuite/ld-ifunc/ifunc.exp
e20ceaf
--- binutils-2.40/ld/testsuite/ld-ifunc/ifunc.exp	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-ifunc/ifunc.exp	2023-03-09 14:52:07.345233383 +0100
e20ceaf
@@ -39,6 +39,7 @@ if { ![is_elf_format] || ![supports_gnu_
7286330
      || [istarget nds32*-*-*]
7286330
      || [istarget nios2-*-*]
7286330
      || [istarget or1k-*-*]
7286330
+     || [istarget powerpc*-*-*]
7286330
      || [istarget score*-*-*]
7286330
      || [istarget sh*-*-*]
7286330
      || [istarget tic6x-*-*]
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/lto.exp binutils-2.40-new/ld/testsuite/ld-plugin/lto.exp
e20ceaf
--- binutils-2.40/ld/testsuite/ld-plugin/lto.exp	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-plugin/lto.exp	2023-03-09 14:52:07.338233469 +0100
7286330
@@ -31,8 +31,8 @@ if { ![check_plugin_api_available]
7286330
 
7286330
 set saved_CFLAGS "$CFLAGS_FOR_TARGET"
7286330
 set saved_CXXFLAGS "$CXXFLAGS_FOR_TARGET"
7286330
-regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CFLAGS_FOR_TARGET "" CFLAGS_FOR_TARGET
7286330
-regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CXXFLAGS_FOR_TARGET "" CXXFLAGS_FOR_TARGET
7286330
+# regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CFLAGS_FOR_TARGET "" CFLAGS_FOR_TARGET
7286330
+# regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CXXFLAGS_FOR_TARGET "" CXXFLAGS_FOR_TARGET
7286330
 
7286330
 proc restore_notify { } {
7286330
   global saved_CFLAGS
e20ceaf
@@ -480,6 +480,9 @@ set lto_link_elf_tests [list \
e20ceaf
    "libpr28879a.so" \
7286330
    "c++" \
7286330
   ] \
e20ceaf
+]
e20ceaf
+
e20ceaf
+set disabled_lto_link_elf_tests [list \
7286330
   [list \
e20ceaf
    "Build libpr28879b.so" \
e20ceaf
    "-shared -Wl,--no-as-needed tmpdir/libpr28879a.so" \
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-10.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-10.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-plugin/plugin-10.d	2023-03-09 14:51:59.900322791 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-10.d	2023-03-09 14:52:07.336233493 +0100
7286330
@@ -32,7 +32,7 @@ hook called: claim_file tmpdir/func.o \[
7286330
 hook called: claim_file tmpdir/libtext.a \[@.* not claimed
7286330
 #...
7286330
 hook called: all symbols read.
7286330
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
e20ceaf
+Sym: '_?func' Resolution: LDPR_PREVAILING_.*
7286330
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
7286330
 #...
7286330
 hook called: cleanup.
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-11.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-11.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-plugin/plugin-11.d	2023-03-09 14:51:59.900322791 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-11.d	2023-03-09 14:52:07.336233493 +0100
7286330
@@ -35,9 +35,9 @@ hook called: claim_file tmpdir/func.o \[
7286330
 hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED
7286330
 #...
7286330
 hook called: all symbols read.
7286330
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
e20ceaf
+Sym: '_?func' Resolution: LDPR_PREVAILING_.*
7286330
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
7286330
-Sym: '_?text' Resolution: LDPR_PREVAILING_DEF_IRONLY
e20ceaf
+Sym: '_?text' Resolution: LDPR_PREVAILING_.*
7286330
 #...
7286330
 hook called: cleanup.
7286330
 #...
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-16.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-16.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-plugin/plugin-16.d	2023-03-09 14:51:59.900322791 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-16.d	2023-03-09 14:52:07.336233493 +0100
7286330
@@ -30,7 +30,7 @@ hook called: claim_file .*/ld/testsuite/
7286330
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
7286330
 #...
7286330
 hook called: all symbols read.
7286330
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
e20ceaf
+Sym: '_?func' Resolution: LDPR_PREVAILING_.*
7286330
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
7286330
 #...
7286330
 hook called: cleanup.
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-17.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-17.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-plugin/plugin-17.d	2023-03-09 14:51:59.901322779 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-17.d	2023-03-09 14:52:07.336233493 +0100
7286330
@@ -31,7 +31,7 @@ hook called: claim_file .*/ld/testsuite/
7286330
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
7286330
 #...
7286330
 hook called: all symbols read.
7286330
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
e20ceaf
+Sym: '_?func' Resolution: LDPR_PREVAILING_.*
7286330
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
7286330
 #...
7286330
 hook called: cleanup.
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-18.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-18.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-plugin/plugin-18.d	2023-03-09 14:51:59.901322779 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-18.d	2023-03-09 14:52:07.336233493 +0100
7286330
@@ -32,7 +32,7 @@ hook called: claim_file .*/ld/testsuite/
7286330
 hook called: claim_file tmpdir/libtext.a \[@.* not claimed
277c44e
 #...
7286330
 hook called: all symbols read.
7286330
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
e20ceaf
+Sym: '_?func' Resolution: LDPR_PREVAILING_.*
7286330
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
7286330
 #...
7286330
 hook called: cleanup.
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-19.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-19.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-plugin/plugin-19.d	2023-03-09 14:51:59.901322779 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-19.d	2023-03-09 14:52:07.338233469 +0100
7286330
@@ -35,9 +35,9 @@ hook called: claim_file .*/ld/testsuite/
7286330
 hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED
7286330
 #...
7286330
 hook called: all symbols read.
7286330
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
e20ceaf
+Sym: '_?func' Resolution: LDPR_PREVAILING_.*
7286330
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
7286330
-Sym: '_?text' Resolution: LDPR_PREVAILING_DEF_IRONLY
e20ceaf
+Sym: '_?text' Resolution: LDPR_PREVAILING_.*
7286330
 #...
7286330
 hook called: cleanup.
7286330
 #...
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-8.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-8.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-plugin/plugin-8.d	2023-03-09 14:51:59.903322756 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-8.d	2023-03-09 14:52:07.337233481 +0100
7286330
@@ -30,7 +30,7 @@ hook called: claim_file tmpdir/func.o \[
7286330
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
7286330
 #...
7286330
 hook called: all symbols read.
7286330
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
e20ceaf
+Sym: '_?func' Resolution: LDPR_PREVAILING_.*
7286330
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
7286330
 #...
7286330
 hook called: cleanup.
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin-9.d binutils-2.40-new/ld/testsuite/ld-plugin/plugin-9.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-plugin/plugin-9.d	2023-03-09 14:51:59.903322756 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin-9.d	2023-03-09 14:52:07.337233481 +0100
7286330
@@ -31,7 +31,7 @@ hook called: claim_file tmpdir/func.o \[
7286330
 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
7286330
 #...
7286330
 hook called: all symbols read.
7286330
-Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
e20ceaf
+Sym: '_?func' Resolution: LDPR_PREVAILING_.*
7286330
 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
7286330
 #...
7286330
 hook called: cleanup.
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-plugin/plugin.exp binutils-2.40-new/ld/testsuite/ld-plugin/plugin.exp
e20ceaf
--- binutils-2.40/ld/testsuite/ld-plugin/plugin.exp	2023-03-09 14:51:59.903322756 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-plugin/plugin.exp	2023-03-09 14:52:07.342233420 +0100
e20ceaf
@@ -304,6 +304,7 @@ if { !$can_compile || $failed_compile }
e20ceaf
 run_ld_link_tests $plugin_tests
277c44e
 
e20ceaf
 if { [is_elf_format] \
e20ceaf
+     && [istarget "x86_64-*-*"] \
e20ceaf
      && [ld_compile $CC_FOR_TARGET $srcdir/$subdir/func1p.c tmpdir/func1p.o] \
e20ceaf
      && [ld_compile $CC_FOR_TARGET $srcdir/$subdir/func2i.c tmpdir/func2i.o] \
e20ceaf
      && [ld_compile $CC_FOR_TARGET $srcdir/$subdir/func3h.c tmpdir/func3h.o] } {
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-powerpc/powerpc.exp binutils-2.40-new/ld/testsuite/ld-powerpc/powerpc.exp
e20ceaf
--- binutils-2.40/ld/testsuite/ld-powerpc/powerpc.exp	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-powerpc/powerpc.exp	2023-03-09 14:52:07.345233383 +0100
e20ceaf
@@ -19,7 +19,7 @@
e20ceaf
 # MA 02110-1301, USA.
e20ceaf
 #
e20ceaf
 
e20ceaf
-if { ![istarget "powerpc*-*-*"]	} {
e20ceaf
+if { ![istarget "powerpc-*-*"]	} {
e20ceaf
     return
7286330
 }
277c44e
 
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-riscv-elf/attr-phdr.d binutils-2.40-new/ld/testsuite/ld-riscv-elf/attr-phdr.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-riscv-elf/attr-phdr.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-riscv-elf/attr-phdr.d	2023-03-09 14:52:07.347233358 +0100
e20ceaf
@@ -12,8 +12,8 @@ Program Headers:
e20ceaf
   Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
e20ceaf
   RISCV_ATTRIBUT .*
e20ceaf
   LOAD           .*
e20ceaf
-
e20ceaf
+#...
e20ceaf
  Section to Segment mapping:
e20ceaf
   Segment Sections...
e20ceaf
    00     .riscv.attributes 
e20ceaf
-   01     .text 
e20ceaf
+#pass
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-riscv-elf/pcgp-relax-01.d binutils-2.40-new/ld/testsuite/ld-riscv-elf/pcgp-relax-01.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-riscv-elf/pcgp-relax-01.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-riscv-elf/pcgp-relax-01.d	2023-03-09 14:52:07.347233358 +0100
e20ceaf
@@ -8,7 +8,7 @@
e20ceaf
 Disassembly of section \.text:
277c44e
 
e20ceaf
 0+[0-9a-f]+ <_start>:
e20ceaf
-.*:[ 	]+[0-9a-f]+[ 	]+addi[ 	]+a0,a0,[0-9]+
e20ceaf
+.*:[ 	]+[0-9a-f]+[ 	]+addi[ 	]+a0,a0,\-[0-9]+
e20ceaf
 .*:[ 	]+[0-9a-f]+[ 	]+jal[ 	]+ra,[0-9a-f]+ <_start>
e20ceaf
 .*:[ 	]+[0-9a-f]+[ 	]+addi[ 	]+a1,gp,\-[0-9]+ # [0-9a-f]+ <data_g>
e20ceaf
 .*:[ 	]+[0-9a-f]+[ 	]+addi[ 	]+a2,gp,\-[0-9]+ # [0-9a-f]+ <data_g>
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-riscv-elf/pcgp-relax-02.d binutils-2.40-new/ld/testsuite/ld-riscv-elf/pcgp-relax-02.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-riscv-elf/pcgp-relax-02.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-riscv-elf/pcgp-relax-02.d	2023-03-09 14:52:07.347233358 +0100
e20ceaf
@@ -11,5 +11,5 @@ Disassembly of section .text:
e20ceaf
 [0-9a-f]+ <_start>:
e20ceaf
 .*:[ 	]+[0-9a-f]+[ 	]+auipc[ 	]+a1.*
e20ceaf
 .*:[ 	]+[0-9a-f]+[ 	]+addi?[ 	]+a0,gp.*<data_a>
e20ceaf
-.*:[ 	]+[0-9a-f]+[ 	]+addi?[ 	]+a1,a1.*<data_b>
e20ceaf
+.*:[ 	]+[0-9a-f]+[ 	]+mv[ 	]+a1,a1
277c44e
 #pass
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d binutils-2.40-new/ld/testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d	2023-03-09 14:52:07.347233358 +0100
e20ceaf
@@ -2,4 +2,5 @@
e20ceaf
 #source: pcrel-lo-addend-2a.s
e20ceaf
 #as: -march=rv32ic
e20ceaf
 #ld: -m[riscv_choose_ilp32_emul] --no-relax
e20ceaf
+#skip: *-*-*
e20ceaf
 #error: .*dangerous relocation: %pcrel_lo overflow with an addend, the value of %pcrel_hi is 0x1000 without any addend, but may be 0x2000 after adding the %pcrel_lo addend
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-riscv-elf/variant_cc-now.d binutils-2.40-new/ld/testsuite/ld-riscv-elf/variant_cc-now.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-riscv-elf/variant_cc-now.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-riscv-elf/variant_cc-now.d	2023-03-09 14:52:07.347233358 +0100
e20ceaf
@@ -22,52 +22,52 @@ Symbol table '.dynsym' contains .*
e20ceaf
 #...
e20ceaf
 [ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+UND[ 	]+nocc_global_default_undef
e20ceaf
 #...
e20ceaf
-[ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+\[VARIANT_CC\][ 	]+UND[ 	]+cc_global_default_undef
e20ceaf
+[ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+UND[ 	]+cc_global_default_undef[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
-[ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+IFUNC[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+\[VARIANT_CC\][ 	]+1[ 	]+cc_global_default_ifunc
e20ceaf
+[ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+IFUNC[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]+cc_global_default_ifunc[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
 [ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+IFUNC[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]+nocc_global_default_ifunc
e20ceaf
 #...
e20ceaf
-[ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+\[VARIANT_CC\][ 	]+1[ 	]+cc_global_default_def
e20ceaf
+[ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]+cc_global_default_def[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
 [ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]+nocc_global_default_def
e20ceaf
 #...
e20ceaf
 Symbol table '.symtab' contains .*
e20ceaf
 .*
e20ceaf
 #...
e20ceaf
-[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 	]+1[ 	]+cc_global_hidden_ifunc[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
 [ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+UND[ 	]+nocc_global_default_undef
e20ceaf
 #...
e20ceaf
-[ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+\[VARIANT_CC\][ 	]+UND[ 	]+cc_global_default_undef
e20ceaf
+[ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+UND[ 	]+cc_global_default_undef[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
-[ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+IFUNC[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+\[VARIANT_CC\][ 	]+1[ 	]+cc_global_default_ifunc
e20ceaf
+[ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+IFUNC[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]+cc_global_default_ifunc[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
 [ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+IFUNC[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]+nocc_global_default_ifunc
e20ceaf
 #...
e20ceaf
-[ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+\[VARIANT_CC\][ 	]+1[ 	]+cc_global_default_def
e20ceaf
+[ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]+cc_global_default_def[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
 [ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]+nocc_global_default_def
e20ceaf
 #...
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-riscv-elf/variant_cc-r.d binutils-2.40-new/ld/testsuite/ld-riscv-elf/variant_cc-r.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-riscv-elf/variant_cc-r.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-riscv-elf/variant_cc-r.d	2023-03-09 14:52:07.348233346 +0100
e20ceaf
@@ -38,17 +38,17 @@ Relocation section '.rela.text' at .*
e20ceaf
 Symbol table '.symtab' contains .*
e20ceaf
 .*
e20ceaf
 #...
e20ceaf
-[ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+NOTYPE[ 	]+LOCAL[ 	]+DEFAULT[ 	]+\[VARIANT_CC\][ 	]+1[ 	]+cc_local
e20ceaf
+[ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+NOTYPE[ 	]+LOCAL[ 	]+DEFAULT[ 	]+1[ 	]+cc_local[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
-[ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+IFUNC[ 	]+LOCAL[ 	]+DEFAULT[ 	]+\[VARIANT_CC\][ 	]+1[ 	]+cc_local_ifunc
e20ceaf
+[ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+IFUNC[ 	]+LOCAL[ 	]+DEFAULT[ 	]+1[ 	]+cc_local_ifunc[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
 [ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+IFUNC[ 	]+LOCAL[ 	]+DEFAULT[ 	]+1[ 	]+nocc_local_ifunc
e20ceaf
 #...
e20ceaf
 [ 	]+[0-9a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[ 	]+HIDDEN[ 	]+1[ 	]+cc_global_hidden_def[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
-[ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+\[VARIANT_CC\][ 	]+UND[ 	]+cc_global_default_undef
e20ceaf
+[ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+UND[ 	]+cc_global_default_undef[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
-[ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+IFUNC[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+\[VARIANT_CC\][ 	]+1[ 	]+cc_global_default_ifunc
e20ceaf
+[ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+IFUNC[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]+cc_global_default_ifunc[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
 [ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+HIDDEN[ 	]+1[ 	]+nocc_global_hidden_def
e20ceaf
 #...
e20ceaf
@@ -68,9 +68,9 @@ Symbol table '.symtab' contains .*
e20ceaf
 #...
e20ceaf
 [ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+IFUNC[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]+nocc_global_default_ifunc
e20ceaf
 #...
e20ceaf
-[ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+\[VARIANT_CC\][ 	]+1[ 	]+cc_global_default_def
e20ceaf
+[ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]+cc_global_default_def[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
 [ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]+nocc_global_default_def
e20ceaf
 #...
e20ceaf
-[ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+IFUNC[ 	]+GLOBAL[ 	]+HIDDEN[ 	]+\[VARIANT_CC\][ 	]+1[ 	]+cc_global_hidden_ifunc
e20ceaf
+[ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+IFUNC[ 	]+GLOBAL[ 	]+HIDDEN[ 	]+1[ 	]+cc_global_hidden_ifunc[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-riscv-elf/variant_cc-shared.d binutils-2.40-new/ld/testsuite/ld-riscv-elf/variant_cc-shared.d
e20ceaf
--- binutils-2.40/ld/testsuite/ld-riscv-elf/variant_cc-shared.d	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-riscv-elf/variant_cc-shared.d	2023-03-09 14:52:07.348233346 +0100
e20ceaf
@@ -22,52 +22,52 @@ Symbol table '.dynsym' contains .*
e20ceaf
 #...
e20ceaf
 [ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+UND[ 	]+nocc_global_default_undef
e20ceaf
 #...
e20ceaf
-[ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+\[VARIANT_CC\][ 	]+UND[ 	]+cc_global_default_undef
e20ceaf
+[ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+UND[ 	]+cc_global_default_undef[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
-[ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+IFUNC[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+\[VARIANT_CC\][ 	]+1[ 	]+cc_global_default_ifunc
e20ceaf
+[ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+IFUNC[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]+cc_global_default_ifunc[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
 [ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+IFUNC[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]+nocc_global_default_ifunc
e20ceaf
 #...
e20ceaf
-[ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+\[VARIANT_CC\][ 	]+1[ 	]+cc_global_default_def
e20ceaf
+[ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]+cc_global_default_def[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
 [ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]+nocc_global_default_def
e20ceaf
 #...
e20ceaf
 Symbol table '.symtab' contains .*
e20ceaf
 .*
e20ceaf
 #...
e20ceaf
-[ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+NOTYPE[ 	]+LOCAL[ 	]+DEFAULT[ 	]+\[VARIANT_CC\][ 	]+1[ 	]+cc_local
e20ceaf
+[ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+NOTYPE[ 	]+LOCAL[ 	]+DEFAULT[ 	]+1[ 	]+cc_local[ 	]+\[VARIANT_CC\]
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+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+\[VARIANT_CC\][ 	]+UND[ 	]+cc_global_default_undef
e20ceaf
+[ 	]+[0-9a-f]+:[ 	]+0+0000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+UND[ 	]+cc_global_default_undef[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
-[ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+IFUNC[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+\[VARIANT_CC\][ 	]+1[ 	]+cc_global_default_ifunc
e20ceaf
+[ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+IFUNC[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]+cc_global_default_ifunc[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
 [ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+IFUNC[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]+nocc_global_default_ifunc
e20ceaf
 #...
e20ceaf
-[ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+\[VARIANT_CC\][ 	]+1[ 	]+cc_global_default_def
e20ceaf
+[ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]+cc_global_default_def[ 	]+\[VARIANT_CC\]
e20ceaf
 #...
e20ceaf
 [ 	]+[0-9a-f]+:[ 	]+0+8000[ 	]+0[ 	]+NOTYPE[ 	]+GLOBAL[ 	]+DEFAULT[ 	]+1[ 	]+nocc_global_default_def
e20ceaf
 #...
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-s390/s390.exp binutils-2.40-new/ld/testsuite/ld-s390/s390.exp
e20ceaf
--- binutils-2.40/ld/testsuite/ld-s390/s390.exp	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-s390/s390.exp	2023-03-09 14:52:07.345233383 +0100
e20ceaf
@@ -25,6 +25,7 @@
e20ceaf
 if { !([istarget "s390-*-*"] || [istarget "s390x-*-*"]) } {
e20ceaf
     return
277c44e
 }
e20ceaf
+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
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-scripts/crossref.exp binutils-2.40-new/ld/testsuite/ld-scripts/crossref.exp
e20ceaf
--- binutils-2.40/ld/testsuite/ld-scripts/crossref.exp	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-scripts/crossref.exp	2023-03-09 14:52:07.345233383 +0100
e20ceaf
@@ -122,6 +122,7 @@ if [string match "" $exec_output] then {
277c44e
 }
277c44e
 
e20ceaf
 # Check cross references for ld -r
277c44e
+return
277c44e
 
e20ceaf
 if { ![ld_compile "$CC_FOR_TARGET $NOSANITIZE_CFLAGS $NOLTO_CFLAGS" "$srcdir/$subdir/cross4.c" tmpdir/cross4.o] } {
e20ceaf
     unsupported $test3
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-shared/shared.exp binutils-2.40-new/ld/testsuite/ld-shared/shared.exp
e20ceaf
--- binutils-2.40/ld/testsuite/ld-shared/shared.exp	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-shared/shared.exp	2023-03-09 14:52:07.346233370 +0100
e20ceaf
@@ -42,8 +42,6 @@ if { ![istarget hppa*64*-*-hpux*] \
7286330
      && ![istarget i?86-*-sysv4*] \
7286330
      && ![istarget i?86-*-unixware] \
e20ceaf
      && ![istarget i?86-*-elf*] \
7286330
-     && ![istarget i?86-*-linux*] \
7286330
-     && ![istarget i?86-*-gnu*] \
7286330
      && ![istarget *-*-nacl*] \
7286330
      && ![istarget ia64-*-elf*] \
7286330
      && ![istarget ia64-*-linux*] \
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-vsb/vsb.exp binutils-2.40-new/ld/testsuite/ld-vsb/vsb.exp
e20ceaf
--- binutils-2.40/ld/testsuite/ld-vsb/vsb.exp	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-vsb/vsb.exp	2023-03-09 14:52:07.346233370 +0100
e20ceaf
@@ -34,8 +34,6 @@ if { ![check_compiler_available] } {
e20ceaf
 # Square bracket expressions seem to confuse istarget.
e20ceaf
 if { ![istarget hppa*64*-*-hpux*] \
e20ceaf
      && ![istarget hppa*-*-linux*] \
e20ceaf
-     && ![istarget i?86-*-linux*] \
e20ceaf
-     && ![istarget i?86-*-gnu*] \
e20ceaf
      && ![istarget *-*-nacl*] \
e20ceaf
      && ![istarget ia64-*-linux*] \
e20ceaf
      && ![istarget m68k-*-linux*] \
e20ceaf
diff -rupN --no-dereference binutils-2.40/ld/testsuite/ld-x86-64/x86-64.exp binutils-2.40-new/ld/testsuite/ld-x86-64/x86-64.exp
e20ceaf
--- binutils-2.40/ld/testsuite/ld-x86-64/x86-64.exp	2023-01-14 01:00:00.000000000 +0100
e20ceaf
+++ binutils-2.40-new/ld/testsuite/ld-x86-64/x86-64.exp	2023-03-09 14:52:07.337233481 +0100
e20ceaf
@@ -786,6 +786,8 @@ proc undefined_weak {cflags ldflags} {
277c44e
     }
277c44e
 }
277c44e
 
e20ceaf
+return
8969267
+
e20ceaf
 # Must be native with the C compiler
e20ceaf
 if { [isnative] && [check_compiler_available] } {
e20ceaf
     run_cc_link_tests [list \