1 2023-04-18 mengqinggang <mengqinggang@loongson.cn>
3 * testsuite/ld-loongarch-elf/macro_op.d: Regenerated.
5 2023-04-17 Nick Clifton <nickc@redhat.com>
8 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): Define in order to
9 handle the .gnu.sgstubs section.
11 2023-04-13 Claudiu Zissulescu <claziss@synopsys.com>
13 * testsuite/ld-arc/arc.exp: Update execution predicate.
14 * testsuite/ld-arc/nps-1a.d: Add linker script option.
15 * testsuite/ld-arc/nps-1b.d: Likewise.
16 * testsuite/ld-arc/relax-local-pic.d: Update matching patterns.
18 2023-04-12 Nick Clifton <nickc@redhat.com>
20 * ld.texi (--enable-non-contiguous-regions): Fix typos in script
23 2023-03-15 Nick Clifton <nickc@redhat.com>
26 * NEWS: Mention the new feature.
27 * ld.texi: Document the new feature.
28 * ldgram.y: Handle LINKER_VERSION token.
29 * ldlang.c (lang_add_version): New function.
30 (enable_linker_version): New global variable.
31 * ldlang.h (land_add_version): Prototype.
32 (enable_linker_version): Export.
33 * ldlex.h (OPTION_ENABLE_LINKER_VERSION): Define.
34 (OPTION_DISABLE_LINKER_VERSION): Define.
35 * ldlex.l (LINKER_VERSION): Add token.
36 * lexsup.c (ld_options): Add --enable-linker-version and
37 --disable-linker-version.
38 (parse_args): Handle the new options.
39 * scripttempl/arclinux.sc: Remove stabs and comment sections and
40 replace with inclusion of misc-sections.sc
41 * scripttempl/avr.sc: Likewise.
42 * scripttempl/dlx.sc: Likewise.
43 * scripttempl/elf.sc: Likewise.
44 * scripttempl/elf32cr16.sc: Likewise.
45 * scripttempl/elf32crx.sc: Likewise.
46 * scripttempl/elf32msp430.sc: Likewise.
47 * scripttempl/elf64bpf.sc: Likewise.
48 * scripttempl/elf64hppa.sc: Likewise.
49 * scripttempl/elf_chaos.sc: Likewise.
50 * scripttempl/elfarc.sc: Likewise.
51 * scripttempl/elfarcv2.sc: Likewise.
52 * scripttempl/elfd10v.sc: Likewise.
53 * scripttempl/elfd30v.sc: Likewise.
54 * scripttempl/elfm68hc11.sc: Likewise.
55 * scripttempl/elfm68hc12.sc: Likewise.
56 * scripttempl/elfm9s12z.sc: Likewise.
57 * scripttempl/elfmicroblaze.sc: Likewise.
58 * scripttempl/elfxgate.sc: Likewise.
59 * scripttempl/elfxtensa.sc: Likewise.
60 * scripttempl/epiphany_4x4.sc: Likewise.
61 * scripttempl/ft32.sc: Likewise.
62 * scripttempl/ip2k.sc: Likewise.
63 * scripttempl/iq2000.sc: Likewise.
64 * scripttempl/mep.sc: Likewise.
65 * scripttempl/nds32elf.sc: Likewise.
66 * scripttempl/pru.sc: Likewise.
67 * scripttempl/v850.sc: Likewise.
68 * scripttempl/v850_rh850.sc: Likewise.
69 * scripttempl/visium.sc: Likewise.
70 * scripttempl/xstormy16.sc: Likewise.
71 * scripttempl/z80.sc: Likewise.
72 * testsuite/ld-scripts/script.exp: Run new tests.
73 * scripttempl/misc-sections.sc: New file.
74 * testsuite/ld-scripts/ld-version-2.d: New file.
75 * testsuite/ld-scripts/ld-version.d: New file.
76 * testsuite/ld-scripts/ld-version.t: New file.
78 2023-02-23 Fangrui Song <i@maskray.me>
80 * emultempl/riscvelf.em: Add option parsing.
81 * testsuite/ld-riscv-elf/code-model-relax-medlow-01-norelaxgp.d: New.
82 * testsuite/ld-riscv-elf/pcgp-relax-01-norelaxgp.d: New.
83 * testsuite/ld-riscv-elf/pcgp-relax-02.d: Test --relax --relax-gp can be
86 2023-02-20 Nick Clifton <nickc@redhat.com>
89 * pe-dll.c (pe_dll_build_sections): Do not build an edata section
90 if all symbols are being excluded.
92 2023-02-15 Nick Clifton <nickc@redhat.com>
95 * testsuite/ld-elf/merge4b.s: Use .asciz instead of .string in
96 order to avoid the special behaviour of the .string directive on
99 2023-02-14 Nick Clifton <nickc@redhat.com>
101 * ld.texi (Plugins): Mention that the -plugin command line option
102 is used to load plugins.
104 2023-01-27 Nick Clifton <nickc@redhat.com>
107 * pe-dll.c (build_filler_bfd): Initialise the next field of the
108 filler input statement, so that it does not break the file chain.
110 2023-01-24 Nick Clifton <nickc@redhat.com>
113 * pe-dll.c (generate_reloc): Handle sections with no assigned
114 output section. Terminate early of there are no relocs to put in
116 (pe_exe_fill_sections): Do not emit an empty .reloc section.
118 2023-01-06 Nick Clifton <nickc@redhat.com>
120 * po/bg.po: Updated Bulgarian translation.
122 2023-01-05 Nick Clifton <nickc@redhat.com>
124 * configure.tgt: Add arm64pe as an extra emulation for aarch64pe.
125 * Makefile.am (ALL_64_EMULATION_SOURCES): Add earm64pe.c
126 * emultempl/pep.em: Add suppport for arm64pe emulation.
127 * Makefile.in: Regenerate.
128 * po/BLD-POTFILES.in: Regenerate.
129 * po/ld.pot: Regenerate.
131 2023-01-05 Andreas K. Huettel <dilfridge@gentoo.org>
133 * testsuite/ld-elf/shared.exp: un-xfail the PR19710 test for the
134 AArch64 architecture.
136 2023-01-04 Andreas K. Huettel <dilfridge@gentoo.org>
139 * testsuite/ld-aarch64/bti-plt-5.d: Relax regxps slightly to allow
140 for differences in build environments.
141 * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: Likewise.
143 2023-01-03 Nick Clifton <nickc@redhat.com>
145 * po/uk.po: Updated Ukrainian translation.
147 2022-12-31 Nick Clifton <nickc@redhat.com>
149 * 2.40 branch created.
151 2022-12-21 Nick Clifton <nickc@redhat.com>
154 * scripttempl/pe.sc: Keep the .drectve section when performing a
156 * scripttempl/pep.sc: Likewise.
158 2022-12-08 Nick Clifton <nickc@redhat.com>
161 * ld.texi (Output Section Type): Note that setting the output
162 section type only works if the section contains untyped data.
164 2022-12-05 Nick Clifton <nickc@redhat.com>
167 * ldlang.c (spec_match): Check that there is sufficient length in
168 the target name to match the spec's prefix.
170 2022-11-03 Nick Clifton <nickc@redhat.com>
173 * configure.tgt (ac_default_ld_warn_rwx_segments): Set to 0 for
176 2022-11-03 Nick Clifton <nickc@redhat.com>
179 * scripttempl/avr.sc (__DATA_REGION_ORIGIN__): Define. If a value
180 has not been provided on the command line then use DATA_ORIGIN.
181 (MEMORY): Use __DATA_REGION_ORIGIN__ as the start of the data region.
183 2022-10-21 Nick Clifton <nickc@redhat.com>
186 * ld.h (struct ld_config_type): Add no_warnings field.
187 * ldlex.h (enum option_values): Add OPTION_NO_WARNINGS.
188 * lexsup.c (ld_options): Add --no-warnings.
189 (parse_args): Add support for -w and --no-warnings.
190 * ldmisc.c (vfinfo): Return early if the message is a warning and
192 * ld.texi (options): Document new command line option.
193 * NEWS: Mention the new feature.
195 2022-08-30 Nick Clifton <nickc@redhat.com>
198 * testsuite/ld-x86-64/pr27587.err: Update expected output.
200 2022-08-18 Ralf Habacker <ralf.habacker@freenet.de>
203 * testsuite/ld-pe/pe-run2-def.exp: New file.
205 2022-08-03 Alan Modra <amodra@gmail.com>
208 * ldlang.h (lang_input_statement_struct): Add sort_key field.
209 * emultempl/pe.em (after_open): If multiple import libraries refer
210 to the same bfd, store their names in the sort_key field.
211 * emultempl/pep.em (after_open): Likewise.
212 * ldlang.c (sort_filename): New function. Returns the filename to
213 be used when sorting input files.
214 (wild_sort): Use the sort_filename function.
216 2022-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
219 * configure.tgt (ac_default_ld_warn_rwx_segments): Extend to all
220 sparc targets. Expand comment.
222 2022-07-26 Nick Clifton <nickc@redhat.com>
225 * configure.tgt (ac_default_ld_warn_rwx_segments): Disable for
226 sparc-solaris configurations.
228 2022-07-08 Nick Clifton <nickc@redhat.com>
230 * 2.39 branch created.
232 2022-06-27 Nick Clifton <nickc@redhat.com>
235 * configure.ac: Move HPPA specific code from here...
236 * configure.tgt: ... to here. Add similar code for MIPS.
237 Move code for CRIS, MIPS and HPPA to block at start of file.
238 * configure: Regenerate.
240 2022-06-21 Nick Clifton <nickc@redhat.com>
243 * configure.ac (ac_default_ld_warn_execstack): Default to 'no' for
245 (ac_default_ld_warn_rwx_segments): Likewise.
246 * configure: Regenerate.
247 * testsuite/ld-elf/elf.exp: Add the --warn-execstack command line
248 option to the command line when running execstack tests for the
251 2022-05-12 Alan Modra <amodra@gmail.com>
254 * pe-dll.c (dll_name): Delete, replacing with..
255 (dll_filename): ..this, moved earlier in file.
256 (generate_edata): Delete parameters. Don't set up dll_name here..
257 (pe_process_import_defs): ..instead set up dll_filename and
258 dll_symname here before returning.
259 (dll_symname_len): Delete write-only variable.
260 (pe_dll_generate_implib): Don't set up dll_symname here.
262 2022-05-03 Nick Clifton <nickc@redhat.com>
265 * libdep_plugin.c (get_libdeps): Check for overflow when computing
266 amount of memory to allocate.
268 2022-04-27 Nick Clifton <nickc@redhat.com>
271 * pe-dll.c (make_head): Use asprintf to allocate and populate a
272 buffer containing the temporary name.
273 (make_tail, make_one, make_singleton_name_thunk): Likewise.
274 (make_import_fixup_mark, make_import_fixup_entry): Likewise.
275 (make_runtime_pseudo_reloc): Likewise.
276 (pe_create_runtime_relocator_reference): Likewise.
278 2022-04-25 Nick Clifton <nickc@redhat.com>
281 * testsuite/ld-elf/pr29072.b.warn: Update to include the note
282 about the linker's behaviour being depreccated.
284 2022-04-20 Clément Chigot <clement.chigot@atos.net>
286 * emultempl/aix.em (params): New variable.
287 (stub_file): New variable.
288 (xcoff_add_stub_section): New function.
289 (xcoff_layout_sections_again): New function
290 (hook_in_stub): New function.
291 (_after_allocation): Add stub creation.
292 (_create_output_section_statements): Allocate stub file and
293 pass params to backend.
295 2022-04-20 Clément Chigot <clement.chigot@atos.net>
297 * emultempl/aix.em (_after_allocation): New function.
299 2022-04-07 Mark Harmstone <mark@harmstone.com>
301 * testsuite/ld-pe/secidx1.s: New test source file.
302 * testsuite/ld-pe/secidx2.s: New test source file.
303 * testsuite/ld-pe/secidx.d: New test driver file.
304 * testsuite/ld-pe/secidx_64.d: New test driver file.
305 * testsuite/ld-pe/pe.exp: Add new tests.
307 2022-03-01 Nick Clifton <nickc@redhat.com>
310 * testsuite/ld-elf/pr21964-1a.c: Fix array comparisons.
311 * testsuite/ld-elf/pr21964-1b.c: Likewise.
312 * testsuite/ld-elf/pr21964-1c.c: Likewise.
313 * testsuite/ld-elf/pr21964-2a.c: Likewise.
314 * testsuite/ld-elf/pr21964-2b.c: Likewise.
315 * testsuite/ld-elf/pr21964-3a.c: Likewise.
317 2022-02-17 Roland McGrath <mcgrathr@google.com>
319 * ld.texi (Output Section Type): Fix typo in @code syntax.
321 2022-02-17 Nick Clifton <nickc@redhat.com>
323 * po/sr.po: Updated Serbian translation.
325 2022-02-16 Fangrui Song <maskray@google.com>
326 Nick Clifton <nickc@redhat.com>
329 * ld.texi: Document new output section type.
330 * ldlex.l: Add new token TYPE.
331 * ldgram.y: Handle TYPE=exp and READONLY (TYPE=exp).
332 * ldlang.h: Add type_section to list of section types.
333 * ldlang.c (lang_add_section): Handle type_section.
334 (map_input_to_output_sections): Handle type_section.
335 * testsuite/ld-scripts/output-section-types.t: Add tests.
336 * testsuite/ld-scripts/output-section-types.d: Update.
338 2022-02-02 Nick Clifton <nickc@redhat.com>
340 * po/fr.po: Updated French translation.
342 2022-01-24 Nick Clifton <nickc@redhat.com>
344 * po/bg.po: Updated Bulgarian translation.
345 * po/uk.po: Updated Ukranian translation.
347 2022-01-22 Alexander von Gluck IV <kallisti5@unixzen.com>
349 * configure.tgt (arm-haiku): Fix typo.
350 * emulparams/armelf_haiku.su (MAXPAGESIZE): Use the default value.
351 (COMMONPAGESIZE): Likewise.
353 2022-01-22 Nick Clifton <nickc@redhat.com>
355 * configure: Regenerate.
356 * po/ld.pot: Regenerate.
358 2022-01-22 Nick Clifton <nickc@redhat.com>
360 * 2.38 release branch created.
362 2022-01-21 Nick Clifton <nickc@redhat.com>
364 * po/sr.po: Updated Serbian translation.
366 2022-01-17 Nick Clifton <nickc@redhat.com>
368 * Makefile.in: Regenerate.
369 * po/ld.pot: Regenerate.
371 2022-01-11 Martin Storsjö <martin@martin.st>
373 * pe-dll.c (make_head): Prefix the symbol name with the dll name.
374 (make_tail, make_one, make_singleton_name_thunk): Likewise.
375 (make_import_fixup_entry, make_runtime_pseudo_reloc): Likewise.
376 (pe_create_runtime_relocator_reference): Likewise.
377 (pe_dll_generate_implib): Set dll_symname_len.
378 (pe_process_import_defs): Likewise.
380 2021-12-16 Nick Clifton <nickc@redhat.com>
383 * testsuite/ld-avr/avr-prop-7.d: Adjust expected output.
384 * testsuite/ld-avr/avr-prop-8.d: Likewise.
385 * testsuite/ld-avr/pr13402.d: Likewise.
387 2021-11-30 Nick Clifton <nickc@redhat.com>
389 * scripttempl/pru.sc (.pru_irq_map): Define output section.
390 * testsuite/ld-pru/pru_irq_map-1.d: New test.
391 * testsuite/ld-pru/pru_irq_map-2.d: New test.
392 * testsuite/ld-pru/pru_irq_map.s: New test.
394 2021-11-17 Jeremy Drake <cygwin@jdrake.com>
396 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Set to 0 for
398 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Likewise.
400 2021-11-17 Nick Clifton <nickc@redhat.com>
403 * ldgram.y: Add support for PT_GNU_RELRO and PT_GNU_PROPERTY.
404 * ldgram.c: Regenerate.
406 2021-11-15 Roland McGrath <mcgrathr@google.com>
408 * testsuite/ld-aarch64/dt_textrel.d: Pass explicit -z notext in
409 case ld was configured with --enable-textrel-check=error.
410 * testsuite/ld-aarch64/pr22764.d: Likewise.
411 * testsuite/ld-aarch64/pr20402.d: Likewise.
413 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
415 * testsuite/ld-ctf/nonrepresentable-member.*: New test.
417 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
419 * testsuite/ld-ctf/array.d: Change --ctf=.ctf to --ctf.
420 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
421 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
422 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
423 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
424 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
425 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
426 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
427 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
428 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
429 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
430 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
431 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
432 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
433 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
434 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
435 * testsuite/ld-ctf/cycle-1.d: Likewise.
436 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
437 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
438 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
439 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
440 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
441 * testsuite/ld-ctf/diag-cuname.d: Likewise.
442 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
443 * testsuite/ld-ctf/enum-forward.d: Likewise.
444 * testsuite/ld-ctf/enums.d: Likewise.
445 * testsuite/ld-ctf/forward.d: Likewise.
446 * testsuite/ld-ctf/function.d: Likewise.
447 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
448 * testsuite/ld-ctf/slice.d: Likewise.
449 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
451 2021-09-30 Dimitar Dimitrov <dimitar@dinux.eu>
453 * scripttempl/pru.sc (.resource_table): Align the output
454 section, not the first symbol.
456 2021-09-27 Nick Alcock <nick.alcock@oracle.com>
458 * configure: Regenerate.
460 2021-09-21 Nick Clifton <nickc@redhat.com>
462 * ldlang.c (lang_end): When computing the entry point, only
463 try the start address of the entry section when creating an
465 * ld.texi (Entry point): Update description of heuristic used to
466 choose the entry point.
467 testsuite/ld-alpha/tlspic.rd: Update expected entry point address.
468 testsuite/ld-arm/tls-gdesc-got.d: Likewise.
469 testsuite/ld-i386/tlsnopic.rd: Likewise.
470 testsuite/ld-ia64/tlspic.rd: Likewise.
471 testsuite/ld-sparc/gotop32.rd: Likewise.
472 testsuite/ld-sparc/gotop64.rd: Likewise.
473 testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
474 testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
475 testsuite/ld-sparc/tlssunpic32.rd: Likewise.
476 testsuite/ld-sparc/tlssunpic64.rd: Likewise.
477 testsuite/ld-tic6x/shlib-1.rd: Likewise.
478 testsuite/ld-tic6x/shlib-1b.rd: Likewise.
479 testsuite/ld-tic6x/shlib-1r.rd: Likewise.
480 testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
481 testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
482 testsuite/ld-x86-64/pr14207.d: Likewise.
483 testsuite/ld-x86-64/tlsdesc.rd: Likewise.
484 testsuite/ld-x86-64/tlspic.rd: Likewise.
485 testsuite/ld-x86-64/tlspic2.rd: Likewise.
487 2021-09-15 Claudiu Zissulescu <claziss@synopsys.com>
489 * testsuite/ld-arc/got-weak.d: Update file.
491 2021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
493 * ld-arc/got-weak.d: New file.
494 * ld-arc/got-weak.s: Likewise.
496 2021-07-26 Roland McGrath <mcgrathr@google.com>
498 * testsuite/ld-x86-64/x86-64.exp (Build textrel-1): Use --warn-textrel.
500 2021-07-06 Michael Matz <matz@suse.de>
503 * testsuite/ld-riscv-elf/relax-twice.ver: New.
504 * testsuite/ld-riscv-elf/relax-twice-1.s: New.
505 * testsuite/ld-riscv-elf/relax-twice-2.s: New.
506 * testsuite/ld-riscv-elf/ld-riscv-elf.exp
507 (run_relax_twice_test): New, and call it.
509 2021-07-03 Nick Clifton <nickc@redhat.com>
511 * configure: Regenerate.
512 * po/ld.pot: Regenerate.
514 2021-07-03 Nick Clifton <nickc@redhat.com>
516 * 2.37 release branch created.
518 2021-06-22 Nelson Chu <nelson.chu@sifive.com>
520 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
521 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.d: New testcase.
522 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.s: Likewise.
523 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.d: New testcase.
524 Should report error since the %pcrel_lo with addend refers to
526 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.s: Likewise.
527 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.d: New testcase.
528 Should report error since the %got_pcrel_hi with addend.
529 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.s: Likewise.
530 * testsuite/ld-riscv-elf/pcrel-lo-addend-3.ld: Likewise.
532 2021-06-19 H.J. Lu <hongjiu.lu@intel.com>
535 * testsuite/ld-i386/i386.exp: Run PR ld/27998 tests.
536 * testsuite/ld-i386/pr27998a.d: New file.
537 * testsuite/ld-i386/pr27998a.s: Likewise.
538 * testsuite/ld-i386/pr27998b.d: Likewise.
539 * testsuite/ld-i386/pr27998b.s: Likewise.
541 2021-06-19 H.J. Lu <hongjiu.lu@intel.com>
543 * testsuite/ld-x86-64/textrel-1.err: New file.
544 * testsuite/ld-x86-64/textrel-1a.s: Likewise.
545 * testsuite/ld-x86-64/textrel-1b.s: Likewise.
546 * testsuite/ld-x86-64/x86-64.exp: Run textrel-1 tests.
548 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
550 * testsuite/ld-elf/property-and-1.d: Skip am33_2.0, hppa-hpux
552 Pass --generate-missing-build-notes=no to assembler. Allow
553 other note sections for xtensa.
554 * testsuite/ld-elf/property-and-2.d: Likewise.
555 * testsuite/ld-elf/property-and-3.d: Likewise.
556 * testsuite/ld-elf/property-and-4.d: Likewise.
557 * testsuite/ld-elf/property-or-1.d: Likewise.
558 * testsuite/ld-elf/property-or-2.d: Likewise.
559 * testsuite/ld-elf/property-or-3.d: Likewise.
560 * testsuite/ld-elf/property-or-4.d: Likewise.
562 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
564 * ld.texi: Move -z unique-symbol after -z undefs.
566 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
568 * testsuite/ld-elf/property-and-1.d: New file.
569 * testsuite/ld-elf/property-and-1.s: Likewise.
570 * testsuite/ld-elf/property-and-2.d: Likewise.
571 * testsuite/ld-elf/property-and-2.s: Likewise.
572 * testsuite/ld-elf/property-and-3.d: Likewise.
573 * testsuite/ld-elf/property-and-3.s: Likewise.
574 * testsuite/ld-elf/property-and-4.d: Likewise.
575 * testsuite/ld-elf/property-and-empty.s: Likewise.
576 * testsuite/ld-elf/property-or-1.d: Likewise.
577 * testsuite/ld-elf/property-or-1.s: Likewise.
578 * testsuite/ld-elf/property-or-2.d: Likewise.
579 * testsuite/ld-elf/property-or-2.s: Likewise.
580 * testsuite/ld-elf/property-or-3.d: Likewise.
581 * testsuite/ld-elf/property-or-3.s: Likewise.
582 * testsuite/ld-elf/property-or-4.d: Likewise.
583 * testsuite/ld-elf/property-or-empty.s: Likewise.
585 2021-06-17 H.J. Lu <hongjiu.lu@intel.com>
588 * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and
589 $NOPIE_CFLAGS to protected-func-1 without PIE.
591 2021-06-17 H.J. Lu <hongjiu.lu@intel.com>
594 * testsuite/ld-x86-64/x86-64.exp: Run protected function tests.
595 * testsuite/ld-x86-64/protected-func-1.h: New file.
596 * testsuite/ld-x86-64/protected-func-1a.s: Likewise.
597 * testsuite/ld-x86-64/protected-func-1b.c: Likewise.
599 2021-06-17 Fangrui Song <maskray@google.com>
601 * ldlex.h (enum option_values): Add OPTION_NO_PIE.
602 * lexsup.c (struct ld_options): Add -no-pie.
603 (parse_args): Handle -no-pie.
604 * ld.texi: Document -no-pie.
606 2021-06-15 Alan Modra <amodra@gmail.com>
608 * testsuite/ld-pie/vaddr-0.d: Update expected output.
610 2021-06-11 Alan Modra <amodra@gmail.com>
613 * ldelf.c (ldelf_after_open): Error on input PIEs too.
615 2021-06-09 Nick Clifton <nickc@redhat.com>
618 * testsuite/ld-sparc/sparc.exp: Do not run the sparctests or
619 sparc64tests for Solaris2 targets.
621 2021-06-03 Alan Modra <amodra@gmail.com>
624 * ld.texi (link-time runtime library search path): Mention
625 plugin library path. Correct order of search.
627 2021-05-31 Nelson Chu <nelson.chu@sifive.com>
628 Lifang Xia <lifang_xia@c-sky.com>
631 * emultempl/riscvelf.em (after_allocation): Call
632 riscv_set_data_segment_info to set data segment phase before relaxing.
633 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
634 * testsuite/ld-riscv-elf/relro-relax-lui.d: New testcase.
635 * testsuite/ld-riscv-elf/relro-relax-lui.s: Likewise.
636 * testsuite/ld-riscv-elf/relro-relax-pcrel.d: Likewise.
637 * testsuite/ld-riscv-elf/relro-relax-pcrel.s: Likewise.
639 2021-05-28 H.J. Lu <hongjiu.lu@intel.com>
642 * testsuite/ld-i386/pcrel16-2.d: xfail.
643 * testsuite/ld-x86-64/pcrel16-2.d: Likewise.
645 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
648 * testsuite/ld-i386/code16.d: New file.
649 * testsuite/ld-i386/code16.t: Likewise.
650 * testsuite/ld-x86-64/code16.d: Likewise.
651 * testsuite/ld-x86-64/code16.t: Likewise.
652 * testsuite/ld-i386/i386.exp: Run code16.
653 * testsuite/ld-x86-64/x86-64.exp: Likewise.
655 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
657 * testsuite/ld-x86-64/ilp32-12.d: New file.
658 * testsuite/ld-x86-64/ilp32-12.s: Likewise.
659 * testsuite/ld-x86-64/x86-64.exp: Run ilp32-12.
661 2021-05-14 Nelson Chu <nelson.chu@sifive.com>
663 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
664 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d: Renamed from
666 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.s: Likewise.
667 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.d: New testcase.
668 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.s: Likewise.
670 2021-05-13 Fangrui Song <maskray@google.com>
673 * ldlex.h (enum option_values): Add OPTION_NO_SYMBOLIC.
674 * lexsup.c (ld_options): Add -Bno-symbolic.
675 (parse_args): Handle -Bno-symbolic.
676 * ld.texi: Document -Bno-symbolic.
677 * NEWS: Mention -Bno-symbolic.
678 * testsuite/ld-elf/shared.exp: Add a test.
680 2021-05-12 Richard Earnshaw <rearnsha@arm.com>
682 * testsuite/ld-arm/arm-elf.exp (farcall test for v8-m.mainline):
683 Correct expected output.
685 2021-05-11 Roland McGrath <mcgrathr@google.com>
687 * testsuite/ld-x86-64/rela.d: Fix regexp not to presume a specific
688 address layout, so it works for e.g. --target=x86-64-elf.
690 2021-05-11 Nick Clifton <nickc@redhat.com>
693 * Makefile.am (install-data-local): Also delete libdep.dll.a if it
695 * Makefile.in: Regenerate.
697 2021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
699 * testsuite/ld-elf/group8a.d: Remove pru from XFAIL list.
700 * testsuite/ld-elf/group8b.d: Ditto.
701 * testsuite/ld-elf/group9a.d: Ditto.
702 * testsuite/ld-elf/group9b.d: Ditto.
703 * testsuite/ld-elf/pr12851.d: Ditto.
704 * testsuite/ld-elf/pr22677.d: Ditto.
705 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove
708 2021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
710 * scripttempl/pru.sc (.resource_table): Add ALIGN directive.
711 Use symbols for memory sizes.
713 2021-05-08 Mike Frysinger <vapier@gentoo.org>
715 * Makefile.am (html-local, doc/ld/index.html): New targets.
716 * Makefile.in: Regenerate.
718 2021-05-08 Mike Frysinger <vapier@gentoo.org>
720 * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
721 * Makefile.in: Regenerate.
723 2021-05-07 Jan Beulich <jbeulich@suse.com>
725 * testsuite/ld-x86-64/rela.d: New.
726 * testsuite/ld-x86-64/x86-64.exp: Run new test.
728 2021-05-07 Nick Clifton <nickc@redhat.com>
730 * ldelfgen.c (compare_link_order): Ignore section size when
731 performing a relocateable link.
733 2021-05-07 Alan Modra <amodra@gmail.com>
735 * ldexp.c (update_definedness): Don't return false for absolute
737 * ldmain.c (multiple_definition): Print "warning: " in message
738 when not a hard error.
740 2021-05-07 Alan Modra <amodra@gmail.com>
742 * testsuite/ld-elf/pr27825-1.d: Correct xfail.
743 * testsuite/ld-elf/pr27825-2.d: Likewise.
745 2021-05-06 Stafford Horne <shorne@gmail.com>
748 testsuite/ld-or1k/or1k.exp (or1kplttests): Add tests for linking
749 along with gotha() relocations.
750 testsuite/ld-or1k/gotha1.dd: New file.
751 testsuite/ld-or1k/gotha1.s: New file.
752 testsuite/ld-or1k/gotha2.dd: New file.
753 testsuite/ld-or1k/gotha2.s: New file
754 testsuite/ld-or1k/pltlib.s (x): Define size to avoid link
757 2021-05-06 Nick Alcock <nick.alcock@oracle.com>
759 * testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt.
760 * testsuite/lib/ld-lib.exp: Likewise.
761 * testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types.
762 * testsuite/ld-ctf/nonrepresentable-2.c: Likewise.
763 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
764 * testsuite/ld-ctf/array.d: Larger type section.
765 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
766 * testsuite/ld-ctf/enums.d: Likewise.
767 * testsuite/ld-ctf/conflicting-enums.d: Don't compare types.
768 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order.
769 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
770 * testsuite/ld-ctf/slice.d: Adjust for improved slice emission.
772 2021-05-05 H.J. Lu <hongjiu.lu@intel.com>
775 * testsuite/ld-elf/pr27825-1.d: New file.
776 * testsuite/ld-elf/pr27825-1a.s: Likewise.
777 * testsuite/ld-elf/pr27825-1b.s: Likewise.
778 * testsuite/ld-elf/pr27825-2.d: Likewise.
779 * testsuite/ld-elf/pr27825-2a.s: Likewise.
780 * testsuite/ld-elf/pr27825-2b.s: Likewise.
782 2021-05-05 Alan Modra <amodra@gmail.com>
784 * testsuite/ld-powerpc/empty.s: New file.
785 * testsuite/ld-powerpc/undefweak.d,
786 * testsuite/ld-powerpc/undefweak.s: New testcase.
787 * testsuite/ld-powerpc/powerpc.exp: Run it.
789 2021-05-03 Alan Modra <amodra@gmail.com>
791 * testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
792 named section symbols.
794 2021-04-28 Nick Clifton <nickc@redhat.com>
796 * testsuite/ld-elf/anno-sym.s: New test source file.
797 * testsuite/ld-elf/anno-sym.d: New test driver.
798 * testsuite/ld-elf/anno-sym.l: New test error output.
800 2021-04-26 Jan Beulich <jbeulich@suse.com>
802 * testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d,
803 testsuite/ld-x86-64/pcrel16-2.d: New.
804 * testsuite/ld-i386/i386.exp: Run new test.
805 * testsuite/ld-x86-64/x86-64.exp: Likewise.
807 2021-04-23 H.J. Lu <hongjiu.lu@intel.com>
810 * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
811 to tmpdir/ldscripts only if it doesn't exist.
813 2021-04-22 Jan Beulich <jbeulich@suse.com>
816 * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
818 2021-04-21 Nick Clifton <nickc@redhat.com>
820 * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
821 to allow for named section symbols.
822 * testsuite/ld-aarch64/variant_pcs-r.d: Likewise.
823 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
824 * testsuite/ld-alpha/tlsbin.rd: Likewise.
825 * testsuite/ld-alpha/tlsbinr.rd: Likewise.
826 * testsuite/ld-alpha/tlspic.rd: Likewise.
827 * testsuite/ld-arm/rodata-merge-map.sym: Likewise.
828 * testsuite/ld-arm/script-type.sym: Likewise.
829 * testsuite/ld-cris/libdso-2.d: Likewise.
830 * testsuite/ld-cris/pr16044.d: Likewise.
831 * testsuite/ld-elf/sec64k.exp: Likewise.
832 * testsuite/ld-ia64/tlsbin.rd: Likewise.
833 * testsuite/ld-ia64/tlspic.rd: Likewise.
834 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
835 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
836 * testsuite/ld-mmix/bspec1.d: Likewise.
837 * testsuite/ld-mmix/bspec2.d: Likewise.
838 * testsuite/ld-mmix/local1.d: Likewise.
839 * testsuite/ld-mmix/local3.d: Likewise.
840 * testsuite/ld-mmix/local5.d: Likewise.
841 * testsuite/ld-mmix/local7.d: Likewise.
842 * testsuite/ld-mmix/undef-3.d: Likewise.
843 * testsuite/ld-powerpc/tlsso.r: Likewise.
844 * testsuite/ld-powerpc/tlsso32.r: Likewise.
845 * testsuite/ld-powerpc/tlstocso.r: Likewise.
846 * testsuite/ld-s390/tlsbin.rd: Likewise.
847 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
848 * testsuite/ld-s390/tlspic.rd: Likewise.
849 * testsuite/ld-s390/tlspic_64.rd: Likewise.
850 * testsuite/ld-sparc/gotop32.rd: Likewise.
851 * testsuite/ld-sparc/gotop64.rd: Likewise.
852 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
853 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
854 * testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
855 * testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
856 * testsuite/ld-sparc/tlssunpic32.rd: Likewise.
857 * testsuite/ld-sparc/tlssunpic64.rd: Likewise.
858 * testsuite/ld-tic6x/common.d: Likewise.
859 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
860 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
861 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
862 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
863 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
864 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
865 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
866 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
867 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
868 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
869 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
870 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
871 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
873 2021-04-20 Clément Chigot <clement.chigot@atos.net>
876 * testsuite/ld-powerpc/aix52.exp: Add new test.
877 * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
878 * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
879 * testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
880 * testsuite/ld-powerpc/aix-neg-reloc.s: New test.
882 2021-04-13 Nick Clifton <nickc@redhat.com>
884 * ld.texi (Options): Add note about the effect of --as-needed on
885 the --rpath and --rpath-link options on Linux based systems.
887 2021-04-13 Alan Modra <amodra@gmail.com>
890 * libdep_plugin.c (str2vec): Don't pass a potentially signed char
893 2021-04-12 Alan Modra <amodra@gmail.com>
895 * configure.ac (--enable-checking): Add support.
896 * config.in: Regenerate.
897 * configure: Regenerate.
899 2021-04-12 Alan Modra <amodra@gmail.com>
901 * emultempl/mipself.em (mips_create_output_section_statements):
902 Pass base type of hash table to is_elf_hash_table.
903 * ldelf.c (ldelf_after_open): Likewise.
905 2021-04-12 Alan Modra <amodra@gmail.com>
908 * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
909 the symbol hash table is the correct type before accessing
910 elf_link_hash_entry symbols.
911 * plugin.c (is_visible_from_outside): Likewise.
912 * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
913 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
915 2021-04-09 Alan Modra <amodra@gmail.com>
917 * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
918 * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
919 * testsuite/ld-powerpc/notoc2.d: Likewise.
920 * testsuite/ld-powerpc/notoc3.d: Likewise.
921 * testsuite/ld-powerpc/pcrelopt.d: Likewise.
922 * testsuite/ld-powerpc/startstop.d: Likewise.
923 * testsuite/ld-powerpc/tlsget.d: Likewise.
924 * testsuite/ld-powerpc/tlsget2.d: Likewise.
925 * testsuite/ld-powerpc/tlsld.d: Likewise.
926 * testsuite/ld-powerpc/weak1.d: Likewise.
927 * testsuite/ld-powerpc/weak1so.d: Likewise.
929 2021-04-06 Jan Beulich <jbeulich@suse.com>
931 * pe-dll.c (generate_reloc): Bail immediately when .reloc is
932 being discarded. Warn when relocated entry is above .reloc.
934 2021-04-05 Alan Modra <amodra@gmail.com>
936 * configure.ac: Move initfini-array arg handling earlier. Don't
937 check for string.h, strings.h, stdlib.h, or locale.h. Do check
938 for inttypes.h, stdint.h, sys/types.h. Don't check for
939 setlocale, free, getev or strstr.
940 (AC_ISC_POSIX): Don't invoke.
941 * sysdep.h: Include string.h and stdlib.h unconditionally. Test
942 HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and
943 getenv fallback declarations.
944 * ld.h: Don't test HAVE_LOCALE_H.
945 * ldmain.c: Don't test HAVE_SETLOCALE.
946 * config.in: Regenerate.
947 * configure: Regenerate.
949 2021-04-01 Tamar Christina <tamar.christina@arm.com>
952 * testsuite/ld-pe/pe.exp: Add test.
953 * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
954 * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
956 2021-04-01 Martin Liska <mliska@suse.cz>
958 * ldbuildid.c (strneq): Remove strneq and use startswith.
959 (validate_build_id_style): Likewise.
960 (compute_build_id_size): Likewise.
962 2021-03-31 Alan Modra <amodra@gmail.com>
964 * sysdep.h (POISON_BFD_BOOLEAN): Define.
965 * configure.ac (elf_list_options, elf_shlib_list_options=false),
966 (elf_plt_unwind_list_options=false): Replace FALSE with false,
968 * emulparams/call_nop.sh, * emulparams/cet.sh,
969 * emulparams/dynamic_undefined_weak.sh,
970 * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
971 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
972 * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
973 * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
974 * emulparams/reloc_overflow.sh, * emulparams/static.sh,
975 * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
976 * emultempl/aix.em, * emultempl/alphaelf.em,
977 * emultempl/armcoff.em, * emultempl/armelf.em,
978 * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
979 * emultempl/cr16elf.em, * emultempl/crxelf.em,
980 * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
981 * emultempl/hppaelf.em, * emultempl/linux.em,
982 * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
983 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
984 * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
985 * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
986 * emultempl/pep.em, * emultempl/ppc32elf.em,
987 * emultempl/ppc64elf.em, * emultempl/rxelf.em,
988 * emultempl/rxlinux.em, * emultempl/scoreelf.em,
989 * emultempl/solaris2.em, * emultempl/spuelf.em,
990 * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
991 * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
992 * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
993 * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
994 * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
995 * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
996 * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
997 * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
998 * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
999 bfd_boolean with bool, FALSE with false, and TRUE with true.
1000 * configure: Regenerate.
1002 2021-03-31 Alan Modra <amodra@gmail.com>
1004 * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
1005 * emultempl/nds32elf.em: Likewise.
1006 * testsuite/ld-elf/mbind2b.c: Likewise.
1007 * testsuite/ld-elf/pr18718.c: Likewise.
1008 * testsuite/ld-elf/pr18720a.c: Likewise.
1009 * testsuite/ld-elf/pr25749-1.c: Likewise.
1010 * testsuite/ld-elf/pr25749-1a.c: Likewise.
1011 * testsuite/ld-elf/pr25749-1b.c: Likewise.
1012 * testsuite/ld-elf/pr25749-1c.c: Likewise.
1013 * testsuite/ld-elf/pr25749-1d.c: Likewise.
1014 * testsuite/ld-elf/pr25749-2.c: Likewise.
1015 * testsuite/ld-elf/pr25754-1a.c: Likewise.
1016 * testsuite/ld-elf/pr25754-2a.c: Likewise.
1017 * testsuite/ld-elf/pr25754-3a.c: Likewise.
1018 * testsuite/ld-elf/pr25754-4a.c: Likewise.
1019 * testsuite/ld-elf/pr25754-5a.c: Likewise.
1020 * testsuite/ld-elf/pr25754-6a.c: Likewise.
1022 2021-03-29 Alan Modra <amodra@gmail.com>
1024 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
1026 * lexsup.c (parse_args): Likewise.
1027 * pe-dll.c (pe_dll_id_target): Likewise.
1029 2021-03-25 Nick Alcock <nick.alcock@oracle.com>
1031 * testsuite/ld-ctf/array.d: Only check that the data object
1032 section is nonempty: do not check its exact size.
1033 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1034 * testsuite/ld-ctf/slice.d: Likewise.
1035 * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
1036 func info section too.
1037 * testsuite/ld-ctf/function.d: Likewise, for the func info section.
1039 2021-03-22 Martin Liska <mliska@suse.cz>
1041 * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
1042 * emultempl/beos.em: Likewise.
1043 * emultempl/elf.em: Likewise.
1044 * emultempl/pe.em: Likewise.
1045 * emultempl/pep.em: Likewise.
1046 * emultempl/xtensaelf.em: Likewise.
1047 * ldctor.c (ctor_prio): Likewise.
1048 * ldelf.c (ldelf_try_needed): Likewise.
1049 (ldelf_parse_ld_so_conf): Likewise.
1050 (ldelf_after_open): Likewise.
1051 (output_rel_find): Likewise.
1052 (ldelf_place_orphan): Likewise.
1053 * ldfile.c (ldfile_add_library_path): Likewise.
1054 * ldlang.c (lang_add_input_file): Likewise.
1055 * ldmain.c (get_sysroot): Likewise.
1056 (get_emulation): Likewise.
1057 (add_archive_element): Likewise.
1058 * ldwrite.c (unsplittable_name): Likewise.
1059 (clone_section): Likewise.
1060 * lexsup.c (parse_args): Likewise.
1061 * pe-dll.c (is_import): Likewise.
1062 (pe_implied_import_dll): Likewise.
1064 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
1067 * testsuite/ld-x86-64/pr27590.rd: New file.
1068 * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
1069 * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
1070 * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
1072 2021-03-20 Alan Modra <amodra@gmail.com>
1075 * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
1076 for all sections except .stabstr.
1078 2021-03-19 Alan Modra <amodra@gmail.com>
1081 * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
1083 * testsuite/ld-elf/pr27590b.d: Likewise.
1085 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1088 * testsuite/ld-elf/pr27590.s: New file.
1089 * testsuite/ld-elf/pr27590a.d: Likewise.
1090 * testsuite/ld-elf/pr27590b.d: Likewise.
1091 * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
1092 --reduce-memory-overheads.
1094 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1097 * testsuite/ld-x86-64/pr27587.err: New file.
1098 * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
1099 * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
1100 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
1102 2021-03-18 Nick Alcock <nick.alcock@oracle.com>
1104 * testsuite/ld-ctf/slice.c: Check slices of enums too.
1105 * testsuite/ld-ctf/slice.d: Results adjusted.
1107 2021-03-16 Nick Clifton <nickc@redhat.com>
1109 * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
1112 2021-03-15 Jan Beulich <jbeulich@suse.com>
1114 * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
1116 2021-03-12 Alan Modra <amodra@gmail.com>
1118 * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
1119 (ALL_64_EMULATION_SOURCES): ..here.
1120 * Makefile.in: Regenerate.
1122 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1124 * emultempl/aix.em: Ensure .tdata section is removed
1125 if empty, even with -r flag.
1126 * scripttempl/aix.sc: Handle TLS sections.
1127 * testsuite/ld-powerpc/aix52.exp: Add new tests.
1128 * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
1129 * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
1130 * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
1131 * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
1132 * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
1133 * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
1134 * testsuite/ld-powerpc/aix-tls-section.ex: New test.
1135 * testsuite/ld-powerpc/aix-tls-section.s: New test.
1137 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1139 * scripttempl/aix.sc: Add .te to .data section.
1140 * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
1141 Add aix-largetoc-1 test.
1142 * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
1143 * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
1144 * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
1145 * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
1147 2021-03-12 Alan Modra <amodra@gmail.com>
1149 * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
1150 arrange to define __main for some run_dump_test tests.
1151 * testsuite/ld-gc/pr13683.d: Accept more symbols.
1152 * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
1153 * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
1154 * testsuite/ld-srec/srec.exp: Likewise.
1155 * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
1157 2021-03-11 Nelson Chu <nelson.chu@sifive.com>
1159 * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
1160 many times if riscv_restart_relax_sections returns TRUE.
1161 * testsuite/ld-riscv-elf/restart-relax.d: New testcase. Before
1162 applying this patch, the call won't be relaxed to jal; But now we
1163 have more chances to do relaxations.
1164 * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
1165 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
1167 2021-03-10 Jan Beulich <jbeulich@suse.com>
1169 * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
1171 * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
1173 * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
1175 2021-03-09 Jan Beulich <jbeulich@suse.com>
1177 * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
1179 * testsuite/ld-pe/reloc.d: xfail for mcore.
1181 2021-03-09 Jan Beulich <jbeulich@suse.com>
1183 * testsuite/ld-scripts/alignof.exp,
1184 testsuite/ld-scripts/data.exp,
1185 testsuite/ld-scripts/default-script.exp,
1186 testsuite/ld-scripts/log2.exp,
1187 testsuite/ld-scripts/print-memory-usage.exp,
1188 testsuite/ld-scripts/sizeof.exp,
1189 testsuite/ld-undefined/weak-undef.exp: Set image base to zero
1191 * testsuite/ld-scripts/default-script1.d,
1192 testsuite/ld-scripts/default-script2.d,
1193 testsuite/ld-scripts/default-script3.d,
1194 testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
1196 2021-03-05 H.J. Lu <hongjiu.lu@intel.com>
1200 * ldelf.c (ldelf_set_output_arch): New function.
1201 * ldelf.h (ldelf_set_output_arch): New prototype.
1202 * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
1203 ldelf_set_output_arch.
1204 * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
1205 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1206 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1207 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1208 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1209 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1210 * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
1211 * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
1212 * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
1214 2021-03-04 Jan Beulich <jbeulich@suse.com>
1216 * testsuite/ld-scripts/map-address.exp: Set image base to zero
1218 * testsuite/ld-scripts/map-address.t: Place .text.
1220 2021-03-04 Jan Beulich <jbeulich@suse.com>
1222 * ldexp.c (ldexp_is_final_sym_absolute): New.
1223 * ldexp.h (ldexp_is_final_sym_absolute): Declare.
1224 * pe-dll.c (generate_reloc): Skip absolute symbols.
1225 * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
1226 * testsuite/ld-pe/pe.exp: Run new test.
1228 2021-03-03 Alan Modra <amodra@gmail.com>
1231 * ldlang.c (insert_undefined): Don't mark symbols here.
1232 (lang_mark_undefineds): Do so here instead, new function.
1233 (lang_process): Call lang_mark_undefineds.
1234 * testsuite/ld-gc/start3.d,
1235 * testsuite/ld-gc/start3.s: New test.
1236 * testsuite/ld-gc/start4.d,
1237 * testsuite/ld-gc/start4.s: New test.
1238 * testsuite/ld-gc/gc.exp: Run them.
1240 2021-03-03 Alan Modra <amodra@gmail.com>
1242 * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
1243 Move tests with ELF section directives to is_elf_format block.
1244 * testsuite/ld-gc/abi-note.d: Run on more targets.
1245 * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
1246 * testsuite/ld-gc/start.d: Likewise.
1247 * testsuite/ld-gc/start2.d: Likewise.
1248 * testsuite/ld-gc/stop.d: Likewise.
1249 * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
1250 * testsuite/ld-gc/start.s: Likewise.
1251 * testsuite/ld-gc/start2.s: Likewise.
1253 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
1255 * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
1257 2021-03-02 Alan Modra <amodra@gmail.com>
1259 * testsuite/ld-powerpc/startstop.d,
1260 * testsuite/ld-powerpc/startstop.r,
1261 * testsuite/ld-powerpc/startstop.s: New test.
1262 * testsuite/ld-powerpc/powerpc.exp: Run it.
1264 2021-03-02 Alan Modra <amodra@gmail.com>
1266 * testsuite/ld-powerpc/weak1.d,
1267 * testsuite/ld-powerpc/weak1.r,
1268 * testsuite/ld-powerpc/weak1.s,
1269 * testsuite/ld-powerpc/weak1so.d,
1270 * testsuite/ld-powerpc/weak1so.r: New tests.
1271 * testsuite/ld-powerpc/powerpc.exp: Run them.
1273 2021-03-01 Hannes Domani <ssbssa@sourceware.org>
1274 Nick Clifton <nickc@redhat.com>
1277 * scripttempl/pe.sc: Add DWARF-5 section names.
1278 * scripttempl/pep.sc: Likewise.
1280 2021-03-01 Alan Modra <amodra@gmail.com>
1281 Fangrui Song <maskray@google.com>
1283 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
1284 * lexsup.c (elf_static_list_options): Display help for them. Move
1285 help for -z stack-size to here from elf_shlib_list_options. Add
1286 help for -z start-stop-visibility and -z undefs.
1287 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
1288 * NEWS: Mention -z start-stop-gc.
1289 * testsuite/ld-gc/start2.s,
1290 * testsuite/ld-gc/start2.d: New test.
1291 * testsuite/ld-gc/gc.exp: Run it.
1293 2021-03-01 Alan Modra <amodra@gmail.com>
1295 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
1296 symbols undefweak if that was how they were referenced. Undo
1299 2021-03-01 Alan Modra <amodra@gmail.com>
1301 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
1302 * testsuite/ld-elf/pr27128a.d: Likewise.
1303 * testsuite/ld-elf/pr27128b.d: Likewise.
1304 * testsuite/ld-elf/pr27128c.d: Likewise.
1305 * testsuite/ld-elf/pr27128d.d: Likewise.
1306 * testsuite/ld-elf/pr27128e.d: Likewise.
1308 2021-02-26 Alan Modra <amodra@gmail.com>
1311 * testsuite/ld-plugin/pr27441a.c,
1312 * testsuite/ld-plugin/pr27441b.c,
1313 * testsuite/ld-plugin/pr27441c.c,
1314 * testsuite/ld-plugin/pr27441c.d: New test.
1315 * testsuite/ld-plugin/lto.exp: Run it.
1317 2021-02-25 Jan Beulich <jbeulich@suse.com>
1319 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
1321 2021-02-21 Alan Modra <amodra@gmail.com>
1323 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
1324 defined in an object file.
1325 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
1326 * testsuite/ld-scripts/defined5.d: Expect a warning.
1328 2021-02-19 Alan Modra <amodra@gmail.com>
1330 * testsuite/lib/ld-lib.exp: Whitespace.
1331 (load_common_lib): Expand single use and delete this proc.
1332 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
1333 Use -B for clang too.
1335 2021-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
1337 * testplugin.c (record_read_length): Remove debug fprintf.
1339 2021-02-14 Alan Modra <amodra@gmail.com>
1341 * testsuite/ld-cdtest/cdtest.exp,
1342 * testsuite/ld-checks/checks.exp,
1343 * testsuite/ld-elf/binutils.exp,
1344 * testsuite/ld-elf/compress.exp,
1345 * testsuite/ld-elf/dwarf.exp,
1346 * testsuite/ld-elf/exclude.exp,
1347 * testsuite/ld-elf/frame.exp,
1348 * testsuite/ld-elf/indirect.exp,
1349 * testsuite/ld-elf/linux-x86.exp,
1350 * testsuite/ld-elf/sec-to-seg.exp,
1351 * testsuite/ld-elf/tls_common.exp,
1352 * testsuite/ld-elfcomm/elfcomm.exp,
1353 * testsuite/ld-elfvers/vers.exp,
1354 * testsuite/ld-elfvsb/elfvsb.exp,
1355 * testsuite/ld-elfweak/elfweak.exp,
1356 * testsuite/ld-ifunc/binutils.exp,
1357 * testsuite/ld-mips-elf/mips-elf-flags.exp,
1358 * testsuite/ld-misc/defsym.exp,
1359 * testsuite/ld-mn10300/mn10300.exp,
1360 * testsuite/ld-plugin/lto.exp,
1361 * testsuite/ld-plugin/plugin.exp,
1362 * testsuite/ld-scripts/align.exp,
1363 * testsuite/ld-scripts/assert.exp,
1364 * testsuite/ld-scripts/crossref.exp,
1365 * testsuite/ld-scripts/defined.exp,
1366 * testsuite/ld-scripts/extern.exp,
1367 * testsuite/ld-scripts/log2.exp,
1368 * testsuite/ld-scripts/map-address.exp,
1369 * testsuite/ld-scripts/phdrs.exp,
1370 * testsuite/ld-scripts/phdrs2.exp,
1371 * testsuite/ld-scripts/script.exp,
1372 * testsuite/ld-scripts/section-flags.exp,
1373 * testsuite/ld-scripts/sizeof.exp,
1374 * testsuite/ld-scripts/weak.exp,
1375 * testsuite/ld-selective/selective.exp,
1376 * testsuite/ld-sh/sh.exp,
1377 * testsuite/ld-shared/shared.exp,
1378 * testsuite/ld-srec/srec.exp,
1379 * testsuite/ld-tic6x/tic6x.exp,
1380 * testsuite/ld-undefined/undefined.exp,
1381 * testsuite/ld-undefined/weak-undef.exp,
1382 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
1383 perror. Instead report "unsupported" or "fail".
1385 2021-02-12 Nick Clifton <nickc@redhat.com>
1387 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
1388 following debug links.
1390 2021-02-11 Alan Modra <amodra@gmail.com>
1392 * NEWS: Mention arm-symbianelf removal.
1394 2021-02-09 Alan Modra <amodra@gmail.com>
1396 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
1397 Don't include symbian dep file.
1398 * configure.tgt: Remove arm*-*-symbianelf* entry.
1399 * emulparams/armsymbian.sh: Delete.
1400 * ld.texi: Don't mention symbian.
1401 * scripttempl/armbpabi.sc: Delete.
1402 * testsuite/ld-arm/symbian-seg1.d: Delete.
1403 * testsuite/ld-arm/symbian-seg1.s: Delete.
1404 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
1405 * Makefile.in: Regenerate.
1406 * po/BLD-POTFILES.in: Regenerate.
1408 2021-02-07 H.J. Lu <hongjiu.lu@intel.com>
1411 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
1413 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1415 2021-01-26 Nick Alcock <nick.alcock@oracle.com>
1417 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
1420 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1423 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
1424 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
1425 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
1426 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
1427 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
1428 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
1429 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
1431 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1434 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
1435 * testsuite/ld-plugin/pr15146.d: Restored.
1436 * testsuite/ld-plugin/pr15146a.c: Likewise.
1437 * testsuite/ld-plugin/pr15146b.c: Likewise.
1438 * testsuite/ld-plugin/pr15146c.c: Likewise.
1439 * testsuite/ld-plugin/pr15146d.c: Likewise.
1441 2021-02-04 Alan Modra <amodra@gmail.com>
1443 * testsuite/ld-plugin/pr27311d.c: New test.
1444 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
1445 and link new test as pr27311-2.
1447 2021-02-03 Alan Modra <amodra@gmail.com>
1449 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
1450 Link with --as-needed.
1452 2021-02-02 Alan Modra <amodra@gmail.com>
1454 * testsuite/ld-plugin/pr27311.d,
1455 * testsuite/ld-plugin/pr27311.ver,
1456 * testsuite/ld-plugin/pr27311a.c,
1457 * testsuite/ld-plugin/pr27311b.c,
1458 * testsuite/ld-plugin/pr27311c.c: New testcase.
1459 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
1462 2021-02-01 Emery Hemingway <ehmry@posteo.net>
1464 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1466 2021-02-01 Alan Modra <amodra@gmail.com>
1468 * ldgram.y (defsym_expr): Use assignment rule.
1469 * ldlex.h (ldlex_defsym): Delete.
1470 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
1472 2021-02-01 Alan Modra <amodra@gmail.com>
1474 * ldgram.y (section): Call ldlex_backup. Remove empty action.
1475 * ldlex.h (ldlex_backup): Declare.
1476 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
1477 chars, use SYMBOLNAMECHAR.
1478 (ldlex_backup): New function.
1480 2021-02-01 Alan Modra <amodra@gmail.com>
1482 * ldgram.y: Whitespace fixes.
1484 2021-02-01 Alan Modra <amodra@gmail.com>
1486 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
1488 2021-01-29 Alan Modra <amodra@gmail.com>
1490 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
1492 2021-01-28 H.J. Lu <hongjiu.lu@intel.com>
1495 * testsuite/ld-elf/pr27259.d: New file.
1496 * testsuite/ld-elf/pr27259.s: Likewise.
1498 2021-01-28 Alan Modra <amodra@gmail.com>
1501 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
1502 prevent endless looping of linked-to sections.
1504 2021-01-26 H.J. Lu <hongjiu.lu@intel.com>
1506 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
1508 2021-01-26 Alan Modra <amodra@gmail.com>
1511 * emulparams/alphavms.sh: Don't set COMPILE_IN.
1512 * emulparams/elf64_ia64_vms.sh: Likewise.
1513 * emulparams/elf64mmix.sh: Likewise.
1514 * emulparams/elf_iamcu.sh: Likewise.
1515 * emulparams/elf_k1om.sh: Likewise.
1516 * emulparams/elf_l1om.sh: Likewise.
1517 * emulparams/mmo.sh: Likewise.
1518 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
1519 * scripttempl/pdp11.sc: Use it.
1520 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
1521 instead use .xe script. Support scripts from file system.
1522 * emultempl/beos.em: Support scripts from file system.
1523 * emultempl/pe.em: Likewise.
1524 * emultempl/pep.em: Likewise.
1525 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
1527 2021-01-25 Fangrui Song <maskray@google.com>
1530 * scripttempl/DWARF.sc: Add .debug_* sections.
1532 2021-01-25 Nick Clifton <nickc@redhat.com>
1534 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
1535 .debug_line_str and .debug_str_offsets. Move .debug_macro and
1536 .debug_addr into DWARF-5 section.
1538 2021-01-21 Alan Modra <amodra@gmail.com>
1540 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
1542 2021-01-20 Alan Modra <amodra@gmail.com>
1544 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
1545 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
1546 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
1547 * testsuite/ld-powerpc/tlsget.wf: Likewise.
1548 * testsuite/ld-powerpc/tlsget2.d: Likewise.
1549 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
1550 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
1551 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
1552 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
1553 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
1554 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
1555 * testsuite/ld-powerpc/tlsexers.r: Likewise.
1556 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
1557 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
1558 * testsuite/ld-powerpc/tlsso.r: Likewise.
1559 * testsuite/ld-powerpc/tlsso32.r: Likewise.
1560 * testsuite/ld-powerpc/tlstocso.r: Likewise.
1562 2021-01-19 Nick Alcock <nick.alcock@oracle.com>
1564 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
1565 symbols by the optimizer.
1566 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
1568 2021-01-19 Nelson Chu <nelson.chu@sifive.com>
1570 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
1571 if target is riscv little endian. Otherwise, return false.
1572 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
1573 targets by [riscv_little_endian].
1575 2021-01-18 Alan Modra <amodra@gmail.com>
1578 * ldlang.c (map_input_to_output_sections): Start with a read-only
1579 section for data statements.
1580 * testsuite/ld-elf/size-2.d: Adjust to suit.
1582 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
1585 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
1586 * testsuite/ld-i386/pr27193.dd: New file.
1587 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
1588 * testsuite/ld-i386/pr27193b.s: Likewise.
1590 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1593 * testsuite/ld-plugin/lto.exp: Increase the max number of open
1594 files to 20 for PR binutils/23460 test.
1596 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1599 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
1600 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
1601 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
1604 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
1606 * NEWS: Mention -z report-relative-reloc.
1607 * ld.texi: Document -z report-relative-reloc.
1608 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
1609 * emulparams/elf_i386.sh: Likewse.
1610 * emulparams/elf_x86_64.sh: Likewse.
1611 * emulparams/x86-report-relative.sh: New file.
1612 * testsuite/ld-i386/report-reloc-1.d: Likewse.
1613 * testsuite/ld-i386/report-reloc-1.l: Likewse.
1614 * testsuite/ld-i386/report-reloc-1.s: Likewse.
1615 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
1616 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
1617 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
1618 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
1619 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
1620 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
1623 2021-01-16 Alan Modra <amodra@gmail.com>
1626 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
1627 unversioned symbols.
1628 * testsuite/ld-elfvers/vers16.dsym: Likewise.
1630 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1632 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
1633 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
1634 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
1635 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
1636 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
1637 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
1639 2021-01-14 Nick Clifton <nickc@redhat.com>
1641 * po/fr.po: Updated French translation.
1643 2021-01-14 Mike Frysinger <vapier@gentoo.org>
1645 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
1647 2021-01-14 Alan Modra <amodra@gmail.com>
1650 * ldelfgen.c (compare_link_order): Protect access of ELF section
1652 (add_link_order_input_section): Remove redundant NULL check.
1653 Use bfd_get_flavour.
1654 (ldelf_map_segments): Use bfd_get_flavour.
1656 2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
1658 * ldelfgen.c (add_link_order_input_section): Check for ELF input
1659 before accessing ELF section data.
1661 2021-01-13 Alan Modra <amodra@gmail.com>
1663 * Makefile.in: Regenerate.
1665 2021-01-13 Alan Modra <amodra@gmail.com>
1668 * ldlang.h (lang_output_section_statement_type): Add data field.
1669 (lang_input_section_type, lang_section_bst_type): Add pattern field.
1670 (statement_list): Declare.
1671 (lang_add_section): Adjust prototype.
1672 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
1673 * emultempl/armelf.em: Likewise.
1674 * emultempl/beos.em: Likewise.
1675 * emultempl/cskyelf.em: Likewise.
1676 * emultempl/hppaelf.em: Likewise.
1677 * emultempl/m68hc1xelf.em: Likewise.
1678 * emultempl/metagelf.em: Likewise.
1679 * emultempl/mipself.em: Likewise.
1680 * emultempl/mmo.em: Likewise.
1681 * emultempl/msp430.em: Likewise.
1682 * emultempl/nios2elf.em: Likewise.
1683 * emultempl/pe.em: Likewise.
1684 * emultempl/pep.em: Likewise.
1685 * emultempl/ppc64elf.em: Likewise.
1686 * emultempl/spuelf.em: Likewise.
1687 * emultempl/vms.em: Likewise.
1688 * ldelf.c: Likewise.
1689 * ldelfgen.c: Include ldctor.h.
1690 (struct os_sections): New.
1691 (add_link_order_input_section, link_order_scan): New functions.
1692 (compare_link_order, fixup_link_order): New functions.
1693 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
1694 * ldlang.c (statement_list): Make global.
1695 (output_section_callback_fast): Save pattern in tree node.
1696 (lang_add_section): Add pattern parameter, save in lang_input_section.
1697 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
1698 (lang_insert_orphan, output_section_callback): Likewise.
1699 (ldlang_place_orphan): Likewise.
1700 (gc_section_callback): Don't set section->pattern.
1701 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
1702 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1703 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
1705 2021-01-13 Alan Modra <amodra@gmail.com>
1707 * ldlang.h (callback_t): Remove flag_info function parameter.
1708 * ldlang.c (walk_wild_consider_section): Adjust to suit.
1709 (walk_wild_section_general): Likewise.
1710 (output_section_callback_fast, output_section_callback): Likewise.
1711 (check_section_callback, gc_section_callback): Likewise.
1712 (find_relro_section_callback): Likewise.
1714 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1717 * configure.ac: Use GNU_MAKE_JOBSERVER.
1718 * aclocal.m4: Regenerated.
1719 * configure: Likewise.
1721 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1724 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
1725 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1726 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1727 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
1729 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1732 * configure: Regenerated.
1734 2021-01-11 Matt Jenkins <matt@majenko.co.uk>
1737 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
1738 and mips64r5 to list of known mips targets.
1740 2021-01-11 Nick Clifton <nickc@redhat.com>matt@majenko.co.uk
1742 * po/pt_BR.po: Updated Brazilian Portuguese translation.
1743 ` * po/uk.po: Updated Ukranian translation.
1745 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1747 * configure: Regenerated.
1749 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1752 * testsuite/ld-x86-64/lam-u48.rd: New file.
1753 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
1754 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
1756 2021-01-09 Nick Clifton <nickc@redhat.com>
1758 * configure: Regenerate.
1759 * po/ld.pot: Regenerate.
1761 2021-01-09 Nick Clifton <nickc@redhat.com>
1763 * 2.36 release branch crated.
1765 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
1767 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
1768 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
1770 2021-01-09 Alan Modra <amodra@gmail.com>
1772 * configure: Regenerate.
1773 * Makefile.in: Regenerate.
1775 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1777 * configure: Regenerate.
1779 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1782 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
1783 * testsuite/ld-elf/loadaddr3b.d: Likewise.
1784 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1785 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1786 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1787 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1788 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1789 * testsuite/ld-i386/pr19636-1d.d: Likewise.
1790 * testsuite/ld-i386/pr19636-1l.d: Likewise.
1791 * testsuite/ld-i386/pr19636-2c.d: Likewise.
1792 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1793 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1794 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1795 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1796 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1797 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1798 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1799 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1800 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1801 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1802 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1803 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1804 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1805 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1806 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1807 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1808 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1809 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1810 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1811 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1812 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1813 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1814 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1815 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1816 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1817 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1818 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
1819 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
1820 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
1821 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
1822 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
1823 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
1824 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1825 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
1826 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1827 * testsuite/ld-x86-64/pr21038b.d: Likewise.
1828 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1829 * testsuite/ld-x86-64/pr21038c.d: Likewise.
1830 * testsuite/ld-x86-64/pr23854.d: Likewise.
1831 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1832 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1833 * testsuite/ld-i386/plt-pic.pd: Likewise.
1834 * testsuite/ld-i386/plt-pic2.dd: Likewise.
1835 * testsuite/ld-i386/plt.pd: Likewise.
1836 * testsuite/ld-i386/plt2.dd: Likewise.
1837 * testsuite/ld-i386/tlsbin.rd: Likewise.
1838 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1839 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1840 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1841 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
1842 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1843 * testsuite/ld-i386/tlspic.rd: Likewise.
1844 * testsuite/ld-i386/tlspic2.rd: Likewise.
1845 * testsuite/ld-x86-64/mpx3.dd: Likewise.
1846 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
1847 * testsuite/ld-x86-64/mpx4.dd: Likewise.
1848 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
1849 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
1850 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1851 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1852 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1853 * testsuite/ld-x86-64/plt.pd: Likewise.
1854 * testsuite/ld-x86-64/plt2.dd: Likewise.
1855 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1856 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1857 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1858 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1859 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
1860 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1861 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1862 * testsuite/ld-elf/sec64k.exp: Check
1863 is_elf_unused_section_symbols.
1865 2021-01-07 Alan Modra <amodra@gmail.com>
1867 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
1868 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
1869 * testsuite/ld-scripts/segment-start.d: Likewise.
1871 2021-01-07 Alan Modra <amodra@gmail.com>
1873 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
1874 about dynamic relocations in read-only sections.
1875 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1876 * testsuite/ld-elf/ehdr_start.d: Likewise.
1877 * testsuite/ld-scripts/pr22267.d: Likewise.
1878 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
1880 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
1882 2021-01-07 Marcus Comstedt <marcus@mc.pp.se>
1884 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
1885 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
1887 2021-01-07 Alan Modra <amodra@gmail.com>
1889 * po/BLD-POTFILES.in: Regenerate.
1891 2021-01-07 Alan Modra <amodra@gmail.com>
1893 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
1894 complain about relocs in read-only sections. Tidy ASFLAGS append.
1896 2021-01-06 Alan Modra <amodra@gmail.com>
1898 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
1899 base for some tests.
1900 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
1901 * testsuite/ld-sparc/gotop32.sd: Likewise.
1902 * testsuite/ld-sparc/gotop32.td: Likewise.
1903 * testsuite/ld-sparc/gotop64.dd: Likewise.
1904 * testsuite/ld-sparc/gotop64.sd: Likewise.
1905 * testsuite/ld-sparc/gotop64.td: Likewise.
1906 * testsuite/ld-sparc/tlsg32.sd: Likewise.
1907 * testsuite/ld-sparc/tlsg64.sd: Likewise.
1908 * testsuite/ld-sparc/tlspie32.dd: Likewise.
1909 * testsuite/ld-sparc/tlspie64.dd: Likewise.
1910 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
1911 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
1912 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
1913 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
1914 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
1915 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
1916 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
1917 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
1918 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
1919 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
1920 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
1921 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
1922 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
1923 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
1924 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
1925 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
1926 * testsuite/ld-sparc/wdispcall.dd: Likewise.
1928 2021-01-06 Alan Modra <amodra@gmail.com>
1930 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
1931 * testsuite/ld-scripts/rgn-at11.d: Likewise.
1933 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1935 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
1936 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
1937 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
1938 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
1939 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1940 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1941 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1942 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
1943 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
1944 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
1945 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
1946 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
1947 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
1948 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
1950 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
1952 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1954 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
1955 riscv32be*-*-linux*, and riscv64be*-*-linux*.
1956 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
1957 eelf32briscv_ilp32.c.
1958 * Makefile.in: Regenerate.
1959 * emulparams/elf32briscv.sh: Added.
1960 * emulparams/elf32briscv_ilp32.sh: Likewise.
1961 * emulparams/elf32briscv_ilp32f.sh: Likewise.
1962 * emulparams/elf64briscv.sh: Likewise.
1963 * emulparams/elf64briscv_lp64.sh: Likewise.
1964 * emulparams/elf64briscv_lp64f.sh: Likewise.
1966 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1968 * testsuite/ld-ctf/enum-forward.c: New test.
1969 * testsuite/ld-ctf/enum-forward.c: New results.
1971 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1973 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1974 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1975 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1976 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1977 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1978 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1979 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1980 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1981 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1982 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1983 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1984 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1985 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1986 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1987 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1988 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1989 * testsuite/ld-ctf/cycle-1.d: Likewise.
1990 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1991 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1992 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1993 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1994 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1995 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1996 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1997 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1998 * testsuite/ld-ctf/forward.d: Likewise.
1999 * testsuite/ld-ctf/function.d: Likewise.
2000 * testsuite/ld-ctf/slice.d: Likewise.
2001 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
2002 * testsuite/ld-ctf/enums.c: New test.
2003 * testsuite/ld-ctf/enums.d: New test.
2005 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
2007 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
2009 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2010 * testsuite/ld-ctf/forward.c: New test...
2011 * testsuite/ld-ctf/forward.d: ... and results.
2013 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
2015 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2016 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2017 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2018 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2019 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2020 * testsuite/ld-ctf/function.d: Likewise.
2021 * testsuite/ld-ctf/slice.d: Likewise.
2023 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
2025 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2026 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
2027 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
2028 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
2029 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
2030 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
2031 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
2032 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
2033 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
2034 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
2035 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
2036 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
2037 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2038 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
2039 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
2040 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
2041 * testsuite/ld-ctf/cycle-1.d: Likewise.
2042 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
2043 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
2044 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
2045 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2046 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2047 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2048 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2049 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
2050 * testsuite/ld-ctf/function.d: Likewise.
2051 * testsuite/ld-ctf/slice.d: Likewise.
2052 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
2054 2021-01-05 Alan Modra <amodra@gmail.com>
2056 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
2058 2021-01-05 Alan Modra <amodra@gmail.com>
2061 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
2062 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
2064 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
2067 * ldlang.c (gc_section_callback): Set pattern.
2068 * testsuite/ld-elf/pr26256-1.s: New file.
2069 * testsuite/ld-elf/pr26256-1.t: Likewise.
2070 * testsuite/ld-elf/pr26256-1a.d: Likewise.
2071 * testsuite/ld-elf/pr26256-1b.d: Likewise.
2072 * testsuite/ld-elf/pr26256-2.s: Likewise.
2073 * testsuite/ld-elf/pr26256-2.t: Likewise.
2074 * testsuite/ld-elf/pr26256-2a.d: Likewise.
2075 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
2076 * testsuite/ld-elf/pr26256-2b.d: Likewise.
2077 * testsuite/ld-elf/pr26256-3.s: Likewise.
2078 * testsuite/ld-elf/pr26256-3a.d: Likewise.
2079 * testsuite/ld-elf/pr26256-3a.t: Likewise.
2080 * testsuite/ld-elf/pr26256-3b.d: Likewise.
2081 * testsuite/ld-elf/pr26256-3b.t: Likewise.
2083 2021-01-04 Alan Modra <amodra@gmail.com>
2086 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
2087 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
2088 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
2089 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
2090 * testsuite/ld-i386/tlsbin.rd: Likewise.
2091 * testsuite/ld-i386/tlsbin2.rd: Likewise.
2092 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
2093 * testsuite/ld-i386/tlsdesc.rd: Likewise.
2094 * testsuite/ld-i386/tlsnopic.rd: Likewise.
2095 * testsuite/ld-i386/tlspic.rd: Likewise.
2096 * testsuite/ld-i386/tlspic2.rd: Likewise.
2097 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
2098 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
2099 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
2100 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
2101 * testsuite/ld-plugin/pr17973.d: Likewise.
2102 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
2103 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
2104 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
2105 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
2106 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
2107 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
2108 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
2109 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
2110 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
2111 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
2112 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
2113 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
2114 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
2115 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
2116 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
2117 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
2118 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
2119 * testsuite/ld-x86-64/tlspic.rd: Likewise.
2120 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
2121 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
2122 * testsuite/ld-xtensa/tlspic.rd: Likewise.
2124 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
2126 * configure.tgt: Correct comment grammar.
2127 * emultempl/m68hc1xelf.em: Likewise.
2128 * ld.texi: Correct grammar.
2130 2021-01-01 Alan Modra <amodra@gmail.com>
2132 Update year range in copyright notice of all files.
2134 For older changes see ChangeLog-2020
2136 Copyright (C) 2021-2023 Free Software Foundation, Inc.
2138 Copying and distribution of this file, with or without modification,
2139 are permitted in any medium without royalty provided the copyright
2140 notice and this notice are preserved.
2146 version-control: never