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