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