1 2023-05-10 Nick Clifton <nickc@redhat.com>
4 * ldlang.c (ld_is_local_symbol): New function.
5 (print_input_section): Add code to display local symbols in the
7 * ldlex.h (enum option_values): Add OPTION_PRINT_MAP_LOCALS and
8 OPTION_PRINT_MAP_LOCALS.
9 * lexsup.c (ld_options[]): Add entries for --print-map-locals
10 and --no-print-map-locals.
11 * NEWS: Mention the new feature.
12 * ld.h (struct ld_config_type): Add print_map_locals field.
13 * ld.texi: Document the new command line option.
14 * testsuite/ld-scripts/sizeof.s: Add a local symbol.
15 * testsuite/ld-scripts/map-locals.d: New test control file.
16 * testsuite/ld-scripts/map-address.exp: Run the new test.
18 2023-05-04 Nick Clifton <nickc@redhat.com>
21 * emultempl/pep.em (set_entry_point): Add an undefined reference
22 to the entry point if it has been constructed heuristically.
23 * emultempl/pe.em (set_entry_point): Likewise.
25 2023-05-04 Dimitar Dimitrov <dimitar@dinux.eu>
27 * scripttempl/pru.sc (OUTPUT_SECTION_ALIGN): New helper variable
28 to place at end of DMEM output sections.
29 (.data): Use the helper variable.
30 (.eh_frame): New output section.
32 (.gcc_except_table): Ditto.
33 (.resource_table): Use the helper variable.
35 2023-04-27 Nick Clifton <nickc@redhat.com>
37 * ldmisc.c (vfinfo): Add support for %x and %lx.
39 2023-04-18 mengqinggang <mengqinggang@loongson.cn>
41 * testsuite/ld-loongarch-elf/macro_op.d: Regenerated.
43 2023-04-17 Nick Clifton <nickc@redhat.com>
46 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): Define in order to
47 handle the .gnu.sgstubs section.
49 2023-04-13 Claudiu Zissulescu <claziss@synopsys.com>
51 * testsuite/ld-arc/arc.exp: Update execution predicate.
52 * testsuite/ld-arc/nps-1a.d: Add linker script option.
53 * testsuite/ld-arc/nps-1b.d: Likewise.
54 * testsuite/ld-arc/relax-local-pic.d: Update matching patterns.
56 2023-04-12 Nick Clifton <nickc@redhat.com>
58 * ld.texi (--enable-non-contiguous-regions): Fix typos in script
61 2023-03-15 Nick Clifton <nickc@redhat.com>
64 * NEWS: Mention the new feature.
65 * ld.texi: Document the new feature.
66 * ldgram.y: Handle LINKER_VERSION token.
67 * ldlang.c (lang_add_version): New function.
68 (enable_linker_version): New global variable.
69 * ldlang.h (land_add_version): Prototype.
70 (enable_linker_version): Export.
71 * ldlex.h (OPTION_ENABLE_LINKER_VERSION): Define.
72 (OPTION_DISABLE_LINKER_VERSION): Define.
73 * ldlex.l (LINKER_VERSION): Add token.
74 * lexsup.c (ld_options): Add --enable-linker-version and
75 --disable-linker-version.
76 (parse_args): Handle the new options.
77 * scripttempl/arclinux.sc: Remove stabs and comment sections and
78 replace with inclusion of misc-sections.sc
79 * scripttempl/avr.sc: Likewise.
80 * scripttempl/dlx.sc: Likewise.
81 * scripttempl/elf.sc: Likewise.
82 * scripttempl/elf32cr16.sc: Likewise.
83 * scripttempl/elf32crx.sc: Likewise.
84 * scripttempl/elf32msp430.sc: Likewise.
85 * scripttempl/elf64bpf.sc: Likewise.
86 * scripttempl/elf64hppa.sc: Likewise.
87 * scripttempl/elf_chaos.sc: Likewise.
88 * scripttempl/elfarc.sc: Likewise.
89 * scripttempl/elfarcv2.sc: Likewise.
90 * scripttempl/elfd10v.sc: Likewise.
91 * scripttempl/elfd30v.sc: Likewise.
92 * scripttempl/elfm68hc11.sc: Likewise.
93 * scripttempl/elfm68hc12.sc: Likewise.
94 * scripttempl/elfm9s12z.sc: Likewise.
95 * scripttempl/elfmicroblaze.sc: Likewise.
96 * scripttempl/elfxgate.sc: Likewise.
97 * scripttempl/elfxtensa.sc: Likewise.
98 * scripttempl/epiphany_4x4.sc: Likewise.
99 * scripttempl/ft32.sc: Likewise.
100 * scripttempl/ip2k.sc: Likewise.
101 * scripttempl/iq2000.sc: Likewise.
102 * scripttempl/mep.sc: Likewise.
103 * scripttempl/nds32elf.sc: Likewise.
104 * scripttempl/pru.sc: Likewise.
105 * scripttempl/v850.sc: Likewise.
106 * scripttempl/v850_rh850.sc: Likewise.
107 * scripttempl/visium.sc: Likewise.
108 * scripttempl/xstormy16.sc: Likewise.
109 * scripttempl/z80.sc: Likewise.
110 * testsuite/ld-scripts/script.exp: Run new tests.
111 * scripttempl/misc-sections.sc: New file.
112 * testsuite/ld-scripts/ld-version-2.d: New file.
113 * testsuite/ld-scripts/ld-version.d: New file.
114 * testsuite/ld-scripts/ld-version.t: New file.
116 2023-02-23 Fangrui Song <i@maskray.me>
118 * emultempl/riscvelf.em: Add option parsing.
119 * testsuite/ld-riscv-elf/code-model-relax-medlow-01-norelaxgp.d: New.
120 * testsuite/ld-riscv-elf/pcgp-relax-01-norelaxgp.d: New.
121 * testsuite/ld-riscv-elf/pcgp-relax-02.d: Test --relax --relax-gp can be
124 2023-02-20 Nick Clifton <nickc@redhat.com>
127 * pe-dll.c (pe_dll_build_sections): Do not build an edata section
128 if all symbols are being excluded.
130 2023-02-15 Nick Clifton <nickc@redhat.com>
133 * testsuite/ld-elf/merge4b.s: Use .asciz instead of .string in
134 order to avoid the special behaviour of the .string directive on
137 2023-02-14 Nick Clifton <nickc@redhat.com>
139 * ld.texi (Plugins): Mention that the -plugin command line option
140 is used to load plugins.
142 2023-01-27 Nick Clifton <nickc@redhat.com>
145 * pe-dll.c (build_filler_bfd): Initialise the next field of the
146 filler input statement, so that it does not break the file chain.
148 2023-01-24 Nick Clifton <nickc@redhat.com>
151 * pe-dll.c (generate_reloc): Handle sections with no assigned
152 output section. Terminate early of there are no relocs to put in
154 (pe_exe_fill_sections): Do not emit an empty .reloc section.
156 2023-01-06 Nick Clifton <nickc@redhat.com>
158 * po/bg.po: Updated Bulgarian translation.
160 2023-01-05 Nick Clifton <nickc@redhat.com>
162 * configure.tgt: Add arm64pe as an extra emulation for aarch64pe.
163 * Makefile.am (ALL_64_EMULATION_SOURCES): Add earm64pe.c
164 * emultempl/pep.em: Add suppport for arm64pe emulation.
165 * Makefile.in: Regenerate.
166 * po/BLD-POTFILES.in: Regenerate.
167 * po/ld.pot: Regenerate.
169 2023-01-05 Andreas K. Huettel <dilfridge@gentoo.org>
171 * testsuite/ld-elf/shared.exp: un-xfail the PR19710 test for the
172 AArch64 architecture.
174 2023-01-04 Andreas K. Huettel <dilfridge@gentoo.org>
177 * testsuite/ld-aarch64/bti-plt-5.d: Relax regxps slightly to allow
178 for differences in build environments.
179 * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: Likewise.
181 2023-01-03 Nick Clifton <nickc@redhat.com>
183 * po/uk.po: Updated Ukrainian translation.
185 2022-12-31 Nick Clifton <nickc@redhat.com>
187 * 2.40 branch created.
189 2022-12-21 Nick Clifton <nickc@redhat.com>
192 * scripttempl/pe.sc: Keep the .drectve section when performing a
194 * scripttempl/pep.sc: Likewise.
196 2022-12-08 Nick Clifton <nickc@redhat.com>
199 * ld.texi (Output Section Type): Note that setting the output
200 section type only works if the section contains untyped data.
202 2022-12-05 Nick Clifton <nickc@redhat.com>
205 * ldlang.c (spec_match): Check that there is sufficient length in
206 the target name to match the spec's prefix.
208 2022-11-03 Nick Clifton <nickc@redhat.com>
211 * configure.tgt (ac_default_ld_warn_rwx_segments): Set to 0 for
214 2022-11-03 Nick Clifton <nickc@redhat.com>
217 * scripttempl/avr.sc (__DATA_REGION_ORIGIN__): Define. If a value
218 has not been provided on the command line then use DATA_ORIGIN.
219 (MEMORY): Use __DATA_REGION_ORIGIN__ as the start of the data region.
221 2022-10-21 Nick Clifton <nickc@redhat.com>
224 * ld.h (struct ld_config_type): Add no_warnings field.
225 * ldlex.h (enum option_values): Add OPTION_NO_WARNINGS.
226 * lexsup.c (ld_options): Add --no-warnings.
227 (parse_args): Add support for -w and --no-warnings.
228 * ldmisc.c (vfinfo): Return early if the message is a warning and
230 * ld.texi (options): Document new command line option.
231 * NEWS: Mention the new feature.
233 2022-08-30 Nick Clifton <nickc@redhat.com>
236 * testsuite/ld-x86-64/pr27587.err: Update expected output.
238 2022-08-18 Ralf Habacker <ralf.habacker@freenet.de>
241 * testsuite/ld-pe/pe-run2-def.exp: New file.
243 2022-08-03 Alan Modra <amodra@gmail.com>
246 * ldlang.h (lang_input_statement_struct): Add sort_key field.
247 * emultempl/pe.em (after_open): If multiple import libraries refer
248 to the same bfd, store their names in the sort_key field.
249 * emultempl/pep.em (after_open): Likewise.
250 * ldlang.c (sort_filename): New function. Returns the filename to
251 be used when sorting input files.
252 (wild_sort): Use the sort_filename function.
254 2022-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
257 * configure.tgt (ac_default_ld_warn_rwx_segments): Extend to all
258 sparc targets. Expand comment.
260 2022-07-26 Nick Clifton <nickc@redhat.com>
263 * configure.tgt (ac_default_ld_warn_rwx_segments): Disable for
264 sparc-solaris configurations.
266 2022-07-08 Nick Clifton <nickc@redhat.com>
268 * 2.39 branch created.
270 2022-06-27 Nick Clifton <nickc@redhat.com>
273 * configure.ac: Move HPPA specific code from here...
274 * configure.tgt: ... to here. Add similar code for MIPS.
275 Move code for CRIS, MIPS and HPPA to block at start of file.
276 * configure: Regenerate.
278 2022-06-21 Nick Clifton <nickc@redhat.com>
281 * configure.ac (ac_default_ld_warn_execstack): Default to 'no' for
283 (ac_default_ld_warn_rwx_segments): Likewise.
284 * configure: Regenerate.
285 * testsuite/ld-elf/elf.exp: Add the --warn-execstack command line
286 option to the command line when running execstack tests for the
289 2022-05-12 Alan Modra <amodra@gmail.com>
292 * pe-dll.c (dll_name): Delete, replacing with..
293 (dll_filename): ..this, moved earlier in file.
294 (generate_edata): Delete parameters. Don't set up dll_name here..
295 (pe_process_import_defs): ..instead set up dll_filename and
296 dll_symname here before returning.
297 (dll_symname_len): Delete write-only variable.
298 (pe_dll_generate_implib): Don't set up dll_symname here.
300 2022-05-03 Nick Clifton <nickc@redhat.com>
303 * libdep_plugin.c (get_libdeps): Check for overflow when computing
304 amount of memory to allocate.
306 2022-04-27 Nick Clifton <nickc@redhat.com>
309 * pe-dll.c (make_head): Use asprintf to allocate and populate a
310 buffer containing the temporary name.
311 (make_tail, make_one, make_singleton_name_thunk): Likewise.
312 (make_import_fixup_mark, make_import_fixup_entry): Likewise.
313 (make_runtime_pseudo_reloc): Likewise.
314 (pe_create_runtime_relocator_reference): Likewise.
316 2022-04-25 Nick Clifton <nickc@redhat.com>
319 * testsuite/ld-elf/pr29072.b.warn: Update to include the note
320 about the linker's behaviour being depreccated.
322 2022-04-20 Clément Chigot <clement.chigot@atos.net>
324 * emultempl/aix.em (params): New variable.
325 (stub_file): New variable.
326 (xcoff_add_stub_section): New function.
327 (xcoff_layout_sections_again): New function
328 (hook_in_stub): New function.
329 (_after_allocation): Add stub creation.
330 (_create_output_section_statements): Allocate stub file and
331 pass params to backend.
333 2022-04-20 Clément Chigot <clement.chigot@atos.net>
335 * emultempl/aix.em (_after_allocation): New function.
337 2022-04-07 Mark Harmstone <mark@harmstone.com>
339 * testsuite/ld-pe/secidx1.s: New test source file.
340 * testsuite/ld-pe/secidx2.s: New test source file.
341 * testsuite/ld-pe/secidx.d: New test driver file.
342 * testsuite/ld-pe/secidx_64.d: New test driver file.
343 * testsuite/ld-pe/pe.exp: Add new tests.
345 2022-03-01 Nick Clifton <nickc@redhat.com>
348 * testsuite/ld-elf/pr21964-1a.c: Fix array comparisons.
349 * testsuite/ld-elf/pr21964-1b.c: Likewise.
350 * testsuite/ld-elf/pr21964-1c.c: Likewise.
351 * testsuite/ld-elf/pr21964-2a.c: Likewise.
352 * testsuite/ld-elf/pr21964-2b.c: Likewise.
353 * testsuite/ld-elf/pr21964-3a.c: Likewise.
355 2022-02-17 Roland McGrath <mcgrathr@google.com>
357 * ld.texi (Output Section Type): Fix typo in @code syntax.
359 2022-02-17 Nick Clifton <nickc@redhat.com>
361 * po/sr.po: Updated Serbian translation.
363 2022-02-16 Fangrui Song <maskray@google.com>
364 Nick Clifton <nickc@redhat.com>
367 * ld.texi: Document new output section type.
368 * ldlex.l: Add new token TYPE.
369 * ldgram.y: Handle TYPE=exp and READONLY (TYPE=exp).
370 * ldlang.h: Add type_section to list of section types.
371 * ldlang.c (lang_add_section): Handle type_section.
372 (map_input_to_output_sections): Handle type_section.
373 * testsuite/ld-scripts/output-section-types.t: Add tests.
374 * testsuite/ld-scripts/output-section-types.d: Update.
376 2022-02-02 Nick Clifton <nickc@redhat.com>
378 * po/fr.po: Updated French translation.
380 2022-01-24 Nick Clifton <nickc@redhat.com>
382 * po/bg.po: Updated Bulgarian translation.
383 * po/uk.po: Updated Ukranian translation.
385 2022-01-22 Alexander von Gluck IV <kallisti5@unixzen.com>
387 * configure.tgt (arm-haiku): Fix typo.
388 * emulparams/armelf_haiku.su (MAXPAGESIZE): Use the default value.
389 (COMMONPAGESIZE): Likewise.
391 2022-01-22 Nick Clifton <nickc@redhat.com>
393 * configure: Regenerate.
394 * po/ld.pot: Regenerate.
396 2022-01-22 Nick Clifton <nickc@redhat.com>
398 * 2.38 release branch created.
400 2022-01-21 Nick Clifton <nickc@redhat.com>
402 * po/sr.po: Updated Serbian translation.
404 2022-01-17 Nick Clifton <nickc@redhat.com>
406 * Makefile.in: Regenerate.
407 * po/ld.pot: Regenerate.
409 2022-01-11 Martin Storsjö <martin@martin.st>
411 * pe-dll.c (make_head): Prefix the symbol name with the dll name.
412 (make_tail, make_one, make_singleton_name_thunk): Likewise.
413 (make_import_fixup_entry, make_runtime_pseudo_reloc): Likewise.
414 (pe_create_runtime_relocator_reference): Likewise.
415 (pe_dll_generate_implib): Set dll_symname_len.
416 (pe_process_import_defs): Likewise.
418 2021-12-16 Nick Clifton <nickc@redhat.com>
421 * testsuite/ld-avr/avr-prop-7.d: Adjust expected output.
422 * testsuite/ld-avr/avr-prop-8.d: Likewise.
423 * testsuite/ld-avr/pr13402.d: Likewise.
425 2021-11-30 Nick Clifton <nickc@redhat.com>
427 * scripttempl/pru.sc (.pru_irq_map): Define output section.
428 * testsuite/ld-pru/pru_irq_map-1.d: New test.
429 * testsuite/ld-pru/pru_irq_map-2.d: New test.
430 * testsuite/ld-pru/pru_irq_map.s: New test.
432 2021-11-17 Jeremy Drake <cygwin@jdrake.com>
434 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Set to 0 for
436 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Likewise.
438 2021-11-17 Nick Clifton <nickc@redhat.com>
441 * ldgram.y: Add support for PT_GNU_RELRO and PT_GNU_PROPERTY.
442 * ldgram.c: Regenerate.
444 2021-11-15 Roland McGrath <mcgrathr@google.com>
446 * testsuite/ld-aarch64/dt_textrel.d: Pass explicit -z notext in
447 case ld was configured with --enable-textrel-check=error.
448 * testsuite/ld-aarch64/pr22764.d: Likewise.
449 * testsuite/ld-aarch64/pr20402.d: Likewise.
451 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
453 * testsuite/ld-ctf/nonrepresentable-member.*: New test.
455 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
457 * testsuite/ld-ctf/array.d: Change --ctf=.ctf to --ctf.
458 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
459 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
460 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
461 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
462 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
463 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
464 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
465 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
466 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
467 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
468 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
469 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
470 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
471 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
472 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
473 * testsuite/ld-ctf/cycle-1.d: Likewise.
474 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
475 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
476 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
477 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
478 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
479 * testsuite/ld-ctf/diag-cuname.d: Likewise.
480 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
481 * testsuite/ld-ctf/enum-forward.d: Likewise.
482 * testsuite/ld-ctf/enums.d: Likewise.
483 * testsuite/ld-ctf/forward.d: Likewise.
484 * testsuite/ld-ctf/function.d: Likewise.
485 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
486 * testsuite/ld-ctf/slice.d: Likewise.
487 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
489 2021-09-30 Dimitar Dimitrov <dimitar@dinux.eu>
491 * scripttempl/pru.sc (.resource_table): Align the output
492 section, not the first symbol.
494 2021-09-27 Nick Alcock <nick.alcock@oracle.com>
496 * configure: Regenerate.
498 2021-09-21 Nick Clifton <nickc@redhat.com>
500 * ldlang.c (lang_end): When computing the entry point, only
501 try the start address of the entry section when creating an
503 * ld.texi (Entry point): Update description of heuristic used to
504 choose the entry point.
505 testsuite/ld-alpha/tlspic.rd: Update expected entry point address.
506 testsuite/ld-arm/tls-gdesc-got.d: Likewise.
507 testsuite/ld-i386/tlsnopic.rd: Likewise.
508 testsuite/ld-ia64/tlspic.rd: Likewise.
509 testsuite/ld-sparc/gotop32.rd: Likewise.
510 testsuite/ld-sparc/gotop64.rd: Likewise.
511 testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
512 testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
513 testsuite/ld-sparc/tlssunpic32.rd: Likewise.
514 testsuite/ld-sparc/tlssunpic64.rd: Likewise.
515 testsuite/ld-tic6x/shlib-1.rd: Likewise.
516 testsuite/ld-tic6x/shlib-1b.rd: Likewise.
517 testsuite/ld-tic6x/shlib-1r.rd: Likewise.
518 testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
519 testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
520 testsuite/ld-x86-64/pr14207.d: Likewise.
521 testsuite/ld-x86-64/tlsdesc.rd: Likewise.
522 testsuite/ld-x86-64/tlspic.rd: Likewise.
523 testsuite/ld-x86-64/tlspic2.rd: Likewise.
525 2021-09-15 Claudiu Zissulescu <claziss@synopsys.com>
527 * testsuite/ld-arc/got-weak.d: Update file.
529 2021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
531 * ld-arc/got-weak.d: New file.
532 * ld-arc/got-weak.s: Likewise.
534 2021-07-26 Roland McGrath <mcgrathr@google.com>
536 * testsuite/ld-x86-64/x86-64.exp (Build textrel-1): Use --warn-textrel.
538 2021-07-06 Michael Matz <matz@suse.de>
541 * testsuite/ld-riscv-elf/relax-twice.ver: New.
542 * testsuite/ld-riscv-elf/relax-twice-1.s: New.
543 * testsuite/ld-riscv-elf/relax-twice-2.s: New.
544 * testsuite/ld-riscv-elf/ld-riscv-elf.exp
545 (run_relax_twice_test): New, and call it.
547 2021-07-03 Nick Clifton <nickc@redhat.com>
549 * configure: Regenerate.
550 * po/ld.pot: Regenerate.
552 2021-07-03 Nick Clifton <nickc@redhat.com>
554 * 2.37 release branch created.
556 2021-06-22 Nelson Chu <nelson.chu@sifive.com>
558 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
559 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.d: New testcase.
560 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.s: Likewise.
561 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.d: New testcase.
562 Should report error since the %pcrel_lo with addend refers to
564 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.s: Likewise.
565 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.d: New testcase.
566 Should report error since the %got_pcrel_hi with addend.
567 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.s: Likewise.
568 * testsuite/ld-riscv-elf/pcrel-lo-addend-3.ld: Likewise.
570 2021-06-19 H.J. Lu <hongjiu.lu@intel.com>
573 * testsuite/ld-i386/i386.exp: Run PR ld/27998 tests.
574 * testsuite/ld-i386/pr27998a.d: New file.
575 * testsuite/ld-i386/pr27998a.s: Likewise.
576 * testsuite/ld-i386/pr27998b.d: Likewise.
577 * testsuite/ld-i386/pr27998b.s: Likewise.
579 2021-06-19 H.J. Lu <hongjiu.lu@intel.com>
581 * testsuite/ld-x86-64/textrel-1.err: New file.
582 * testsuite/ld-x86-64/textrel-1a.s: Likewise.
583 * testsuite/ld-x86-64/textrel-1b.s: Likewise.
584 * testsuite/ld-x86-64/x86-64.exp: Run textrel-1 tests.
586 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
588 * testsuite/ld-elf/property-and-1.d: Skip am33_2.0, hppa-hpux
590 Pass --generate-missing-build-notes=no to assembler. Allow
591 other note sections for xtensa.
592 * testsuite/ld-elf/property-and-2.d: Likewise.
593 * testsuite/ld-elf/property-and-3.d: Likewise.
594 * testsuite/ld-elf/property-and-4.d: Likewise.
595 * testsuite/ld-elf/property-or-1.d: Likewise.
596 * testsuite/ld-elf/property-or-2.d: Likewise.
597 * testsuite/ld-elf/property-or-3.d: Likewise.
598 * testsuite/ld-elf/property-or-4.d: Likewise.
600 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
602 * ld.texi: Move -z unique-symbol after -z undefs.
604 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
606 * testsuite/ld-elf/property-and-1.d: New file.
607 * testsuite/ld-elf/property-and-1.s: Likewise.
608 * testsuite/ld-elf/property-and-2.d: Likewise.
609 * testsuite/ld-elf/property-and-2.s: Likewise.
610 * testsuite/ld-elf/property-and-3.d: Likewise.
611 * testsuite/ld-elf/property-and-3.s: Likewise.
612 * testsuite/ld-elf/property-and-4.d: Likewise.
613 * testsuite/ld-elf/property-and-empty.s: Likewise.
614 * testsuite/ld-elf/property-or-1.d: Likewise.
615 * testsuite/ld-elf/property-or-1.s: Likewise.
616 * testsuite/ld-elf/property-or-2.d: Likewise.
617 * testsuite/ld-elf/property-or-2.s: Likewise.
618 * testsuite/ld-elf/property-or-3.d: Likewise.
619 * testsuite/ld-elf/property-or-3.s: Likewise.
620 * testsuite/ld-elf/property-or-4.d: Likewise.
621 * testsuite/ld-elf/property-or-empty.s: Likewise.
623 2021-06-17 H.J. Lu <hongjiu.lu@intel.com>
626 * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and
627 $NOPIE_CFLAGS to protected-func-1 without PIE.
629 2021-06-17 H.J. Lu <hongjiu.lu@intel.com>
632 * testsuite/ld-x86-64/x86-64.exp: Run protected function tests.
633 * testsuite/ld-x86-64/protected-func-1.h: New file.
634 * testsuite/ld-x86-64/protected-func-1a.s: Likewise.
635 * testsuite/ld-x86-64/protected-func-1b.c: Likewise.
637 2021-06-17 Fangrui Song <maskray@google.com>
639 * ldlex.h (enum option_values): Add OPTION_NO_PIE.
640 * lexsup.c (struct ld_options): Add -no-pie.
641 (parse_args): Handle -no-pie.
642 * ld.texi: Document -no-pie.
644 2021-06-15 Alan Modra <amodra@gmail.com>
646 * testsuite/ld-pie/vaddr-0.d: Update expected output.
648 2021-06-11 Alan Modra <amodra@gmail.com>
651 * ldelf.c (ldelf_after_open): Error on input PIEs too.
653 2021-06-09 Nick Clifton <nickc@redhat.com>
656 * testsuite/ld-sparc/sparc.exp: Do not run the sparctests or
657 sparc64tests for Solaris2 targets.
659 2021-06-03 Alan Modra <amodra@gmail.com>
662 * ld.texi (link-time runtime library search path): Mention
663 plugin library path. Correct order of search.
665 2021-05-31 Nelson Chu <nelson.chu@sifive.com>
666 Lifang Xia <lifang_xia@c-sky.com>
669 * emultempl/riscvelf.em (after_allocation): Call
670 riscv_set_data_segment_info to set data segment phase before relaxing.
671 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
672 * testsuite/ld-riscv-elf/relro-relax-lui.d: New testcase.
673 * testsuite/ld-riscv-elf/relro-relax-lui.s: Likewise.
674 * testsuite/ld-riscv-elf/relro-relax-pcrel.d: Likewise.
675 * testsuite/ld-riscv-elf/relro-relax-pcrel.s: Likewise.
677 2021-05-28 H.J. Lu <hongjiu.lu@intel.com>
680 * testsuite/ld-i386/pcrel16-2.d: xfail.
681 * testsuite/ld-x86-64/pcrel16-2.d: Likewise.
683 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
686 * testsuite/ld-i386/code16.d: New file.
687 * testsuite/ld-i386/code16.t: Likewise.
688 * testsuite/ld-x86-64/code16.d: Likewise.
689 * testsuite/ld-x86-64/code16.t: Likewise.
690 * testsuite/ld-i386/i386.exp: Run code16.
691 * testsuite/ld-x86-64/x86-64.exp: Likewise.
693 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
695 * testsuite/ld-x86-64/ilp32-12.d: New file.
696 * testsuite/ld-x86-64/ilp32-12.s: Likewise.
697 * testsuite/ld-x86-64/x86-64.exp: Run ilp32-12.
699 2021-05-14 Nelson Chu <nelson.chu@sifive.com>
701 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
702 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d: Renamed from
704 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.s: Likewise.
705 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.d: New testcase.
706 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.s: Likewise.
708 2021-05-13 Fangrui Song <maskray@google.com>
711 * ldlex.h (enum option_values): Add OPTION_NO_SYMBOLIC.
712 * lexsup.c (ld_options): Add -Bno-symbolic.
713 (parse_args): Handle -Bno-symbolic.
714 * ld.texi: Document -Bno-symbolic.
715 * NEWS: Mention -Bno-symbolic.
716 * testsuite/ld-elf/shared.exp: Add a test.
718 2021-05-12 Richard Earnshaw <rearnsha@arm.com>
720 * testsuite/ld-arm/arm-elf.exp (farcall test for v8-m.mainline):
721 Correct expected output.
723 2021-05-11 Roland McGrath <mcgrathr@google.com>
725 * testsuite/ld-x86-64/rela.d: Fix regexp not to presume a specific
726 address layout, so it works for e.g. --target=x86-64-elf.
728 2021-05-11 Nick Clifton <nickc@redhat.com>
731 * Makefile.am (install-data-local): Also delete libdep.dll.a if it
733 * Makefile.in: Regenerate.
735 2021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
737 * testsuite/ld-elf/group8a.d: Remove pru from XFAIL list.
738 * testsuite/ld-elf/group8b.d: Ditto.
739 * testsuite/ld-elf/group9a.d: Ditto.
740 * testsuite/ld-elf/group9b.d: Ditto.
741 * testsuite/ld-elf/pr12851.d: Ditto.
742 * testsuite/ld-elf/pr22677.d: Ditto.
743 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove
746 2021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
748 * scripttempl/pru.sc (.resource_table): Add ALIGN directive.
749 Use symbols for memory sizes.
751 2021-05-08 Mike Frysinger <vapier@gentoo.org>
753 * Makefile.am (html-local, doc/ld/index.html): New targets.
754 * Makefile.in: Regenerate.
756 2021-05-08 Mike Frysinger <vapier@gentoo.org>
758 * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
759 * Makefile.in: Regenerate.
761 2021-05-07 Jan Beulich <jbeulich@suse.com>
763 * testsuite/ld-x86-64/rela.d: New.
764 * testsuite/ld-x86-64/x86-64.exp: Run new test.
766 2021-05-07 Nick Clifton <nickc@redhat.com>
768 * ldelfgen.c (compare_link_order): Ignore section size when
769 performing a relocateable link.
771 2021-05-07 Alan Modra <amodra@gmail.com>
773 * ldexp.c (update_definedness): Don't return false for absolute
775 * ldmain.c (multiple_definition): Print "warning: " in message
776 when not a hard error.
778 2021-05-07 Alan Modra <amodra@gmail.com>
780 * testsuite/ld-elf/pr27825-1.d: Correct xfail.
781 * testsuite/ld-elf/pr27825-2.d: Likewise.
783 2021-05-06 Stafford Horne <shorne@gmail.com>
786 testsuite/ld-or1k/or1k.exp (or1kplttests): Add tests for linking
787 along with gotha() relocations.
788 testsuite/ld-or1k/gotha1.dd: New file.
789 testsuite/ld-or1k/gotha1.s: New file.
790 testsuite/ld-or1k/gotha2.dd: New file.
791 testsuite/ld-or1k/gotha2.s: New file
792 testsuite/ld-or1k/pltlib.s (x): Define size to avoid link
795 2021-05-06 Nick Alcock <nick.alcock@oracle.com>
797 * testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt.
798 * testsuite/lib/ld-lib.exp: Likewise.
799 * testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types.
800 * testsuite/ld-ctf/nonrepresentable-2.c: Likewise.
801 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
802 * testsuite/ld-ctf/array.d: Larger type section.
803 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
804 * testsuite/ld-ctf/enums.d: Likewise.
805 * testsuite/ld-ctf/conflicting-enums.d: Don't compare types.
806 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order.
807 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
808 * testsuite/ld-ctf/slice.d: Adjust for improved slice emission.
810 2021-05-05 H.J. Lu <hongjiu.lu@intel.com>
813 * testsuite/ld-elf/pr27825-1.d: New file.
814 * testsuite/ld-elf/pr27825-1a.s: Likewise.
815 * testsuite/ld-elf/pr27825-1b.s: Likewise.
816 * testsuite/ld-elf/pr27825-2.d: Likewise.
817 * testsuite/ld-elf/pr27825-2a.s: Likewise.
818 * testsuite/ld-elf/pr27825-2b.s: Likewise.
820 2021-05-05 Alan Modra <amodra@gmail.com>
822 * testsuite/ld-powerpc/empty.s: New file.
823 * testsuite/ld-powerpc/undefweak.d,
824 * testsuite/ld-powerpc/undefweak.s: New testcase.
825 * testsuite/ld-powerpc/powerpc.exp: Run it.
827 2021-05-03 Alan Modra <amodra@gmail.com>
829 * testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
830 named section symbols.
832 2021-04-28 Nick Clifton <nickc@redhat.com>
834 * testsuite/ld-elf/anno-sym.s: New test source file.
835 * testsuite/ld-elf/anno-sym.d: New test driver.
836 * testsuite/ld-elf/anno-sym.l: New test error output.
838 2021-04-26 Jan Beulich <jbeulich@suse.com>
840 * testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d,
841 testsuite/ld-x86-64/pcrel16-2.d: New.
842 * testsuite/ld-i386/i386.exp: Run new test.
843 * testsuite/ld-x86-64/x86-64.exp: Likewise.
845 2021-04-23 H.J. Lu <hongjiu.lu@intel.com>
848 * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
849 to tmpdir/ldscripts only if it doesn't exist.
851 2021-04-22 Jan Beulich <jbeulich@suse.com>
854 * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
856 2021-04-21 Nick Clifton <nickc@redhat.com>
858 * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
859 to allow for named section symbols.
860 * testsuite/ld-aarch64/variant_pcs-r.d: Likewise.
861 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
862 * testsuite/ld-alpha/tlsbin.rd: Likewise.
863 * testsuite/ld-alpha/tlsbinr.rd: Likewise.
864 * testsuite/ld-alpha/tlspic.rd: Likewise.
865 * testsuite/ld-arm/rodata-merge-map.sym: Likewise.
866 * testsuite/ld-arm/script-type.sym: Likewise.
867 * testsuite/ld-cris/libdso-2.d: Likewise.
868 * testsuite/ld-cris/pr16044.d: Likewise.
869 * testsuite/ld-elf/sec64k.exp: Likewise.
870 * testsuite/ld-ia64/tlsbin.rd: Likewise.
871 * testsuite/ld-ia64/tlspic.rd: Likewise.
872 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
873 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
874 * testsuite/ld-mmix/bspec1.d: Likewise.
875 * testsuite/ld-mmix/bspec2.d: Likewise.
876 * testsuite/ld-mmix/local1.d: Likewise.
877 * testsuite/ld-mmix/local3.d: Likewise.
878 * testsuite/ld-mmix/local5.d: Likewise.
879 * testsuite/ld-mmix/local7.d: Likewise.
880 * testsuite/ld-mmix/undef-3.d: Likewise.
881 * testsuite/ld-powerpc/tlsso.r: Likewise.
882 * testsuite/ld-powerpc/tlsso32.r: Likewise.
883 * testsuite/ld-powerpc/tlstocso.r: Likewise.
884 * testsuite/ld-s390/tlsbin.rd: Likewise.
885 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
886 * testsuite/ld-s390/tlspic.rd: Likewise.
887 * testsuite/ld-s390/tlspic_64.rd: Likewise.
888 * testsuite/ld-sparc/gotop32.rd: Likewise.
889 * testsuite/ld-sparc/gotop64.rd: Likewise.
890 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
891 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
892 * testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
893 * testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
894 * testsuite/ld-sparc/tlssunpic32.rd: Likewise.
895 * testsuite/ld-sparc/tlssunpic64.rd: Likewise.
896 * testsuite/ld-tic6x/common.d: Likewise.
897 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
898 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
899 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
900 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
901 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
902 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
903 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
904 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
905 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
906 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
907 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
908 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
909 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
911 2021-04-20 Clément Chigot <clement.chigot@atos.net>
914 * testsuite/ld-powerpc/aix52.exp: Add new test.
915 * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
916 * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
917 * testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
918 * testsuite/ld-powerpc/aix-neg-reloc.s: New test.
920 2021-04-13 Nick Clifton <nickc@redhat.com>
922 * ld.texi (Options): Add note about the effect of --as-needed on
923 the --rpath and --rpath-link options on Linux based systems.
925 2021-04-13 Alan Modra <amodra@gmail.com>
928 * libdep_plugin.c (str2vec): Don't pass a potentially signed char
931 2021-04-12 Alan Modra <amodra@gmail.com>
933 * configure.ac (--enable-checking): Add support.
934 * config.in: Regenerate.
935 * configure: Regenerate.
937 2021-04-12 Alan Modra <amodra@gmail.com>
939 * emultempl/mipself.em (mips_create_output_section_statements):
940 Pass base type of hash table to is_elf_hash_table.
941 * ldelf.c (ldelf_after_open): Likewise.
943 2021-04-12 Alan Modra <amodra@gmail.com>
946 * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
947 the symbol hash table is the correct type before accessing
948 elf_link_hash_entry symbols.
949 * plugin.c (is_visible_from_outside): Likewise.
950 * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
951 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
953 2021-04-09 Alan Modra <amodra@gmail.com>
955 * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
956 * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
957 * testsuite/ld-powerpc/notoc2.d: Likewise.
958 * testsuite/ld-powerpc/notoc3.d: Likewise.
959 * testsuite/ld-powerpc/pcrelopt.d: Likewise.
960 * testsuite/ld-powerpc/startstop.d: Likewise.
961 * testsuite/ld-powerpc/tlsget.d: Likewise.
962 * testsuite/ld-powerpc/tlsget2.d: Likewise.
963 * testsuite/ld-powerpc/tlsld.d: Likewise.
964 * testsuite/ld-powerpc/weak1.d: Likewise.
965 * testsuite/ld-powerpc/weak1so.d: Likewise.
967 2021-04-06 Jan Beulich <jbeulich@suse.com>
969 * pe-dll.c (generate_reloc): Bail immediately when .reloc is
970 being discarded. Warn when relocated entry is above .reloc.
972 2021-04-05 Alan Modra <amodra@gmail.com>
974 * configure.ac: Move initfini-array arg handling earlier. Don't
975 check for string.h, strings.h, stdlib.h, or locale.h. Do check
976 for inttypes.h, stdint.h, sys/types.h. Don't check for
977 setlocale, free, getev or strstr.
978 (AC_ISC_POSIX): Don't invoke.
979 * sysdep.h: Include string.h and stdlib.h unconditionally. Test
980 HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and
981 getenv fallback declarations.
982 * ld.h: Don't test HAVE_LOCALE_H.
983 * ldmain.c: Don't test HAVE_SETLOCALE.
984 * config.in: Regenerate.
985 * configure: Regenerate.
987 2021-04-01 Tamar Christina <tamar.christina@arm.com>
990 * testsuite/ld-pe/pe.exp: Add test.
991 * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
992 * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
994 2021-04-01 Martin Liska <mliska@suse.cz>
996 * ldbuildid.c (strneq): Remove strneq and use startswith.
997 (validate_build_id_style): Likewise.
998 (compute_build_id_size): Likewise.
1000 2021-03-31 Alan Modra <amodra@gmail.com>
1002 * sysdep.h (POISON_BFD_BOOLEAN): Define.
1003 * configure.ac (elf_list_options, elf_shlib_list_options=false),
1004 (elf_plt_unwind_list_options=false): Replace FALSE with false,
1006 * emulparams/call_nop.sh, * emulparams/cet.sh,
1007 * emulparams/dynamic_undefined_weak.sh,
1008 * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
1009 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
1010 * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
1011 * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
1012 * emulparams/reloc_overflow.sh, * emulparams/static.sh,
1013 * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
1014 * emultempl/aix.em, * emultempl/alphaelf.em,
1015 * emultempl/armcoff.em, * emultempl/armelf.em,
1016 * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
1017 * emultempl/cr16elf.em, * emultempl/crxelf.em,
1018 * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
1019 * emultempl/hppaelf.em, * emultempl/linux.em,
1020 * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
1021 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
1022 * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
1023 * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
1024 * emultempl/pep.em, * emultempl/ppc32elf.em,
1025 * emultempl/ppc64elf.em, * emultempl/rxelf.em,
1026 * emultempl/rxlinux.em, * emultempl/scoreelf.em,
1027 * emultempl/solaris2.em, * emultempl/spuelf.em,
1028 * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
1029 * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
1030 * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
1031 * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
1032 * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
1033 * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
1034 * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
1035 * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
1036 * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
1037 bfd_boolean with bool, FALSE with false, and TRUE with true.
1038 * configure: Regenerate.
1040 2021-03-31 Alan Modra <amodra@gmail.com>
1042 * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
1043 * emultempl/nds32elf.em: Likewise.
1044 * testsuite/ld-elf/mbind2b.c: Likewise.
1045 * testsuite/ld-elf/pr18718.c: Likewise.
1046 * testsuite/ld-elf/pr18720a.c: Likewise.
1047 * testsuite/ld-elf/pr25749-1.c: Likewise.
1048 * testsuite/ld-elf/pr25749-1a.c: Likewise.
1049 * testsuite/ld-elf/pr25749-1b.c: Likewise.
1050 * testsuite/ld-elf/pr25749-1c.c: Likewise.
1051 * testsuite/ld-elf/pr25749-1d.c: Likewise.
1052 * testsuite/ld-elf/pr25749-2.c: Likewise.
1053 * testsuite/ld-elf/pr25754-1a.c: Likewise.
1054 * testsuite/ld-elf/pr25754-2a.c: Likewise.
1055 * testsuite/ld-elf/pr25754-3a.c: Likewise.
1056 * testsuite/ld-elf/pr25754-4a.c: Likewise.
1057 * testsuite/ld-elf/pr25754-5a.c: Likewise.
1058 * testsuite/ld-elf/pr25754-6a.c: Likewise.
1060 2021-03-29 Alan Modra <amodra@gmail.com>
1062 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
1064 * lexsup.c (parse_args): Likewise.
1065 * pe-dll.c (pe_dll_id_target): Likewise.
1067 2021-03-25 Nick Alcock <nick.alcock@oracle.com>
1069 * testsuite/ld-ctf/array.d: Only check that the data object
1070 section is nonempty: do not check its exact size.
1071 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1072 * testsuite/ld-ctf/slice.d: Likewise.
1073 * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
1074 func info section too.
1075 * testsuite/ld-ctf/function.d: Likewise, for the func info section.
1077 2021-03-22 Martin Liska <mliska@suse.cz>
1079 * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
1080 * emultempl/beos.em: Likewise.
1081 * emultempl/elf.em: Likewise.
1082 * emultempl/pe.em: Likewise.
1083 * emultempl/pep.em: Likewise.
1084 * emultempl/xtensaelf.em: Likewise.
1085 * ldctor.c (ctor_prio): Likewise.
1086 * ldelf.c (ldelf_try_needed): Likewise.
1087 (ldelf_parse_ld_so_conf): Likewise.
1088 (ldelf_after_open): Likewise.
1089 (output_rel_find): Likewise.
1090 (ldelf_place_orphan): Likewise.
1091 * ldfile.c (ldfile_add_library_path): Likewise.
1092 * ldlang.c (lang_add_input_file): Likewise.
1093 * ldmain.c (get_sysroot): Likewise.
1094 (get_emulation): Likewise.
1095 (add_archive_element): Likewise.
1096 * ldwrite.c (unsplittable_name): Likewise.
1097 (clone_section): Likewise.
1098 * lexsup.c (parse_args): Likewise.
1099 * pe-dll.c (is_import): Likewise.
1100 (pe_implied_import_dll): Likewise.
1102 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
1105 * testsuite/ld-x86-64/pr27590.rd: New file.
1106 * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
1107 * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
1108 * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
1110 2021-03-20 Alan Modra <amodra@gmail.com>
1113 * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
1114 for all sections except .stabstr.
1116 2021-03-19 Alan Modra <amodra@gmail.com>
1119 * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
1121 * testsuite/ld-elf/pr27590b.d: Likewise.
1123 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1126 * testsuite/ld-elf/pr27590.s: New file.
1127 * testsuite/ld-elf/pr27590a.d: Likewise.
1128 * testsuite/ld-elf/pr27590b.d: Likewise.
1129 * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
1130 --reduce-memory-overheads.
1132 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1135 * testsuite/ld-x86-64/pr27587.err: New file.
1136 * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
1137 * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
1138 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
1140 2021-03-18 Nick Alcock <nick.alcock@oracle.com>
1142 * testsuite/ld-ctf/slice.c: Check slices of enums too.
1143 * testsuite/ld-ctf/slice.d: Results adjusted.
1145 2021-03-16 Nick Clifton <nickc@redhat.com>
1147 * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
1150 2021-03-15 Jan Beulich <jbeulich@suse.com>
1152 * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
1154 2021-03-12 Alan Modra <amodra@gmail.com>
1156 * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
1157 (ALL_64_EMULATION_SOURCES): ..here.
1158 * Makefile.in: Regenerate.
1160 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1162 * emultempl/aix.em: Ensure .tdata section is removed
1163 if empty, even with -r flag.
1164 * scripttempl/aix.sc: Handle TLS sections.
1165 * testsuite/ld-powerpc/aix52.exp: Add new tests.
1166 * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
1167 * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
1168 * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
1169 * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
1170 * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
1171 * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
1172 * testsuite/ld-powerpc/aix-tls-section.ex: New test.
1173 * testsuite/ld-powerpc/aix-tls-section.s: New test.
1175 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1177 * scripttempl/aix.sc: Add .te to .data section.
1178 * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
1179 Add aix-largetoc-1 test.
1180 * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
1181 * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
1182 * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
1183 * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
1185 2021-03-12 Alan Modra <amodra@gmail.com>
1187 * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
1188 arrange to define __main for some run_dump_test tests.
1189 * testsuite/ld-gc/pr13683.d: Accept more symbols.
1190 * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
1191 * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
1192 * testsuite/ld-srec/srec.exp: Likewise.
1193 * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
1195 2021-03-11 Nelson Chu <nelson.chu@sifive.com>
1197 * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
1198 many times if riscv_restart_relax_sections returns TRUE.
1199 * testsuite/ld-riscv-elf/restart-relax.d: New testcase. Before
1200 applying this patch, the call won't be relaxed to jal; But now we
1201 have more chances to do relaxations.
1202 * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
1203 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
1205 2021-03-10 Jan Beulich <jbeulich@suse.com>
1207 * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
1209 * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
1211 * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
1213 2021-03-09 Jan Beulich <jbeulich@suse.com>
1215 * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
1217 * testsuite/ld-pe/reloc.d: xfail for mcore.
1219 2021-03-09 Jan Beulich <jbeulich@suse.com>
1221 * testsuite/ld-scripts/alignof.exp,
1222 testsuite/ld-scripts/data.exp,
1223 testsuite/ld-scripts/default-script.exp,
1224 testsuite/ld-scripts/log2.exp,
1225 testsuite/ld-scripts/print-memory-usage.exp,
1226 testsuite/ld-scripts/sizeof.exp,
1227 testsuite/ld-undefined/weak-undef.exp: Set image base to zero
1229 * testsuite/ld-scripts/default-script1.d,
1230 testsuite/ld-scripts/default-script2.d,
1231 testsuite/ld-scripts/default-script3.d,
1232 testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
1234 2021-03-05 H.J. Lu <hongjiu.lu@intel.com>
1238 * ldelf.c (ldelf_set_output_arch): New function.
1239 * ldelf.h (ldelf_set_output_arch): New prototype.
1240 * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
1241 ldelf_set_output_arch.
1242 * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
1243 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1244 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1245 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1246 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1247 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1248 * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
1249 * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
1250 * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
1252 2021-03-04 Jan Beulich <jbeulich@suse.com>
1254 * testsuite/ld-scripts/map-address.exp: Set image base to zero
1256 * testsuite/ld-scripts/map-address.t: Place .text.
1258 2021-03-04 Jan Beulich <jbeulich@suse.com>
1260 * ldexp.c (ldexp_is_final_sym_absolute): New.
1261 * ldexp.h (ldexp_is_final_sym_absolute): Declare.
1262 * pe-dll.c (generate_reloc): Skip absolute symbols.
1263 * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
1264 * testsuite/ld-pe/pe.exp: Run new test.
1266 2021-03-03 Alan Modra <amodra@gmail.com>
1269 * ldlang.c (insert_undefined): Don't mark symbols here.
1270 (lang_mark_undefineds): Do so here instead, new function.
1271 (lang_process): Call lang_mark_undefineds.
1272 * testsuite/ld-gc/start3.d,
1273 * testsuite/ld-gc/start3.s: New test.
1274 * testsuite/ld-gc/start4.d,
1275 * testsuite/ld-gc/start4.s: New test.
1276 * testsuite/ld-gc/gc.exp: Run them.
1278 2021-03-03 Alan Modra <amodra@gmail.com>
1280 * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
1281 Move tests with ELF section directives to is_elf_format block.
1282 * testsuite/ld-gc/abi-note.d: Run on more targets.
1283 * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
1284 * testsuite/ld-gc/start.d: Likewise.
1285 * testsuite/ld-gc/start2.d: Likewise.
1286 * testsuite/ld-gc/stop.d: Likewise.
1287 * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
1288 * testsuite/ld-gc/start.s: Likewise.
1289 * testsuite/ld-gc/start2.s: Likewise.
1291 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
1293 * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
1295 2021-03-02 Alan Modra <amodra@gmail.com>
1297 * testsuite/ld-powerpc/startstop.d,
1298 * testsuite/ld-powerpc/startstop.r,
1299 * testsuite/ld-powerpc/startstop.s: New test.
1300 * testsuite/ld-powerpc/powerpc.exp: Run it.
1302 2021-03-02 Alan Modra <amodra@gmail.com>
1304 * testsuite/ld-powerpc/weak1.d,
1305 * testsuite/ld-powerpc/weak1.r,
1306 * testsuite/ld-powerpc/weak1.s,
1307 * testsuite/ld-powerpc/weak1so.d,
1308 * testsuite/ld-powerpc/weak1so.r: New tests.
1309 * testsuite/ld-powerpc/powerpc.exp: Run them.
1311 2021-03-01 Hannes Domani <ssbssa@sourceware.org>
1312 Nick Clifton <nickc@redhat.com>
1315 * scripttempl/pe.sc: Add DWARF-5 section names.
1316 * scripttempl/pep.sc: Likewise.
1318 2021-03-01 Alan Modra <amodra@gmail.com>
1319 Fangrui Song <maskray@google.com>
1321 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
1322 * lexsup.c (elf_static_list_options): Display help for them. Move
1323 help for -z stack-size to here from elf_shlib_list_options. Add
1324 help for -z start-stop-visibility and -z undefs.
1325 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
1326 * NEWS: Mention -z start-stop-gc.
1327 * testsuite/ld-gc/start2.s,
1328 * testsuite/ld-gc/start2.d: New test.
1329 * testsuite/ld-gc/gc.exp: Run it.
1331 2021-03-01 Alan Modra <amodra@gmail.com>
1333 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
1334 symbols undefweak if that was how they were referenced. Undo
1337 2021-03-01 Alan Modra <amodra@gmail.com>
1339 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
1340 * testsuite/ld-elf/pr27128a.d: Likewise.
1341 * testsuite/ld-elf/pr27128b.d: Likewise.
1342 * testsuite/ld-elf/pr27128c.d: Likewise.
1343 * testsuite/ld-elf/pr27128d.d: Likewise.
1344 * testsuite/ld-elf/pr27128e.d: Likewise.
1346 2021-02-26 Alan Modra <amodra@gmail.com>
1349 * testsuite/ld-plugin/pr27441a.c,
1350 * testsuite/ld-plugin/pr27441b.c,
1351 * testsuite/ld-plugin/pr27441c.c,
1352 * testsuite/ld-plugin/pr27441c.d: New test.
1353 * testsuite/ld-plugin/lto.exp: Run it.
1355 2021-02-25 Jan Beulich <jbeulich@suse.com>
1357 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
1359 2021-02-21 Alan Modra <amodra@gmail.com>
1361 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
1362 defined in an object file.
1363 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
1364 * testsuite/ld-scripts/defined5.d: Expect a warning.
1366 2021-02-19 Alan Modra <amodra@gmail.com>
1368 * testsuite/lib/ld-lib.exp: Whitespace.
1369 (load_common_lib): Expand single use and delete this proc.
1370 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
1371 Use -B for clang too.
1373 2021-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
1375 * testplugin.c (record_read_length): Remove debug fprintf.
1377 2021-02-14 Alan Modra <amodra@gmail.com>
1379 * testsuite/ld-cdtest/cdtest.exp,
1380 * testsuite/ld-checks/checks.exp,
1381 * testsuite/ld-elf/binutils.exp,
1382 * testsuite/ld-elf/compress.exp,
1383 * testsuite/ld-elf/dwarf.exp,
1384 * testsuite/ld-elf/exclude.exp,
1385 * testsuite/ld-elf/frame.exp,
1386 * testsuite/ld-elf/indirect.exp,
1387 * testsuite/ld-elf/linux-x86.exp,
1388 * testsuite/ld-elf/sec-to-seg.exp,
1389 * testsuite/ld-elf/tls_common.exp,
1390 * testsuite/ld-elfcomm/elfcomm.exp,
1391 * testsuite/ld-elfvers/vers.exp,
1392 * testsuite/ld-elfvsb/elfvsb.exp,
1393 * testsuite/ld-elfweak/elfweak.exp,
1394 * testsuite/ld-ifunc/binutils.exp,
1395 * testsuite/ld-mips-elf/mips-elf-flags.exp,
1396 * testsuite/ld-misc/defsym.exp,
1397 * testsuite/ld-mn10300/mn10300.exp,
1398 * testsuite/ld-plugin/lto.exp,
1399 * testsuite/ld-plugin/plugin.exp,
1400 * testsuite/ld-scripts/align.exp,
1401 * testsuite/ld-scripts/assert.exp,
1402 * testsuite/ld-scripts/crossref.exp,
1403 * testsuite/ld-scripts/defined.exp,
1404 * testsuite/ld-scripts/extern.exp,
1405 * testsuite/ld-scripts/log2.exp,
1406 * testsuite/ld-scripts/map-address.exp,
1407 * testsuite/ld-scripts/phdrs.exp,
1408 * testsuite/ld-scripts/phdrs2.exp,
1409 * testsuite/ld-scripts/script.exp,
1410 * testsuite/ld-scripts/section-flags.exp,
1411 * testsuite/ld-scripts/sizeof.exp,
1412 * testsuite/ld-scripts/weak.exp,
1413 * testsuite/ld-selective/selective.exp,
1414 * testsuite/ld-sh/sh.exp,
1415 * testsuite/ld-shared/shared.exp,
1416 * testsuite/ld-srec/srec.exp,
1417 * testsuite/ld-tic6x/tic6x.exp,
1418 * testsuite/ld-undefined/undefined.exp,
1419 * testsuite/ld-undefined/weak-undef.exp,
1420 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
1421 perror. Instead report "unsupported" or "fail".
1423 2021-02-12 Nick Clifton <nickc@redhat.com>
1425 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
1426 following debug links.
1428 2021-02-11 Alan Modra <amodra@gmail.com>
1430 * NEWS: Mention arm-symbianelf removal.
1432 2021-02-09 Alan Modra <amodra@gmail.com>
1434 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
1435 Don't include symbian dep file.
1436 * configure.tgt: Remove arm*-*-symbianelf* entry.
1437 * emulparams/armsymbian.sh: Delete.
1438 * ld.texi: Don't mention symbian.
1439 * scripttempl/armbpabi.sc: Delete.
1440 * testsuite/ld-arm/symbian-seg1.d: Delete.
1441 * testsuite/ld-arm/symbian-seg1.s: Delete.
1442 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
1443 * Makefile.in: Regenerate.
1444 * po/BLD-POTFILES.in: Regenerate.
1446 2021-02-07 H.J. Lu <hongjiu.lu@intel.com>
1449 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
1451 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1453 2021-01-26 Nick Alcock <nick.alcock@oracle.com>
1455 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
1458 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1461 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
1462 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
1463 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
1464 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
1465 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
1466 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
1467 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
1469 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1472 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
1473 * testsuite/ld-plugin/pr15146.d: Restored.
1474 * testsuite/ld-plugin/pr15146a.c: Likewise.
1475 * testsuite/ld-plugin/pr15146b.c: Likewise.
1476 * testsuite/ld-plugin/pr15146c.c: Likewise.
1477 * testsuite/ld-plugin/pr15146d.c: Likewise.
1479 2021-02-04 Alan Modra <amodra@gmail.com>
1481 * testsuite/ld-plugin/pr27311d.c: New test.
1482 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
1483 and link new test as pr27311-2.
1485 2021-02-03 Alan Modra <amodra@gmail.com>
1487 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
1488 Link with --as-needed.
1490 2021-02-02 Alan Modra <amodra@gmail.com>
1492 * testsuite/ld-plugin/pr27311.d,
1493 * testsuite/ld-plugin/pr27311.ver,
1494 * testsuite/ld-plugin/pr27311a.c,
1495 * testsuite/ld-plugin/pr27311b.c,
1496 * testsuite/ld-plugin/pr27311c.c: New testcase.
1497 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
1500 2021-02-01 Emery Hemingway <ehmry@posteo.net>
1502 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1504 2021-02-01 Alan Modra <amodra@gmail.com>
1506 * ldgram.y (defsym_expr): Use assignment rule.
1507 * ldlex.h (ldlex_defsym): Delete.
1508 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
1510 2021-02-01 Alan Modra <amodra@gmail.com>
1512 * ldgram.y (section): Call ldlex_backup. Remove empty action.
1513 * ldlex.h (ldlex_backup): Declare.
1514 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
1515 chars, use SYMBOLNAMECHAR.
1516 (ldlex_backup): New function.
1518 2021-02-01 Alan Modra <amodra@gmail.com>
1520 * ldgram.y: Whitespace fixes.
1522 2021-02-01 Alan Modra <amodra@gmail.com>
1524 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
1526 2021-01-29 Alan Modra <amodra@gmail.com>
1528 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
1530 2021-01-28 H.J. Lu <hongjiu.lu@intel.com>
1533 * testsuite/ld-elf/pr27259.d: New file.
1534 * testsuite/ld-elf/pr27259.s: Likewise.
1536 2021-01-28 Alan Modra <amodra@gmail.com>
1539 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
1540 prevent endless looping of linked-to sections.
1542 2021-01-26 H.J. Lu <hongjiu.lu@intel.com>
1544 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
1546 2021-01-26 Alan Modra <amodra@gmail.com>
1549 * emulparams/alphavms.sh: Don't set COMPILE_IN.
1550 * emulparams/elf64_ia64_vms.sh: Likewise.
1551 * emulparams/elf64mmix.sh: Likewise.
1552 * emulparams/elf_iamcu.sh: Likewise.
1553 * emulparams/elf_k1om.sh: Likewise.
1554 * emulparams/elf_l1om.sh: Likewise.
1555 * emulparams/mmo.sh: Likewise.
1556 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
1557 * scripttempl/pdp11.sc: Use it.
1558 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
1559 instead use .xe script. Support scripts from file system.
1560 * emultempl/beos.em: Support scripts from file system.
1561 * emultempl/pe.em: Likewise.
1562 * emultempl/pep.em: Likewise.
1563 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
1565 2021-01-25 Fangrui Song <maskray@google.com>
1568 * scripttempl/DWARF.sc: Add .debug_* sections.
1570 2021-01-25 Nick Clifton <nickc@redhat.com>
1572 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
1573 .debug_line_str and .debug_str_offsets. Move .debug_macro and
1574 .debug_addr into DWARF-5 section.
1576 2021-01-21 Alan Modra <amodra@gmail.com>
1578 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
1580 2021-01-20 Alan Modra <amodra@gmail.com>
1582 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
1583 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
1584 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
1585 * testsuite/ld-powerpc/tlsget.wf: Likewise.
1586 * testsuite/ld-powerpc/tlsget2.d: Likewise.
1587 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
1588 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
1589 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
1590 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
1591 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
1592 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
1593 * testsuite/ld-powerpc/tlsexers.r: Likewise.
1594 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
1595 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
1596 * testsuite/ld-powerpc/tlsso.r: Likewise.
1597 * testsuite/ld-powerpc/tlsso32.r: Likewise.
1598 * testsuite/ld-powerpc/tlstocso.r: Likewise.
1600 2021-01-19 Nick Alcock <nick.alcock@oracle.com>
1602 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
1603 symbols by the optimizer.
1604 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
1606 2021-01-19 Nelson Chu <nelson.chu@sifive.com>
1608 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
1609 if target is riscv little endian. Otherwise, return false.
1610 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
1611 targets by [riscv_little_endian].
1613 2021-01-18 Alan Modra <amodra@gmail.com>
1616 * ldlang.c (map_input_to_output_sections): Start with a read-only
1617 section for data statements.
1618 * testsuite/ld-elf/size-2.d: Adjust to suit.
1620 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
1623 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
1624 * testsuite/ld-i386/pr27193.dd: New file.
1625 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
1626 * testsuite/ld-i386/pr27193b.s: Likewise.
1628 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1631 * testsuite/ld-plugin/lto.exp: Increase the max number of open
1632 files to 20 for PR binutils/23460 test.
1634 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1637 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
1638 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
1639 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
1642 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
1644 * NEWS: Mention -z report-relative-reloc.
1645 * ld.texi: Document -z report-relative-reloc.
1646 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
1647 * emulparams/elf_i386.sh: Likewse.
1648 * emulparams/elf_x86_64.sh: Likewse.
1649 * emulparams/x86-report-relative.sh: New file.
1650 * testsuite/ld-i386/report-reloc-1.d: Likewse.
1651 * testsuite/ld-i386/report-reloc-1.l: Likewse.
1652 * testsuite/ld-i386/report-reloc-1.s: Likewse.
1653 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
1654 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
1655 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
1656 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
1657 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
1658 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
1661 2021-01-16 Alan Modra <amodra@gmail.com>
1664 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
1665 unversioned symbols.
1666 * testsuite/ld-elfvers/vers16.dsym: Likewise.
1668 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1670 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
1671 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
1672 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
1673 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
1674 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
1675 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
1677 2021-01-14 Nick Clifton <nickc@redhat.com>
1679 * po/fr.po: Updated French translation.
1681 2021-01-14 Mike Frysinger <vapier@gentoo.org>
1683 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
1685 2021-01-14 Alan Modra <amodra@gmail.com>
1688 * ldelfgen.c (compare_link_order): Protect access of ELF section
1690 (add_link_order_input_section): Remove redundant NULL check.
1691 Use bfd_get_flavour.
1692 (ldelf_map_segments): Use bfd_get_flavour.
1694 2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
1696 * ldelfgen.c (add_link_order_input_section): Check for ELF input
1697 before accessing ELF section data.
1699 2021-01-13 Alan Modra <amodra@gmail.com>
1701 * Makefile.in: Regenerate.
1703 2021-01-13 Alan Modra <amodra@gmail.com>
1706 * ldlang.h (lang_output_section_statement_type): Add data field.
1707 (lang_input_section_type, lang_section_bst_type): Add pattern field.
1708 (statement_list): Declare.
1709 (lang_add_section): Adjust prototype.
1710 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
1711 * emultempl/armelf.em: Likewise.
1712 * emultempl/beos.em: Likewise.
1713 * emultempl/cskyelf.em: Likewise.
1714 * emultempl/hppaelf.em: Likewise.
1715 * emultempl/m68hc1xelf.em: Likewise.
1716 * emultempl/metagelf.em: Likewise.
1717 * emultempl/mipself.em: Likewise.
1718 * emultempl/mmo.em: Likewise.
1719 * emultempl/msp430.em: Likewise.
1720 * emultempl/nios2elf.em: Likewise.
1721 * emultempl/pe.em: Likewise.
1722 * emultempl/pep.em: Likewise.
1723 * emultempl/ppc64elf.em: Likewise.
1724 * emultempl/spuelf.em: Likewise.
1725 * emultempl/vms.em: Likewise.
1726 * ldelf.c: Likewise.
1727 * ldelfgen.c: Include ldctor.h.
1728 (struct os_sections): New.
1729 (add_link_order_input_section, link_order_scan): New functions.
1730 (compare_link_order, fixup_link_order): New functions.
1731 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
1732 * ldlang.c (statement_list): Make global.
1733 (output_section_callback_fast): Save pattern in tree node.
1734 (lang_add_section): Add pattern parameter, save in lang_input_section.
1735 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
1736 (lang_insert_orphan, output_section_callback): Likewise.
1737 (ldlang_place_orphan): Likewise.
1738 (gc_section_callback): Don't set section->pattern.
1739 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
1740 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1741 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
1743 2021-01-13 Alan Modra <amodra@gmail.com>
1745 * ldlang.h (callback_t): Remove flag_info function parameter.
1746 * ldlang.c (walk_wild_consider_section): Adjust to suit.
1747 (walk_wild_section_general): Likewise.
1748 (output_section_callback_fast, output_section_callback): Likewise.
1749 (check_section_callback, gc_section_callback): Likewise.
1750 (find_relro_section_callback): Likewise.
1752 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1755 * configure.ac: Use GNU_MAKE_JOBSERVER.
1756 * aclocal.m4: Regenerated.
1757 * configure: Likewise.
1759 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1762 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
1763 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1764 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1765 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
1767 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1770 * configure: Regenerated.
1772 2021-01-11 Matt Jenkins <matt@majenko.co.uk>
1775 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
1776 and mips64r5 to list of known mips targets.
1778 2021-01-11 Nick Clifton <nickc@redhat.com>matt@majenko.co.uk
1780 * po/pt_BR.po: Updated Brazilian Portuguese translation.
1781 ` * po/uk.po: Updated Ukranian translation.
1783 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1785 * configure: Regenerated.
1787 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1790 * testsuite/ld-x86-64/lam-u48.rd: New file.
1791 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
1792 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
1794 2021-01-09 Nick Clifton <nickc@redhat.com>
1796 * configure: Regenerate.
1797 * po/ld.pot: Regenerate.
1799 2021-01-09 Nick Clifton <nickc@redhat.com>
1801 * 2.36 release branch crated.
1803 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
1805 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
1806 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
1808 2021-01-09 Alan Modra <amodra@gmail.com>
1810 * configure: Regenerate.
1811 * Makefile.in: Regenerate.
1813 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1815 * configure: Regenerate.
1817 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1820 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
1821 * testsuite/ld-elf/loadaddr3b.d: Likewise.
1822 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1823 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1824 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1825 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1826 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1827 * testsuite/ld-i386/pr19636-1d.d: Likewise.
1828 * testsuite/ld-i386/pr19636-1l.d: Likewise.
1829 * testsuite/ld-i386/pr19636-2c.d: Likewise.
1830 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1831 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1832 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1833 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1834 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1835 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1836 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1837 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1838 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1839 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1840 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1841 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1842 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1843 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1844 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1845 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1846 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1847 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1848 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1849 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1850 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1851 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1852 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1853 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1854 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1855 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1856 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
1857 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
1858 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
1859 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
1860 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
1861 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
1862 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1863 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
1864 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1865 * testsuite/ld-x86-64/pr21038b.d: Likewise.
1866 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1867 * testsuite/ld-x86-64/pr21038c.d: Likewise.
1868 * testsuite/ld-x86-64/pr23854.d: Likewise.
1869 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1870 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1871 * testsuite/ld-i386/plt-pic.pd: Likewise.
1872 * testsuite/ld-i386/plt-pic2.dd: Likewise.
1873 * testsuite/ld-i386/plt.pd: Likewise.
1874 * testsuite/ld-i386/plt2.dd: Likewise.
1875 * testsuite/ld-i386/tlsbin.rd: Likewise.
1876 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1877 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1878 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1879 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
1880 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1881 * testsuite/ld-i386/tlspic.rd: Likewise.
1882 * testsuite/ld-i386/tlspic2.rd: Likewise.
1883 * testsuite/ld-x86-64/mpx3.dd: Likewise.
1884 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
1885 * testsuite/ld-x86-64/mpx4.dd: Likewise.
1886 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
1887 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
1888 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1889 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1890 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1891 * testsuite/ld-x86-64/plt.pd: Likewise.
1892 * testsuite/ld-x86-64/plt2.dd: Likewise.
1893 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1894 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1895 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1896 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1897 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
1898 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1899 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1900 * testsuite/ld-elf/sec64k.exp: Check
1901 is_elf_unused_section_symbols.
1903 2021-01-07 Alan Modra <amodra@gmail.com>
1905 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
1906 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
1907 * testsuite/ld-scripts/segment-start.d: Likewise.
1909 2021-01-07 Alan Modra <amodra@gmail.com>
1911 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
1912 about dynamic relocations in read-only sections.
1913 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1914 * testsuite/ld-elf/ehdr_start.d: Likewise.
1915 * testsuite/ld-scripts/pr22267.d: Likewise.
1916 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
1918 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
1920 2021-01-07 Marcus Comstedt <marcus@mc.pp.se>
1922 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
1923 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
1925 2021-01-07 Alan Modra <amodra@gmail.com>
1927 * po/BLD-POTFILES.in: Regenerate.
1929 2021-01-07 Alan Modra <amodra@gmail.com>
1931 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
1932 complain about relocs in read-only sections. Tidy ASFLAGS append.
1934 2021-01-06 Alan Modra <amodra@gmail.com>
1936 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
1937 base for some tests.
1938 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
1939 * testsuite/ld-sparc/gotop32.sd: Likewise.
1940 * testsuite/ld-sparc/gotop32.td: Likewise.
1941 * testsuite/ld-sparc/gotop64.dd: Likewise.
1942 * testsuite/ld-sparc/gotop64.sd: Likewise.
1943 * testsuite/ld-sparc/gotop64.td: Likewise.
1944 * testsuite/ld-sparc/tlsg32.sd: Likewise.
1945 * testsuite/ld-sparc/tlsg64.sd: Likewise.
1946 * testsuite/ld-sparc/tlspie32.dd: Likewise.
1947 * testsuite/ld-sparc/tlspie64.dd: Likewise.
1948 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
1949 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
1950 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
1951 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
1952 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
1953 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
1954 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
1955 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
1956 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
1957 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
1958 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
1959 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
1960 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
1961 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
1962 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
1963 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
1964 * testsuite/ld-sparc/wdispcall.dd: Likewise.
1966 2021-01-06 Alan Modra <amodra@gmail.com>
1968 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
1969 * testsuite/ld-scripts/rgn-at11.d: Likewise.
1971 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1973 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
1974 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
1975 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
1976 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
1977 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1978 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1979 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1980 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
1981 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
1982 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
1983 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
1984 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
1985 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
1986 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
1988 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
1990 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1992 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
1993 riscv32be*-*-linux*, and riscv64be*-*-linux*.
1994 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
1995 eelf32briscv_ilp32.c.
1996 * Makefile.in: Regenerate.
1997 * emulparams/elf32briscv.sh: Added.
1998 * emulparams/elf32briscv_ilp32.sh: Likewise.
1999 * emulparams/elf32briscv_ilp32f.sh: Likewise.
2000 * emulparams/elf64briscv.sh: Likewise.
2001 * emulparams/elf64briscv_lp64.sh: Likewise.
2002 * emulparams/elf64briscv_lp64f.sh: Likewise.
2004 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
2006 * testsuite/ld-ctf/enum-forward.c: New test.
2007 * testsuite/ld-ctf/enum-forward.c: New results.
2009 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
2011 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2012 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
2013 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
2014 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
2015 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
2016 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
2017 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
2018 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
2019 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
2020 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
2021 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
2022 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
2023 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2024 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
2025 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
2026 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
2027 * testsuite/ld-ctf/cycle-1.d: Likewise.
2028 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
2029 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
2030 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
2031 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2032 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2033 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2034 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2035 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
2036 * testsuite/ld-ctf/forward.d: Likewise.
2037 * testsuite/ld-ctf/function.d: Likewise.
2038 * testsuite/ld-ctf/slice.d: Likewise.
2039 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
2040 * testsuite/ld-ctf/enums.c: New test.
2041 * testsuite/ld-ctf/enums.d: New test.
2043 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
2045 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
2047 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2048 * testsuite/ld-ctf/forward.c: New test...
2049 * testsuite/ld-ctf/forward.d: ... and results.
2051 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
2053 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2054 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2055 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2056 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2057 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2058 * testsuite/ld-ctf/function.d: Likewise.
2059 * testsuite/ld-ctf/slice.d: Likewise.
2061 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
2063 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2064 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
2065 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
2066 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
2067 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
2068 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
2069 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
2070 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
2071 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
2072 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
2073 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
2074 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
2075 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2076 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
2077 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
2078 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
2079 * testsuite/ld-ctf/cycle-1.d: Likewise.
2080 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
2081 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
2082 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
2083 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2084 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2085 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2086 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2087 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
2088 * testsuite/ld-ctf/function.d: Likewise.
2089 * testsuite/ld-ctf/slice.d: Likewise.
2090 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
2092 2021-01-05 Alan Modra <amodra@gmail.com>
2094 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
2096 2021-01-05 Alan Modra <amodra@gmail.com>
2099 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
2100 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
2102 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
2105 * ldlang.c (gc_section_callback): Set pattern.
2106 * testsuite/ld-elf/pr26256-1.s: New file.
2107 * testsuite/ld-elf/pr26256-1.t: Likewise.
2108 * testsuite/ld-elf/pr26256-1a.d: Likewise.
2109 * testsuite/ld-elf/pr26256-1b.d: Likewise.
2110 * testsuite/ld-elf/pr26256-2.s: Likewise.
2111 * testsuite/ld-elf/pr26256-2.t: Likewise.
2112 * testsuite/ld-elf/pr26256-2a.d: Likewise.
2113 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
2114 * testsuite/ld-elf/pr26256-2b.d: Likewise.
2115 * testsuite/ld-elf/pr26256-3.s: Likewise.
2116 * testsuite/ld-elf/pr26256-3a.d: Likewise.
2117 * testsuite/ld-elf/pr26256-3a.t: Likewise.
2118 * testsuite/ld-elf/pr26256-3b.d: Likewise.
2119 * testsuite/ld-elf/pr26256-3b.t: Likewise.
2121 2021-01-04 Alan Modra <amodra@gmail.com>
2124 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
2125 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
2126 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
2127 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
2128 * testsuite/ld-i386/tlsbin.rd: Likewise.
2129 * testsuite/ld-i386/tlsbin2.rd: Likewise.
2130 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
2131 * testsuite/ld-i386/tlsdesc.rd: Likewise.
2132 * testsuite/ld-i386/tlsnopic.rd: Likewise.
2133 * testsuite/ld-i386/tlspic.rd: Likewise.
2134 * testsuite/ld-i386/tlspic2.rd: Likewise.
2135 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
2136 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
2137 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
2138 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
2139 * testsuite/ld-plugin/pr17973.d: Likewise.
2140 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
2141 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
2142 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
2143 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
2144 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
2145 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
2146 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
2147 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
2148 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
2149 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
2150 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
2151 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
2152 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
2153 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
2154 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
2155 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
2156 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
2157 * testsuite/ld-x86-64/tlspic.rd: Likewise.
2158 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
2159 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
2160 * testsuite/ld-xtensa/tlspic.rd: Likewise.
2162 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
2164 * configure.tgt: Correct comment grammar.
2165 * emultempl/m68hc1xelf.em: Likewise.
2166 * ld.texi: Correct grammar.
2168 2021-01-01 Alan Modra <amodra@gmail.com>
2170 Update year range in copyright notice of all files.
2172 For older changes see ChangeLog-2020
2174 Copyright (C) 2021-2023 Free Software Foundation, Inc.
2176 Copying and distribution of this file, with or without modification,
2177 are permitted in any medium without royalty provided the copyright
2178 notice and this notice are preserved.
2184 version-control: never