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