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