1 2023-05-04 Nick Clifton <nickc@redhat.com>
4 * emultempl/pep.em (set_entry_point): Add an undefined reference
5 to the entry point if it has been constructed heuristically.
6 * emultempl/pe.em (set_entry_point): Likewise.
8 2023-05-04 Dimitar Dimitrov <dimitar@dinux.eu>
10 * scripttempl/pru.sc (OUTPUT_SECTION_ALIGN): New helper variable
11 to place at end of DMEM output sections.
12 (.data): Use the helper variable.
13 (.eh_frame): New output section.
15 (.gcc_except_table): Ditto.
16 (.resource_table): Use the helper variable.
18 2023-04-27 Nick Clifton <nickc@redhat.com>
20 * ldmisc.c (vfinfo): Add support for %x and %lx.
22 2023-04-18 mengqinggang <mengqinggang@loongson.cn>
24 * testsuite/ld-loongarch-elf/macro_op.d: Regenerated.
26 2023-04-17 Nick Clifton <nickc@redhat.com>
29 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): Define in order to
30 handle the .gnu.sgstubs section.
32 2023-04-13 Claudiu Zissulescu <claziss@synopsys.com>
34 * testsuite/ld-arc/arc.exp: Update execution predicate.
35 * testsuite/ld-arc/nps-1a.d: Add linker script option.
36 * testsuite/ld-arc/nps-1b.d: Likewise.
37 * testsuite/ld-arc/relax-local-pic.d: Update matching patterns.
39 2023-04-12 Nick Clifton <nickc@redhat.com>
41 * ld.texi (--enable-non-contiguous-regions): Fix typos in script
44 2023-03-15 Nick Clifton <nickc@redhat.com>
47 * NEWS: Mention the new feature.
48 * ld.texi: Document the new feature.
49 * ldgram.y: Handle LINKER_VERSION token.
50 * ldlang.c (lang_add_version): New function.
51 (enable_linker_version): New global variable.
52 * ldlang.h (land_add_version): Prototype.
53 (enable_linker_version): Export.
54 * ldlex.h (OPTION_ENABLE_LINKER_VERSION): Define.
55 (OPTION_DISABLE_LINKER_VERSION): Define.
56 * ldlex.l (LINKER_VERSION): Add token.
57 * lexsup.c (ld_options): Add --enable-linker-version and
58 --disable-linker-version.
59 (parse_args): Handle the new options.
60 * scripttempl/arclinux.sc: Remove stabs and comment sections and
61 replace with inclusion of misc-sections.sc
62 * scripttempl/avr.sc: Likewise.
63 * scripttempl/dlx.sc: Likewise.
64 * scripttempl/elf.sc: Likewise.
65 * scripttempl/elf32cr16.sc: Likewise.
66 * scripttempl/elf32crx.sc: Likewise.
67 * scripttempl/elf32msp430.sc: Likewise.
68 * scripttempl/elf64bpf.sc: Likewise.
69 * scripttempl/elf64hppa.sc: Likewise.
70 * scripttempl/elf_chaos.sc: Likewise.
71 * scripttempl/elfarc.sc: Likewise.
72 * scripttempl/elfarcv2.sc: Likewise.
73 * scripttempl/elfd10v.sc: Likewise.
74 * scripttempl/elfd30v.sc: Likewise.
75 * scripttempl/elfm68hc11.sc: Likewise.
76 * scripttempl/elfm68hc12.sc: Likewise.
77 * scripttempl/elfm9s12z.sc: Likewise.
78 * scripttempl/elfmicroblaze.sc: Likewise.
79 * scripttempl/elfxgate.sc: Likewise.
80 * scripttempl/elfxtensa.sc: Likewise.
81 * scripttempl/epiphany_4x4.sc: Likewise.
82 * scripttempl/ft32.sc: Likewise.
83 * scripttempl/ip2k.sc: Likewise.
84 * scripttempl/iq2000.sc: Likewise.
85 * scripttempl/mep.sc: Likewise.
86 * scripttempl/nds32elf.sc: Likewise.
87 * scripttempl/pru.sc: Likewise.
88 * scripttempl/v850.sc: Likewise.
89 * scripttempl/v850_rh850.sc: Likewise.
90 * scripttempl/visium.sc: Likewise.
91 * scripttempl/xstormy16.sc: Likewise.
92 * scripttempl/z80.sc: Likewise.
93 * testsuite/ld-scripts/script.exp: Run new tests.
94 * scripttempl/misc-sections.sc: New file.
95 * testsuite/ld-scripts/ld-version-2.d: New file.
96 * testsuite/ld-scripts/ld-version.d: New file.
97 * testsuite/ld-scripts/ld-version.t: New file.
99 2023-02-23 Fangrui Song <i@maskray.me>
101 * emultempl/riscvelf.em: Add option parsing.
102 * testsuite/ld-riscv-elf/code-model-relax-medlow-01-norelaxgp.d: New.
103 * testsuite/ld-riscv-elf/pcgp-relax-01-norelaxgp.d: New.
104 * testsuite/ld-riscv-elf/pcgp-relax-02.d: Test --relax --relax-gp can be
107 2023-02-20 Nick Clifton <nickc@redhat.com>
110 * pe-dll.c (pe_dll_build_sections): Do not build an edata section
111 if all symbols are being excluded.
113 2023-02-15 Nick Clifton <nickc@redhat.com>
116 * testsuite/ld-elf/merge4b.s: Use .asciz instead of .string in
117 order to avoid the special behaviour of the .string directive on
120 2023-02-14 Nick Clifton <nickc@redhat.com>
122 * ld.texi (Plugins): Mention that the -plugin command line option
123 is used to load plugins.
125 2023-01-27 Nick Clifton <nickc@redhat.com>
128 * pe-dll.c (build_filler_bfd): Initialise the next field of the
129 filler input statement, so that it does not break the file chain.
131 2023-01-24 Nick Clifton <nickc@redhat.com>
134 * pe-dll.c (generate_reloc): Handle sections with no assigned
135 output section. Terminate early of there are no relocs to put in
137 (pe_exe_fill_sections): Do not emit an empty .reloc section.
139 2023-01-06 Nick Clifton <nickc@redhat.com>
141 * po/bg.po: Updated Bulgarian translation.
143 2023-01-05 Nick Clifton <nickc@redhat.com>
145 * configure.tgt: Add arm64pe as an extra emulation for aarch64pe.
146 * Makefile.am (ALL_64_EMULATION_SOURCES): Add earm64pe.c
147 * emultempl/pep.em: Add suppport for arm64pe emulation.
148 * Makefile.in: Regenerate.
149 * po/BLD-POTFILES.in: Regenerate.
150 * po/ld.pot: Regenerate.
152 2023-01-05 Andreas K. Huettel <dilfridge@gentoo.org>
154 * testsuite/ld-elf/shared.exp: un-xfail the PR19710 test for the
155 AArch64 architecture.
157 2023-01-04 Andreas K. Huettel <dilfridge@gentoo.org>
160 * testsuite/ld-aarch64/bti-plt-5.d: Relax regxps slightly to allow
161 for differences in build environments.
162 * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: Likewise.
164 2023-01-03 Nick Clifton <nickc@redhat.com>
166 * po/uk.po: Updated Ukrainian translation.
168 2022-12-31 Nick Clifton <nickc@redhat.com>
170 * 2.40 branch created.
172 2022-12-21 Nick Clifton <nickc@redhat.com>
175 * scripttempl/pe.sc: Keep the .drectve section when performing a
177 * scripttempl/pep.sc: Likewise.
179 2022-12-08 Nick Clifton <nickc@redhat.com>
182 * ld.texi (Output Section Type): Note that setting the output
183 section type only works if the section contains untyped data.
185 2022-12-05 Nick Clifton <nickc@redhat.com>
188 * ldlang.c (spec_match): Check that there is sufficient length in
189 the target name to match the spec's prefix.
191 2022-11-03 Nick Clifton <nickc@redhat.com>
194 * configure.tgt (ac_default_ld_warn_rwx_segments): Set to 0 for
197 2022-11-03 Nick Clifton <nickc@redhat.com>
200 * scripttempl/avr.sc (__DATA_REGION_ORIGIN__): Define. If a value
201 has not been provided on the command line then use DATA_ORIGIN.
202 (MEMORY): Use __DATA_REGION_ORIGIN__ as the start of the data region.
204 2022-10-21 Nick Clifton <nickc@redhat.com>
207 * ld.h (struct ld_config_type): Add no_warnings field.
208 * ldlex.h (enum option_values): Add OPTION_NO_WARNINGS.
209 * lexsup.c (ld_options): Add --no-warnings.
210 (parse_args): Add support for -w and --no-warnings.
211 * ldmisc.c (vfinfo): Return early if the message is a warning and
213 * ld.texi (options): Document new command line option.
214 * NEWS: Mention the new feature.
216 2022-08-30 Nick Clifton <nickc@redhat.com>
219 * testsuite/ld-x86-64/pr27587.err: Update expected output.
221 2022-08-18 Ralf Habacker <ralf.habacker@freenet.de>
224 * testsuite/ld-pe/pe-run2-def.exp: New file.
226 2022-08-03 Alan Modra <amodra@gmail.com>
229 * ldlang.h (lang_input_statement_struct): Add sort_key field.
230 * emultempl/pe.em (after_open): If multiple import libraries refer
231 to the same bfd, store their names in the sort_key field.
232 * emultempl/pep.em (after_open): Likewise.
233 * ldlang.c (sort_filename): New function. Returns the filename to
234 be used when sorting input files.
235 (wild_sort): Use the sort_filename function.
237 2022-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
240 * configure.tgt (ac_default_ld_warn_rwx_segments): Extend to all
241 sparc targets. Expand comment.
243 2022-07-26 Nick Clifton <nickc@redhat.com>
246 * configure.tgt (ac_default_ld_warn_rwx_segments): Disable for
247 sparc-solaris configurations.
249 2022-07-08 Nick Clifton <nickc@redhat.com>
251 * 2.39 branch created.
253 2022-06-27 Nick Clifton <nickc@redhat.com>
256 * configure.ac: Move HPPA specific code from here...
257 * configure.tgt: ... to here. Add similar code for MIPS.
258 Move code for CRIS, MIPS and HPPA to block at start of file.
259 * configure: Regenerate.
261 2022-06-21 Nick Clifton <nickc@redhat.com>
264 * configure.ac (ac_default_ld_warn_execstack): Default to 'no' for
266 (ac_default_ld_warn_rwx_segments): Likewise.
267 * configure: Regenerate.
268 * testsuite/ld-elf/elf.exp: Add the --warn-execstack command line
269 option to the command line when running execstack tests for the
272 2022-05-12 Alan Modra <amodra@gmail.com>
275 * pe-dll.c (dll_name): Delete, replacing with..
276 (dll_filename): ..this, moved earlier in file.
277 (generate_edata): Delete parameters. Don't set up dll_name here..
278 (pe_process_import_defs): ..instead set up dll_filename and
279 dll_symname here before returning.
280 (dll_symname_len): Delete write-only variable.
281 (pe_dll_generate_implib): Don't set up dll_symname here.
283 2022-05-03 Nick Clifton <nickc@redhat.com>
286 * libdep_plugin.c (get_libdeps): Check for overflow when computing
287 amount of memory to allocate.
289 2022-04-27 Nick Clifton <nickc@redhat.com>
292 * pe-dll.c (make_head): Use asprintf to allocate and populate a
293 buffer containing the temporary name.
294 (make_tail, make_one, make_singleton_name_thunk): Likewise.
295 (make_import_fixup_mark, make_import_fixup_entry): Likewise.
296 (make_runtime_pseudo_reloc): Likewise.
297 (pe_create_runtime_relocator_reference): Likewise.
299 2022-04-25 Nick Clifton <nickc@redhat.com>
302 * testsuite/ld-elf/pr29072.b.warn: Update to include the note
303 about the linker's behaviour being depreccated.
305 2022-04-20 Clément Chigot <clement.chigot@atos.net>
307 * emultempl/aix.em (params): New variable.
308 (stub_file): New variable.
309 (xcoff_add_stub_section): New function.
310 (xcoff_layout_sections_again): New function
311 (hook_in_stub): New function.
312 (_after_allocation): Add stub creation.
313 (_create_output_section_statements): Allocate stub file and
314 pass params to backend.
316 2022-04-20 Clément Chigot <clement.chigot@atos.net>
318 * emultempl/aix.em (_after_allocation): New function.
320 2022-04-07 Mark Harmstone <mark@harmstone.com>
322 * testsuite/ld-pe/secidx1.s: New test source file.
323 * testsuite/ld-pe/secidx2.s: New test source file.
324 * testsuite/ld-pe/secidx.d: New test driver file.
325 * testsuite/ld-pe/secidx_64.d: New test driver file.
326 * testsuite/ld-pe/pe.exp: Add new tests.
328 2022-03-01 Nick Clifton <nickc@redhat.com>
331 * testsuite/ld-elf/pr21964-1a.c: Fix array comparisons.
332 * testsuite/ld-elf/pr21964-1b.c: Likewise.
333 * testsuite/ld-elf/pr21964-1c.c: Likewise.
334 * testsuite/ld-elf/pr21964-2a.c: Likewise.
335 * testsuite/ld-elf/pr21964-2b.c: Likewise.
336 * testsuite/ld-elf/pr21964-3a.c: Likewise.
338 2022-02-17 Roland McGrath <mcgrathr@google.com>
340 * ld.texi (Output Section Type): Fix typo in @code syntax.
342 2022-02-17 Nick Clifton <nickc@redhat.com>
344 * po/sr.po: Updated Serbian translation.
346 2022-02-16 Fangrui Song <maskray@google.com>
347 Nick Clifton <nickc@redhat.com>
350 * ld.texi: Document new output section type.
351 * ldlex.l: Add new token TYPE.
352 * ldgram.y: Handle TYPE=exp and READONLY (TYPE=exp).
353 * ldlang.h: Add type_section to list of section types.
354 * ldlang.c (lang_add_section): Handle type_section.
355 (map_input_to_output_sections): Handle type_section.
356 * testsuite/ld-scripts/output-section-types.t: Add tests.
357 * testsuite/ld-scripts/output-section-types.d: Update.
359 2022-02-02 Nick Clifton <nickc@redhat.com>
361 * po/fr.po: Updated French translation.
363 2022-01-24 Nick Clifton <nickc@redhat.com>
365 * po/bg.po: Updated Bulgarian translation.
366 * po/uk.po: Updated Ukranian translation.
368 2022-01-22 Alexander von Gluck IV <kallisti5@unixzen.com>
370 * configure.tgt (arm-haiku): Fix typo.
371 * emulparams/armelf_haiku.su (MAXPAGESIZE): Use the default value.
372 (COMMONPAGESIZE): Likewise.
374 2022-01-22 Nick Clifton <nickc@redhat.com>
376 * configure: Regenerate.
377 * po/ld.pot: Regenerate.
379 2022-01-22 Nick Clifton <nickc@redhat.com>
381 * 2.38 release branch created.
383 2022-01-21 Nick Clifton <nickc@redhat.com>
385 * po/sr.po: Updated Serbian translation.
387 2022-01-17 Nick Clifton <nickc@redhat.com>
389 * Makefile.in: Regenerate.
390 * po/ld.pot: Regenerate.
392 2022-01-11 Martin Storsjö <martin@martin.st>
394 * pe-dll.c (make_head): Prefix the symbol name with the dll name.
395 (make_tail, make_one, make_singleton_name_thunk): Likewise.
396 (make_import_fixup_entry, make_runtime_pseudo_reloc): Likewise.
397 (pe_create_runtime_relocator_reference): Likewise.
398 (pe_dll_generate_implib): Set dll_symname_len.
399 (pe_process_import_defs): Likewise.
401 2021-12-16 Nick Clifton <nickc@redhat.com>
404 * testsuite/ld-avr/avr-prop-7.d: Adjust expected output.
405 * testsuite/ld-avr/avr-prop-8.d: Likewise.
406 * testsuite/ld-avr/pr13402.d: Likewise.
408 2021-11-30 Nick Clifton <nickc@redhat.com>
410 * scripttempl/pru.sc (.pru_irq_map): Define output section.
411 * testsuite/ld-pru/pru_irq_map-1.d: New test.
412 * testsuite/ld-pru/pru_irq_map-2.d: New test.
413 * testsuite/ld-pru/pru_irq_map.s: New test.
415 2021-11-17 Jeremy Drake <cygwin@jdrake.com>
417 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Set to 0 for
419 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Likewise.
421 2021-11-17 Nick Clifton <nickc@redhat.com>
424 * ldgram.y: Add support for PT_GNU_RELRO and PT_GNU_PROPERTY.
425 * ldgram.c: Regenerate.
427 2021-11-15 Roland McGrath <mcgrathr@google.com>
429 * testsuite/ld-aarch64/dt_textrel.d: Pass explicit -z notext in
430 case ld was configured with --enable-textrel-check=error.
431 * testsuite/ld-aarch64/pr22764.d: Likewise.
432 * testsuite/ld-aarch64/pr20402.d: Likewise.
434 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
436 * testsuite/ld-ctf/nonrepresentable-member.*: New test.
438 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
440 * testsuite/ld-ctf/array.d: Change --ctf=.ctf to --ctf.
441 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
442 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
443 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
444 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
445 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
446 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
447 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
448 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
449 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
450 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
451 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
452 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
453 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
454 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
455 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
456 * testsuite/ld-ctf/cycle-1.d: Likewise.
457 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
458 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
459 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
460 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
461 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
462 * testsuite/ld-ctf/diag-cuname.d: Likewise.
463 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
464 * testsuite/ld-ctf/enum-forward.d: Likewise.
465 * testsuite/ld-ctf/enums.d: Likewise.
466 * testsuite/ld-ctf/forward.d: Likewise.
467 * testsuite/ld-ctf/function.d: Likewise.
468 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
469 * testsuite/ld-ctf/slice.d: Likewise.
470 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
472 2021-09-30 Dimitar Dimitrov <dimitar@dinux.eu>
474 * scripttempl/pru.sc (.resource_table): Align the output
475 section, not the first symbol.
477 2021-09-27 Nick Alcock <nick.alcock@oracle.com>
479 * configure: Regenerate.
481 2021-09-21 Nick Clifton <nickc@redhat.com>
483 * ldlang.c (lang_end): When computing the entry point, only
484 try the start address of the entry section when creating an
486 * ld.texi (Entry point): Update description of heuristic used to
487 choose the entry point.
488 testsuite/ld-alpha/tlspic.rd: Update expected entry point address.
489 testsuite/ld-arm/tls-gdesc-got.d: Likewise.
490 testsuite/ld-i386/tlsnopic.rd: Likewise.
491 testsuite/ld-ia64/tlspic.rd: Likewise.
492 testsuite/ld-sparc/gotop32.rd: Likewise.
493 testsuite/ld-sparc/gotop64.rd: Likewise.
494 testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
495 testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
496 testsuite/ld-sparc/tlssunpic32.rd: Likewise.
497 testsuite/ld-sparc/tlssunpic64.rd: Likewise.
498 testsuite/ld-tic6x/shlib-1.rd: Likewise.
499 testsuite/ld-tic6x/shlib-1b.rd: Likewise.
500 testsuite/ld-tic6x/shlib-1r.rd: Likewise.
501 testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
502 testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
503 testsuite/ld-x86-64/pr14207.d: Likewise.
504 testsuite/ld-x86-64/tlsdesc.rd: Likewise.
505 testsuite/ld-x86-64/tlspic.rd: Likewise.
506 testsuite/ld-x86-64/tlspic2.rd: Likewise.
508 2021-09-15 Claudiu Zissulescu <claziss@synopsys.com>
510 * testsuite/ld-arc/got-weak.d: Update file.
512 2021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
514 * ld-arc/got-weak.d: New file.
515 * ld-arc/got-weak.s: Likewise.
517 2021-07-26 Roland McGrath <mcgrathr@google.com>
519 * testsuite/ld-x86-64/x86-64.exp (Build textrel-1): Use --warn-textrel.
521 2021-07-06 Michael Matz <matz@suse.de>
524 * testsuite/ld-riscv-elf/relax-twice.ver: New.
525 * testsuite/ld-riscv-elf/relax-twice-1.s: New.
526 * testsuite/ld-riscv-elf/relax-twice-2.s: New.
527 * testsuite/ld-riscv-elf/ld-riscv-elf.exp
528 (run_relax_twice_test): New, and call it.
530 2021-07-03 Nick Clifton <nickc@redhat.com>
532 * configure: Regenerate.
533 * po/ld.pot: Regenerate.
535 2021-07-03 Nick Clifton <nickc@redhat.com>
537 * 2.37 release branch created.
539 2021-06-22 Nelson Chu <nelson.chu@sifive.com>
541 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
542 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.d: New testcase.
543 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.s: Likewise.
544 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.d: New testcase.
545 Should report error since the %pcrel_lo with addend refers to
547 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.s: Likewise.
548 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.d: New testcase.
549 Should report error since the %got_pcrel_hi with addend.
550 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.s: Likewise.
551 * testsuite/ld-riscv-elf/pcrel-lo-addend-3.ld: Likewise.
553 2021-06-19 H.J. Lu <hongjiu.lu@intel.com>
556 * testsuite/ld-i386/i386.exp: Run PR ld/27998 tests.
557 * testsuite/ld-i386/pr27998a.d: New file.
558 * testsuite/ld-i386/pr27998a.s: Likewise.
559 * testsuite/ld-i386/pr27998b.d: Likewise.
560 * testsuite/ld-i386/pr27998b.s: Likewise.
562 2021-06-19 H.J. Lu <hongjiu.lu@intel.com>
564 * testsuite/ld-x86-64/textrel-1.err: New file.
565 * testsuite/ld-x86-64/textrel-1a.s: Likewise.
566 * testsuite/ld-x86-64/textrel-1b.s: Likewise.
567 * testsuite/ld-x86-64/x86-64.exp: Run textrel-1 tests.
569 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
571 * testsuite/ld-elf/property-and-1.d: Skip am33_2.0, hppa-hpux
573 Pass --generate-missing-build-notes=no to assembler. Allow
574 other note sections for xtensa.
575 * testsuite/ld-elf/property-and-2.d: Likewise.
576 * testsuite/ld-elf/property-and-3.d: Likewise.
577 * testsuite/ld-elf/property-and-4.d: Likewise.
578 * testsuite/ld-elf/property-or-1.d: Likewise.
579 * testsuite/ld-elf/property-or-2.d: Likewise.
580 * testsuite/ld-elf/property-or-3.d: Likewise.
581 * testsuite/ld-elf/property-or-4.d: Likewise.
583 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
585 * ld.texi: Move -z unique-symbol after -z undefs.
587 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
589 * testsuite/ld-elf/property-and-1.d: New file.
590 * testsuite/ld-elf/property-and-1.s: Likewise.
591 * testsuite/ld-elf/property-and-2.d: Likewise.
592 * testsuite/ld-elf/property-and-2.s: Likewise.
593 * testsuite/ld-elf/property-and-3.d: Likewise.
594 * testsuite/ld-elf/property-and-3.s: Likewise.
595 * testsuite/ld-elf/property-and-4.d: Likewise.
596 * testsuite/ld-elf/property-and-empty.s: Likewise.
597 * testsuite/ld-elf/property-or-1.d: Likewise.
598 * testsuite/ld-elf/property-or-1.s: Likewise.
599 * testsuite/ld-elf/property-or-2.d: Likewise.
600 * testsuite/ld-elf/property-or-2.s: Likewise.
601 * testsuite/ld-elf/property-or-3.d: Likewise.
602 * testsuite/ld-elf/property-or-3.s: Likewise.
603 * testsuite/ld-elf/property-or-4.d: Likewise.
604 * testsuite/ld-elf/property-or-empty.s: Likewise.
606 2021-06-17 H.J. Lu <hongjiu.lu@intel.com>
609 * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and
610 $NOPIE_CFLAGS to protected-func-1 without PIE.
612 2021-06-17 H.J. Lu <hongjiu.lu@intel.com>
615 * testsuite/ld-x86-64/x86-64.exp: Run protected function tests.
616 * testsuite/ld-x86-64/protected-func-1.h: New file.
617 * testsuite/ld-x86-64/protected-func-1a.s: Likewise.
618 * testsuite/ld-x86-64/protected-func-1b.c: Likewise.
620 2021-06-17 Fangrui Song <maskray@google.com>
622 * ldlex.h (enum option_values): Add OPTION_NO_PIE.
623 * lexsup.c (struct ld_options): Add -no-pie.
624 (parse_args): Handle -no-pie.
625 * ld.texi: Document -no-pie.
627 2021-06-15 Alan Modra <amodra@gmail.com>
629 * testsuite/ld-pie/vaddr-0.d: Update expected output.
631 2021-06-11 Alan Modra <amodra@gmail.com>
634 * ldelf.c (ldelf_after_open): Error on input PIEs too.
636 2021-06-09 Nick Clifton <nickc@redhat.com>
639 * testsuite/ld-sparc/sparc.exp: Do not run the sparctests or
640 sparc64tests for Solaris2 targets.
642 2021-06-03 Alan Modra <amodra@gmail.com>
645 * ld.texi (link-time runtime library search path): Mention
646 plugin library path. Correct order of search.
648 2021-05-31 Nelson Chu <nelson.chu@sifive.com>
649 Lifang Xia <lifang_xia@c-sky.com>
652 * emultempl/riscvelf.em (after_allocation): Call
653 riscv_set_data_segment_info to set data segment phase before relaxing.
654 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
655 * testsuite/ld-riscv-elf/relro-relax-lui.d: New testcase.
656 * testsuite/ld-riscv-elf/relro-relax-lui.s: Likewise.
657 * testsuite/ld-riscv-elf/relro-relax-pcrel.d: Likewise.
658 * testsuite/ld-riscv-elf/relro-relax-pcrel.s: Likewise.
660 2021-05-28 H.J. Lu <hongjiu.lu@intel.com>
663 * testsuite/ld-i386/pcrel16-2.d: xfail.
664 * testsuite/ld-x86-64/pcrel16-2.d: Likewise.
666 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
669 * testsuite/ld-i386/code16.d: New file.
670 * testsuite/ld-i386/code16.t: Likewise.
671 * testsuite/ld-x86-64/code16.d: Likewise.
672 * testsuite/ld-x86-64/code16.t: Likewise.
673 * testsuite/ld-i386/i386.exp: Run code16.
674 * testsuite/ld-x86-64/x86-64.exp: Likewise.
676 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
678 * testsuite/ld-x86-64/ilp32-12.d: New file.
679 * testsuite/ld-x86-64/ilp32-12.s: Likewise.
680 * testsuite/ld-x86-64/x86-64.exp: Run ilp32-12.
682 2021-05-14 Nelson Chu <nelson.chu@sifive.com>
684 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
685 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d: Renamed from
687 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.s: Likewise.
688 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.d: New testcase.
689 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.s: Likewise.
691 2021-05-13 Fangrui Song <maskray@google.com>
694 * ldlex.h (enum option_values): Add OPTION_NO_SYMBOLIC.
695 * lexsup.c (ld_options): Add -Bno-symbolic.
696 (parse_args): Handle -Bno-symbolic.
697 * ld.texi: Document -Bno-symbolic.
698 * NEWS: Mention -Bno-symbolic.
699 * testsuite/ld-elf/shared.exp: Add a test.
701 2021-05-12 Richard Earnshaw <rearnsha@arm.com>
703 * testsuite/ld-arm/arm-elf.exp (farcall test for v8-m.mainline):
704 Correct expected output.
706 2021-05-11 Roland McGrath <mcgrathr@google.com>
708 * testsuite/ld-x86-64/rela.d: Fix regexp not to presume a specific
709 address layout, so it works for e.g. --target=x86-64-elf.
711 2021-05-11 Nick Clifton <nickc@redhat.com>
714 * Makefile.am (install-data-local): Also delete libdep.dll.a if it
716 * Makefile.in: Regenerate.
718 2021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
720 * testsuite/ld-elf/group8a.d: Remove pru from XFAIL list.
721 * testsuite/ld-elf/group8b.d: Ditto.
722 * testsuite/ld-elf/group9a.d: Ditto.
723 * testsuite/ld-elf/group9b.d: Ditto.
724 * testsuite/ld-elf/pr12851.d: Ditto.
725 * testsuite/ld-elf/pr22677.d: Ditto.
726 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove
729 2021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
731 * scripttempl/pru.sc (.resource_table): Add ALIGN directive.
732 Use symbols for memory sizes.
734 2021-05-08 Mike Frysinger <vapier@gentoo.org>
736 * Makefile.am (html-local, doc/ld/index.html): New targets.
737 * Makefile.in: Regenerate.
739 2021-05-08 Mike Frysinger <vapier@gentoo.org>
741 * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
742 * Makefile.in: Regenerate.
744 2021-05-07 Jan Beulich <jbeulich@suse.com>
746 * testsuite/ld-x86-64/rela.d: New.
747 * testsuite/ld-x86-64/x86-64.exp: Run new test.
749 2021-05-07 Nick Clifton <nickc@redhat.com>
751 * ldelfgen.c (compare_link_order): Ignore section size when
752 performing a relocateable link.
754 2021-05-07 Alan Modra <amodra@gmail.com>
756 * ldexp.c (update_definedness): Don't return false for absolute
758 * ldmain.c (multiple_definition): Print "warning: " in message
759 when not a hard error.
761 2021-05-07 Alan Modra <amodra@gmail.com>
763 * testsuite/ld-elf/pr27825-1.d: Correct xfail.
764 * testsuite/ld-elf/pr27825-2.d: Likewise.
766 2021-05-06 Stafford Horne <shorne@gmail.com>
769 testsuite/ld-or1k/or1k.exp (or1kplttests): Add tests for linking
770 along with gotha() relocations.
771 testsuite/ld-or1k/gotha1.dd: New file.
772 testsuite/ld-or1k/gotha1.s: New file.
773 testsuite/ld-or1k/gotha2.dd: New file.
774 testsuite/ld-or1k/gotha2.s: New file
775 testsuite/ld-or1k/pltlib.s (x): Define size to avoid link
778 2021-05-06 Nick Alcock <nick.alcock@oracle.com>
780 * testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt.
781 * testsuite/lib/ld-lib.exp: Likewise.
782 * testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types.
783 * testsuite/ld-ctf/nonrepresentable-2.c: Likewise.
784 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
785 * testsuite/ld-ctf/array.d: Larger type section.
786 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
787 * testsuite/ld-ctf/enums.d: Likewise.
788 * testsuite/ld-ctf/conflicting-enums.d: Don't compare types.
789 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order.
790 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
791 * testsuite/ld-ctf/slice.d: Adjust for improved slice emission.
793 2021-05-05 H.J. Lu <hongjiu.lu@intel.com>
796 * testsuite/ld-elf/pr27825-1.d: New file.
797 * testsuite/ld-elf/pr27825-1a.s: Likewise.
798 * testsuite/ld-elf/pr27825-1b.s: Likewise.
799 * testsuite/ld-elf/pr27825-2.d: Likewise.
800 * testsuite/ld-elf/pr27825-2a.s: Likewise.
801 * testsuite/ld-elf/pr27825-2b.s: Likewise.
803 2021-05-05 Alan Modra <amodra@gmail.com>
805 * testsuite/ld-powerpc/empty.s: New file.
806 * testsuite/ld-powerpc/undefweak.d,
807 * testsuite/ld-powerpc/undefweak.s: New testcase.
808 * testsuite/ld-powerpc/powerpc.exp: Run it.
810 2021-05-03 Alan Modra <amodra@gmail.com>
812 * testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
813 named section symbols.
815 2021-04-28 Nick Clifton <nickc@redhat.com>
817 * testsuite/ld-elf/anno-sym.s: New test source file.
818 * testsuite/ld-elf/anno-sym.d: New test driver.
819 * testsuite/ld-elf/anno-sym.l: New test error output.
821 2021-04-26 Jan Beulich <jbeulich@suse.com>
823 * testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d,
824 testsuite/ld-x86-64/pcrel16-2.d: New.
825 * testsuite/ld-i386/i386.exp: Run new test.
826 * testsuite/ld-x86-64/x86-64.exp: Likewise.
828 2021-04-23 H.J. Lu <hongjiu.lu@intel.com>
831 * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
832 to tmpdir/ldscripts only if it doesn't exist.
834 2021-04-22 Jan Beulich <jbeulich@suse.com>
837 * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
839 2021-04-21 Nick Clifton <nickc@redhat.com>
841 * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
842 to allow for named section symbols.
843 * testsuite/ld-aarch64/variant_pcs-r.d: Likewise.
844 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
845 * testsuite/ld-alpha/tlsbin.rd: Likewise.
846 * testsuite/ld-alpha/tlsbinr.rd: Likewise.
847 * testsuite/ld-alpha/tlspic.rd: Likewise.
848 * testsuite/ld-arm/rodata-merge-map.sym: Likewise.
849 * testsuite/ld-arm/script-type.sym: Likewise.
850 * testsuite/ld-cris/libdso-2.d: Likewise.
851 * testsuite/ld-cris/pr16044.d: Likewise.
852 * testsuite/ld-elf/sec64k.exp: Likewise.
853 * testsuite/ld-ia64/tlsbin.rd: Likewise.
854 * testsuite/ld-ia64/tlspic.rd: Likewise.
855 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
856 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
857 * testsuite/ld-mmix/bspec1.d: Likewise.
858 * testsuite/ld-mmix/bspec2.d: Likewise.
859 * testsuite/ld-mmix/local1.d: Likewise.
860 * testsuite/ld-mmix/local3.d: Likewise.
861 * testsuite/ld-mmix/local5.d: Likewise.
862 * testsuite/ld-mmix/local7.d: Likewise.
863 * testsuite/ld-mmix/undef-3.d: Likewise.
864 * testsuite/ld-powerpc/tlsso.r: Likewise.
865 * testsuite/ld-powerpc/tlsso32.r: Likewise.
866 * testsuite/ld-powerpc/tlstocso.r: Likewise.
867 * testsuite/ld-s390/tlsbin.rd: Likewise.
868 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
869 * testsuite/ld-s390/tlspic.rd: Likewise.
870 * testsuite/ld-s390/tlspic_64.rd: Likewise.
871 * testsuite/ld-sparc/gotop32.rd: Likewise.
872 * testsuite/ld-sparc/gotop64.rd: Likewise.
873 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
874 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
875 * testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
876 * testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
877 * testsuite/ld-sparc/tlssunpic32.rd: Likewise.
878 * testsuite/ld-sparc/tlssunpic64.rd: Likewise.
879 * testsuite/ld-tic6x/common.d: Likewise.
880 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
881 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
882 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
883 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
884 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
885 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
886 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
887 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
888 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
889 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
890 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
891 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
892 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
894 2021-04-20 Clément Chigot <clement.chigot@atos.net>
897 * testsuite/ld-powerpc/aix52.exp: Add new test.
898 * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
899 * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
900 * testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
901 * testsuite/ld-powerpc/aix-neg-reloc.s: New test.
903 2021-04-13 Nick Clifton <nickc@redhat.com>
905 * ld.texi (Options): Add note about the effect of --as-needed on
906 the --rpath and --rpath-link options on Linux based systems.
908 2021-04-13 Alan Modra <amodra@gmail.com>
911 * libdep_plugin.c (str2vec): Don't pass a potentially signed char
914 2021-04-12 Alan Modra <amodra@gmail.com>
916 * configure.ac (--enable-checking): Add support.
917 * config.in: Regenerate.
918 * configure: Regenerate.
920 2021-04-12 Alan Modra <amodra@gmail.com>
922 * emultempl/mipself.em (mips_create_output_section_statements):
923 Pass base type of hash table to is_elf_hash_table.
924 * ldelf.c (ldelf_after_open): Likewise.
926 2021-04-12 Alan Modra <amodra@gmail.com>
929 * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
930 the symbol hash table is the correct type before accessing
931 elf_link_hash_entry symbols.
932 * plugin.c (is_visible_from_outside): Likewise.
933 * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
934 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
936 2021-04-09 Alan Modra <amodra@gmail.com>
938 * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
939 * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
940 * testsuite/ld-powerpc/notoc2.d: Likewise.
941 * testsuite/ld-powerpc/notoc3.d: Likewise.
942 * testsuite/ld-powerpc/pcrelopt.d: Likewise.
943 * testsuite/ld-powerpc/startstop.d: Likewise.
944 * testsuite/ld-powerpc/tlsget.d: Likewise.
945 * testsuite/ld-powerpc/tlsget2.d: Likewise.
946 * testsuite/ld-powerpc/tlsld.d: Likewise.
947 * testsuite/ld-powerpc/weak1.d: Likewise.
948 * testsuite/ld-powerpc/weak1so.d: Likewise.
950 2021-04-06 Jan Beulich <jbeulich@suse.com>
952 * pe-dll.c (generate_reloc): Bail immediately when .reloc is
953 being discarded. Warn when relocated entry is above .reloc.
955 2021-04-05 Alan Modra <amodra@gmail.com>
957 * configure.ac: Move initfini-array arg handling earlier. Don't
958 check for string.h, strings.h, stdlib.h, or locale.h. Do check
959 for inttypes.h, stdint.h, sys/types.h. Don't check for
960 setlocale, free, getev or strstr.
961 (AC_ISC_POSIX): Don't invoke.
962 * sysdep.h: Include string.h and stdlib.h unconditionally. Test
963 HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and
964 getenv fallback declarations.
965 * ld.h: Don't test HAVE_LOCALE_H.
966 * ldmain.c: Don't test HAVE_SETLOCALE.
967 * config.in: Regenerate.
968 * configure: Regenerate.
970 2021-04-01 Tamar Christina <tamar.christina@arm.com>
973 * testsuite/ld-pe/pe.exp: Add test.
974 * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
975 * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
977 2021-04-01 Martin Liska <mliska@suse.cz>
979 * ldbuildid.c (strneq): Remove strneq and use startswith.
980 (validate_build_id_style): Likewise.
981 (compute_build_id_size): Likewise.
983 2021-03-31 Alan Modra <amodra@gmail.com>
985 * sysdep.h (POISON_BFD_BOOLEAN): Define.
986 * configure.ac (elf_list_options, elf_shlib_list_options=false),
987 (elf_plt_unwind_list_options=false): Replace FALSE with false,
989 * emulparams/call_nop.sh, * emulparams/cet.sh,
990 * emulparams/dynamic_undefined_weak.sh,
991 * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
992 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
993 * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
994 * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
995 * emulparams/reloc_overflow.sh, * emulparams/static.sh,
996 * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
997 * emultempl/aix.em, * emultempl/alphaelf.em,
998 * emultempl/armcoff.em, * emultempl/armelf.em,
999 * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
1000 * emultempl/cr16elf.em, * emultempl/crxelf.em,
1001 * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
1002 * emultempl/hppaelf.em, * emultempl/linux.em,
1003 * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
1004 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
1005 * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
1006 * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
1007 * emultempl/pep.em, * emultempl/ppc32elf.em,
1008 * emultempl/ppc64elf.em, * emultempl/rxelf.em,
1009 * emultempl/rxlinux.em, * emultempl/scoreelf.em,
1010 * emultempl/solaris2.em, * emultempl/spuelf.em,
1011 * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
1012 * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
1013 * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
1014 * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
1015 * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
1016 * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
1017 * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
1018 * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
1019 * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
1020 bfd_boolean with bool, FALSE with false, and TRUE with true.
1021 * configure: Regenerate.
1023 2021-03-31 Alan Modra <amodra@gmail.com>
1025 * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
1026 * emultempl/nds32elf.em: Likewise.
1027 * testsuite/ld-elf/mbind2b.c: Likewise.
1028 * testsuite/ld-elf/pr18718.c: Likewise.
1029 * testsuite/ld-elf/pr18720a.c: Likewise.
1030 * testsuite/ld-elf/pr25749-1.c: Likewise.
1031 * testsuite/ld-elf/pr25749-1a.c: Likewise.
1032 * testsuite/ld-elf/pr25749-1b.c: Likewise.
1033 * testsuite/ld-elf/pr25749-1c.c: Likewise.
1034 * testsuite/ld-elf/pr25749-1d.c: Likewise.
1035 * testsuite/ld-elf/pr25749-2.c: Likewise.
1036 * testsuite/ld-elf/pr25754-1a.c: Likewise.
1037 * testsuite/ld-elf/pr25754-2a.c: Likewise.
1038 * testsuite/ld-elf/pr25754-3a.c: Likewise.
1039 * testsuite/ld-elf/pr25754-4a.c: Likewise.
1040 * testsuite/ld-elf/pr25754-5a.c: Likewise.
1041 * testsuite/ld-elf/pr25754-6a.c: Likewise.
1043 2021-03-29 Alan Modra <amodra@gmail.com>
1045 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
1047 * lexsup.c (parse_args): Likewise.
1048 * pe-dll.c (pe_dll_id_target): Likewise.
1050 2021-03-25 Nick Alcock <nick.alcock@oracle.com>
1052 * testsuite/ld-ctf/array.d: Only check that the data object
1053 section is nonempty: do not check its exact size.
1054 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1055 * testsuite/ld-ctf/slice.d: Likewise.
1056 * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
1057 func info section too.
1058 * testsuite/ld-ctf/function.d: Likewise, for the func info section.
1060 2021-03-22 Martin Liska <mliska@suse.cz>
1062 * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
1063 * emultempl/beos.em: Likewise.
1064 * emultempl/elf.em: Likewise.
1065 * emultempl/pe.em: Likewise.
1066 * emultempl/pep.em: Likewise.
1067 * emultempl/xtensaelf.em: Likewise.
1068 * ldctor.c (ctor_prio): Likewise.
1069 * ldelf.c (ldelf_try_needed): Likewise.
1070 (ldelf_parse_ld_so_conf): Likewise.
1071 (ldelf_after_open): Likewise.
1072 (output_rel_find): Likewise.
1073 (ldelf_place_orphan): Likewise.
1074 * ldfile.c (ldfile_add_library_path): Likewise.
1075 * ldlang.c (lang_add_input_file): Likewise.
1076 * ldmain.c (get_sysroot): Likewise.
1077 (get_emulation): Likewise.
1078 (add_archive_element): Likewise.
1079 * ldwrite.c (unsplittable_name): Likewise.
1080 (clone_section): Likewise.
1081 * lexsup.c (parse_args): Likewise.
1082 * pe-dll.c (is_import): Likewise.
1083 (pe_implied_import_dll): Likewise.
1085 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
1088 * testsuite/ld-x86-64/pr27590.rd: New file.
1089 * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
1090 * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
1091 * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
1093 2021-03-20 Alan Modra <amodra@gmail.com>
1096 * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
1097 for all sections except .stabstr.
1099 2021-03-19 Alan Modra <amodra@gmail.com>
1102 * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
1104 * testsuite/ld-elf/pr27590b.d: Likewise.
1106 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1109 * testsuite/ld-elf/pr27590.s: New file.
1110 * testsuite/ld-elf/pr27590a.d: Likewise.
1111 * testsuite/ld-elf/pr27590b.d: Likewise.
1112 * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
1113 --reduce-memory-overheads.
1115 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1118 * testsuite/ld-x86-64/pr27587.err: New file.
1119 * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
1120 * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
1121 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
1123 2021-03-18 Nick Alcock <nick.alcock@oracle.com>
1125 * testsuite/ld-ctf/slice.c: Check slices of enums too.
1126 * testsuite/ld-ctf/slice.d: Results adjusted.
1128 2021-03-16 Nick Clifton <nickc@redhat.com>
1130 * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
1133 2021-03-15 Jan Beulich <jbeulich@suse.com>
1135 * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
1137 2021-03-12 Alan Modra <amodra@gmail.com>
1139 * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
1140 (ALL_64_EMULATION_SOURCES): ..here.
1141 * Makefile.in: Regenerate.
1143 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1145 * emultempl/aix.em: Ensure .tdata section is removed
1146 if empty, even with -r flag.
1147 * scripttempl/aix.sc: Handle TLS sections.
1148 * testsuite/ld-powerpc/aix52.exp: Add new tests.
1149 * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
1150 * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
1151 * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
1152 * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
1153 * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
1154 * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
1155 * testsuite/ld-powerpc/aix-tls-section.ex: New test.
1156 * testsuite/ld-powerpc/aix-tls-section.s: New test.
1158 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1160 * scripttempl/aix.sc: Add .te to .data section.
1161 * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
1162 Add aix-largetoc-1 test.
1163 * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
1164 * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
1165 * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
1166 * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
1168 2021-03-12 Alan Modra <amodra@gmail.com>
1170 * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
1171 arrange to define __main for some run_dump_test tests.
1172 * testsuite/ld-gc/pr13683.d: Accept more symbols.
1173 * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
1174 * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
1175 * testsuite/ld-srec/srec.exp: Likewise.
1176 * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
1178 2021-03-11 Nelson Chu <nelson.chu@sifive.com>
1180 * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
1181 many times if riscv_restart_relax_sections returns TRUE.
1182 * testsuite/ld-riscv-elf/restart-relax.d: New testcase. Before
1183 applying this patch, the call won't be relaxed to jal; But now we
1184 have more chances to do relaxations.
1185 * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
1186 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
1188 2021-03-10 Jan Beulich <jbeulich@suse.com>
1190 * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
1192 * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
1194 * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
1196 2021-03-09 Jan Beulich <jbeulich@suse.com>
1198 * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
1200 * testsuite/ld-pe/reloc.d: xfail for mcore.
1202 2021-03-09 Jan Beulich <jbeulich@suse.com>
1204 * testsuite/ld-scripts/alignof.exp,
1205 testsuite/ld-scripts/data.exp,
1206 testsuite/ld-scripts/default-script.exp,
1207 testsuite/ld-scripts/log2.exp,
1208 testsuite/ld-scripts/print-memory-usage.exp,
1209 testsuite/ld-scripts/sizeof.exp,
1210 testsuite/ld-undefined/weak-undef.exp: Set image base to zero
1212 * testsuite/ld-scripts/default-script1.d,
1213 testsuite/ld-scripts/default-script2.d,
1214 testsuite/ld-scripts/default-script3.d,
1215 testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
1217 2021-03-05 H.J. Lu <hongjiu.lu@intel.com>
1221 * ldelf.c (ldelf_set_output_arch): New function.
1222 * ldelf.h (ldelf_set_output_arch): New prototype.
1223 * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
1224 ldelf_set_output_arch.
1225 * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
1226 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1227 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1228 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1229 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1230 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1231 * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
1232 * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
1233 * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
1235 2021-03-04 Jan Beulich <jbeulich@suse.com>
1237 * testsuite/ld-scripts/map-address.exp: Set image base to zero
1239 * testsuite/ld-scripts/map-address.t: Place .text.
1241 2021-03-04 Jan Beulich <jbeulich@suse.com>
1243 * ldexp.c (ldexp_is_final_sym_absolute): New.
1244 * ldexp.h (ldexp_is_final_sym_absolute): Declare.
1245 * pe-dll.c (generate_reloc): Skip absolute symbols.
1246 * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
1247 * testsuite/ld-pe/pe.exp: Run new test.
1249 2021-03-03 Alan Modra <amodra@gmail.com>
1252 * ldlang.c (insert_undefined): Don't mark symbols here.
1253 (lang_mark_undefineds): Do so here instead, new function.
1254 (lang_process): Call lang_mark_undefineds.
1255 * testsuite/ld-gc/start3.d,
1256 * testsuite/ld-gc/start3.s: New test.
1257 * testsuite/ld-gc/start4.d,
1258 * testsuite/ld-gc/start4.s: New test.
1259 * testsuite/ld-gc/gc.exp: Run them.
1261 2021-03-03 Alan Modra <amodra@gmail.com>
1263 * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
1264 Move tests with ELF section directives to is_elf_format block.
1265 * testsuite/ld-gc/abi-note.d: Run on more targets.
1266 * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
1267 * testsuite/ld-gc/start.d: Likewise.
1268 * testsuite/ld-gc/start2.d: Likewise.
1269 * testsuite/ld-gc/stop.d: Likewise.
1270 * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
1271 * testsuite/ld-gc/start.s: Likewise.
1272 * testsuite/ld-gc/start2.s: Likewise.
1274 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
1276 * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
1278 2021-03-02 Alan Modra <amodra@gmail.com>
1280 * testsuite/ld-powerpc/startstop.d,
1281 * testsuite/ld-powerpc/startstop.r,
1282 * testsuite/ld-powerpc/startstop.s: New test.
1283 * testsuite/ld-powerpc/powerpc.exp: Run it.
1285 2021-03-02 Alan Modra <amodra@gmail.com>
1287 * testsuite/ld-powerpc/weak1.d,
1288 * testsuite/ld-powerpc/weak1.r,
1289 * testsuite/ld-powerpc/weak1.s,
1290 * testsuite/ld-powerpc/weak1so.d,
1291 * testsuite/ld-powerpc/weak1so.r: New tests.
1292 * testsuite/ld-powerpc/powerpc.exp: Run them.
1294 2021-03-01 Hannes Domani <ssbssa@sourceware.org>
1295 Nick Clifton <nickc@redhat.com>
1298 * scripttempl/pe.sc: Add DWARF-5 section names.
1299 * scripttempl/pep.sc: Likewise.
1301 2021-03-01 Alan Modra <amodra@gmail.com>
1302 Fangrui Song <maskray@google.com>
1304 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
1305 * lexsup.c (elf_static_list_options): Display help for them. Move
1306 help for -z stack-size to here from elf_shlib_list_options. Add
1307 help for -z start-stop-visibility and -z undefs.
1308 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
1309 * NEWS: Mention -z start-stop-gc.
1310 * testsuite/ld-gc/start2.s,
1311 * testsuite/ld-gc/start2.d: New test.
1312 * testsuite/ld-gc/gc.exp: Run it.
1314 2021-03-01 Alan Modra <amodra@gmail.com>
1316 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
1317 symbols undefweak if that was how they were referenced. Undo
1320 2021-03-01 Alan Modra <amodra@gmail.com>
1322 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
1323 * testsuite/ld-elf/pr27128a.d: Likewise.
1324 * testsuite/ld-elf/pr27128b.d: Likewise.
1325 * testsuite/ld-elf/pr27128c.d: Likewise.
1326 * testsuite/ld-elf/pr27128d.d: Likewise.
1327 * testsuite/ld-elf/pr27128e.d: Likewise.
1329 2021-02-26 Alan Modra <amodra@gmail.com>
1332 * testsuite/ld-plugin/pr27441a.c,
1333 * testsuite/ld-plugin/pr27441b.c,
1334 * testsuite/ld-plugin/pr27441c.c,
1335 * testsuite/ld-plugin/pr27441c.d: New test.
1336 * testsuite/ld-plugin/lto.exp: Run it.
1338 2021-02-25 Jan Beulich <jbeulich@suse.com>
1340 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
1342 2021-02-21 Alan Modra <amodra@gmail.com>
1344 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
1345 defined in an object file.
1346 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
1347 * testsuite/ld-scripts/defined5.d: Expect a warning.
1349 2021-02-19 Alan Modra <amodra@gmail.com>
1351 * testsuite/lib/ld-lib.exp: Whitespace.
1352 (load_common_lib): Expand single use and delete this proc.
1353 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
1354 Use -B for clang too.
1356 2021-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
1358 * testplugin.c (record_read_length): Remove debug fprintf.
1360 2021-02-14 Alan Modra <amodra@gmail.com>
1362 * testsuite/ld-cdtest/cdtest.exp,
1363 * testsuite/ld-checks/checks.exp,
1364 * testsuite/ld-elf/binutils.exp,
1365 * testsuite/ld-elf/compress.exp,
1366 * testsuite/ld-elf/dwarf.exp,
1367 * testsuite/ld-elf/exclude.exp,
1368 * testsuite/ld-elf/frame.exp,
1369 * testsuite/ld-elf/indirect.exp,
1370 * testsuite/ld-elf/linux-x86.exp,
1371 * testsuite/ld-elf/sec-to-seg.exp,
1372 * testsuite/ld-elf/tls_common.exp,
1373 * testsuite/ld-elfcomm/elfcomm.exp,
1374 * testsuite/ld-elfvers/vers.exp,
1375 * testsuite/ld-elfvsb/elfvsb.exp,
1376 * testsuite/ld-elfweak/elfweak.exp,
1377 * testsuite/ld-ifunc/binutils.exp,
1378 * testsuite/ld-mips-elf/mips-elf-flags.exp,
1379 * testsuite/ld-misc/defsym.exp,
1380 * testsuite/ld-mn10300/mn10300.exp,
1381 * testsuite/ld-plugin/lto.exp,
1382 * testsuite/ld-plugin/plugin.exp,
1383 * testsuite/ld-scripts/align.exp,
1384 * testsuite/ld-scripts/assert.exp,
1385 * testsuite/ld-scripts/crossref.exp,
1386 * testsuite/ld-scripts/defined.exp,
1387 * testsuite/ld-scripts/extern.exp,
1388 * testsuite/ld-scripts/log2.exp,
1389 * testsuite/ld-scripts/map-address.exp,
1390 * testsuite/ld-scripts/phdrs.exp,
1391 * testsuite/ld-scripts/phdrs2.exp,
1392 * testsuite/ld-scripts/script.exp,
1393 * testsuite/ld-scripts/section-flags.exp,
1394 * testsuite/ld-scripts/sizeof.exp,
1395 * testsuite/ld-scripts/weak.exp,
1396 * testsuite/ld-selective/selective.exp,
1397 * testsuite/ld-sh/sh.exp,
1398 * testsuite/ld-shared/shared.exp,
1399 * testsuite/ld-srec/srec.exp,
1400 * testsuite/ld-tic6x/tic6x.exp,
1401 * testsuite/ld-undefined/undefined.exp,
1402 * testsuite/ld-undefined/weak-undef.exp,
1403 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
1404 perror. Instead report "unsupported" or "fail".
1406 2021-02-12 Nick Clifton <nickc@redhat.com>
1408 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
1409 following debug links.
1411 2021-02-11 Alan Modra <amodra@gmail.com>
1413 * NEWS: Mention arm-symbianelf removal.
1415 2021-02-09 Alan Modra <amodra@gmail.com>
1417 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
1418 Don't include symbian dep file.
1419 * configure.tgt: Remove arm*-*-symbianelf* entry.
1420 * emulparams/armsymbian.sh: Delete.
1421 * ld.texi: Don't mention symbian.
1422 * scripttempl/armbpabi.sc: Delete.
1423 * testsuite/ld-arm/symbian-seg1.d: Delete.
1424 * testsuite/ld-arm/symbian-seg1.s: Delete.
1425 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
1426 * Makefile.in: Regenerate.
1427 * po/BLD-POTFILES.in: Regenerate.
1429 2021-02-07 H.J. Lu <hongjiu.lu@intel.com>
1432 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
1434 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1436 2021-01-26 Nick Alcock <nick.alcock@oracle.com>
1438 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
1441 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1444 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
1445 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
1446 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
1447 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
1448 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
1449 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
1450 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
1452 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1455 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
1456 * testsuite/ld-plugin/pr15146.d: Restored.
1457 * testsuite/ld-plugin/pr15146a.c: Likewise.
1458 * testsuite/ld-plugin/pr15146b.c: Likewise.
1459 * testsuite/ld-plugin/pr15146c.c: Likewise.
1460 * testsuite/ld-plugin/pr15146d.c: Likewise.
1462 2021-02-04 Alan Modra <amodra@gmail.com>
1464 * testsuite/ld-plugin/pr27311d.c: New test.
1465 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
1466 and link new test as pr27311-2.
1468 2021-02-03 Alan Modra <amodra@gmail.com>
1470 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
1471 Link with --as-needed.
1473 2021-02-02 Alan Modra <amodra@gmail.com>
1475 * testsuite/ld-plugin/pr27311.d,
1476 * testsuite/ld-plugin/pr27311.ver,
1477 * testsuite/ld-plugin/pr27311a.c,
1478 * testsuite/ld-plugin/pr27311b.c,
1479 * testsuite/ld-plugin/pr27311c.c: New testcase.
1480 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
1483 2021-02-01 Emery Hemingway <ehmry@posteo.net>
1485 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1487 2021-02-01 Alan Modra <amodra@gmail.com>
1489 * ldgram.y (defsym_expr): Use assignment rule.
1490 * ldlex.h (ldlex_defsym): Delete.
1491 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
1493 2021-02-01 Alan Modra <amodra@gmail.com>
1495 * ldgram.y (section): Call ldlex_backup. Remove empty action.
1496 * ldlex.h (ldlex_backup): Declare.
1497 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
1498 chars, use SYMBOLNAMECHAR.
1499 (ldlex_backup): New function.
1501 2021-02-01 Alan Modra <amodra@gmail.com>
1503 * ldgram.y: Whitespace fixes.
1505 2021-02-01 Alan Modra <amodra@gmail.com>
1507 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
1509 2021-01-29 Alan Modra <amodra@gmail.com>
1511 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
1513 2021-01-28 H.J. Lu <hongjiu.lu@intel.com>
1516 * testsuite/ld-elf/pr27259.d: New file.
1517 * testsuite/ld-elf/pr27259.s: Likewise.
1519 2021-01-28 Alan Modra <amodra@gmail.com>
1522 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
1523 prevent endless looping of linked-to sections.
1525 2021-01-26 H.J. Lu <hongjiu.lu@intel.com>
1527 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
1529 2021-01-26 Alan Modra <amodra@gmail.com>
1532 * emulparams/alphavms.sh: Don't set COMPILE_IN.
1533 * emulparams/elf64_ia64_vms.sh: Likewise.
1534 * emulparams/elf64mmix.sh: Likewise.
1535 * emulparams/elf_iamcu.sh: Likewise.
1536 * emulparams/elf_k1om.sh: Likewise.
1537 * emulparams/elf_l1om.sh: Likewise.
1538 * emulparams/mmo.sh: Likewise.
1539 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
1540 * scripttempl/pdp11.sc: Use it.
1541 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
1542 instead use .xe script. Support scripts from file system.
1543 * emultempl/beos.em: Support scripts from file system.
1544 * emultempl/pe.em: Likewise.
1545 * emultempl/pep.em: Likewise.
1546 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
1548 2021-01-25 Fangrui Song <maskray@google.com>
1551 * scripttempl/DWARF.sc: Add .debug_* sections.
1553 2021-01-25 Nick Clifton <nickc@redhat.com>
1555 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
1556 .debug_line_str and .debug_str_offsets. Move .debug_macro and
1557 .debug_addr into DWARF-5 section.
1559 2021-01-21 Alan Modra <amodra@gmail.com>
1561 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
1563 2021-01-20 Alan Modra <amodra@gmail.com>
1565 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
1566 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
1567 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
1568 * testsuite/ld-powerpc/tlsget.wf: Likewise.
1569 * testsuite/ld-powerpc/tlsget2.d: Likewise.
1570 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
1571 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
1572 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
1573 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
1574 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
1575 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
1576 * testsuite/ld-powerpc/tlsexers.r: Likewise.
1577 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
1578 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
1579 * testsuite/ld-powerpc/tlsso.r: Likewise.
1580 * testsuite/ld-powerpc/tlsso32.r: Likewise.
1581 * testsuite/ld-powerpc/tlstocso.r: Likewise.
1583 2021-01-19 Nick Alcock <nick.alcock@oracle.com>
1585 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
1586 symbols by the optimizer.
1587 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
1589 2021-01-19 Nelson Chu <nelson.chu@sifive.com>
1591 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
1592 if target is riscv little endian. Otherwise, return false.
1593 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
1594 targets by [riscv_little_endian].
1596 2021-01-18 Alan Modra <amodra@gmail.com>
1599 * ldlang.c (map_input_to_output_sections): Start with a read-only
1600 section for data statements.
1601 * testsuite/ld-elf/size-2.d: Adjust to suit.
1603 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
1606 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
1607 * testsuite/ld-i386/pr27193.dd: New file.
1608 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
1609 * testsuite/ld-i386/pr27193b.s: Likewise.
1611 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1614 * testsuite/ld-plugin/lto.exp: Increase the max number of open
1615 files to 20 for PR binutils/23460 test.
1617 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1620 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
1621 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
1622 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
1625 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
1627 * NEWS: Mention -z report-relative-reloc.
1628 * ld.texi: Document -z report-relative-reloc.
1629 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
1630 * emulparams/elf_i386.sh: Likewse.
1631 * emulparams/elf_x86_64.sh: Likewse.
1632 * emulparams/x86-report-relative.sh: New file.
1633 * testsuite/ld-i386/report-reloc-1.d: Likewse.
1634 * testsuite/ld-i386/report-reloc-1.l: Likewse.
1635 * testsuite/ld-i386/report-reloc-1.s: Likewse.
1636 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
1637 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
1638 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
1639 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
1640 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
1641 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
1644 2021-01-16 Alan Modra <amodra@gmail.com>
1647 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
1648 unversioned symbols.
1649 * testsuite/ld-elfvers/vers16.dsym: Likewise.
1651 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1653 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
1654 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
1655 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
1656 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
1657 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
1658 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
1660 2021-01-14 Nick Clifton <nickc@redhat.com>
1662 * po/fr.po: Updated French translation.
1664 2021-01-14 Mike Frysinger <vapier@gentoo.org>
1666 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
1668 2021-01-14 Alan Modra <amodra@gmail.com>
1671 * ldelfgen.c (compare_link_order): Protect access of ELF section
1673 (add_link_order_input_section): Remove redundant NULL check.
1674 Use bfd_get_flavour.
1675 (ldelf_map_segments): Use bfd_get_flavour.
1677 2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
1679 * ldelfgen.c (add_link_order_input_section): Check for ELF input
1680 before accessing ELF section data.
1682 2021-01-13 Alan Modra <amodra@gmail.com>
1684 * Makefile.in: Regenerate.
1686 2021-01-13 Alan Modra <amodra@gmail.com>
1689 * ldlang.h (lang_output_section_statement_type): Add data field.
1690 (lang_input_section_type, lang_section_bst_type): Add pattern field.
1691 (statement_list): Declare.
1692 (lang_add_section): Adjust prototype.
1693 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
1694 * emultempl/armelf.em: Likewise.
1695 * emultempl/beos.em: Likewise.
1696 * emultempl/cskyelf.em: Likewise.
1697 * emultempl/hppaelf.em: Likewise.
1698 * emultempl/m68hc1xelf.em: Likewise.
1699 * emultempl/metagelf.em: Likewise.
1700 * emultempl/mipself.em: Likewise.
1701 * emultempl/mmo.em: Likewise.
1702 * emultempl/msp430.em: Likewise.
1703 * emultempl/nios2elf.em: Likewise.
1704 * emultempl/pe.em: Likewise.
1705 * emultempl/pep.em: Likewise.
1706 * emultempl/ppc64elf.em: Likewise.
1707 * emultempl/spuelf.em: Likewise.
1708 * emultempl/vms.em: Likewise.
1709 * ldelf.c: Likewise.
1710 * ldelfgen.c: Include ldctor.h.
1711 (struct os_sections): New.
1712 (add_link_order_input_section, link_order_scan): New functions.
1713 (compare_link_order, fixup_link_order): New functions.
1714 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
1715 * ldlang.c (statement_list): Make global.
1716 (output_section_callback_fast): Save pattern in tree node.
1717 (lang_add_section): Add pattern parameter, save in lang_input_section.
1718 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
1719 (lang_insert_orphan, output_section_callback): Likewise.
1720 (ldlang_place_orphan): Likewise.
1721 (gc_section_callback): Don't set section->pattern.
1722 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
1723 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1724 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
1726 2021-01-13 Alan Modra <amodra@gmail.com>
1728 * ldlang.h (callback_t): Remove flag_info function parameter.
1729 * ldlang.c (walk_wild_consider_section): Adjust to suit.
1730 (walk_wild_section_general): Likewise.
1731 (output_section_callback_fast, output_section_callback): Likewise.
1732 (check_section_callback, gc_section_callback): Likewise.
1733 (find_relro_section_callback): Likewise.
1735 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1738 * configure.ac: Use GNU_MAKE_JOBSERVER.
1739 * aclocal.m4: Regenerated.
1740 * configure: Likewise.
1742 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1745 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
1746 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1747 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1748 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
1750 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1753 * configure: Regenerated.
1755 2021-01-11 Matt Jenkins <matt@majenko.co.uk>
1758 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
1759 and mips64r5 to list of known mips targets.
1761 2021-01-11 Nick Clifton <nickc@redhat.com>matt@majenko.co.uk
1763 * po/pt_BR.po: Updated Brazilian Portuguese translation.
1764 ` * po/uk.po: Updated Ukranian translation.
1766 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1768 * configure: Regenerated.
1770 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1773 * testsuite/ld-x86-64/lam-u48.rd: New file.
1774 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
1775 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
1777 2021-01-09 Nick Clifton <nickc@redhat.com>
1779 * configure: Regenerate.
1780 * po/ld.pot: Regenerate.
1782 2021-01-09 Nick Clifton <nickc@redhat.com>
1784 * 2.36 release branch crated.
1786 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
1788 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
1789 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
1791 2021-01-09 Alan Modra <amodra@gmail.com>
1793 * configure: Regenerate.
1794 * Makefile.in: Regenerate.
1796 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1798 * configure: Regenerate.
1800 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1803 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
1804 * testsuite/ld-elf/loadaddr3b.d: Likewise.
1805 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1806 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1807 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1808 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1809 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1810 * testsuite/ld-i386/pr19636-1d.d: Likewise.
1811 * testsuite/ld-i386/pr19636-1l.d: Likewise.
1812 * testsuite/ld-i386/pr19636-2c.d: Likewise.
1813 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1814 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1815 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1816 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1817 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1818 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1819 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1820 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1821 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1822 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1823 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1824 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1825 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1826 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1827 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1828 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1829 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1830 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1831 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1832 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1833 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1834 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1835 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1836 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1837 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1838 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1839 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
1840 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
1841 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
1842 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
1843 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
1844 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
1845 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1846 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
1847 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1848 * testsuite/ld-x86-64/pr21038b.d: Likewise.
1849 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1850 * testsuite/ld-x86-64/pr21038c.d: Likewise.
1851 * testsuite/ld-x86-64/pr23854.d: Likewise.
1852 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1853 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1854 * testsuite/ld-i386/plt-pic.pd: Likewise.
1855 * testsuite/ld-i386/plt-pic2.dd: Likewise.
1856 * testsuite/ld-i386/plt.pd: Likewise.
1857 * testsuite/ld-i386/plt2.dd: Likewise.
1858 * testsuite/ld-i386/tlsbin.rd: Likewise.
1859 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1860 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1861 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1862 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
1863 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1864 * testsuite/ld-i386/tlspic.rd: Likewise.
1865 * testsuite/ld-i386/tlspic2.rd: Likewise.
1866 * testsuite/ld-x86-64/mpx3.dd: Likewise.
1867 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
1868 * testsuite/ld-x86-64/mpx4.dd: Likewise.
1869 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
1870 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
1871 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1872 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1873 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1874 * testsuite/ld-x86-64/plt.pd: Likewise.
1875 * testsuite/ld-x86-64/plt2.dd: Likewise.
1876 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1877 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1878 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1879 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1880 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
1881 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1882 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1883 * testsuite/ld-elf/sec64k.exp: Check
1884 is_elf_unused_section_symbols.
1886 2021-01-07 Alan Modra <amodra@gmail.com>
1888 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
1889 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
1890 * testsuite/ld-scripts/segment-start.d: Likewise.
1892 2021-01-07 Alan Modra <amodra@gmail.com>
1894 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
1895 about dynamic relocations in read-only sections.
1896 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1897 * testsuite/ld-elf/ehdr_start.d: Likewise.
1898 * testsuite/ld-scripts/pr22267.d: Likewise.
1899 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
1901 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
1903 2021-01-07 Marcus Comstedt <marcus@mc.pp.se>
1905 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
1906 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
1908 2021-01-07 Alan Modra <amodra@gmail.com>
1910 * po/BLD-POTFILES.in: Regenerate.
1912 2021-01-07 Alan Modra <amodra@gmail.com>
1914 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
1915 complain about relocs in read-only sections. Tidy ASFLAGS append.
1917 2021-01-06 Alan Modra <amodra@gmail.com>
1919 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
1920 base for some tests.
1921 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
1922 * testsuite/ld-sparc/gotop32.sd: Likewise.
1923 * testsuite/ld-sparc/gotop32.td: Likewise.
1924 * testsuite/ld-sparc/gotop64.dd: Likewise.
1925 * testsuite/ld-sparc/gotop64.sd: Likewise.
1926 * testsuite/ld-sparc/gotop64.td: Likewise.
1927 * testsuite/ld-sparc/tlsg32.sd: Likewise.
1928 * testsuite/ld-sparc/tlsg64.sd: Likewise.
1929 * testsuite/ld-sparc/tlspie32.dd: Likewise.
1930 * testsuite/ld-sparc/tlspie64.dd: Likewise.
1931 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
1932 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
1933 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
1934 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
1935 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
1936 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
1937 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
1938 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
1939 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
1940 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
1941 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
1942 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
1943 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
1944 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
1945 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
1946 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
1947 * testsuite/ld-sparc/wdispcall.dd: Likewise.
1949 2021-01-06 Alan Modra <amodra@gmail.com>
1951 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
1952 * testsuite/ld-scripts/rgn-at11.d: Likewise.
1954 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1956 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
1957 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
1958 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
1959 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
1960 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1961 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1962 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1963 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
1964 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
1965 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
1966 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
1967 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
1968 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
1969 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
1971 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
1973 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1975 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
1976 riscv32be*-*-linux*, and riscv64be*-*-linux*.
1977 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
1978 eelf32briscv_ilp32.c.
1979 * Makefile.in: Regenerate.
1980 * emulparams/elf32briscv.sh: Added.
1981 * emulparams/elf32briscv_ilp32.sh: Likewise.
1982 * emulparams/elf32briscv_ilp32f.sh: Likewise.
1983 * emulparams/elf64briscv.sh: Likewise.
1984 * emulparams/elf64briscv_lp64.sh: Likewise.
1985 * emulparams/elf64briscv_lp64f.sh: Likewise.
1987 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1989 * testsuite/ld-ctf/enum-forward.c: New test.
1990 * testsuite/ld-ctf/enum-forward.c: New results.
1992 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1994 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1995 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1996 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1997 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1998 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1999 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
2000 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
2001 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
2002 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
2003 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
2004 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
2005 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
2006 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2007 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
2008 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
2009 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
2010 * testsuite/ld-ctf/cycle-1.d: Likewise.
2011 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
2012 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
2013 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
2014 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2015 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2016 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2017 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2018 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
2019 * testsuite/ld-ctf/forward.d: Likewise.
2020 * testsuite/ld-ctf/function.d: Likewise.
2021 * testsuite/ld-ctf/slice.d: Likewise.
2022 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
2023 * testsuite/ld-ctf/enums.c: New test.
2024 * testsuite/ld-ctf/enums.d: New test.
2026 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
2028 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
2030 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2031 * testsuite/ld-ctf/forward.c: New test...
2032 * testsuite/ld-ctf/forward.d: ... and results.
2034 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
2036 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2037 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2038 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2039 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2040 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2041 * testsuite/ld-ctf/function.d: Likewise.
2042 * testsuite/ld-ctf/slice.d: Likewise.
2044 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
2046 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2047 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
2048 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
2049 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
2050 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
2051 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
2052 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
2053 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
2054 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
2055 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
2056 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
2057 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
2058 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2059 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
2060 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
2061 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
2062 * testsuite/ld-ctf/cycle-1.d: Likewise.
2063 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
2064 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
2065 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
2066 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2067 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2068 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2069 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2070 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
2071 * testsuite/ld-ctf/function.d: Likewise.
2072 * testsuite/ld-ctf/slice.d: Likewise.
2073 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
2075 2021-01-05 Alan Modra <amodra@gmail.com>
2077 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
2079 2021-01-05 Alan Modra <amodra@gmail.com>
2082 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
2083 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
2085 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
2088 * ldlang.c (gc_section_callback): Set pattern.
2089 * testsuite/ld-elf/pr26256-1.s: New file.
2090 * testsuite/ld-elf/pr26256-1.t: Likewise.
2091 * testsuite/ld-elf/pr26256-1a.d: Likewise.
2092 * testsuite/ld-elf/pr26256-1b.d: Likewise.
2093 * testsuite/ld-elf/pr26256-2.s: Likewise.
2094 * testsuite/ld-elf/pr26256-2.t: Likewise.
2095 * testsuite/ld-elf/pr26256-2a.d: Likewise.
2096 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
2097 * testsuite/ld-elf/pr26256-2b.d: Likewise.
2098 * testsuite/ld-elf/pr26256-3.s: Likewise.
2099 * testsuite/ld-elf/pr26256-3a.d: Likewise.
2100 * testsuite/ld-elf/pr26256-3a.t: Likewise.
2101 * testsuite/ld-elf/pr26256-3b.d: Likewise.
2102 * testsuite/ld-elf/pr26256-3b.t: Likewise.
2104 2021-01-04 Alan Modra <amodra@gmail.com>
2107 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
2108 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
2109 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
2110 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
2111 * testsuite/ld-i386/tlsbin.rd: Likewise.
2112 * testsuite/ld-i386/tlsbin2.rd: Likewise.
2113 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
2114 * testsuite/ld-i386/tlsdesc.rd: Likewise.
2115 * testsuite/ld-i386/tlsnopic.rd: Likewise.
2116 * testsuite/ld-i386/tlspic.rd: Likewise.
2117 * testsuite/ld-i386/tlspic2.rd: Likewise.
2118 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
2119 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
2120 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
2121 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
2122 * testsuite/ld-plugin/pr17973.d: Likewise.
2123 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
2124 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
2125 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
2126 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
2127 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
2128 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
2129 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
2130 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
2131 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
2132 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
2133 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
2134 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
2135 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
2136 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
2137 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
2138 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
2139 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
2140 * testsuite/ld-x86-64/tlspic.rd: Likewise.
2141 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
2142 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
2143 * testsuite/ld-xtensa/tlspic.rd: Likewise.
2145 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
2147 * configure.tgt: Correct comment grammar.
2148 * emultempl/m68hc1xelf.em: Likewise.
2149 * ld.texi: Correct grammar.
2151 2021-01-01 Alan Modra <amodra@gmail.com>
2153 Update year range in copyright notice of all files.
2155 For older changes see ChangeLog-2020
2157 Copyright (C) 2021-2023 Free Software Foundation, Inc.
2159 Copying and distribution of this file, with or without modification,
2160 are permitted in any medium without royalty provided the copyright
2161 notice and this notice are preserved.
2167 version-control: never