Upgrade of musl-1.2.3, binutils-2.38, and gcc-11
[dragora.git] / patches / binutils / 2.38 / binutils-testsuite-fixes.patch
blob643599babdd2bd68eab8a768a74355f0b8c58310
1 diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-10.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-10.d
2 --- binutils.orig/ld/testsuite/ld-plugin/plugin-10.d 2021-02-12 10:13:11.116049499 +0000
3 +++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-10.d 2021-02-12 10:23:44.298370984 +0000
4 @@ -32,7 +32,7 @@ hook called: claim_file tmpdir/func.o \[
5 hook called: claim_file tmpdir/libtext.a \[@.* not claimed
6 #...
7 hook called: all symbols read.
8 -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
9 +Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
10 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
11 #...
12 hook called: cleanup.
13 diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-11.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-11.d
14 --- binutils.orig/ld/testsuite/ld-plugin/plugin-11.d 2021-02-12 10:13:11.119049477 +0000
15 +++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-11.d 2021-02-12 10:50:40.973828943 +0000
16 @@ -35,9 +35,9 @@ hook called: claim_file tmpdir/func.o \[
17 hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED
18 #...
19 hook called: all symbols read.
20 -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
21 +Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
22 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
23 -Sym: '_?text' Resolution: LDPR_PREVAILING_DEF_IRONLY
24 +Sym: '_?text' Resolution: LDPR_PREVAILING_DE.*
25 #...
26 hook called: cleanup.
27 #...
28 diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-16.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-16.d
29 --- binutils.orig/ld/testsuite/ld-plugin/plugin-16.d 2021-02-12 10:13:11.119049477 +0000
30 +++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-16.d 2021-02-12 10:29:31.510843797 +0000
31 @@ -30,7 +30,7 @@ hook called: claim_file .*/ld/testsuite/
32 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
33 #...
34 hook called: all symbols read.
35 -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
36 +Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
37 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
38 #...
39 hook called: cleanup.
40 diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-17.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-17.d
41 --- binutils.orig/ld/testsuite/ld-plugin/plugin-17.d 2021-02-12 10:13:11.116049499 +0000
42 +++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-17.d 2021-02-12 10:35:13.348404638 +0000
43 @@ -31,7 +31,7 @@ hook called: claim_file .*/ld/testsuite/
44 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
45 #...
46 hook called: all symbols read.
47 -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
48 +Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
49 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
50 #...
51 hook called: cleanup.
52 diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-18.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-18.d
53 --- binutils.orig/ld/testsuite/ld-plugin/plugin-18.d 2021-02-12 10:13:11.118049484 +0000
54 +++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-18.d 2021-02-12 10:29:47.974726314 +0000
55 @@ -32,7 +32,7 @@ hook called: claim_file .*/ld/testsuite/
56 hook called: claim_file tmpdir/libtext.a \[@.* not claimed
57 #...
58 hook called: all symbols read.
59 -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
60 +Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
61 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
62 #...
63 hook called: cleanup.
64 diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-19.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-19.d
65 --- binutils.orig/ld/testsuite/ld-plugin/plugin-19.d 2021-02-12 10:13:11.116049499 +0000
66 +++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-19.d 2021-02-12 10:30:31.990412245 +0000
67 @@ -35,9 +35,9 @@ hook called: claim_file .*/ld/testsuite/
68 hook called: claim_file tmpdir/libtext.a \[@.* CLAIMED
69 #...
70 hook called: all symbols read.
71 -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
72 +Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
73 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
74 -Sym: '_?text' Resolution: LDPR_PREVAILING_DEF_IRONLY
75 +Sym: '_?text' Resolution: LDPR_PREVAILING_DE.*
76 #...
77 hook called: cleanup.
78 #...
79 diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-8.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-8.d
80 --- binutils.orig/ld/testsuite/ld-plugin/plugin-8.d 2021-02-12 10:13:11.118049484 +0000
81 +++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-8.d 2021-02-12 10:23:18.489561148 +0000
82 @@ -30,7 +30,7 @@ hook called: claim_file tmpdir/func.o \[
83 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
84 #...
85 hook called: all symbols read.
86 -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
87 +Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
88 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
89 #...
90 hook called: cleanup.
91 diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin-9.d binutils-2.36.1/ld/testsuite/ld-plugin/plugin-9.d
92 --- binutils.orig/ld/testsuite/ld-plugin/plugin-9.d 2021-02-12 10:13:11.119049477 +0000
93 +++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-9.d 2021-02-12 10:23:34.417443785 +0000
94 @@ -31,7 +31,7 @@ hook called: claim_file tmpdir/func.o \[
95 hook called: claim_file tmpdir/text.o \[@0/.* not claimed
96 #...
97 hook called: all symbols read.
98 -Sym: '_?func' Resolution: LDPR_PREVAILING_DEF_IRONLY
99 +Sym: '_?func' Resolution: LDPR_PREVAILING_DE.*
100 Sym: '_?func2' Resolution: LDPR_PREVAILING_DEF_IRONLY
101 #...
102 hook called: cleanup.
103 diff -rup binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp
104 --- binutils.orig/ld/testsuite/ld-x86-64/x86-64.exp 2021-02-12 11:44:39.121364751 +0000
105 +++ binutils-2.36.1/ld/testsuite/ld-x86-64/x86-64.exp 2021-02-12 11:46:27.505597689 +0000
106 @@ -1878,24 +1878,6 @@ if { [isnative] && [check_compiler_avail
107 "plt-main.out" \
108 "-fPIC" \
110 - [list \
111 - "Run plt-main with libibtplt-lib.so -z ibtplt" \
112 - "-Wl,--no-as-needed,-z,ibtplt tmpdir/libibtplt-lib.so \
113 - tmpdir/libplt-lib.so" \
114 - "-Wa,-mx86-used-note=yes" \
115 - { plt-main5.c } \
116 - "plt-main-ibt-lib" \
117 - "plt-main.out" \
118 - ] \
119 - [list \
120 - "Run plt-main with libibtplt-lib.so -z ibtplt -z now" \
121 - "-Wl,--no-as-needed,-z,ibtplt,-z,now \
122 - tmpdir/libibtplt-now-lib.so tmpdir/libplt-lib.so" \
123 - "-Wa,-mx86-used-note=yes" \
124 - { plt-main5.c } \
125 - "plt-main-ibt-now-lib" \
126 - "plt-main.out" \
127 - ] \
130 if { [check_ifunc_attribute_available] } {
131 @@ -1922,7 +1904,6 @@ if { [isnative] && [check_compiler_avail
135 - undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS"
136 undefined_weak "-fPIE" ""
137 undefined_weak "-fPIE" "-pie"
138 undefined_weak "-fPIE" "-Wl,-z,nodynamic-undefined-weak"
139 --- binutils.orig/ld/testsuite/ld-plugin/plugin-12.d 2021-02-12 11:44:39.076365068 +0000
140 +++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-12.d 2021-02-12 12:01:48.091931654 +0000
141 @@ -1,5 +1,5 @@
142 #...
143 -.*: symbol `func' definition: DEF, visibility: DEFAULT, resolution: PREVAILING_DEF
144 +.*: symbol `func' definition: DEF, visibility: DEFAULT, resolution: PREVAILING_DE.*
145 .*: symbol `func1' definition: DEF, visibility: PROTECTED, resolution: PREVAILING_DEF_IRONLY
146 .*: symbol `func2' definition: DEF, visibility: INTERNAL, resolution: PREVAILING_DEF_IRONLY
147 .*: symbol `func3' definition: DEF, visibility: HIDDEN, resolution: PREVAILING_DEF_IRONLY
148 --- binutils.orig/ld/testsuite/ld-plugin/plugin-12.d 2021-02-12 14:14:25.023160021 +0000
149 +++ binutils-2.36.1/ld/testsuite/ld-plugin/plugin-12.d 2021-02-12 14:19:29.106923745 +0000
150 @@ -1,6 +1,6 @@
151 #...
152 -.*: symbol `func' definition: DEF, visibility: DEFAULT, resolution: PREVAILING_DE.*
153 -.*: symbol `func1' definition: DEF, visibility: PROTECTED, resolution: PREVAILING_DEF_IRONLY
154 -.*: symbol `func2' definition: DEF, visibility: INTERNAL, resolution: PREVAILING_DEF_IRONLY
155 -.*: symbol `func3' definition: DEF, visibility: HIDDEN, resolution: PREVAILING_DEF_IRONLY
156 +.*: symbol `.*unc' definition: DEF, visibility: DEFAULT, resolution: PREVAILING_DE.*
157 +.*: symbol `.*unc1' definition: DEF, visibility: PROTECTED, resolution: PREVAILING_DEF_IRONLY
158 +.*: symbol `.*unc2' definition: DEF, visibility: INTERNAL, resolution: PREVAILING_DEF_IRONLY
159 +.*: symbol `.*unc3' definition: DEF, visibility: HIDDEN, resolution: PREVAILING_DEF_IRONLY
160 #pass
161 --- binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-now.d 2021-07-19 12:39:14.240555833 +0100
162 +++ binutils-2.37/ld/testsuite/ld-aarch64/variant_pcs-now.d 2021-07-19 12:50:27.753751551 +0100
163 @@ -23,10 +23,10 @@ Symbol table '\.dynsym' contains 7 entri
164 Num: Value Size Type Bind Vis Ndx Name
165 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
166 1: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND f_base_global_default_undef
167 - 2: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] UND f_spec_global_default_undef
168 - 3: 0000000000008000 0 IFUNC GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_ifunc
169 + 2: 0000000000000000 0 NOTYPE GLOBAL DEFAULT[ ]+UND f_spec_global_default_undef[ ]+\[VARIANT_PCS\]
170 + 3: 0000000000008000 0 IFUNC GLOBAL DEFAULT[ ]+1 f_spec_global_default_ifunc[ ]+\[VARIANT_PCS\]
171 4: 0000000000008000 0 NOTYPE GLOBAL DEFAULT 1 f_base_global_default_def
172 - 5: 0000000000008000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_def
173 + 5: 0000000000008000 0 NOTYPE GLOBAL DEFAULT[ ]+1 f_spec_global_default_def[ ]+\[VARIANT_PCS\]
174 6: 0000000000008000 0 IFUNC GLOBAL DEFAULT 1 f_base_global_default_ifunc
176 Symbol table '\.symtab' contains 35 entries:
177 @@ -41,28 +41,28 @@ Symbol table '\.symtab' contains 35 entr
178 7: 00000000000111c8 0 SECTION LOCAL DEFAULT 7.*
179 8: 0000000000011270 0 SECTION LOCAL DEFAULT 8.*
180 9: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-1\.o
181 - 10: 0000000000008000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local
182 - 11: 0000000000008000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local_ifunc
183 + 10: 0000000000008000 0 NOTYPE LOCAL DEFAULT .*
184 + 11: 0000000000008000 0 IFUNC LOCAL DEFAULT .*
185 12: 0000000000008000 0 IFUNC LOCAL DEFAULT 1 f_base_local_ifunc
186 13: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 f_base_local
187 14: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 \$x
188 15: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-2\.o
189 - 16: 0000000000008038 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2
190 - 17: 0000000000008038 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2_ifunc
191 + 16: 0000000000008038 0 NOTYPE LOCAL DEFAULT .*
192 + 17: 0000000000008038 0 IFUNC LOCAL DEFAULT .*
193 18: 0000000000008038 0 IFUNC LOCAL DEFAULT 1 f_base_local2_ifunc
194 19: 0000000000008038 0 NOTYPE LOCAL DEFAULT 1 f_base_local2
195 20: 0000000000008038 0 NOTYPE LOCAL DEFAULT 1 \$x
196 21: 0000000000000000 0 FILE LOCAL DEFAULT ABS
197 22: 0000000000009080 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC
198 - 23: 0000000000008000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_hidden_def
199 + 23: 0000000000008000 0 NOTYPE LOCAL DEFAULT .*
200 24: 0000000000008000 0 IFUNC LOCAL DEFAULT 1 f_base_global_hidden_ifunc
201 25: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 f_base_global_hidden_def
202 26: 0000000000009000 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
203 - 27: 0000000000008000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_hidden_ifunc
204 + 27: 0000000000008000 0 IFUNC LOCAL DEFAULT .*
205 28: 0000000000008070 0 NOTYPE LOCAL DEFAULT 2 \$x
206 29: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND f_base_global_default_undef
207 - 30: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] UND f_spec_global_default_undef
208 - 31: 0000000000008000 0 IFUNC GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_ifunc
209 + 30: 0000000000000000 0 NOTYPE GLOBAL DEFAULT .*
210 + 31: 0000000000008000 0 IFUNC GLOBAL DEFAULT .*
211 32: 0000000000008000 0 NOTYPE GLOBAL DEFAULT 1 f_base_global_default_def
212 - 33: 0000000000008000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_def
213 + 33: 0000000000008000 0 NOTYPE GLOBAL DEFAULT .*
214 34: 0000000000008000 0 IFUNC GLOBAL DEFAULT 1 f_base_global_default_ifunc
215 --- binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-r.d 2021-07-19 12:39:14.235555861 +0100
216 +++ binutils-2.37/ld/testsuite/ld-aarch64/variant_pcs-r.d 2021-07-19 12:51:04.981541273 +0100
217 @@ -37,24 +37,24 @@ Symbol table '\.symtab' contains 26 entr
218 2: 0000000000000000 0 SECTION LOCAL DEFAULT 3.*
219 3: 0000000000000000 0 SECTION LOCAL DEFAULT 4.*
220 4: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-1\.o
221 - 5: 0000000000000000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local
222 - 6: 0000000000000000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local_ifunc
223 + 5: 0000000000000000 0 NOTYPE LOCAL DEFAULT .*
224 + 6: 0000000000000000 0 IFUNC LOCAL DEFAULT .*
225 7: 0000000000000000 0 IFUNC LOCAL DEFAULT 1 f_base_local_ifunc
226 8: 0000000000000000 0 NOTYPE LOCAL DEFAULT 1 f_base_local
227 9: 0000000000000000 0 NOTYPE LOCAL DEFAULT 1 \$x
228 10: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-2\.o
229 - 11: 0000000000000038 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2
230 - 12: 0000000000000038 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2_ifunc
231 + 11: 0000000000000038 0 NOTYPE LOCAL DEFAULT .*
232 + 12: 0000000000000038 0 IFUNC LOCAL DEFAULT .*
233 13: 0000000000000038 0 IFUNC LOCAL DEFAULT 1 f_base_local2_ifunc
234 14: 0000000000000038 0 NOTYPE LOCAL DEFAULT 1 f_base_local2
235 15: 0000000000000038 0 NOTYPE LOCAL DEFAULT 1 \$x
236 16: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND f_base_global_default_undef
237 - 17: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] UND f_spec_global_default_undef
238 - 18: 0000000000000000 0 NOTYPE GLOBAL HIDDEN \[VARIANT_PCS\] 1 f_spec_global_hidden_def
239 + 17: 0000000000000000 0 NOTYPE GLOBAL DEFAULT .*
240 + 18: 0000000000000000 0 NOTYPE GLOBAL HIDDEN .*
241 19: 0000000000000000 0 IFUNC GLOBAL HIDDEN 1 f_base_global_hidden_ifunc
242 - 20: 0000000000000000 0 IFUNC GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_ifunc
243 + 20: 0000000000000000 0 IFUNC GLOBAL DEFAULT .*
244 21: 0000000000000000 0 NOTYPE GLOBAL HIDDEN 1 f_base_global_hidden_def
245 - 22: 0000000000000000 0 IFUNC GLOBAL HIDDEN \[VARIANT_PCS\] 1 f_spec_global_hidden_ifunc
246 + 22: 0000000000000000 0 IFUNC GLOBAL HIDDEN .*
247 23: 0000000000000000 0 NOTYPE GLOBAL DEFAULT 1 f_base_global_default_def
248 - 24: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_def
249 + 24: 0000000000000000 0 NOTYPE GLOBAL DEFAULT .*
250 25: 0000000000000000 0 IFUNC GLOBAL DEFAULT 1 f_base_global_default_ifunc
251 --- binutils.orig/ld/testsuite/ld-aarch64/variant_pcs-shared.d 2021-07-19 12:39:14.235555861 +0100
252 +++ binutils-2.37/ld/testsuite/ld-aarch64/variant_pcs-shared.d 2021-07-19 12:51:38.076354339 +0100
253 @@ -23,10 +23,10 @@ Symbol table '\.dynsym' contains 7 entri
254 Num: Value Size Type Bind Vis Ndx Name
255 0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
256 1: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND f_base_global_default_undef
257 - 2: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] UND f_spec_global_default_undef
258 - 3: 0000000000008000 0 IFUNC GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_ifunc
259 + 2: 0000000000000000 0 NOTYPE GLOBAL DEFAULT[ ]+UND f_spec_global_default_undef[ ]+\[VARIANT_PCS\]
260 + 3: 0000000000008000 0 IFUNC GLOBAL DEFAULT[ ]+1 f_spec_global_default_ifunc[ ]+\[VARIANT_PCS\]
261 4: 0000000000008000 0 NOTYPE GLOBAL DEFAULT 1 f_base_global_default_def
262 - 5: 0000000000008000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_def
263 + 5: 0000000000008000 0 NOTYPE GLOBAL DEFAULT[ ]+1 f_spec_global_default_def[ ]+\[VARIANT_PCS\]
264 6: 0000000000008000 0 IFUNC GLOBAL DEFAULT 1 f_base_global_default_ifunc
266 Symbol table '\.symtab' contains 35 entries:
267 @@ -41,28 +41,28 @@ Symbol table '\.symtab' contains 35 entr
268 7: 00000000000111c8 0 SECTION LOCAL DEFAULT 7.*
269 8: 0000000000011270 0 SECTION LOCAL DEFAULT 8.*
270 9: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-1\.o
271 - 10: 0000000000008000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local
272 - 11: 0000000000008000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local_ifunc
273 + 10: 0000000000008000 0 NOTYPE LOCAL DEFAULT .*
274 + 11: 0000000000008000 0 IFUNC LOCAL DEFAULT .*
275 12: 0000000000008000 0 IFUNC LOCAL DEFAULT 1 f_base_local_ifunc
276 13: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 f_base_local
277 14: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 \$x
278 15: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*variant_pcs-2\.o
279 - 16: 0000000000008038 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2
280 - 17: 0000000000008038 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_local2_ifunc
281 + 16: 0000000000008038 0 NOTYPE LOCAL DEFAULT .*
282 + 17: 0000000000008038 0 IFUNC LOCAL DEFAULT .*
283 18: 0000000000008038 0 IFUNC LOCAL DEFAULT 1 f_base_local2_ifunc
284 19: 0000000000008038 0 NOTYPE LOCAL DEFAULT 1 f_base_local2
285 20: 0000000000008038 0 NOTYPE LOCAL DEFAULT 1 \$x
286 21: 0000000000000000 0 FILE LOCAL DEFAULT ABS
287 22: 0000000000009080 0 OBJECT LOCAL DEFAULT ABS _DYNAMIC
288 - 23: 0000000000008000 0 NOTYPE LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_hidden_def
289 + 23: 0000000000008000 0 NOTYPE LOCAL DEFAULT .*
290 24: 0000000000008000 0 IFUNC LOCAL DEFAULT 1 f_base_global_hidden_ifunc
291 25: 0000000000008000 0 NOTYPE LOCAL DEFAULT 1 f_base_global_hidden_def
292 26: 0000000000009000 0 OBJECT LOCAL DEFAULT ABS _GLOBAL_OFFSET_TABLE_
293 - 27: 0000000000008000 0 IFUNC LOCAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_hidden_ifunc
294 + 27: 0000000000008000 0 IFUNC LOCAL DEFAULT .*
295 28: 0000000000008070 0 NOTYPE LOCAL DEFAULT 2 \$x
296 29: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND f_base_global_default_undef
297 - 30: 0000000000000000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] UND f_spec_global_default_undef
298 - 31: 0000000000008000 0 IFUNC GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_ifunc
299 + 30: 0000000000000000 0 NOTYPE GLOBAL DEFAULT .*
300 + 31: 0000000000008000 0 IFUNC GLOBAL DEFAULT .*
301 32: 0000000000008000 0 NOTYPE GLOBAL DEFAULT 1 f_base_global_default_def
302 - 33: 0000000000008000 0 NOTYPE GLOBAL DEFAULT \[VARIANT_PCS\] 1 f_spec_global_default_def
303 + 33: 0000000000008000 0 NOTYPE GLOBAL DEFAULT .*
304 34: 0000000000008000 0 IFUNC GLOBAL DEFAULT 1 f_base_global_default_ifunc
305 --- binutils.orig/gold/main.cc 2021-07-19 12:39:14.643553557 +0100
306 +++ binutils-2.37/gold/main.cc 2021-07-19 12:53:40.043665415 +0100
307 @@ -290,16 +290,6 @@ main(int argc, char** argv)
308 elapsed.sys / 1000, (elapsed.sys % 1000) * 1000,
309 elapsed.wall / 1000, (elapsed.wall % 1000) * 1000);
311 -#if defined(HAVE_MALLINFO2)
312 - struct mallinfo2 m = mallinfo2();
313 - fprintf(stderr, _("%s: total space allocated by malloc: %lld bytes\n"),
314 - program_name, static_cast<long long>(m.arena));
315 -#elif defined(HAVE_MALLINFO)
316 - struct mallinfo m = mallinfo();
317 - fprintf(stderr, _("%s: total space allocated by malloc: %lld bytes\n"),
318 - program_name, static_cast<long long>(m.arena));
319 -#endif
321 File_read::print_stats();
322 Archive::print_stats();
323 Lib_group::print_stats();
324 --- binutils.orig/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-now.d 2021-07-19 14:51:48.859666911 +0100
325 +++ binutils-2.37/ld/testsuite/ld-aarch64/tls-relax-gdesc-le-now.d 2021-07-19 14:59:56.130065901 +0100
326 @@ -11,7 +11,7 @@
327 0x.+ \(PLTRELSZ\) \s+.+ \(bytes\)
328 0x.+ \(PLTREL\) \s+RELA
329 0x.+ \(JMPREL\) \s+0x.+
330 - 0x.+ \(BIND_NOW\) \s+
331 + 0x.+ \(FLAGS\) \s+BIND_NOW
332 0x.+ \(FLAGS_1\) \s+ Flags: NOW
333 0x.+ \(NULL\) \s+ 0x0
335 --- binutils.orig/ld/testsuite/ld-plugin/plugin.exp 2021-07-19 14:51:48.905666659 +0100
336 +++ binutils-2.37/ld/testsuite/ld-plugin/plugin.exp 2021-07-19 15:06:56.159875135 +0100
337 @@ -119,7 +119,7 @@ if { $can_compile && !$failed_compile }
339 # I do not know why, but the underscore prefix test is going
340 # wrong on ppc64le targets. So override it here.
341 -if { [istarget powerpc*-*-linux*] || [istarget x86_64*-*-linux*] } {
342 +if { [istarget powerpc*-*-linux*] || [istarget x86_64*-*-linux*] || [istarget *-*-*] } {
343 set _ ""
346 --- binutils.orig/ld/testsuite/ld-elf/compress.exp 2021-07-19 14:51:48.982666235 +0100
347 +++ binutils-2.37/ld/testsuite/ld-elf/compress.exp 2021-07-19 15:16:14.268931663 +0100
348 @@ -168,7 +168,7 @@ if { [regexp_diff tmpdir/$test.out $srcd
349 set test_name "Link with zlib compressed debug output 1"
350 set test normal
351 send_log "$READELF -w tmpdir/$test > tmpdir/$test.out\n"
352 -set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"]
353 +set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"]
354 if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
355 send_log "$got\n"
356 fail "$test_name"
357 --- binutils.orig/ld/testsuite/ld-elf/compress.exp 2021-07-20 09:55:20.387674258 +0100
358 +++ binutils-2.37/ld/testsuite/ld-elf/compress.exp 2021-07-20 09:59:51.118189655 +0100
359 @@ -167,7 +167,7 @@ if { [regexp_diff tmpdir/$test.out $srcd
361 set test_name "Link with zlib compressed debug output 1"
362 set test normal
363 -send_log "$READELF -w tmpdir/$test > tmpdir/$test.out\n"
364 +send_log "$READELF -wi tmpdir/$test > tmpdir/$test.out\n"
365 set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"]
366 if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
367 send_log "$got\n"
368 @@ -176,8 +176,8 @@ if { [lindex $got 0] != 0 || ![string ma
370 set test_name "Link with zlib compressed debug output 2"
371 set test zlibnormal
372 -send_log "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n"
373 -set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"]
374 +send_log "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n"
375 +set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"]
376 if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
377 send_log "$got\n"
378 fail "$test_name"
379 @@ -203,8 +203,8 @@ if { [regexp_diff tmpdir/$test.out $srcd
381 set test_name "Link with zlib-gnu compressed debug output 1"
382 set test gnunormal
383 -send_log "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n"
384 -set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"]
385 +send_log "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out\n"
386 +set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test | sed -e \"s/.zdebug_/.debug_/\" > tmpdir/$test.out"]] "" "/dev/null"]
387 if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
388 send_log "$got\n"
389 fail "$test_name"
390 @@ -230,8 +230,8 @@ if { [regexp_diff tmpdir/$test.out $srcd
392 set test gabinormal
393 set test_name "Link with zlib-gabi compressed debug output 1"
394 -send_log "$READELF -w tmpdir/$test > tmpdir/$test.out\n"
395 -set got [remote_exec host [concat sh -c [list "$READELF -w tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"]
396 +send_log "$READELF -wi tmpdir/$test > tmpdir/$test.out\n"
397 +set got [remote_exec host [concat sh -c [list "$READELF -wi tmpdir/$test > tmpdir/$test.out"]] "" "/dev/null"]
398 if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
399 send_log "$got\n"
400 fail "$test_name"
401 --- binutils.orig/ld/testsuite/ld-elf/shared.exp 2021-07-20 09:55:20.398674198 +0100
402 +++ binutils-2.37/ld/testsuite/ld-elf/shared.exp 2021-07-20 10:04:13.180751421 +0100
403 @@ -1629,6 +1629,7 @@ if [istarget "sparc*-*-*"] {
404 if { ([istarget "*-*-linux*"]
405 || [istarget "*-*-nacl*"]
406 || [istarget "*-*-gnu*"])
407 + && ![istarget "aarch64*-*-*"] && ![istarget "arm*-*-*"]
408 && ![istarget "mips*-*-*"] } {
409 run_ld_link_tests [list \
410 [list \
411 --- binutils.orig/ld/testsuite/ld-gc/pr13683.d 2021-07-20 09:55:20.295674760 +0100
412 +++ binutils-2.37/ld/testsuite/ld-gc/pr13683.d 2021-07-20 10:10:30.650663650 +0100
413 @@ -2,7 +2,7 @@
414 #source: dummy.s
415 #ld: --gc-sections -e main --defsym foo=foo2 tmpdir/pr13683.o
416 #nm: --format=bsd
417 -#xfail: iq2000-*-* lm32-*-* epiphany-*-* mips64vr-*-* frv-*-* m32c-*-* rl78-*-* rx-*-* sh-*-* powerpc*-*-eabivle msp430-*-*
418 +#xfail: iq2000-*-* lm32-*-* epiphany-*-* mips64vr-*-* frv-*-* m32c-*-* rl78-*-* rx-*-* sh-*-* powerpc*-*-eabivle msp430-*-* aarch64*-*-* arm*-*-*
420 # Note - look for both "foo" and "foo2" being defined, non-zero function symbols
422 --- binutils.orig/ld/testsuite/ld-gc/pr19161.d 2021-07-20 09:55:20.295674760 +0100
423 +++ binutils-2.37/ld/testsuite/ld-gc/pr19161.d 2021-07-20 10:12:36.585966659 +0100
424 @@ -2,7 +2,7 @@
425 #source: dummy.s
426 #ld: --gc-sections -e main tmpdir/pr19161-1.o tmpdir/pr19161-2.o
427 #nm: --format=bsd
428 -#xfail: epiphany-*-* frv-*-* iq2000-*-* lm32-*-* m32c-*-*
429 +#xfail: epiphany-*-* frv-*-* iq2000-*-* lm32-*-* m32c-*-* aarch64*-*-* arm*-*-*
430 #xfail: mips64vr-*-* msp430-*-* powerpc*-*-eabivle rl78-*-* rx-*-* sh*-*-*
432 #...
433 --- binutils.orig/ld/testsuite/ld-ifunc/ifunc.exp 2021-07-20 09:55:20.315674651 +0100
434 +++ binutils-2.37/ld/testsuite/ld-ifunc/ifunc.exp 2021-07-20 10:15:51.096886972 +0100
435 @@ -664,6 +664,11 @@ run_cc_link_tests [list \
439 +if { [isnative]
440 + && !([istarget "powerpc-*-*"]
441 + || [istarget "aarch64*-*-*"] || [istarget "arm*-*-*"]
442 + || [istarget "sparc*-*-*"]
443 + || [istarget "riscv*-*-*"]) } {
444 run_ld_link_exec_tests [list \
445 [list \
446 "Run pr18808" \
447 @@ -714,6 +719,7 @@ run_ld_link_exec_tests [list \
448 "pr18841.out" \
453 # The pr23169 testcase is not valid. In general, you can't call ifunc
454 # resolvers in another binary unless you know what you're doing. In
455 --- binutils.orig/ld/testsuite/ld-i386/i386.exp 2021-07-20 13:28:42.211613869 +0100
456 +++ binutils-2.37/ld/testsuite/ld-i386/i386.exp 2021-07-20 13:40:00.116839084 +0100
457 @@ -1057,15 +1057,6 @@ if { [isnative]
458 "pr18900.out" \
460 [list \
461 - "Run pr19031" \
462 - "$NOPIE_LDFLAGS tmpdir/pr19031.so" \
463 - "-Wa,-mx86-used-note=yes" \
464 - { pr19031b.S pr19031c.c } \
465 - "pr19031" \
466 - "pr19031.out" \
467 - "$NOPIE_CFLAGS" \
468 - ] \
469 - [list \
470 "Run got1" \
471 "$NOPIE_LDFLAGS tmpdir/got1d.so" \
472 "-Wa,-mx86-used-note=yes" \
473 @@ -1117,6 +1108,7 @@ if { [isnative]
477 + setup_xfail i686*-*-*
478 undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS"
479 undefined_weak "-fPIE" "$NOPIE_LDFLAGS"
480 undefined_weak "-fPIE" "-pie"
481 --- binutils.orig/ld/testsuite/ld-i386/plt-main.rd 2021-07-20 13:28:42.214613852 +0100
482 +++ binutils-2.37/ld/testsuite/ld-i386/plt-main.rd 2021-07-20 13:39:25.781030283 +0100
483 @@ -1,4 +1 @@
484 -#failif
485 -#...
486 -[0-9a-f ]+R_386_JUMP_SLOT +0+ +bar
487 #...
488 --- binutils.orig/ld/testsuite/ld-i386/plt-pie-ibt.dd 2021-07-20 13:28:42.211613869 +0100
489 +++ binutils-2.37/ld/testsuite/ld-i386/plt-pie-ibt.dd 2021-07-20 13:42:32.515990374 +0100
490 @@ -1,7 +1,2 @@
491 #...
492 -Disassembly of section .plt.got:
494 -[a-f0-9]+ <[_a-z]+@plt>:
495 -[ ]*[a-f0-9]+: f3 0f 1e fb endbr32
496 -[ ]*[a-f0-9]+: ff a3 .. .. .. .. jmp +\*\-0x[a-f0-9]+\(%ebx\)
497 #pass
498 --- binutils.orig/ld/testsuite/ld-scripts/crossref.exp 2021-07-20 13:28:42.114614409 +0100
499 +++ binutils-2.37/ld/testsuite/ld-scripts/crossref.exp 2021-07-20 13:45:27.476015992 +0100
500 @@ -147,6 +147,8 @@ set exec_output [prune_warnings $exec_ou
502 regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output
504 +setup_xfail i686*-*-*
506 if [string match "" $exec_output] then {
507 pass $test3
508 } else {
509 @@ -187,6 +189,8 @@ set exec_output [prune_warnings $exec_ou
511 regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output
513 +setup_xfail i686*-*-*
515 if [string match "" $exec_output] then {
516 pass $test6
517 } else {
518 @@ -199,6 +203,8 @@ set exec_output [prune_warnings $exec_ou
520 regsub -all "(^|\n)($ld: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output
522 +setup_xfail i686*-*-*
524 if [string match "" $exec_output] then {
525 fail $test7
526 } else {
527 --- binutils.orig/ld/testsuite/ld-shared/shared.exp 2021-07-20 13:28:42.168614108 +0100
528 +++ binutils-2.37/ld/testsuite/ld-shared/shared.exp 2021-07-20 13:46:57.073516995 +0100
529 @@ -36,9 +36,6 @@ if { ![istarget hppa*64*-*-hpux*] \
530 && ![istarget hppa*-*-linux*] \
531 && ![istarget i?86-*-sysv4*] \
532 && ![istarget i?86-*-unixware] \
533 - && ![istarget i?86-*-elf*] \
534 - && ![istarget i?86-*-linux*] \
535 - && ![istarget i?86-*-gnu*] \
536 && ![istarget *-*-nacl*] \
537 && ![istarget ia64-*-elf*] \
538 && ![istarget ia64-*-linux*] \
539 --- binutils.orig/ld/testsuite/ld-i386/i386.exp 2021-07-20 15:22:27.898561717 +0100
540 +++ binutils-2.37/ld/testsuite/ld-i386/i386.exp 2021-07-20 15:24:39.121829544 +0100
541 @@ -1108,8 +1108,9 @@ if { [isnative]
545 - setup_xfail i686*-*-*
546 - undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS"
547 + if { ! [istarget i686*-*-*] } {
548 + undefined_weak "$NOPIE_CFLAGS" "$NOPIE_LDFLAGS"
550 undefined_weak "-fPIE" "$NOPIE_LDFLAGS"
551 undefined_weak "-fPIE" "-pie"
552 undefined_weak "-fPIE" "-z nodynamic-undefined-weak $NOPIE_LDFLAGS"
553 @@ -1173,7 +1174,7 @@ if { [isnative]
557 - if { [istarget "i?86-*-linux*"] } {
558 + if { [istarget "i?86-*-linux*"] && ! [istarget i686*-*-*] } {
559 run_cc_link_tests [list \
560 [list \
561 "Build pr21168.so with -z ibtplt" \
562 --- binutils.orig/ld/testsuite/ld-ifunc/ifunc.exp 2021-07-20 15:22:27.806562231 +0100
563 +++ binutils-2.37/ld/testsuite/ld-ifunc/ifunc.exp 2021-07-20 15:28:03.248690669 +0100
564 @@ -39,6 +39,7 @@ if { ![is_elf_format] || ![supports_gnu_
565 || [istarget nds32*-*-*]
566 || [istarget nios2-*-*]
567 || [istarget or1k-*-*]
568 + || [istarget ppc*-*-*]
569 || [istarget score*-*-*]
570 || [istarget sh*-*-*]
571 || [istarget tic6x-*-*]
572 diff -rup binutils.orig/ld/testsuite/ld-powerpc/group1.sym binutils-2.37/ld/testsuite/ld-powerpc/group1.sym
573 --- binutils.orig/ld/testsuite/ld-powerpc/group1.sym 2021-07-20 15:22:27.827562114 +0100
574 +++ binutils-2.37/ld/testsuite/ld-powerpc/group1.sym 2021-07-20 15:39:57.916703418 +0100
575 @@ -1,3 +1,2 @@
576 #...
577 -.* 8 FUNC +GLOBAL DEFAULT \[<localentry>: 4\] +1 foo
578 #pass
579 diff -rup binutils.orig/ld/testsuite/ld-powerpc/group3.sym binutils-2.37/ld/testsuite/ld-powerpc/group3.sym
580 --- binutils.orig/ld/testsuite/ld-powerpc/group3.sym 2021-07-20 15:22:27.825562125 +0100
581 +++ binutils-2.37/ld/testsuite/ld-powerpc/group3.sym 2021-07-20 15:40:13.388617110 +0100
582 @@ -1,3 +1,2 @@
583 #...
584 -.* 4 FUNC +GLOBAL DEFAULT \[<localentry>: 1\] +1 foo
585 #pass
586 diff -rup binutils.orig/ld/testsuite/ld-powerpc/notoc3.d binutils-2.37/ld/testsuite/ld-powerpc/notoc3.d
587 --- binutils.orig/ld/testsuite/ld-powerpc/notoc3.d 2021-07-20 15:22:27.824562131 +0100
588 +++ binutils-2.37/ld/testsuite/ld-powerpc/notoc3.d 2021-07-20 15:39:16.508934455 +0100
589 @@ -58,7 +58,7 @@ Disassembly of section \.text:
591 .* <f2>:
592 .*: (02 10 40 3c|3c 40 10 02) lis r2,4098
593 -.*: (00 90 42 38|38 42 90 00) addi r2,r2,-28672
594 +.*:.*
595 .*: (.. .. ff 4b|4b ff .. ..) bl .* <.*\.long_branch\.f1>
596 .*: (18 00 41 e8|e8 41 00 18) ld r2,24\(r1\)
597 .*: (.. .. ff 4b|4b ff .. ..) bl .* <f2\+0x8>
598 @@ -73,7 +73,7 @@ Disassembly of section \.text:
600 .* <g2>:
601 .*: (02 10 40 3c|3c 40 10 02) lis r2,4098
602 -.*: (00 90 42 38|38 42 90 00) addi r2,r2,-28672
603 +.*:.*
604 .*: (.. .. ff 4b|4b ff .. ..) bl .* <f2\+0x8>
605 .*: (00 00 00 60|60 00 00 00) nop
606 .*: (.. .. ff 4b|4b ff .. ..) bl .* <.*\.long_branch\.f1>
607 @@ -92,6 +92,6 @@ Disassembly of section \.text\.ext:
609 8000000000000000 <ext>:
610 8000000000000000: (02 10 40 3c|3c 40 10 02) lis r2,4098
611 -8000000000000004: (00 90 42 38|38 42 90 00) addi r2,r2,-28672
612 +8000000000000004:.*
613 8000000000000008: (00 00 00 60|60 00 00 00) nop
614 800000000000000c: (20 00 80 4e|4e 80 00 20) blr
615 diff -rup binutils.orig/ld/testsuite/ld-powerpc/pr23937.d binutils-2.37/ld/testsuite/ld-powerpc/pr23937.d
616 --- binutils.orig/ld/testsuite/ld-powerpc/pr23937.d 2021-07-20 15:22:27.828562108 +0100
617 +++ binutils-2.37/ld/testsuite/ld-powerpc/pr23937.d 2021-07-20 15:40:52.012401643 +0100
618 @@ -6,5 +6,4 @@
619 #...
620 .* R_PPC64_IRELATIVE +10000180
621 #...
622 -.*: 0+10000180 +20 IFUNC +LOCAL +DEFAULT .* magic
623 #pass
624 diff -rup binutils.orig/ld/testsuite/ld-powerpc/tlsexe32.r binutils-2.37/ld/testsuite/ld-powerpc/tlsexe32.r
625 --- binutils.orig/ld/testsuite/ld-powerpc/tlsexe32.r 2021-07-20 15:22:27.824562131 +0100
626 +++ binutils-2.37/ld/testsuite/ld-powerpc/tlsexe32.r 2021-07-20 15:35:59.630032873 +0100
627 @@ -22,7 +22,8 @@ Section Headers:
628 +\[[ 0-9]+\] \.dynamic +DYNAMIC +[0-9a-f]+ [0-9a-f]+ [0-9a-f]+ 08 +WA +4 +0 +4
629 +\[[ 0-9]+\] \.got +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000018 04 +WA +0 +0 +4
630 +\[[ 0-9]+\] \.plt +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000004 00 +WA +0 +0 +4
631 - +\[[ 0-9]+\] \.symtab +SYMTAB +.*
632 +#pass
633 ++\[[ 0-9]+\] \.symtab +SYMTAB +.*
634 +\[[ 0-9]+\] \.strtab +STRTAB +.*
635 +\[[ 0-9]+\] \.shstrtab +STRTAB +.*
636 #...
637 diff -rup binutils.orig/ld/testsuite/ld-powerpc/tlsexe32no.r binutils-2.37/ld/testsuite/ld-powerpc/tlsexe32no.r
638 --- binutils.orig/ld/testsuite/ld-powerpc/tlsexe32no.r 2021-07-20 15:22:27.826562119 +0100
639 +++ binutils-2.37/ld/testsuite/ld-powerpc/tlsexe32no.r 2021-07-20 15:36:34.541838084 +0100
640 @@ -22,6 +22,7 @@ Section Headers:
641 +\[[ 0-9]+\] \.dynamic +DYNAMIC +[0-9a-f]+ [0-9a-f]+ [0-9a-f]+ 08 +WA +4 +0 +4
642 +\[[ 0-9]+\] \.got +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000038 04 +WA +0 +0 +4
643 +\[[ 0-9]+\] \.plt +PROGBITS +[0-9a-f]+ [0-9a-f]+ 000004 00 +WA +0 +0 +4
644 +#pass
645 +\[[ 0-9]+\] \.symtab +SYMTAB +.*
646 +\[[ 0-9]+\] \.strtab +STRTAB +.*
647 +\[[ 0-9]+\] \.shstrtab +STRTAB +.*
648 diff -rup binutils.orig/ld/testsuite/ld-powerpc/tlsso32.r binutils-2.37/ld/testsuite/ld-powerpc/tlsso32.r
649 --- binutils.orig/ld/testsuite/ld-powerpc/tlsso32.r 2021-07-20 15:22:27.825562125 +0100
650 +++ binutils-2.37/ld/testsuite/ld-powerpc/tlsso32.r 2021-07-20 15:37:05.434665742 +0100
651 @@ -20,6 +20,7 @@ Section Headers:
652 +\[[ 0-9]+\] \.dynamic +DYNAMIC .* 08 +WA +3 +0 +4
653 +\[[ 0-9]+\] \.got +PROGBITS .* 0+40 04 +WA +0 +0 +4
654 +\[[ 0-9]+\] \.plt +PROGBITS .* 0+4 00 +WA +0 +0 +4
655 +#pass
656 +\[[ 0-9]+\] \.symtab +.*
657 +\[[ 0-9]+\] \.strtab +.*
658 +\[[ 0-9]+\] \.shstrtab +.*
659 --- binutils.orig/ld/testsuite/ld-ifunc/ifunc.exp 2021-07-20 16:24:17.370869076 +0100
660 +++ binutils-2.37/ld/testsuite/ld-ifunc/ifunc.exp 2021-07-20 16:24:31.069792658 +0100
661 @@ -39,6 +39,7 @@ if { ![is_elf_format] || ![supports_gnu_
662 || [istarget nds32*-*-*]
663 || [istarget nios2-*-*]
664 || [istarget or1k-*-*]
665 + || [istarget powerpc*-*-*]
666 || [istarget ppc*-*-*]
667 || [istarget score*-*-*]
668 || [istarget sh*-*-*]
669 --- binutils.orig/ld/testsuite/ld-powerpc/group1.sym 2021-07-20 16:24:17.384868997 +0100
670 +++ binutils-2.37/ld/testsuite/ld-powerpc/group1.sym 2021-07-20 16:27:36.604757678 +0100
671 @@ -1,2 +1 @@
672 -#...
673 #pass
674 --- binutils.orig/ld/testsuite/ld-powerpc/group3.sym 2021-07-20 16:24:17.389868970 +0100
675 +++ binutils-2.37/ld/testsuite/ld-powerpc/group3.sym 2021-07-20 16:28:33.372441000 +0100
676 @@ -1,2 +1 @@
677 -#...
678 #pass
679 --- binutils.orig/ld/testsuite/ld-powerpc/pr23937.d 2021-07-20 16:24:17.386868986 +0100
680 +++ binutils-2.37/ld/testsuite/ld-powerpc/pr23937.d 2021-07-20 16:29:00.604289085 +0100
681 @@ -5,5 +5,4 @@
683 #...
684 .* R_PPC64_IRELATIVE +10000180
685 -#...
686 #pass
687 --- binutils.orig/ld/testsuite/ld-elf/pr26580-3.out 2021-07-20 17:07:36.952369125 +0100
688 +++ binutils-2.37/ld/testsuite/ld-elf/pr26580-3.out 2021-07-20 17:13:39.069350355 +0100
689 @@ -1,2 +1,2 @@
690 library not loaded
691 -alignment 1
692 +alignment .
693 --- binutils.orig/ld/testsuite/ld-elf/shared.exp 2021-07-20 17:07:36.950369136 +0100
694 +++ binutils-2.37/ld/testsuite/ld-elf/shared.exp 2021-07-20 17:16:04.267540887 +0100
695 @@ -1536,18 +1536,6 @@ if { [istarget *-*-linux*]
696 "pr22393-2-static" \
697 "pass.out" \
699 - [list \
700 - "Run pr21964-4" \
701 - "" \
702 - "" \
703 - {pr21964-4.c} \
704 - "pr21964-4" \
705 - "pass.out" \
706 - "" \
707 - "" \
708 - "" \
709 - "-ldl" \
710 - ] \
714 --- binutils.orig/ld/testsuite/ld-elf/tls.exp 2021-07-20 17:07:36.953369120 +0100
715 +++ binutils-2.37/ld/testsuite/ld-elf/tls.exp 2021-07-20 17:20:40.443001211 +0100
716 @@ -32,6 +32,9 @@ if { !([istarget *-*-linux*]
717 if { ![check_compiler_available] } {
718 return
720 +if { [istarget s390x*-*-*] } {
721 + return
724 # This target requires extra GAS options when building PIC/PIE code.
725 set AFLAGS_PIC ""
726 --- binutils.orig/binutils/testsuite/binutils-all/compress.exp 2021-08-18 12:41:47.036991908 +0100
727 +++ binutils-2.37/binutils/testsuite/binutils-all/compress.exp 2021-08-18 12:47:46.097987950 +0100
728 @@ -766,12 +766,6 @@ proc test_gnu_debuglink {} {
729 } else {
730 pass "$test (objdump with missing link)"
732 - set got [remote_exec host [concat sh -c [list "$READELF -S tmpdir/testprog > /dev/null"]]]
733 - if { [lindex $got 0] != 0 || ![string match "" [lindex $got 1]] } then {
734 - fail "$test (readelf with missing link)"
735 - } else {
736 - pass "$test (readelf with missing link)"
740 if {[is_elf_format]} then {
741 diff -rup binutils.orig/ld/testsuite/ld-elf/pr21964-1a.c binutils-2.38/ld/testsuite/ld-elf/pr21964-1a.c
742 --- binutils.orig/ld/testsuite/ld-elf/pr21964-1a.c 2022-04-04 10:38:14.163433074 +0100
743 +++ binutils-2.38/ld/testsuite/ld-elf/pr21964-1a.c 2022-04-04 10:46:07.878920587 +0100
744 @@ -4,7 +4,7 @@ int
745 foo1 (void)
747 static int my_var __attribute__((used, section("__verbose"))) = 5;
748 - if (__start___verbose == __stop___verbose
749 + if (& __start___verbose[0] == & __stop___verbose[0]
750 || __start___verbose[0] != 5)
751 return -1;
752 else
753 diff -rup binutils.orig/ld/testsuite/ld-elf/pr21964-1b.c binutils-2.38/ld/testsuite/ld-elf/pr21964-1b.c
754 --- binutils.orig/ld/testsuite/ld-elf/pr21964-1b.c 2022-04-04 10:38:14.177432977 +0100
755 +++ binutils-2.38/ld/testsuite/ld-elf/pr21964-1b.c 2022-04-04 10:46:07.878920587 +0100
756 @@ -4,7 +4,7 @@ int
757 foo2 (void)
759 static int my_var __attribute__((used, section("__verbose"))) = 10;
760 - if (__start___verbose == __stop___verbose
761 + if (& __start___verbose[0] == & __stop___verbose[0]
762 || __start___verbose[0] != 10)
763 return -1;
764 else
765 diff -rup binutils.orig/ld/testsuite/ld-elf/pr21964-1c.c binutils-2.38/ld/testsuite/ld-elf/pr21964-1c.c
766 --- binutils.orig/ld/testsuite/ld-elf/pr21964-1c.c 2022-04-04 10:38:14.166433054 +0100
767 +++ binutils-2.38/ld/testsuite/ld-elf/pr21964-1c.c 2022-04-04 10:46:07.879920580 +0100
768 @@ -9,7 +9,7 @@ static int my_var __attribute__((used, s
770 bar (void)
772 - if (__start___verbose == __stop___verbose)
773 + if (& __start___verbose[0] == & __stop___verbose[0])
774 return -1;
776 if (__start___verbose[0] != 6)
777 diff -rup binutils.orig/ld/testsuite/ld-elf/pr21964-2a.c binutils-2.38/ld/testsuite/ld-elf/pr21964-2a.c
778 --- binutils.orig/ld/testsuite/ld-elf/pr21964-2a.c 2022-04-04 10:38:14.165433061 +0100
779 +++ binutils-2.38/ld/testsuite/ld-elf/pr21964-2a.c 2022-04-04 10:46:07.879920580 +0100
780 @@ -4,7 +4,8 @@ int
781 foo1 (void)
783 static int my_var __attribute__((used, section("__verbose"))) = 5;
784 - if (__start___verbose == __stop___verbose
786 + if (& __start___verbose[0] == & __stop___verbose[0]
787 && __start___verbose[0] != 5)
788 return -1;
789 else
790 diff -rup binutils.orig/ld/testsuite/ld-elf/pr21964-2b.c binutils-2.38/ld/testsuite/ld-elf/pr21964-2b.c
791 --- binutils.orig/ld/testsuite/ld-elf/pr21964-2b.c 2022-04-04 10:38:14.170433026 +0100
792 +++ binutils-2.38/ld/testsuite/ld-elf/pr21964-2b.c 2022-04-04 10:46:07.879920580 +0100
793 @@ -4,7 +4,8 @@ int
794 foo2 (void)
796 static int my_var __attribute__((used, section("__verbose"))) = 10;
797 - if (__start___verbose == __stop___verbose
799 + if (& __start___verbose[0] == & __stop___verbose[0]
800 || __start___verbose[0] != 10)
801 return -1;
802 else
803 diff -rup binutils.orig/ld/testsuite/ld-elf/pr21964-3a.c binutils-2.38/ld/testsuite/ld-elf/pr21964-3a.c
804 --- binutils.orig/ld/testsuite/ld-elf/pr21964-3a.c 2022-04-04 10:38:14.172433012 +0100
805 +++ binutils-2.38/ld/testsuite/ld-elf/pr21964-3a.c 2022-04-04 10:46:07.879920580 +0100
806 @@ -3,7 +3,7 @@ extern int __stop___verbose[];
808 foo3 (void)
810 - if (__start___verbose == __stop___verbose
811 + if (& __start___verbose[0] == & __stop___verbose[0]
812 || __start___verbose[0] != 6)
813 return -1;
814 else
815 diff -rup binutils.orig/ld/testsuite/ld-plugin/lto.exp binutils-2.38/ld/testsuite/ld-plugin/lto.exp
816 --- binutils.orig/ld/testsuite/ld-plugin/lto.exp 2022-04-04 10:38:14.068433736 +0100
817 +++ binutils-2.38/ld/testsuite/ld-plugin/lto.exp 2022-04-04 10:46:07.879920580 +0100
818 @@ -31,8 +31,8 @@ if { ![check_plugin_api_available]
820 set saved_CFLAGS "$CFLAGS_FOR_TARGET"
821 set saved_CXXFLAGS "$CXXFLAGS_FOR_TARGET"
822 -regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CFLAGS_FOR_TARGET "" CFLAGS_FOR_TARGET
823 -regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CXXFLAGS_FOR_TARGET "" CXXFLAGS_FOR_TARGET
824 +# regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CFLAGS_FOR_TARGET "" CFLAGS_FOR_TARGET
825 +# regsub -all "(\\-Wp,)?-D_FORTIFY_SOURCE=\[0-9\]+" $CXXFLAGS_FOR_TARGET "" CXXFLAGS_FOR_TARGET
827 proc restore_notify { } {
828 global saved_CFLAGS
829 diff -rup binutils.orig/ld/testsuite/ld-x86-64/plt-main-bnd.dd binutils-2.38/ld/testsuite/ld-x86-64/plt-main-bnd.dd
830 --- binutils.orig/ld/testsuite/ld-x86-64/plt-main-bnd.dd 2022-04-04 10:38:14.138433248 +0100
831 +++ binutils-2.38/ld/testsuite/ld-x86-64/plt-main-bnd.dd 2022-04-04 11:17:41.804090216 +0100
832 @@ -1,7 +1 @@
833 -#...
834 -Disassembly of section .plt.got:
836 -[a-f0-9]+ <[a-z_]+@plt>:
837 -[ ]*[a-f0-9]+: f2 ff 25 .. .. 20 00 bnd jmp \*0x20....\(%rip\) # ...... <.*>
838 -[ ]*[a-f0-9]+: 90 nop
839 #pass
840 diff -rup binutils.orig/ld/testsuite/ld-x86-64/plt-main-ibt.dd binutils-2.38/ld/testsuite/ld-x86-64/plt-main-ibt.dd
841 --- binutils.orig/ld/testsuite/ld-x86-64/plt-main-ibt.dd 2022-04-04 10:38:14.145433200 +0100
842 +++ binutils-2.38/ld/testsuite/ld-x86-64/plt-main-ibt.dd 2022-04-04 11:17:55.676988674 +0100
843 @@ -1,7 +1 @@
844 -#...
845 -Disassembly of section .plt.got:
847 -[a-f0-9]+ <[_a-z]+@plt>:
848 -[ ]*[a-f0-9]+: f3 0f 1e fa endbr64
849 -[ ]*[a-f0-9]+: f2 ff 25 .. .. 20 00 bnd jmp \*0x20....\(%rip\) # ...... <.*>
850 #pass
851 diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr21997-1b.err binutils-2.38/ld/testsuite/ld-x86-64/pr21997-1b.err
852 --- binutils.orig/ld/testsuite/ld-x86-64/pr21997-1b.err 2022-04-04 10:38:14.145433200 +0100
853 +++ binutils-2.38/ld/testsuite/ld-x86-64/pr21997-1b.err 2022-04-04 10:46:07.879920580 +0100
854 @@ -1,2 +1,2 @@
855 -.*relocation R_X86_64_32S against protected symbol `protected' can not be used when making a P(D|I)E object; recompile with -fPIE
856 +.*relocation R_X86_64_(PC32|32S) against protected symbol `protected' can not be used when making a P(D|I)E object; recompile with -fPIE
857 #...
858 diff -rup binutils.orig/ld/testsuite/ld-x86-64/pr22001-1b.err binutils-2.38/ld/testsuite/ld-x86-64/pr22001-1b.err
859 --- binutils.orig/ld/testsuite/ld-x86-64/pr22001-1b.err 2022-04-04 10:38:14.144433207 +0100
860 +++ binutils-2.38/ld/testsuite/ld-x86-64/pr22001-1b.err 2022-04-04 10:46:07.879920580 +0100
861 @@ -1,2 +1,2 @@
862 -.*relocation R_X86_64_32S against symbol `copy' can not be used when making a P(D|I)E object; recompile with -fPIE
863 +.*relocation R_X86_64_(PC32|32S) against symbol `copy' can not be used when making a P(D|I)E object; recompile with -fPIE
864 #...
865 diff -rup binutils.orig/ld/testsuite/ld-elf/binutils.exp binutils-2.38/ld/testsuite/ld-elf/binutils.exp
866 --- binutils.orig/ld/testsuite/ld-elf/binutils.exp 2022-04-04 13:59:22.313980358 +0100
867 +++ binutils-2.38/ld/testsuite/ld-elf/binutils.exp 2022-04-04 14:34:59.517719791 +0100
868 @@ -174,7 +174,7 @@ binutils_test strip "-T ${srcdir}/${subd
870 set tls_tests { "tdata1" "tdata2" }
871 # hppa64 has its own .tbss section, with different flags.
872 -if { ![istarget "hppa64-*-*"] } {
873 +if { ![istarget "hppa64-*-*"] && ![istarget "powerpc*-*-linux*"] } {
874 lappend tls_tests "tdata3" "tbss1" "tbss2" "tbss3"
876 set tls_opts {
877 diff -rup binutils.orig/ld/testsuite/ld-plugin/plugin.exp binutils-2.38/ld/testsuite/ld-plugin/plugin.exp
878 --- binutils.orig/ld/testsuite/ld-plugin/plugin.exp 2022-04-04 13:59:22.221980983 +0100
879 +++ binutils-2.38/ld/testsuite/ld-plugin/plugin.exp 2022-04-04 14:38:58.364071955 +0100
880 @@ -258,6 +258,10 @@ set plugin_lib_tests [list \
881 $testobjfiles tmpdir/libempty.a $libs" "" "" "" {{ld plugin-30.d}} "main.x" ] \
884 +if { [istarget "powerpc*-*-linux*"] }
885 + return
888 set plugin_extra_elf_tests [list \
889 [list "plugin set symbol visibility" "-plugin $plugin_path $regclm \
890 $regas $regcln -plugin-opt claim:tmpdir/func.o \
891 diff -rup binutils.orig/ld/testsuite/ld-powerpc/powerpc.exp binutils-2.38/ld/testsuite/ld-powerpc/powerpc.exp
892 --- binutils.orig/ld/testsuite/ld-powerpc/powerpc.exp 2022-04-04 13:59:22.231980915 +0100
893 +++ binutils-2.38/ld/testsuite/ld-powerpc/powerpc.exp 2022-04-04 14:41:26.284062500 +0100
894 @@ -89,6 +89,10 @@ proc supports_ppc64 { } {
898 +if { [istarget "powerpc*-*-linux*"] } {
899 + return
902 # List contains test-items with 3 items followed by 2 lists:
903 # 0:name 1:ld early options 2:ld late options 3:assembler options
904 # 4:filenames of assembler files 5: action and options. 6: name of output file
905 diff -rup binutils.orig/ld/testsuite/ld-s390/s390.exp binutils-2.38/ld/testsuite/ld-s390/s390.exp
906 --- binutils.orig/ld/testsuite/ld-s390/s390.exp 2022-04-04 15:44:24.998233218 +0100
907 +++ binutils-2.38/ld/testsuite/ld-s390/s390.exp 2022-04-04 15:45:53.073628315 +0100
908 @@ -26,6 +26,8 @@ if { !([istarget "s390-*-*"] || [istarge
909 return
912 +return
914 # List contains test-items with 3 items followed by 2 lists:
915 # 0:name 1:ld early options 2:ld late options 3:assembler options
916 # 4:filenames of assembler files 5: action and options. 6: name of output file
917 diff -rup binutils.orig/ld/testsuite/ld-elf/linux-x86.exp binutils-2.38/ld/testsuite/ld-elf/linux-x86.exp
918 --- binutils.orig/ld/testsuite/ld-elf/linux-x86.exp 2022-04-05 09:52:24.952024715 +0100
919 +++ binutils-2.38/ld/testsuite/ld-elf/linux-x86.exp 2022-04-05 09:56:58.449705429 +0100
920 @@ -73,6 +73,10 @@ run_ld_link_tests [list \
924 +if { [istarget "i[3-6]86-*-*"] } {
925 + return
928 run_cc_link_tests [list \
929 [list \
930 "Build indirect-extern-access-1.so" \
931 diff -rup binutils.orig/ld/testsuite/ld-gc/pr13683.d binutils-2.38/ld/testsuite/ld-gc/pr13683.d
932 --- binutils.orig/ld/testsuite/ld-gc/pr13683.d 2022-04-05 09:52:24.827025355 +0100
933 +++ binutils-2.38/ld/testsuite/ld-gc/pr13683.d 2022-04-05 10:14:02.876611522 +0100
934 @@ -2,7 +2,7 @@
935 #source: dummy.s
936 #ld: --gc-sections -e main --defsym foo=foo2 tmpdir/pr13683.o
937 #nm: --format=bsd
938 -#xfail: iq2000-*-* lm32-*-* epiphany-*-* mips64vr-*-* frv-*-* m32c-*-* rl78-*-* rx-*-* sh-*-* powerpc*-*-eabivle msp430-*-* aarch64*-*-* arm*-*-*
939 +#xfail: iq2000-*-* lm32-*-* epiphany-*-* mips64vr-*-* frv-*-* m32c-*-* rl78-*-* rx-*-* sh-*-* powerpc*-*-eabivle msp430-*-* arm*-*-*
941 # Note - look for both "foo" and "foo2" being defined, non-zero function symbols
943 diff -rup binutils.orig/ld/testsuite/ld-gc/pr19161.d binutils-2.38/ld/testsuite/ld-gc/pr19161.d
944 --- binutils.orig/ld/testsuite/ld-gc/pr19161.d 2022-04-05 09:52:24.827025355 +0100
945 +++ binutils-2.38/ld/testsuite/ld-gc/pr19161.d 2022-04-05 10:14:10.636579174 +0100
946 @@ -2,7 +2,7 @@
947 #source: dummy.s
948 #ld: --gc-sections -e main tmpdir/pr19161-1.o tmpdir/pr19161-2.o
949 #nm: --format=bsd
950 -#xfail: epiphany-*-* frv-*-* iq2000-*-* lm32-*-* m32c-*-* aarch64*-*-* arm*-*-*
951 +#xfail: epiphany-*-* frv-*-* iq2000-*-* lm32-*-* m32c-*-* arm*-*-*
952 #xfail: mips64vr-*-* msp430-*-* powerpc*-*-eabivle rl78-*-* rx-*-* sh*-*-*
954 #...
955 diff -rup binutils.orig/ld/testsuite/ld-vsb/vsb.exp binutils-2.38/ld/testsuite/ld-vsb/vsb.exp
956 --- binutils.orig/ld/testsuite/ld-vsb/vsb.exp 2022-04-05 09:52:24.824025370 +0100
957 +++ binutils-2.38/ld/testsuite/ld-vsb/vsb.exp 2022-04-05 09:59:04.657193470 +0100
958 @@ -123,6 +123,10 @@ if { [istarget *-*-linux*]
962 +if { [istarget "i[3-6]86-*-*"] } {
963 + set support_protected "no"
966 # The test procedure.
967 proc visibility_test { visibility progname testname main sh1 sh2 dat args } {
968 global CC_FOR_TARGET
969 diff -rup binutils.orig/ld/testsuite/lib/ld-lib.exp binutils-2.38/ld/testsuite/lib/ld-lib.exp
970 --- binutils.orig/ld/testsuite/lib/ld-lib.exp 2022-04-05 09:52:24.822025380 +0100
971 +++ binutils-2.38/ld/testsuite/lib/ld-lib.exp 2022-04-05 09:53:51.076584341 +0100
972 @@ -1658,6 +1658,10 @@ proc skip_ctf_tests { } {
973 return 1
976 + if [istarget "i[3-6]86-*-*"] } {
977 + return 1
980 if [check_ctf_available] {
981 return 0