]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/ChangeLog
libctf: try several possibilities for linker versioning flags
[thirdparty/binutils-gdb.git] / ld / ChangeLog
CommitLineData
5226a6a8
NC
12021-09-21 Nick Clifton <nickc@redhat.com>
2
3 * ldlang.c (lang_end): When computing the entry point, only
4 try the start address of the entry section when creating an
5 executable.
6 * ld.texi (Entry point): Update description of heuristic used to
7 choose the entry point.
8 testsuite/ld-alpha/tlspic.rd: Update expected entry point address.
9 testsuite/ld-arm/tls-gdesc-got.d: Likewise.
10 testsuite/ld-i386/tlsnopic.rd: Likewise.
11 testsuite/ld-ia64/tlspic.rd: Likewise.
12 testsuite/ld-sparc/gotop32.rd: Likewise.
13 testsuite/ld-sparc/gotop64.rd: Likewise.
14 testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
15 testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
16 testsuite/ld-sparc/tlssunpic32.rd: Likewise.
17 testsuite/ld-sparc/tlssunpic64.rd: Likewise.
18 testsuite/ld-tic6x/shlib-1.rd: Likewise.
19 testsuite/ld-tic6x/shlib-1b.rd: Likewise.
20 testsuite/ld-tic6x/shlib-1r.rd: Likewise.
21 testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
22 testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
23 testsuite/ld-x86-64/pr14207.d: Likewise.
24 testsuite/ld-x86-64/tlsdesc.rd: Likewise.
25 testsuite/ld-x86-64/tlspic.rd: Likewise.
26 testsuite/ld-x86-64/tlspic2.rd: Likewise.
27
720f6ee0
CZ
282021-09-15 Claudiu Zissulescu <claziss@synopsys.com>
29
30 * testsuite/ld-arc/got-weak.d: Update file.
31
09a7e912
CZ
322021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
33
34 * ld-arc/got-weak.d: New file.
35 * ld-arc/got-weak.s: Likewise.
36
dfe3b805
RM
372021-07-26 Roland McGrath <mcgrathr@google.com>
38
39 * testsuite/ld-x86-64/x86-64.exp (Build textrel-1): Use --warn-textrel.
40
235f5ef4
MM
412021-07-06 Michael Matz <matz@suse.de>
42
43 PR ld/28021
44 * testsuite/ld-riscv-elf/relax-twice.ver: New.
45 * testsuite/ld-riscv-elf/relax-twice-1.s: New.
46 * testsuite/ld-riscv-elf/relax-twice-2.s: New.
47 * testsuite/ld-riscv-elf/ld-riscv-elf.exp
48 (run_relax_twice_test): New, and call it.
49
346d80ef
NC
502021-07-03 Nick Clifton <nickc@redhat.com>
51
52 * configure: Regenerate.
53 * po/ld.pot: Regenerate.
54
51419248
NC
552021-07-03 Nick Clifton <nickc@redhat.com>
56
57 * 2.37 release branch created.
58
50331d64
NC
592021-06-22 Nelson Chu <nelson.chu@sifive.com>
60
61 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
62 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.d: New testcase.
63 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.s: Likewise.
64 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.d: New testcase.
65 Should report error since the %pcrel_lo with addend refers to
66 %got_pcrel_hi.
67 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.s: Likewise.
68 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.d: New testcase.
69 Should report error since the %got_pcrel_hi with addend.
70 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.s: Likewise.
71 * testsuite/ld-riscv-elf/pcrel-lo-addend-3.ld: Likewise.
72
406b4ada
L
732021-06-19 H.J. Lu <hongjiu.lu@intel.com>
74
75 PR ld/27998
76 * testsuite/ld-i386/i386.exp: Run PR ld/27998 tests.
77 * testsuite/ld-i386/pr27998a.d: New file.
78 * testsuite/ld-i386/pr27998a.s: Likewise.
79 * testsuite/ld-i386/pr27998b.d: Likewise.
80 * testsuite/ld-i386/pr27998b.s: Likewise.
81
83b1d8f4
L
822021-06-19 H.J. Lu <hongjiu.lu@intel.com>
83
84 * testsuite/ld-x86-64/textrel-1.err: New file.
85 * testsuite/ld-x86-64/textrel-1a.s: Likewise.
86 * testsuite/ld-x86-64/textrel-1b.s: Likewise.
87 * testsuite/ld-x86-64/x86-64.exp: Run textrel-1 tests.
88
c30420d8
L
892021-06-18 H.J. Lu <hongjiu.lu@intel.com>
90
91 * testsuite/ld-elf/property-and-1.d: Skip am33_2.0, hppa-hpux
92 and mn10300.
93 Pass --generate-missing-build-notes=no to assembler. Allow
94 other note sections for xtensa.
95 * testsuite/ld-elf/property-and-2.d: Likewise.
96 * testsuite/ld-elf/property-and-3.d: Likewise.
97 * testsuite/ld-elf/property-and-4.d: Likewise.
98 * testsuite/ld-elf/property-or-1.d: Likewise.
99 * testsuite/ld-elf/property-or-2.d: Likewise.
100 * testsuite/ld-elf/property-or-3.d: Likewise.
101 * testsuite/ld-elf/property-or-4.d: Likewise.
102
2d95647b
L
1032021-06-18 H.J. Lu <hongjiu.lu@intel.com>
104
105 * ld.texi: Move -z unique-symbol after -z undefs.
106
5a767724
L
1072021-06-18 H.J. Lu <hongjiu.lu@intel.com>
108
109 * testsuite/ld-elf/property-and-1.d: New file.
110 * testsuite/ld-elf/property-and-1.s: Likewise.
111 * testsuite/ld-elf/property-and-2.d: Likewise.
112 * testsuite/ld-elf/property-and-2.s: Likewise.
113 * testsuite/ld-elf/property-and-3.d: Likewise.
114 * testsuite/ld-elf/property-and-3.s: Likewise.
115 * testsuite/ld-elf/property-and-4.d: Likewise.
116 * testsuite/ld-elf/property-and-empty.s: Likewise.
117 * testsuite/ld-elf/property-or-1.d: Likewise.
118 * testsuite/ld-elf/property-or-1.s: Likewise.
119 * testsuite/ld-elf/property-or-2.d: Likewise.
120 * testsuite/ld-elf/property-or-2.s: Likewise.
121 * testsuite/ld-elf/property-or-3.d: Likewise.
122 * testsuite/ld-elf/property-or-3.s: Likewise.
123 * testsuite/ld-elf/property-or-4.d: Likewise.
124 * testsuite/ld-elf/property-or-empty.s: Likewise.
125
e013d20d
L
1262021-06-17 H.J. Lu <hongjiu.lu@intel.com>
127
128 PR ld/27973
129 * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and
130 $NOPIE_CFLAGS to protected-func-1 without PIE.
131
b6b42983
L
1322021-06-17 H.J. Lu <hongjiu.lu@intel.com>
133
134 PR ld/27973
135 * testsuite/ld-x86-64/x86-64.exp: Run protected function tests.
136 * testsuite/ld-x86-64/protected-func-1.h: New file.
137 * testsuite/ld-x86-64/protected-func-1a.s: Likewise.
138 * testsuite/ld-x86-64/protected-func-1b.c: Likewise.
139
d208bc76
FS
1402021-06-17 Fangrui Song <maskray@google.com>
141
142 * ldlex.h (enum option_values): Add OPTION_NO_PIE.
143 * lexsup.c (struct ld_options): Add -no-pie.
144 (parse_args): Handle -no-pie.
145 * ld.texi: Document -no-pie.
146
93df3340
AM
1472021-06-15 Alan Modra <amodra@gmail.com>
148
149 * testsuite/ld-pie/vaddr-0.d: Update expected output.
150
f64b9b13
AM
1512021-06-11 Alan Modra <amodra@gmail.com>
152
153 PR 27952
154 * ldelf.c (ldelf_after_open): Error on input PIEs too.
155
f75bcf7e
NC
1562021-06-09 Nick Clifton <nickc@redhat.com>
157
158 PR 27666
159 * testsuite/ld-sparc/sparc.exp: Do not run the sparctests or
160 sparc64tests for Solaris2 targets.
161
364d7729
AM
1622021-06-03 Alan Modra <amodra@gmail.com>
163
164 PR 2589
165 * ld.texi (link-time runtime library search path): Mention
166 plugin library path. Correct order of search.
167
ef9d2565
NC
1682021-05-31 Nelson Chu <nelson.chu@sifive.com>
169 Lifang Xia <lifang_xia@c-sky.com>
170
171 PR 27566
172 * emultempl/riscvelf.em (after_allocation): Call
173 riscv_set_data_segment_info to set data segment phase before relaxing.
174 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
175 * testsuite/ld-riscv-elf/relro-relax-lui.d: New testcase.
176 * testsuite/ld-riscv-elf/relro-relax-lui.s: Likewise.
177 * testsuite/ld-riscv-elf/relro-relax-pcrel.d: Likewise.
178 * testsuite/ld-riscv-elf/relro-relax-pcrel.s: Likewise.
179
1273b2f8
L
1802021-05-28 H.J. Lu <hongjiu.lu@intel.com>
181
182 PR ld/27905
183 * testsuite/ld-i386/pcrel16-2.d: xfail.
184 * testsuite/ld-x86-64/pcrel16-2.d: Likewise.
185
50c95a73
L
1862021-05-26 H.J. Lu <hongjiu.lu@intel.com>
187
188 PR ld/27905
189 * testsuite/ld-i386/code16.d: New file.
190 * testsuite/ld-i386/code16.t: Likewise.
191 * testsuite/ld-x86-64/code16.d: Likewise.
192 * testsuite/ld-x86-64/code16.t: Likewise.
193 * testsuite/ld-i386/i386.exp: Run code16.
194 * testsuite/ld-x86-64/x86-64.exp: Likewise.
195
983d5689
L
1962021-05-26 H.J. Lu <hongjiu.lu@intel.com>
197
198 * testsuite/ld-x86-64/ilp32-12.d: New file.
199 * testsuite/ld-x86-64/ilp32-12.s: Likewise.
200 * testsuite/ld-x86-64/x86-64.exp: Run ilp32-12.
201
75f03fa7
NC
2022021-05-14 Nelson Chu <nelson.chu@sifive.com>
203
204 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
205 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d: Renamed from
206 pcrel-lo-addend-2.
207 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.s: Likewise.
208 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.d: New testcase.
209 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.s: Likewise.
210
cf893b0e
FS
2112021-05-13 Fangrui Song <maskray@google.com>
212
213 PR 27834
214 * ldlex.h (enum option_values): Add OPTION_NO_SYMBOLIC.
215 * lexsup.c (ld_options): Add -Bno-symbolic.
216 (parse_args): Handle -Bno-symbolic.
217 * ld.texi: Document -Bno-symbolic.
218 * NEWS: Mention -Bno-symbolic.
219 * testsuite/ld-elf/shared.exp: Add a test.
220
84139c58
RE
2212021-05-12 Richard Earnshaw <rearnsha@arm.com>
222
223 * testsuite/ld-arm/arm-elf.exp (farcall test for v8-m.mainline):
224 Correct expected output.
225
4a1ad5c9
RM
2262021-05-11 Roland McGrath <mcgrathr@google.com>
227
228 * testsuite/ld-x86-64/rela.d: Fix regexp not to presume a specific
229 address layout, so it works for e.g. --target=x86-64-elf.
230
22604fe6
NC
2312021-05-11 Nick Clifton <nickc@redhat.com>
232
233 PR 27113
234 * Makefile.am (install-data-local): Also delete libdep.dll.a if it
235 is present.
236 * Makefile.in: Regenerate.
237
5b45e89f
DD
2382021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
239
240 * testsuite/ld-elf/group8a.d: Remove pru from XFAIL list.
241 * testsuite/ld-elf/group8b.d: Ditto.
242 * testsuite/ld-elf/group9a.d: Ditto.
243 * testsuite/ld-elf/group9b.d: Ditto.
244 * testsuite/ld-elf/pr12851.d: Ditto.
245 * testsuite/ld-elf/pr22677.d: Ditto.
246 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove
247 pru from list.
248
261980de
DD
2492021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
250
251 * scripttempl/pru.sc (.resource_table): Add ALIGN directive.
252 Use symbols for memory sizes.
253
cf758b39
MF
2542021-05-08 Mike Frysinger <vapier@gentoo.org>
255
256 * Makefile.am (html-local, doc/ld/index.html): New targets.
257 * Makefile.in: Regenerate.
258
2faf902d
MF
2592021-05-08 Mike Frysinger <vapier@gentoo.org>
260
261 * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
262 * Makefile.in: Regenerate.
263
17c6c3b9
JB
2642021-05-07 Jan Beulich <jbeulich@suse.com>
265
266 * testsuite/ld-x86-64/rela.d: New.
267 * testsuite/ld-x86-64/x86-64.exp: Run new test.
268
d820a652
NC
2692021-05-07 Nick Clifton <nickc@redhat.com>
270
271 * ldelfgen.c (compare_link_order): Ignore section size when
272 performing a relocateable link.
273
70993db3
AM
2742021-05-07 Alan Modra <amodra@gmail.com>
275
276 * ldexp.c (update_definedness): Don't return false for absolute
277 symbols.
278 * ldmain.c (multiple_definition): Print "warning: " in message
279 when not a hard error.
280
973bba91
AM
2812021-05-07 Alan Modra <amodra@gmail.com>
282
283 * testsuite/ld-elf/pr27825-1.d: Correct xfail.
284 * testsuite/ld-elf/pr27825-2.d: Likewise.
285
284a1309
SH
2862021-05-06 Stafford Horne <shorne@gmail.com>
287
288 PR 27746
289 testsuite/ld-or1k/or1k.exp (or1kplttests): Add tests for linking
290 along with gotha() relocations.
291 testsuite/ld-or1k/gotha1.dd: New file.
292 testsuite/ld-or1k/gotha1.s: New file.
293 testsuite/ld-or1k/gotha2.dd: New file.
294 testsuite/ld-or1k/gotha2.s: New file
295 testsuite/ld-or1k/pltlib.s (x): Define size to avoid link
296 failure.
297
ae064303
NA
2982021-05-06 Nick Alcock <nick.alcock@oracle.com>
299
300 * testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt.
301 * testsuite/lib/ld-lib.exp: Likewise.
302 * testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types.
303 * testsuite/ld-ctf/nonrepresentable-2.c: Likewise.
304 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
305 * testsuite/ld-ctf/array.d: Larger type section.
306 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
307 * testsuite/ld-ctf/enums.d: Likewise.
308 * testsuite/ld-ctf/conflicting-enums.d: Don't compare types.
309 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order.
310 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
311 * testsuite/ld-ctf/slice.d: Adjust for improved slice emission.
312
4467df35
L
3132021-05-05 H.J. Lu <hongjiu.lu@intel.com>
314
315 PR ld/27825
316 * testsuite/ld-elf/pr27825-1.d: New file.
317 * testsuite/ld-elf/pr27825-1a.s: Likewise.
318 * testsuite/ld-elf/pr27825-1b.s: Likewise.
319 * testsuite/ld-elf/pr27825-2.d: Likewise.
320 * testsuite/ld-elf/pr27825-2a.s: Likewise.
321 * testsuite/ld-elf/pr27825-2b.s: Likewise.
322
13ffdac3
AM
3232021-05-05 Alan Modra <amodra@gmail.com>
324
325 * testsuite/ld-powerpc/empty.s: New file.
326 * testsuite/ld-powerpc/undefweak.d,
327 * testsuite/ld-powerpc/undefweak.s: New testcase.
328 * testsuite/ld-powerpc/powerpc.exp: Run it.
329
df6fbc21
AM
3302021-05-03 Alan Modra <amodra@gmail.com>
331
332 * testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
333 named section symbols.
334
24aebc79
NC
3352021-04-28 Nick Clifton <nickc@redhat.com>
336
337 * testsuite/ld-elf/anno-sym.s: New test source file.
338 * testsuite/ld-elf/anno-sym.d: New test driver.
339 * testsuite/ld-elf/anno-sym.l: New test error output.
340
a7664973
JB
3412021-04-26 Jan Beulich <jbeulich@suse.com>
342
343 * testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d,
344 testsuite/ld-x86-64/pcrel16-2.d: New.
345 * testsuite/ld-i386/i386.exp: Run new test.
346 * testsuite/ld-x86-64/x86-64.exp: Likewise.
347
69cc1945
L
3482021-04-23 H.J. Lu <hongjiu.lu@intel.com>
349
350 PR ld/27771
351 * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
352 to tmpdir/ldscripts only if it doesn't exist.
353
d018cd83
JB
3542021-04-22 Jan Beulich <jbeulich@suse.com>
355
356 PR ld/26659
357 * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
358
23356397
NC
3592021-04-21 Nick Clifton <nickc@redhat.com>
360
361 * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
362 to allow for named section symbols.
363 * testsuite/ld-aarch64/variant_pcs-r.d: Likewise.
364 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
365 * testsuite/ld-alpha/tlsbin.rd: Likewise.
366 * testsuite/ld-alpha/tlsbinr.rd: Likewise.
367 * testsuite/ld-alpha/tlspic.rd: Likewise.
368 * testsuite/ld-arm/rodata-merge-map.sym: Likewise.
369 * testsuite/ld-arm/script-type.sym: Likewise.
370 * testsuite/ld-cris/libdso-2.d: Likewise.
371 * testsuite/ld-cris/pr16044.d: Likewise.
372 * testsuite/ld-elf/sec64k.exp: Likewise.
373 * testsuite/ld-ia64/tlsbin.rd: Likewise.
374 * testsuite/ld-ia64/tlspic.rd: Likewise.
375 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
376 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
377 * testsuite/ld-mmix/bspec1.d: Likewise.
378 * testsuite/ld-mmix/bspec2.d: Likewise.
379 * testsuite/ld-mmix/local1.d: Likewise.
380 * testsuite/ld-mmix/local3.d: Likewise.
381 * testsuite/ld-mmix/local5.d: Likewise.
382 * testsuite/ld-mmix/local7.d: Likewise.
383 * testsuite/ld-mmix/undef-3.d: Likewise.
384 * testsuite/ld-powerpc/tlsso.r: Likewise.
385 * testsuite/ld-powerpc/tlsso32.r: Likewise.
386 * testsuite/ld-powerpc/tlstocso.r: Likewise.
387 * testsuite/ld-s390/tlsbin.rd: Likewise.
388 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
389 * testsuite/ld-s390/tlspic.rd: Likewise.
390 * testsuite/ld-s390/tlspic_64.rd: Likewise.
391 * testsuite/ld-sparc/gotop32.rd: Likewise.
392 * testsuite/ld-sparc/gotop64.rd: Likewise.
393 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
394 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
395 * testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
396 * testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
397 * testsuite/ld-sparc/tlssunpic32.rd: Likewise.
398 * testsuite/ld-sparc/tlssunpic64.rd: Likewise.
399 * testsuite/ld-tic6x/common.d: Likewise.
400 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
401 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
402 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
403 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
404 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
405 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
406 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
407 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
408 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
409 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
410 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
411 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
412 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
413
c5df7e44
CC
4142021-04-20 Clément Chigot <clement.chigot@atos.net>
415
416 PR binutils/21700
417 * testsuite/ld-powerpc/aix52.exp: Add new test.
418 * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
419 * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
420 * testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
421 * testsuite/ld-powerpc/aix-neg-reloc.s: New test.
422
6418520e
NC
4232021-04-13 Nick Clifton <nickc@redhat.com>
424
425 * ld.texi (Options): Add note about the effect of --as-needed on
426 the --rpath and --rpath-link options on Linux based systems.
427
1cfc6f00
AM
4282021-04-13 Alan Modra <amodra@gmail.com>
429
430 PR 27722
431 * libdep_plugin.c (str2vec): Don't pass a potentially signed char
432 to isspace.
433
43e05cd4
AM
4342021-04-12 Alan Modra <amodra@gmail.com>
435
436 * configure.ac (--enable-checking): Add support.
437 * config.in: Regenerate.
438 * configure: Regenerate.
439
2cc15b10
AM
4402021-04-12 Alan Modra <amodra@gmail.com>
441
442 * emultempl/mipself.em (mips_create_output_section_statements):
443 Pass base type of hash table to is_elf_hash_table.
444 * ldelf.c (ldelf_after_open): Likewise.
445
fc304b88
AM
4462021-04-12 Alan Modra <amodra@gmail.com>
447
448 PR 27719
449 * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
450 the symbol hash table is the correct type before accessing
451 elf_link_hash_entry symbols.
452 * plugin.c (is_visible_from_outside): Likewise.
453 * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
454 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
455
c3f72de4
AM
4562021-04-09 Alan Modra <amodra@gmail.com>
457
458 * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
459 * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
460 * testsuite/ld-powerpc/notoc2.d: Likewise.
461 * testsuite/ld-powerpc/notoc3.d: Likewise.
462 * testsuite/ld-powerpc/pcrelopt.d: Likewise.
463 * testsuite/ld-powerpc/startstop.d: Likewise.
464 * testsuite/ld-powerpc/tlsget.d: Likewise.
465 * testsuite/ld-powerpc/tlsget2.d: Likewise.
466 * testsuite/ld-powerpc/tlsld.d: Likewise.
467 * testsuite/ld-powerpc/weak1.d: Likewise.
468 * testsuite/ld-powerpc/weak1so.d: Likewise.
469
bd3d1480
JB
4702021-04-06 Jan Beulich <jbeulich@suse.com>
471
472 * pe-dll.c (generate_reloc): Bail immediately when .reloc is
473 being discarded. Warn when relocated entry is above .reloc.
474
c774eab1
AM
4752021-04-05 Alan Modra <amodra@gmail.com>
476
477 * configure.ac: Move initfini-array arg handling earlier. Don't
478 check for string.h, strings.h, stdlib.h, or locale.h. Do check
479 for inttypes.h, stdint.h, sys/types.h. Don't check for
480 setlocale, free, getev or strstr.
481 (AC_ISC_POSIX): Don't invoke.
482 * sysdep.h: Include string.h and stdlib.h unconditionally. Test
483 HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and
484 getenv fallback declarations.
485 * ld.h: Don't test HAVE_LOCALE_H.
486 * ldmain.c: Don't test HAVE_SETLOCALE.
487 * config.in: Regenerate.
488 * configure: Regenerate.
489
74edb473
TC
4902021-04-01 Tamar Christina <tamar.christina@arm.com>
491
492 PR ld/26659
493 * testsuite/ld-pe/pe.exp: Add test.
494 * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
495 * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
496
e9b095a5
ML
4972021-04-01 Martin Liska <mliska@suse.cz>
498
499 * ldbuildid.c (strneq): Remove strneq and use startswith.
500 (validate_build_id_style): Likewise.
501 (compute_build_id_size): Likewise.
502
f38a2680
AM
5032021-03-31 Alan Modra <amodra@gmail.com>
504
505 * sysdep.h (POISON_BFD_BOOLEAN): Define.
506 * configure.ac (elf_list_options, elf_shlib_list_options=false),
507 (elf_plt_unwind_list_options=false): Replace FALSE with false,
508 and TRUE with true.
509 * emulparams/call_nop.sh, * emulparams/cet.sh,
510 * emulparams/dynamic_undefined_weak.sh,
511 * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
512 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
513 * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
514 * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
515 * emulparams/reloc_overflow.sh, * emulparams/static.sh,
516 * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
517 * emultempl/aix.em, * emultempl/alphaelf.em,
518 * emultempl/armcoff.em, * emultempl/armelf.em,
519 * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
520 * emultempl/cr16elf.em, * emultempl/crxelf.em,
521 * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
522 * emultempl/hppaelf.em, * emultempl/linux.em,
523 * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
524 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
525 * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
526 * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
527 * emultempl/pep.em, * emultempl/ppc32elf.em,
528 * emultempl/ppc64elf.em, * emultempl/rxelf.em,
529 * emultempl/rxlinux.em, * emultempl/scoreelf.em,
530 * emultempl/solaris2.em, * emultempl/spuelf.em,
531 * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
532 * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
533 * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
534 * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
535 * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
536 * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
537 * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
538 * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
539 * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
540 bfd_boolean with bool, FALSE with false, and TRUE with true.
541 * configure: Regenerate.
542
3dfb1b6d
AM
5432021-03-31 Alan Modra <amodra@gmail.com>
544
545 * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
546 * emultempl/nds32elf.em: Likewise.
547 * testsuite/ld-elf/mbind2b.c: Likewise.
548 * testsuite/ld-elf/pr18718.c: Likewise.
549 * testsuite/ld-elf/pr18720a.c: Likewise.
550 * testsuite/ld-elf/pr25749-1.c: Likewise.
551 * testsuite/ld-elf/pr25749-1a.c: Likewise.
552 * testsuite/ld-elf/pr25749-1b.c: Likewise.
553 * testsuite/ld-elf/pr25749-1c.c: Likewise.
554 * testsuite/ld-elf/pr25749-1d.c: Likewise.
555 * testsuite/ld-elf/pr25749-2.c: Likewise.
556 * testsuite/ld-elf/pr25754-1a.c: Likewise.
557 * testsuite/ld-elf/pr25754-2a.c: Likewise.
558 * testsuite/ld-elf/pr25754-3a.c: Likewise.
559 * testsuite/ld-elf/pr25754-4a.c: Likewise.
560 * testsuite/ld-elf/pr25754-5a.c: Likewise.
561 * testsuite/ld-elf/pr25754-6a.c: Likewise.
562
63b4cc53
AM
5632021-03-29 Alan Modra <amodra@gmail.com>
564
565 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
566 boolean expression.
567 * lexsup.c (parse_args): Likewise.
568 * pe-dll.c (pe_dll_id_target): Likewise.
569
8592be8c
NA
5702021-03-25 Nick Alcock <nick.alcock@oracle.com>
571
572 * testsuite/ld-ctf/array.d: Only check that the data object
573 section is nonempty: do not check its exact size.
574 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
575 * testsuite/ld-ctf/slice.d: Likewise.
576 * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
577 func info section too.
578 * testsuite/ld-ctf/function.d: Likewise, for the func info section.
579
08dedd66
ML
5802021-03-22 Martin Liska <mliska@suse.cz>
581
582 * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
583 * emultempl/beos.em: Likewise.
584 * emultempl/elf.em: Likewise.
585 * emultempl/pe.em: Likewise.
586 * emultempl/pep.em: Likewise.
587 * emultempl/xtensaelf.em: Likewise.
588 * ldctor.c (ctor_prio): Likewise.
589 * ldelf.c (ldelf_try_needed): Likewise.
590 (ldelf_parse_ld_so_conf): Likewise.
591 (ldelf_after_open): Likewise.
592 (output_rel_find): Likewise.
593 (ldelf_place_orphan): Likewise.
594 * ldfile.c (ldfile_add_library_path): Likewise.
595 * ldlang.c (lang_add_input_file): Likewise.
596 * ldmain.c (get_sysroot): Likewise.
597 (get_emulation): Likewise.
598 (add_archive_element): Likewise.
599 * ldwrite.c (unsplittable_name): Likewise.
600 (clone_section): Likewise.
601 * lexsup.c (parse_args): Likewise.
602 * pe-dll.c (is_import): Likewise.
603 (pe_implied_import_dll): Likewise.
604
1de96e5d
L
6052021-03-19 H.J. Lu <hongjiu.lu@intel.com>
606
607 PR ld/27590
608 * testsuite/ld-x86-64/pr27590.rd: New file.
609 * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
610 * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
611 * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
612
15407e7e
AM
6132021-03-20 Alan Modra <amodra@gmail.com>
614
615 PR 27590
616 * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
617 for all sections except .stabstr.
618
fba7f753
AM
6192021-03-19 Alan Modra <amodra@gmail.com>
620
621 PR 27590
622 * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
623 R_MIPS_NONE.
624 * testsuite/ld-elf/pr27590b.d: Likewise.
625
3818d4ab
L
6262021-03-18 H.J. Lu <hongjiu.lu@intel.com>
627
628 PR ld/27590
629 * testsuite/ld-elf/pr27590.s: New file.
630 * testsuite/ld-elf/pr27590a.d: Likewise.
631 * testsuite/ld-elf/pr27590b.d: Likewise.
632 * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
633 --reduce-memory-overheads.
634
51f6e7a9
L
6352021-03-18 H.J. Lu <hongjiu.lu@intel.com>
636
637 PR ld/27587
638 * testsuite/ld-x86-64/pr27587.err: New file.
639 * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
640 * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
641 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
642
69a28486
NA
6432021-03-18 Nick Alcock <nick.alcock@oracle.com>
644
645 * testsuite/ld-ctf/slice.c: Check slices of enums too.
646 * testsuite/ld-ctf/slice.d: Results adjusted.
647
ee42883c
NC
6482021-03-16 Nick Clifton <nickc@redhat.com>
649
650 * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
651 lname string.
652
c68b1842
JB
6532021-03-15 Jan Beulich <jbeulich@suse.com>
654
655 * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
656
203a206d
AM
6572021-03-12 Alan Modra <amodra@gmail.com>
658
659 * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
660 (ALL_64_EMULATION_SOURCES): ..here.
661 * Makefile.in: Regenerate.
662
1b2cb8e2
CC
6632021-03-12 Clément Chigot <clement.chigot@atos.net>
664
665 * emultempl/aix.em: Ensure .tdata section is removed
666 if empty, even with -r flag.
667 * scripttempl/aix.sc: Handle TLS sections.
668 * testsuite/ld-powerpc/aix52.exp: Add new tests.
669 * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
670 * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
671 * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
672 * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
673 * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
674 * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
675 * testsuite/ld-powerpc/aix-tls-section.ex: New test.
676 * testsuite/ld-powerpc/aix-tls-section.s: New test.
677
4a403be0
CC
6782021-03-12 Clément Chigot <clement.chigot@atos.net>
679
680 * scripttempl/aix.sc: Add .te to .data section.
681 * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
682 Add aix-largetoc-1 test.
683 * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
684 * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
685 * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
686 * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
687
68cb2183
AM
6882021-03-12 Alan Modra <amodra@gmail.com>
689
690 * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
691 arrange to define __main for some run_dump_test tests.
692 * testsuite/ld-gc/pr13683.d: Accept more symbols.
693 * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
694 * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
695 * testsuite/ld-srec/srec.exp: Likewise.
696 * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
697
ebdcad3f
NC
6982021-03-11 Nelson Chu <nelson.chu@sifive.com>
699
700 * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
701 many times if riscv_restart_relax_sections returns TRUE.
702 * testsuite/ld-riscv-elf/restart-relax.d: New testcase. Before
703 applying this patch, the call won't be relaxed to jal; But now we
704 have more chances to do relaxations.
705 * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
706 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
707
67b0f684
JB
7082021-03-10 Jan Beulich <jbeulich@suse.com>
709
710 * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
711 than 32 set bits.
712 * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
713 comment.
714 * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
715
5dc75cf3
JB
7162021-03-09 Jan Beulich <jbeulich@suse.com>
717
718 * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
719 alignment to 4k.
720 * testsuite/ld-pe/reloc.d: xfail for mcore.
721
87fa7d56
JB
7222021-03-09 Jan Beulich <jbeulich@suse.com>
723
724 * testsuite/ld-scripts/alignof.exp,
725 testsuite/ld-scripts/data.exp,
726 testsuite/ld-scripts/default-script.exp,
727 testsuite/ld-scripts/log2.exp,
728 testsuite/ld-scripts/print-memory-usage.exp,
729 testsuite/ld-scripts/sizeof.exp,
730 testsuite/ld-undefined/weak-undef.exp: Set image base to zero
731 for PE/COFF.
732 * testsuite/ld-scripts/default-script1.d,
733 testsuite/ld-scripts/default-script2.d,
734 testsuite/ld-scripts/default-script3.d,
735 testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
736
8c0546e9
L
7372021-03-05 H.J. Lu <hongjiu.lu@intel.com>
738
739 PR ld/27425
740 PR ld/27432
741 * ldelf.c (ldelf_set_output_arch): New function.
742 * ldelf.h (ldelf_set_output_arch): New prototype.
743 * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
744 ldelf_set_output_arch.
745 * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
746 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
747 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
748 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
749 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
750 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
751 * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
752 * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
753 * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
754
d4e5db4e
JB
7552021-03-04 Jan Beulich <jbeulich@suse.com>
756
757 * testsuite/ld-scripts/map-address.exp: Set image base to zero
758 for PE/COFF.
759 * testsuite/ld-scripts/map-address.t: Place .text.
760
6fa7408d
JB
7612021-03-04 Jan Beulich <jbeulich@suse.com>
762
763 * ldexp.c (ldexp_is_final_sym_absolute): New.
764 * ldexp.h (ldexp_is_final_sym_absolute): Declare.
765 * pe-dll.c (generate_reloc): Skip absolute symbols.
766 * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
767 * testsuite/ld-pe/pe.exp: Run new test.
768
5789f845
AM
7692021-03-03 Alan Modra <amodra@gmail.com>
770
771 PR 27500
772 * ldlang.c (insert_undefined): Don't mark symbols here.
773 (lang_mark_undefineds): Do so here instead, new function.
774 (lang_process): Call lang_mark_undefineds.
775 * testsuite/ld-gc/start3.d,
776 * testsuite/ld-gc/start3.s: New test.
777 * testsuite/ld-gc/start4.d,
778 * testsuite/ld-gc/start4.s: New test.
779 * testsuite/ld-gc/gc.exp: Run them.
780
270f32fc
AM
7812021-03-03 Alan Modra <amodra@gmail.com>
782
783 * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
784 Move tests with ELF section directives to is_elf_format block.
785 * testsuite/ld-gc/abi-note.d: Run on more targets.
786 * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
787 * testsuite/ld-gc/start.d: Likewise.
788 * testsuite/ld-gc/start2.d: Likewise.
789 * testsuite/ld-gc/stop.d: Likewise.
790 * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
791 * testsuite/ld-gc/start.s: Likewise.
792 * testsuite/ld-gc/start2.s: Likewise.
793
211bcd01
NA
7942021-03-02 Nick Alcock <nick.alcock@oracle.com>
795
796 * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
797
b80e421f
AM
7982021-03-02 Alan Modra <amodra@gmail.com>
799
800 * testsuite/ld-powerpc/startstop.d,
801 * testsuite/ld-powerpc/startstop.r,
802 * testsuite/ld-powerpc/startstop.s: New test.
803 * testsuite/ld-powerpc/powerpc.exp: Run it.
804
f5b9c288
AM
8052021-03-02 Alan Modra <amodra@gmail.com>
806
807 * testsuite/ld-powerpc/weak1.d,
808 * testsuite/ld-powerpc/weak1.r,
809 * testsuite/ld-powerpc/weak1.s,
810 * testsuite/ld-powerpc/weak1so.d,
811 * testsuite/ld-powerpc/weak1so.r: New tests.
812 * testsuite/ld-powerpc/powerpc.exp: Run them.
813
ba6eb62f
NC
8142021-03-01 Hannes Domani <ssbssa@sourceware.org>
815 Nick Clifton <nickc@redhat.com>
816
817 PR 27268
818 * scripttempl/pe.sc: Add DWARF-5 section names.
819 * scripttempl/pep.sc: Likewise.
820
8ee10e86
AM
8212021-03-01 Alan Modra <amodra@gmail.com>
822 Fangrui Song <maskray@google.com>
823
824 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
825 * lexsup.c (elf_static_list_options): Display help for them. Move
826 help for -z stack-size to here from elf_shlib_list_options. Add
827 help for -z start-stop-visibility and -z undefs.
828 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
829 * NEWS: Mention -z start-stop-gc.
830 * testsuite/ld-gc/start2.s,
831 * testsuite/ld-gc/start2.d: New test.
832 * testsuite/ld-gc/gc.exp: Run it.
833
7824c1d2
AM
8342021-03-01 Alan Modra <amodra@gmail.com>
835
836 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
837 symbols undefweak if that was how they were referenced. Undo
838 dynamic state too.
839
6a1224ec
AM
8402021-03-01 Alan Modra <amodra@gmail.com>
841
842 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
843 * testsuite/ld-elf/pr27128a.d: Likewise.
844 * testsuite/ld-elf/pr27128b.d: Likewise.
845 * testsuite/ld-elf/pr27128c.d: Likewise.
846 * testsuite/ld-elf/pr27128d.d: Likewise.
847 * testsuite/ld-elf/pr27128e.d: Likewise.
848
bfece756
AM
8492021-02-26 Alan Modra <amodra@gmail.com>
850
851 PR 27441
852 * testsuite/ld-plugin/pr27441a.c,
853 * testsuite/ld-plugin/pr27441b.c,
854 * testsuite/ld-plugin/pr27441c.c,
855 * testsuite/ld-plugin/pr27441c.d: New test.
856 * testsuite/ld-plugin/lto.exp: Run it.
857
3c27360b
JB
8582021-02-25 Jan Beulich <jbeulich@suse.com>
859
860 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
861
89753bbf
AM
8622021-02-21 Alan Modra <amodra@gmail.com>
863
864 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
865 defined in an object file.
866 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
867 * testsuite/ld-scripts/defined5.d: Expect a warning.
868
2f973f13
AM
8692021-02-19 Alan Modra <amodra@gmail.com>
870
871 * testsuite/lib/ld-lib.exp: Whitespace.
872 (load_common_lib): Expand single use and delete this proc.
873 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
874 Use -B for clang too.
875
a364a116
AB
8762021-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
877
878 * testplugin.c (record_read_length): Remove debug fprintf.
879
5b1f6c95
AM
8802021-02-14 Alan Modra <amodra@gmail.com>
881
882 * testsuite/ld-cdtest/cdtest.exp,
883 * testsuite/ld-checks/checks.exp,
884 * testsuite/ld-elf/binutils.exp,
885 * testsuite/ld-elf/compress.exp,
886 * testsuite/ld-elf/dwarf.exp,
887 * testsuite/ld-elf/exclude.exp,
888 * testsuite/ld-elf/frame.exp,
889 * testsuite/ld-elf/indirect.exp,
890 * testsuite/ld-elf/linux-x86.exp,
891 * testsuite/ld-elf/sec-to-seg.exp,
892 * testsuite/ld-elf/tls_common.exp,
893 * testsuite/ld-elfcomm/elfcomm.exp,
894 * testsuite/ld-elfvers/vers.exp,
895 * testsuite/ld-elfvsb/elfvsb.exp,
896 * testsuite/ld-elfweak/elfweak.exp,
897 * testsuite/ld-ifunc/binutils.exp,
898 * testsuite/ld-mips-elf/mips-elf-flags.exp,
899 * testsuite/ld-misc/defsym.exp,
900 * testsuite/ld-mn10300/mn10300.exp,
901 * testsuite/ld-plugin/lto.exp,
902 * testsuite/ld-plugin/plugin.exp,
903 * testsuite/ld-scripts/align.exp,
904 * testsuite/ld-scripts/assert.exp,
905 * testsuite/ld-scripts/crossref.exp,
906 * testsuite/ld-scripts/defined.exp,
907 * testsuite/ld-scripts/extern.exp,
908 * testsuite/ld-scripts/log2.exp,
909 * testsuite/ld-scripts/map-address.exp,
910 * testsuite/ld-scripts/phdrs.exp,
911 * testsuite/ld-scripts/phdrs2.exp,
912 * testsuite/ld-scripts/script.exp,
913 * testsuite/ld-scripts/section-flags.exp,
914 * testsuite/ld-scripts/sizeof.exp,
915 * testsuite/ld-scripts/weak.exp,
916 * testsuite/ld-selective/selective.exp,
917 * testsuite/ld-sh/sh.exp,
918 * testsuite/ld-shared/shared.exp,
919 * testsuite/ld-srec/srec.exp,
920 * testsuite/ld-tic6x/tic6x.exp,
921 * testsuite/ld-undefined/undefined.exp,
922 * testsuite/ld-undefined/weak-undef.exp,
923 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
924 perror. Instead report "unsupported" or "fail".
925
c46b7066
NC
9262021-02-12 Nick Clifton <nickc@redhat.com>
927
928 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
929 following debug links.
930
933feaf3
AM
9312021-02-11 Alan Modra <amodra@gmail.com>
932
933 * NEWS: Mention arm-symbianelf removal.
934
a57d1773
AM
9352021-02-09 Alan Modra <amodra@gmail.com>
936
937 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
938 Don't include symbian dep file.
939 * configure.tgt: Remove arm*-*-symbianelf* entry.
940 * emulparams/armsymbian.sh: Delete.
941 * ld.texi: Don't mention symbian.
942 * scripttempl/armbpabi.sc: Delete.
943 * testsuite/ld-arm/symbian-seg1.d: Delete.
944 * testsuite/ld-arm/symbian-seg1.s: Delete.
945 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
946 * Makefile.in: Regenerate.
947 * po/BLD-POTFILES.in: Regenerate.
948
38a143aa
L
9492021-02-07 H.J. Lu <hongjiu.lu@intel.com>
950
951 PR ld/27358
952 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
953 tests.
954 * testsuite/ld-x86-64/x86-64.exp: Likewise.
955
35a01a04
NA
9562021-01-26 Nick Alcock <nick.alcock@oracle.com>
957
958 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
959 when appropriate.
960
1a2f1b54
L
9612021-02-04 H.J. Lu <hongjiu.lu@intel.com>
962
963 PR ld/19609
964 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
965 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
966 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
967 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
968 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
969 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
970 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
971
37707bd8
L
9722021-02-04 H.J. Lu <hongjiu.lu@intel.com>
973
974 PR ld/15146
975 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
976 * testsuite/ld-plugin/pr15146.d: Restored.
977 * testsuite/ld-plugin/pr15146a.c: Likewise.
978 * testsuite/ld-plugin/pr15146b.c: Likewise.
979 * testsuite/ld-plugin/pr15146c.c: Likewise.
980 * testsuite/ld-plugin/pr15146d.c: Likewise.
981
7d409ac0
AM
9822021-02-04 Alan Modra <amodra@gmail.com>
983
984 * testsuite/ld-plugin/pr27311d.c: New test.
985 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
986 and link new test as pr27311-2.
987
69551367
AM
9882021-02-03 Alan Modra <amodra@gmail.com>
989
990 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
991 Link with --as-needed.
992
9918bff7
AM
9932021-02-02 Alan Modra <amodra@gmail.com>
994
995 * testsuite/ld-plugin/pr27311.d,
996 * testsuite/ld-plugin/pr27311.ver,
997 * testsuite/ld-plugin/pr27311a.c,
998 * testsuite/ld-plugin/pr27311b.c,
999 * testsuite/ld-plugin/pr27311c.c: New testcase.
1000 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
1001 PR12982 entries.
1002
1f568f9a
EH
10032021-02-01 Emery Hemingway <ehmry@posteo.net>
1004
1005 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1006
fb6c220e
AM
10072021-02-01 Alan Modra <amodra@gmail.com>
1008
1009 * ldgram.y (defsym_expr): Use assignment rule.
1010 * ldlex.h (ldlex_defsym): Delete.
1011 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
1012
40726f16
AM
10132021-02-01 Alan Modra <amodra@gmail.com>
1014
1015 * ldgram.y (section): Call ldlex_backup. Remove empty action.
1016 * ldlex.h (ldlex_backup): Declare.
1017 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
1018 chars, use SYMBOLNAMECHAR.
1019 (ldlex_backup): New function.
1020
a5f92c67
AM
10212021-02-01 Alan Modra <amodra@gmail.com>
1022
1023 * ldgram.y: Whitespace fixes.
1024
49daa38f
AM
10252021-02-01 Alan Modra <amodra@gmail.com>
1026
1027 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
1028
c4566785
AM
10292021-01-29 Alan Modra <amodra@gmail.com>
1030
1031 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
1032
53e556e5
L
10332021-01-28 H.J. Lu <hongjiu.lu@intel.com>
1034
1035 PR ld/27259
1036 * testsuite/ld-elf/pr27259.d: New file.
1037 * testsuite/ld-elf/pr27259.s: Likewise.
1038
def97fb9
AM
10392021-01-28 Alan Modra <amodra@gmail.com>
1040
1041 PR 27259
1042 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
1043 prevent endless looping of linked-to sections.
1044
2eda57ef
L
10452021-01-26 H.J. Lu <hongjiu.lu@intel.com>
1046
1047 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
1048
1c9c9b9b
AM
10492021-01-26 Alan Modra <amodra@gmail.com>
1050
1051 PR 27226
1052 * emulparams/alphavms.sh: Don't set COMPILE_IN.
1053 * emulparams/elf64_ia64_vms.sh: Likewise.
1054 * emulparams/elf64mmix.sh: Likewise.
1055 * emulparams/elf_iamcu.sh: Likewise.
1056 * emulparams/elf_k1om.sh: Likewise.
1057 * emulparams/elf_l1om.sh: Likewise.
1058 * emulparams/mmo.sh: Likewise.
1059 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
1060 * scripttempl/pdp11.sc: Use it.
1061 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
1062 instead use .xe script. Support scripts from file system.
1063 * emultempl/beos.em: Support scripts from file system.
1064 * emultempl/pe.em: Likewise.
1065 * emultempl/pep.em: Likewise.
1066 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
1067
9e42b976
FS
10682021-01-25 Fangrui Song <maskray@google.com>
1069
1070 PR ld/27230
1071 * scripttempl/DWARF.sc: Add .debug_* sections.
1072
b8df6900
NC
10732021-01-25 Nick Clifton <nickc@redhat.com>
1074
1075 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
1076 .debug_line_str and .debug_str_offsets. Move .debug_macro and
1077 .debug_addr into DWARF-5 section.
1078
c78eec44
AM
10792021-01-21 Alan Modra <amodra@gmail.com>
1080
1081 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
1082
4bd7c902
AM
10832021-01-20 Alan Modra <amodra@gmail.com>
1084
1085 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
1086 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
1087 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
1088 * testsuite/ld-powerpc/tlsget.wf: Likewise.
1089 * testsuite/ld-powerpc/tlsget2.d: Likewise.
1090 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
1091 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
1092 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
1093 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
1094 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
1095 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
1096 * testsuite/ld-powerpc/tlsexers.r: Likewise.
1097 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
1098 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
1099 * testsuite/ld-powerpc/tlsso.r: Likewise.
1100 * testsuite/ld-powerpc/tlsso32.r: Likewise.
1101 * testsuite/ld-powerpc/tlstocso.r: Likewise.
1102
c98de297
NA
11032021-01-19 Nick Alcock <nick.alcock@oracle.com>
1104
1105 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
1106 symbols by the optimizer.
1107 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
1108
85e963f1
NC
11092021-01-19 Nelson Chu <nelson.chu@sifive.com>
1110
1111 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
1112 if target is riscv little endian. Otherwise, return false.
1113 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
1114 targets by [riscv_little_endian].
1115
326adec3
AM
11162021-01-18 Alan Modra <amodra@gmail.com>
1117
1118 PR 26378
1119 * ldlang.c (map_input_to_output_sections): Start with a read-only
1120 section for data statements.
1121 * testsuite/ld-elf/size-2.d: Adjust to suit.
1122
994b2513
L
11232021-01-17 H.J. Lu <hongjiu.lu@intel.com>
1124
1125 PR ld/27193
1126 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
1127 * testsuite/ld-i386/pr27193.dd: New file.
1128 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
1129 * testsuite/ld-i386/pr27193b.s: Likewise.
1130
edf0f284
L
11312021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1132
1133 PR binutils/23460
1134 * testsuite/ld-plugin/lto.exp: Increase the max number of open
1135 files to 20 for PR binutils/23460 test.
1136
75a933f3
L
11372021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1138
1139 PR ld/23169
1140 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
1141 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
1142 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
1143 address.
1144
68b00778
L
11452021-01-15 H.J. Lu <hongjiu.lu@intel.com>
1146
1147 * NEWS: Mention -z report-relative-reloc.
1148 * ld.texi: Document -z report-relative-reloc.
1149 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
1150 * emulparams/elf_i386.sh: Likewse.
1151 * emulparams/elf_x86_64.sh: Likewse.
1152 * emulparams/x86-report-relative.sh: New file.
1153 * testsuite/ld-i386/report-reloc-1.d: Likewse.
1154 * testsuite/ld-i386/report-reloc-1.l: Likewse.
1155 * testsuite/ld-i386/report-reloc-1.s: Likewse.
1156 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
1157 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
1158 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
1159 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
1160 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
1161 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
1162 report-reloc-1-x32.
1163
eb6e6af8
AM
11642021-01-16 Alan Modra <amodra@gmail.com>
1165
1166 PR 26002
1167 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
1168 unversioned symbols.
1169 * testsuite/ld-elfvers/vers16.dsym: Likewise.
1170
b800637e
NC
11712021-01-15 Nelson Chu <nelson.chu@sifive.com>
1172
1173 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
1174 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
1175 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
1176 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
1177 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
1178 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
1179
5a10699f
NC
11802021-01-14 Nick Clifton <nickc@redhat.com>
1181
1182 * po/fr.po: Updated French translation.
1183
271bea6a
MF
11842021-01-14 Mike Frysinger <vapier@gentoo.org>
1185
1186 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
1187
4120e488
AM
11882021-01-14 Alan Modra <amodra@gmail.com>
1189
1190 PR 27160
1191 * ldelfgen.c (compare_link_order): Protect access of ELF section
1192 data.
1193 (add_link_order_input_section): Remove redundant NULL check.
1194 Use bfd_get_flavour.
1195 (ldelf_map_segments): Use bfd_get_flavour.
1196
b634d11d
L
11972021-01-13 H.J. Lu <hongjiu.lu@intel.com>
1198
1199 * ldelfgen.c (add_link_order_input_section): Check for ELF input
1200 before accessing ELF section data.
1201
5347ed60
AM
12022021-01-13 Alan Modra <amodra@gmail.com>
1203
1204 * Makefile.in: Regenerate.
1205
b209b5a6
AM
12062021-01-13 Alan Modra <amodra@gmail.com>
1207
1208 PR 27160
1209 * ldlang.h (lang_output_section_statement_type): Add data field.
1210 (lang_input_section_type, lang_section_bst_type): Add pattern field.
1211 (statement_list): Declare.
1212 (lang_add_section): Adjust prototype.
1213 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
1214 * emultempl/armelf.em: Likewise.
1215 * emultempl/beos.em: Likewise.
1216 * emultempl/cskyelf.em: Likewise.
1217 * emultempl/hppaelf.em: Likewise.
1218 * emultempl/m68hc1xelf.em: Likewise.
1219 * emultempl/metagelf.em: Likewise.
1220 * emultempl/mipself.em: Likewise.
1221 * emultempl/mmo.em: Likewise.
1222 * emultempl/msp430.em: Likewise.
1223 * emultempl/nios2elf.em: Likewise.
1224 * emultempl/pe.em: Likewise.
1225 * emultempl/pep.em: Likewise.
1226 * emultempl/ppc64elf.em: Likewise.
1227 * emultempl/spuelf.em: Likewise.
1228 * emultempl/vms.em: Likewise.
1229 * ldelf.c: Likewise.
1230 * ldelfgen.c: Include ldctor.h.
1231 (struct os_sections): New.
1232 (add_link_order_input_section, link_order_scan): New functions.
1233 (compare_link_order, fixup_link_order): New functions.
1234 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
1235 * ldlang.c (statement_list): Make global.
1236 (output_section_callback_fast): Save pattern in tree node.
1237 (lang_add_section): Add pattern parameter, save in lang_input_section.
1238 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
1239 (lang_insert_orphan, output_section_callback): Likewise.
1240 (ldlang_place_orphan): Likewise.
1241 (gc_section_callback): Don't set section->pattern.
1242 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
1243 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1244 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
1245
8c4645b4
AM
12462021-01-13 Alan Modra <amodra@gmail.com>
1247
1248 * ldlang.h (callback_t): Remove flag_info function parameter.
1249 * ldlang.c (walk_wild_consider_section): Adjust to suit.
1250 (walk_wild_section_general): Likewise.
1251 (output_section_callback_fast, output_section_callback): Likewise.
1252 (check_section_callback, gc_section_callback): Likewise.
1253 (find_relro_section_callback): Likewise.
1254
d546b610
L
12552021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1256
1257 PR binutils/26792
1258 * configure.ac: Use GNU_MAKE_JOBSERVER.
1259 * aclocal.m4: Regenerated.
1260 * configure: Likewise.
1261
c2e9a4a3
L
12622021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1263
1264 PR ld/27171
1265 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
1266 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1267 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1268 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
1269
83b33c6c
L
12702021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1271
1272 PR ld/27173
1273 * configure: Regenerated.
1274
c0f6e439
MJ
12752021-01-11 Matt Jenkins <matt@majenko.co.uk>
1276
1277 PR ld/27167
1278 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
1279 and mips64r5 to list of known mips targets.
1280
12812021-01-11 Nick Clifton <nickc@redhat.com>matt@majenko.co.uk
a8aa72b9
NC
1282
1283 * po/pt_BR.po: Updated Brazilian Portuguese translation.
1284` * po/uk.po: Updated Ukranian translation.
1285
a4966cd9
L
12862021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1287
1288 * configure: Regenerated.
1289
0a94990b
L
12902021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1291
1292 PR ld/27166
1293 * testsuite/ld-x86-64/lam-u48.rd: New file.
1294 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
1295 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
1296
573fe3fb
NC
12972021-01-09 Nick Clifton <nickc@redhat.com>
1298
1299 * configure: Regenerate.
1300 * po/ld.pot: Regenerate.
1301
055bc77a
NC
13022021-01-09 Nick Clifton <nickc@redhat.com>
1303
1304 * 2.36 release branch crated.
1305
ba9e922f
L
13062021-01-08 H.J. Lu <hongjiu.lu@intel.com>
1307
1308 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
1309 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
1310
64307045
AM
13112021-01-09 Alan Modra <amodra@gmail.com>
1312
1313 * configure: Regenerate.
1314 * Makefile.in: Regenerate.
1315
f4782128
ST
13162021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1317
1318 * configure: Regenerate.
1319
d1bcae83
L
13202021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1321
1322 PR 27109
1323 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
1324 * testsuite/ld-elf/loadaddr3b.d: Likewise.
1325 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1326 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1327 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1328 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1329 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1330 * testsuite/ld-i386/pr19636-1d.d: Likewise.
1331 * testsuite/ld-i386/pr19636-1l.d: Likewise.
1332 * testsuite/ld-i386/pr19636-2c.d: Likewise.
1333 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1334 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1335 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1336 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1337 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1338 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1339 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1340 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1341 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1342 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1343 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1344 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1345 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1346 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1347 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1348 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1349 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1350 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1351 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1352 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1353 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1354 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1355 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1356 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1357 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1358 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1359 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
1360 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
1361 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
1362 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
1363 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
1364 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
1365 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1366 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
1367 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1368 * testsuite/ld-x86-64/pr21038b.d: Likewise.
1369 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1370 * testsuite/ld-x86-64/pr21038c.d: Likewise.
1371 * testsuite/ld-x86-64/pr23854.d: Likewise.
1372 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1373 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1374 * testsuite/ld-i386/plt-pic.pd: Likewise.
1375 * testsuite/ld-i386/plt-pic2.dd: Likewise.
1376 * testsuite/ld-i386/plt.pd: Likewise.
1377 * testsuite/ld-i386/plt2.dd: Likewise.
1378 * testsuite/ld-i386/tlsbin.rd: Likewise.
1379 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1380 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1381 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1382 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
1383 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1384 * testsuite/ld-i386/tlspic.rd: Likewise.
1385 * testsuite/ld-i386/tlspic2.rd: Likewise.
1386 * testsuite/ld-x86-64/mpx3.dd: Likewise.
1387 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
1388 * testsuite/ld-x86-64/mpx4.dd: Likewise.
1389 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
1390 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
1391 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1392 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1393 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1394 * testsuite/ld-x86-64/plt.pd: Likewise.
1395 * testsuite/ld-x86-64/plt2.dd: Likewise.
1396 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1397 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1398 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1399 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1400 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
1401 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1402 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1403 * testsuite/ld-elf/sec64k.exp: Check
1404 is_elf_unused_section_symbols.
1405
dc200613
AM
14062021-01-07 Alan Modra <amodra@gmail.com>
1407
1408 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
1409 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
1410 * testsuite/ld-scripts/segment-start.d: Likewise.
1411
8e604ff0
AM
14122021-01-07 Alan Modra <amodra@gmail.com>
1413
1414 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
1415 about dynamic relocations in read-only sections.
1416 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1417 * testsuite/ld-elf/ehdr_start.d: Likewise.
1418 * testsuite/ld-scripts/pr22267.d: Likewise.
1419 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
1420 pr20995 text.
1421 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
1422
4d4490b8
MC
14232021-01-07 Marcus Comstedt <marcus@mc.pp.se>
1424
1425 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
1426 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
1427
f526791a
AM
14282021-01-07 Alan Modra <amodra@gmail.com>
1429
1430 * po/BLD-POTFILES.in: Regenerate.
1431
4018f4e0
AM
14322021-01-07 Alan Modra <amodra@gmail.com>
1433
1434 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
1435 complain about relocs in read-only sections. Tidy ASFLAGS append.
1436
3677b729
AM
14372021-01-06 Alan Modra <amodra@gmail.com>
1438
1439 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
1440 base for some tests.
1441 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
1442 * testsuite/ld-sparc/gotop32.sd: Likewise.
1443 * testsuite/ld-sparc/gotop32.td: Likewise.
1444 * testsuite/ld-sparc/gotop64.dd: Likewise.
1445 * testsuite/ld-sparc/gotop64.sd: Likewise.
1446 * testsuite/ld-sparc/gotop64.td: Likewise.
1447 * testsuite/ld-sparc/tlsg32.sd: Likewise.
1448 * testsuite/ld-sparc/tlsg64.sd: Likewise.
1449 * testsuite/ld-sparc/tlspie32.dd: Likewise.
1450 * testsuite/ld-sparc/tlspie64.dd: Likewise.
1451 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
1452 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
1453 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
1454 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
1455 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
1456 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
1457 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
1458 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
1459 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
1460 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
1461 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
1462 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
1463 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
1464 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
1465 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
1466 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
1467 * testsuite/ld-sparc/wdispcall.dd: Likewise.
1468
73624512
AM
14692021-01-06 Alan Modra <amodra@gmail.com>
1470
1471 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
1472 * testsuite/ld-scripts/rgn-at11.d: Likewise.
1473
f36ce378
MC
14742021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1475
1476 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
1477 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
1478 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
1479 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
1480 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1481 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1482 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1483 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
1484 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
1485 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
1486 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
1487 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
1488 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
1489 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
1490 to littleriscv.
1491 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
1492
fbc09e7a
MC
14932021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1494
1495 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
1496 riscv32be*-*-linux*, and riscv64be*-*-linux*.
1497 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
1498 eelf32briscv_ilp32.c.
1499 * Makefile.in: Regenerate.
1500 * emulparams/elf32briscv.sh: Added.
1501 * emulparams/elf32briscv_ilp32.sh: Likewise.
1502 * emulparams/elf32briscv_ilp32f.sh: Likewise.
1503 * emulparams/elf64briscv.sh: Likewise.
1504 * emulparams/elf64briscv_lp64.sh: Likewise.
1505 * emulparams/elf64briscv_lp64f.sh: Likewise.
1506
b4b6ea46
NA
15072021-01-05 Nick Alcock <nick.alcock@oracle.com>
1508
1509 * testsuite/ld-ctf/enum-forward.c: New test.
1510 * testsuite/ld-ctf/enum-forward.c: New results.
1511
37002871
NA
15122021-01-05 Nick Alcock <nick.alcock@oracle.com>
1513
1514 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1515 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1516 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1517 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1518 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1519 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1520 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1521 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1522 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1523 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1524 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1525 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1526 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1527 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1528 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1529 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1530 * testsuite/ld-ctf/cycle-1.d: Likewise.
1531 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1532 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1533 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1534 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1535 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1536 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1537 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1538 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1539 * testsuite/ld-ctf/forward.d: Likewise.
1540 * testsuite/ld-ctf/function.d: Likewise.
1541 * testsuite/ld-ctf/slice.d: Likewise.
1542 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1543 * testsuite/ld-ctf/enums.c: New test.
1544 * testsuite/ld-ctf/enums.d: New test.
1545
ffeece6a
NA
15462021-01-05 Nick Alcock <nick.alcock@oracle.com>
1547
1548 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
1549 changes.
1550 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1551 * testsuite/ld-ctf/forward.c: New test...
1552 * testsuite/ld-ctf/forward.d: ... and results.
1553
91e7ce2f
NA
15542021-01-05 Nick Alcock <nick.alcock@oracle.com>
1555
1556 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1557 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1558 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1559 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1560 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1561 * testsuite/ld-ctf/function.d: Likewise.
1562 * testsuite/ld-ctf/slice.d: Likewise.
1563
57f97d0e
NA
15642021-01-05 Nick Alcock <nick.alcock@oracle.com>
1565
1566 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1567 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1568 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1569 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1570 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1571 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1572 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1573 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1574 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1575 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1576 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1577 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1578 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1579 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1580 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1581 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1582 * testsuite/ld-ctf/cycle-1.d: Likewise.
1583 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1584 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1585 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1586 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1587 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1588 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1589 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1590 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1591 * testsuite/ld-ctf/function.d: Likewise.
1592 * testsuite/ld-ctf/slice.d: Likewise.
1593 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1594
b281a04f
AM
15952021-01-05 Alan Modra <amodra@gmail.com>
1596
1597 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
1598
40b11930
AM
15992021-01-05 Alan Modra <amodra@gmail.com>
1600
1601 PR ld/26256
1602 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
1603 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
1604
cd6d537c
L
16052021-01-04 H.J. Lu <hongjiu.lu@intel.com>
1606
1607 PR ld/26256
1608 * ldlang.c (gc_section_callback): Set pattern.
1609 * testsuite/ld-elf/pr26256-1.s: New file.
1610 * testsuite/ld-elf/pr26256-1.t: Likewise.
1611 * testsuite/ld-elf/pr26256-1a.d: Likewise.
1612 * testsuite/ld-elf/pr26256-1b.d: Likewise.
1613 * testsuite/ld-elf/pr26256-2.s: Likewise.
1614 * testsuite/ld-elf/pr26256-2.t: Likewise.
1615 * testsuite/ld-elf/pr26256-2a.d: Likewise.
1616 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
1617 * testsuite/ld-elf/pr26256-2b.d: Likewise.
1618 * testsuite/ld-elf/pr26256-3.s: Likewise.
1619 * testsuite/ld-elf/pr26256-3a.d: Likewise.
1620 * testsuite/ld-elf/pr26256-3a.t: Likewise.
1621 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1622 * testsuite/ld-elf/pr26256-3b.t: Likewise.
1623
5b4293ba
AM
16242021-01-04 Alan Modra <amodra@gmail.com>
1625
1626 PR 26822
1627 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
1628 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
1629 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
1630 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
1631 * testsuite/ld-i386/tlsbin.rd: Likewise.
1632 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1633 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1634 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1635 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1636 * testsuite/ld-i386/tlspic.rd: Likewise.
1637 * testsuite/ld-i386/tlspic2.rd: Likewise.
1638 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
1639 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
1640 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
1641 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
1642 * testsuite/ld-plugin/pr17973.d: Likewise.
1643 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
1644 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
1645 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
1646 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
1647 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
1648 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
1649 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
1650 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
1651 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
1652 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
1653 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
1654 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
1655 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
1656 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1657 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1658 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1659 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1660 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1661 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1662 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
1663 * testsuite/ld-xtensa/tlspic.rd: Likewise.
1664
f9a6a8f0
AM
16652021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1666
1667 * configure.tgt: Correct comment grammar.
1668 * emultempl/m68hc1xelf.em: Likewise.
1669 * ld.texi: Correct grammar.
1670
250d07de
AM
16712021-01-01 Alan Modra <amodra@gmail.com>
1672
1673 Update year range in copyright notice of all files.
1674
c2795844 1675For older changes see ChangeLog-2020
3499769a 1676\f
c2795844 1677Copyright (C) 2021 Free Software Foundation, Inc.
3499769a
AM
1678
1679Copying and distribution of this file, with or without modification,
1680are permitted in any medium without royalty provided the copyright
1681notice and this notice are preserved.
1682
1683Local Variables:
1684mode: change-log
1685left-margin: 8
1686fill-column: 74
1687version-control: never
1688End: