1 2023-05-17 Luca Bacci <luca.bacci@outlook.com>
4 * emultempl/pe.em (set_decoration): New function.
5 (pe_fixup_stdcalls): Call the new function.
6 * emultempl/pep.em (set_decoration): New function.
7 (pep_fixup_stdcalls): Call the new function.
8 * pe-dll.c (make_one): Check for decoated symbols.
10 2023-05-16 Nick Clifton <nickc@redhat.com>
13 * ld.texi (WIN32): Document how to create a resource only DLL.
15 2023-05-16 Nick Clifton <nickc@redhat.com>
17 * ld.texi (-Ur): Clarify the actions of this option.
19 2023-05-10 Nick Clifton <nickc@redhat.com>
22 * ldlang.c (ld_is_local_symbol): New function.
23 (print_input_section): Add code to display local symbols in the
25 * ldlex.h (enum option_values): Add OPTION_PRINT_MAP_LOCALS and
26 OPTION_PRINT_MAP_LOCALS.
27 * lexsup.c (ld_options[]): Add entries for --print-map-locals
28 and --no-print-map-locals.
29 * NEWS: Mention the new feature.
30 * ld.h (struct ld_config_type): Add print_map_locals field.
31 * ld.texi: Document the new command line option.
32 * testsuite/ld-scripts/sizeof.s: Add a local symbol.
33 * testsuite/ld-scripts/map-locals.d: New test control file.
34 * testsuite/ld-scripts/map-address.exp: Run the new test.
36 2023-05-04 Nick Clifton <nickc@redhat.com>
39 * emultempl/pep.em (set_entry_point): Add an undefined reference
40 to the entry point if it has been constructed heuristically.
41 * emultempl/pe.em (set_entry_point): Likewise.
43 2023-05-04 Dimitar Dimitrov <dimitar@dinux.eu>
45 * scripttempl/pru.sc (OUTPUT_SECTION_ALIGN): New helper variable
46 to place at end of DMEM output sections.
47 (.data): Use the helper variable.
48 (.eh_frame): New output section.
50 (.gcc_except_table): Ditto.
51 (.resource_table): Use the helper variable.
53 2023-04-27 Nick Clifton <nickc@redhat.com>
55 * ldmisc.c (vfinfo): Add support for %x and %lx.
57 2023-04-18 mengqinggang <mengqinggang@loongson.cn>
59 * testsuite/ld-loongarch-elf/macro_op.d: Regenerated.
61 2023-04-17 Nick Clifton <nickc@redhat.com>
64 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): Define in order to
65 handle the .gnu.sgstubs section.
67 2023-04-13 Claudiu Zissulescu <claziss@synopsys.com>
69 * testsuite/ld-arc/arc.exp: Update execution predicate.
70 * testsuite/ld-arc/nps-1a.d: Add linker script option.
71 * testsuite/ld-arc/nps-1b.d: Likewise.
72 * testsuite/ld-arc/relax-local-pic.d: Update matching patterns.
74 2023-04-12 Nick Clifton <nickc@redhat.com>
76 * ld.texi (--enable-non-contiguous-regions): Fix typos in script
79 2023-03-15 Nick Clifton <nickc@redhat.com>
82 * NEWS: Mention the new feature.
83 * ld.texi: Document the new feature.
84 * ldgram.y: Handle LINKER_VERSION token.
85 * ldlang.c (lang_add_version): New function.
86 (enable_linker_version): New global variable.
87 * ldlang.h (land_add_version): Prototype.
88 (enable_linker_version): Export.
89 * ldlex.h (OPTION_ENABLE_LINKER_VERSION): Define.
90 (OPTION_DISABLE_LINKER_VERSION): Define.
91 * ldlex.l (LINKER_VERSION): Add token.
92 * lexsup.c (ld_options): Add --enable-linker-version and
93 --disable-linker-version.
94 (parse_args): Handle the new options.
95 * scripttempl/arclinux.sc: Remove stabs and comment sections and
96 replace with inclusion of misc-sections.sc
97 * scripttempl/avr.sc: Likewise.
98 * scripttempl/dlx.sc: Likewise.
99 * scripttempl/elf.sc: Likewise.
100 * scripttempl/elf32cr16.sc: Likewise.
101 * scripttempl/elf32crx.sc: Likewise.
102 * scripttempl/elf32msp430.sc: Likewise.
103 * scripttempl/elf64bpf.sc: Likewise.
104 * scripttempl/elf64hppa.sc: Likewise.
105 * scripttempl/elf_chaos.sc: Likewise.
106 * scripttempl/elfarc.sc: Likewise.
107 * scripttempl/elfarcv2.sc: Likewise.
108 * scripttempl/elfd10v.sc: Likewise.
109 * scripttempl/elfd30v.sc: Likewise.
110 * scripttempl/elfm68hc11.sc: Likewise.
111 * scripttempl/elfm68hc12.sc: Likewise.
112 * scripttempl/elfm9s12z.sc: Likewise.
113 * scripttempl/elfmicroblaze.sc: Likewise.
114 * scripttempl/elfxgate.sc: Likewise.
115 * scripttempl/elfxtensa.sc: Likewise.
116 * scripttempl/epiphany_4x4.sc: Likewise.
117 * scripttempl/ft32.sc: Likewise.
118 * scripttempl/ip2k.sc: Likewise.
119 * scripttempl/iq2000.sc: Likewise.
120 * scripttempl/mep.sc: Likewise.
121 * scripttempl/nds32elf.sc: Likewise.
122 * scripttempl/pru.sc: Likewise.
123 * scripttempl/v850.sc: Likewise.
124 * scripttempl/v850_rh850.sc: Likewise.
125 * scripttempl/visium.sc: Likewise.
126 * scripttempl/xstormy16.sc: Likewise.
127 * scripttempl/z80.sc: Likewise.
128 * testsuite/ld-scripts/script.exp: Run new tests.
129 * scripttempl/misc-sections.sc: New file.
130 * testsuite/ld-scripts/ld-version-2.d: New file.
131 * testsuite/ld-scripts/ld-version.d: New file.
132 * testsuite/ld-scripts/ld-version.t: New file.
134 2023-02-23 Fangrui Song <i@maskray.me>
136 * emultempl/riscvelf.em: Add option parsing.
137 * testsuite/ld-riscv-elf/code-model-relax-medlow-01-norelaxgp.d: New.
138 * testsuite/ld-riscv-elf/pcgp-relax-01-norelaxgp.d: New.
139 * testsuite/ld-riscv-elf/pcgp-relax-02.d: Test --relax --relax-gp can be
142 2023-02-20 Nick Clifton <nickc@redhat.com>
145 * pe-dll.c (pe_dll_build_sections): Do not build an edata section
146 if all symbols are being excluded.
148 2023-02-15 Nick Clifton <nickc@redhat.com>
151 * testsuite/ld-elf/merge4b.s: Use .asciz instead of .string in
152 order to avoid the special behaviour of the .string directive on
155 2023-02-14 Nick Clifton <nickc@redhat.com>
157 * ld.texi (Plugins): Mention that the -plugin command line option
158 is used to load plugins.
160 2023-01-27 Nick Clifton <nickc@redhat.com>
163 * pe-dll.c (build_filler_bfd): Initialise the next field of the
164 filler input statement, so that it does not break the file chain.
166 2023-01-24 Nick Clifton <nickc@redhat.com>
169 * pe-dll.c (generate_reloc): Handle sections with no assigned
170 output section. Terminate early of there are no relocs to put in
172 (pe_exe_fill_sections): Do not emit an empty .reloc section.
174 2023-01-06 Nick Clifton <nickc@redhat.com>
176 * po/bg.po: Updated Bulgarian translation.
178 2023-01-05 Nick Clifton <nickc@redhat.com>
180 * configure.tgt: Add arm64pe as an extra emulation for aarch64pe.
181 * Makefile.am (ALL_64_EMULATION_SOURCES): Add earm64pe.c
182 * emultempl/pep.em: Add suppport for arm64pe emulation.
183 * Makefile.in: Regenerate.
184 * po/BLD-POTFILES.in: Regenerate.
185 * po/ld.pot: Regenerate.
187 2023-01-05 Andreas K. Huettel <dilfridge@gentoo.org>
189 * testsuite/ld-elf/shared.exp: un-xfail the PR19710 test for the
190 AArch64 architecture.
192 2023-01-04 Andreas K. Huettel <dilfridge@gentoo.org>
195 * testsuite/ld-aarch64/bti-plt-5.d: Relax regxps slightly to allow
196 for differences in build environments.
197 * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: Likewise.
199 2023-01-03 Nick Clifton <nickc@redhat.com>
201 * po/uk.po: Updated Ukrainian translation.
203 2022-12-31 Nick Clifton <nickc@redhat.com>
205 * 2.40 branch created.
207 2022-12-21 Nick Clifton <nickc@redhat.com>
210 * scripttempl/pe.sc: Keep the .drectve section when performing a
212 * scripttempl/pep.sc: Likewise.
214 2022-12-08 Nick Clifton <nickc@redhat.com>
217 * ld.texi (Output Section Type): Note that setting the output
218 section type only works if the section contains untyped data.
220 2022-12-05 Nick Clifton <nickc@redhat.com>
223 * ldlang.c (spec_match): Check that there is sufficient length in
224 the target name to match the spec's prefix.
226 2022-11-03 Nick Clifton <nickc@redhat.com>
229 * configure.tgt (ac_default_ld_warn_rwx_segments): Set to 0 for
232 2022-11-03 Nick Clifton <nickc@redhat.com>
235 * scripttempl/avr.sc (__DATA_REGION_ORIGIN__): Define. If a value
236 has not been provided on the command line then use DATA_ORIGIN.
237 (MEMORY): Use __DATA_REGION_ORIGIN__ as the start of the data region.
239 2022-10-21 Nick Clifton <nickc@redhat.com>
242 * ld.h (struct ld_config_type): Add no_warnings field.
243 * ldlex.h (enum option_values): Add OPTION_NO_WARNINGS.
244 * lexsup.c (ld_options): Add --no-warnings.
245 (parse_args): Add support for -w and --no-warnings.
246 * ldmisc.c (vfinfo): Return early if the message is a warning and
248 * ld.texi (options): Document new command line option.
249 * NEWS: Mention the new feature.
251 2022-08-30 Nick Clifton <nickc@redhat.com>
254 * testsuite/ld-x86-64/pr27587.err: Update expected output.
256 2022-08-18 Ralf Habacker <ralf.habacker@freenet.de>
259 * testsuite/ld-pe/pe-run2-def.exp: New file.
261 2022-08-03 Alan Modra <amodra@gmail.com>
264 * ldlang.h (lang_input_statement_struct): Add sort_key field.
265 * emultempl/pe.em (after_open): If multiple import libraries refer
266 to the same bfd, store their names in the sort_key field.
267 * emultempl/pep.em (after_open): Likewise.
268 * ldlang.c (sort_filename): New function. Returns the filename to
269 be used when sorting input files.
270 (wild_sort): Use the sort_filename function.
272 2022-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
275 * configure.tgt (ac_default_ld_warn_rwx_segments): Extend to all
276 sparc targets. Expand comment.
278 2022-07-26 Nick Clifton <nickc@redhat.com>
281 * configure.tgt (ac_default_ld_warn_rwx_segments): Disable for
282 sparc-solaris configurations.
284 2022-07-08 Nick Clifton <nickc@redhat.com>
286 * 2.39 branch created.
288 2022-06-27 Nick Clifton <nickc@redhat.com>
291 * configure.ac: Move HPPA specific code from here...
292 * configure.tgt: ... to here. Add similar code for MIPS.
293 Move code for CRIS, MIPS and HPPA to block at start of file.
294 * configure: Regenerate.
296 2022-06-21 Nick Clifton <nickc@redhat.com>
299 * configure.ac (ac_default_ld_warn_execstack): Default to 'no' for
301 (ac_default_ld_warn_rwx_segments): Likewise.
302 * configure: Regenerate.
303 * testsuite/ld-elf/elf.exp: Add the --warn-execstack command line
304 option to the command line when running execstack tests for the
307 2022-05-12 Alan Modra <amodra@gmail.com>
310 * pe-dll.c (dll_name): Delete, replacing with..
311 (dll_filename): ..this, moved earlier in file.
312 (generate_edata): Delete parameters. Don't set up dll_name here..
313 (pe_process_import_defs): ..instead set up dll_filename and
314 dll_symname here before returning.
315 (dll_symname_len): Delete write-only variable.
316 (pe_dll_generate_implib): Don't set up dll_symname here.
318 2022-05-03 Nick Clifton <nickc@redhat.com>
321 * libdep_plugin.c (get_libdeps): Check for overflow when computing
322 amount of memory to allocate.
324 2022-04-27 Nick Clifton <nickc@redhat.com>
327 * pe-dll.c (make_head): Use asprintf to allocate and populate a
328 buffer containing the temporary name.
329 (make_tail, make_one, make_singleton_name_thunk): Likewise.
330 (make_import_fixup_mark, make_import_fixup_entry): Likewise.
331 (make_runtime_pseudo_reloc): Likewise.
332 (pe_create_runtime_relocator_reference): Likewise.
334 2022-04-25 Nick Clifton <nickc@redhat.com>
337 * testsuite/ld-elf/pr29072.b.warn: Update to include the note
338 about the linker's behaviour being depreccated.
340 2022-04-20 Clément Chigot <clement.chigot@atos.net>
342 * emultempl/aix.em (params): New variable.
343 (stub_file): New variable.
344 (xcoff_add_stub_section): New function.
345 (xcoff_layout_sections_again): New function
346 (hook_in_stub): New function.
347 (_after_allocation): Add stub creation.
348 (_create_output_section_statements): Allocate stub file and
349 pass params to backend.
351 2022-04-20 Clément Chigot <clement.chigot@atos.net>
353 * emultempl/aix.em (_after_allocation): New function.
355 2022-04-07 Mark Harmstone <mark@harmstone.com>
357 * testsuite/ld-pe/secidx1.s: New test source file.
358 * testsuite/ld-pe/secidx2.s: New test source file.
359 * testsuite/ld-pe/secidx.d: New test driver file.
360 * testsuite/ld-pe/secidx_64.d: New test driver file.
361 * testsuite/ld-pe/pe.exp: Add new tests.
363 2022-03-01 Nick Clifton <nickc@redhat.com>
366 * testsuite/ld-elf/pr21964-1a.c: Fix array comparisons.
367 * testsuite/ld-elf/pr21964-1b.c: Likewise.
368 * testsuite/ld-elf/pr21964-1c.c: Likewise.
369 * testsuite/ld-elf/pr21964-2a.c: Likewise.
370 * testsuite/ld-elf/pr21964-2b.c: Likewise.
371 * testsuite/ld-elf/pr21964-3a.c: Likewise.
373 2022-02-17 Roland McGrath <mcgrathr@google.com>
375 * ld.texi (Output Section Type): Fix typo in @code syntax.
377 2022-02-17 Nick Clifton <nickc@redhat.com>
379 * po/sr.po: Updated Serbian translation.
381 2022-02-16 Fangrui Song <maskray@google.com>
382 Nick Clifton <nickc@redhat.com>
385 * ld.texi: Document new output section type.
386 * ldlex.l: Add new token TYPE.
387 * ldgram.y: Handle TYPE=exp and READONLY (TYPE=exp).
388 * ldlang.h: Add type_section to list of section types.
389 * ldlang.c (lang_add_section): Handle type_section.
390 (map_input_to_output_sections): Handle type_section.
391 * testsuite/ld-scripts/output-section-types.t: Add tests.
392 * testsuite/ld-scripts/output-section-types.d: Update.
394 2022-02-02 Nick Clifton <nickc@redhat.com>
396 * po/fr.po: Updated French translation.
398 2022-01-24 Nick Clifton <nickc@redhat.com>
400 * po/bg.po: Updated Bulgarian translation.
401 * po/uk.po: Updated Ukranian translation.
403 2022-01-22 Alexander von Gluck IV <kallisti5@unixzen.com>
405 * configure.tgt (arm-haiku): Fix typo.
406 * emulparams/armelf_haiku.su (MAXPAGESIZE): Use the default value.
407 (COMMONPAGESIZE): Likewise.
409 2022-01-22 Nick Clifton <nickc@redhat.com>
411 * configure: Regenerate.
412 * po/ld.pot: Regenerate.
414 2022-01-22 Nick Clifton <nickc@redhat.com>
416 * 2.38 release branch created.
418 2022-01-21 Nick Clifton <nickc@redhat.com>
420 * po/sr.po: Updated Serbian translation.
422 2022-01-17 Nick Clifton <nickc@redhat.com>
424 * Makefile.in: Regenerate.
425 * po/ld.pot: Regenerate.
427 2022-01-11 Martin Storsjö <martin@martin.st>
429 * pe-dll.c (make_head): Prefix the symbol name with the dll name.
430 (make_tail, make_one, make_singleton_name_thunk): Likewise.
431 (make_import_fixup_entry, make_runtime_pseudo_reloc): Likewise.
432 (pe_create_runtime_relocator_reference): Likewise.
433 (pe_dll_generate_implib): Set dll_symname_len.
434 (pe_process_import_defs): Likewise.
436 2021-12-16 Nick Clifton <nickc@redhat.com>
439 * testsuite/ld-avr/avr-prop-7.d: Adjust expected output.
440 * testsuite/ld-avr/avr-prop-8.d: Likewise.
441 * testsuite/ld-avr/pr13402.d: Likewise.
443 2021-11-30 Nick Clifton <nickc@redhat.com>
445 * scripttempl/pru.sc (.pru_irq_map): Define output section.
446 * testsuite/ld-pru/pru_irq_map-1.d: New test.
447 * testsuite/ld-pru/pru_irq_map-2.d: New test.
448 * testsuite/ld-pru/pru_irq_map.s: New test.
450 2021-11-17 Jeremy Drake <cygwin@jdrake.com>
452 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Set to 0 for
454 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Likewise.
456 2021-11-17 Nick Clifton <nickc@redhat.com>
459 * ldgram.y: Add support for PT_GNU_RELRO and PT_GNU_PROPERTY.
460 * ldgram.c: Regenerate.
462 2021-11-15 Roland McGrath <mcgrathr@google.com>
464 * testsuite/ld-aarch64/dt_textrel.d: Pass explicit -z notext in
465 case ld was configured with --enable-textrel-check=error.
466 * testsuite/ld-aarch64/pr22764.d: Likewise.
467 * testsuite/ld-aarch64/pr20402.d: Likewise.
469 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
471 * testsuite/ld-ctf/nonrepresentable-member.*: New test.
473 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
475 * testsuite/ld-ctf/array.d: Change --ctf=.ctf to --ctf.
476 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
477 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
478 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
479 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
480 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
481 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
482 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
483 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
484 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
485 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
486 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
487 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
488 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
489 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
490 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
491 * testsuite/ld-ctf/cycle-1.d: Likewise.
492 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
493 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
494 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
495 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
496 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
497 * testsuite/ld-ctf/diag-cuname.d: Likewise.
498 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
499 * testsuite/ld-ctf/enum-forward.d: Likewise.
500 * testsuite/ld-ctf/enums.d: Likewise.
501 * testsuite/ld-ctf/forward.d: Likewise.
502 * testsuite/ld-ctf/function.d: Likewise.
503 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
504 * testsuite/ld-ctf/slice.d: Likewise.
505 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
507 2021-09-30 Dimitar Dimitrov <dimitar@dinux.eu>
509 * scripttempl/pru.sc (.resource_table): Align the output
510 section, not the first symbol.
512 2021-09-27 Nick Alcock <nick.alcock@oracle.com>
514 * configure: Regenerate.
516 2021-09-21 Nick Clifton <nickc@redhat.com>
518 * ldlang.c (lang_end): When computing the entry point, only
519 try the start address of the entry section when creating an
521 * ld.texi (Entry point): Update description of heuristic used to
522 choose the entry point.
523 testsuite/ld-alpha/tlspic.rd: Update expected entry point address.
524 testsuite/ld-arm/tls-gdesc-got.d: Likewise.
525 testsuite/ld-i386/tlsnopic.rd: Likewise.
526 testsuite/ld-ia64/tlspic.rd: Likewise.
527 testsuite/ld-sparc/gotop32.rd: Likewise.
528 testsuite/ld-sparc/gotop64.rd: Likewise.
529 testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
530 testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
531 testsuite/ld-sparc/tlssunpic32.rd: Likewise.
532 testsuite/ld-sparc/tlssunpic64.rd: Likewise.
533 testsuite/ld-tic6x/shlib-1.rd: Likewise.
534 testsuite/ld-tic6x/shlib-1b.rd: Likewise.
535 testsuite/ld-tic6x/shlib-1r.rd: Likewise.
536 testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
537 testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
538 testsuite/ld-x86-64/pr14207.d: Likewise.
539 testsuite/ld-x86-64/tlsdesc.rd: Likewise.
540 testsuite/ld-x86-64/tlspic.rd: Likewise.
541 testsuite/ld-x86-64/tlspic2.rd: Likewise.
543 2021-09-15 Claudiu Zissulescu <claziss@synopsys.com>
545 * testsuite/ld-arc/got-weak.d: Update file.
547 2021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
549 * ld-arc/got-weak.d: New file.
550 * ld-arc/got-weak.s: Likewise.
552 2021-07-26 Roland McGrath <mcgrathr@google.com>
554 * testsuite/ld-x86-64/x86-64.exp (Build textrel-1): Use --warn-textrel.
556 2021-07-06 Michael Matz <matz@suse.de>
559 * testsuite/ld-riscv-elf/relax-twice.ver: New.
560 * testsuite/ld-riscv-elf/relax-twice-1.s: New.
561 * testsuite/ld-riscv-elf/relax-twice-2.s: New.
562 * testsuite/ld-riscv-elf/ld-riscv-elf.exp
563 (run_relax_twice_test): New, and call it.
565 2021-07-03 Nick Clifton <nickc@redhat.com>
567 * configure: Regenerate.
568 * po/ld.pot: Regenerate.
570 2021-07-03 Nick Clifton <nickc@redhat.com>
572 * 2.37 release branch created.
574 2021-06-22 Nelson Chu <nelson.chu@sifive.com>
576 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
577 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.d: New testcase.
578 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.s: Likewise.
579 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.d: New testcase.
580 Should report error since the %pcrel_lo with addend refers to
582 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.s: Likewise.
583 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.d: New testcase.
584 Should report error since the %got_pcrel_hi with addend.
585 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.s: Likewise.
586 * testsuite/ld-riscv-elf/pcrel-lo-addend-3.ld: Likewise.
588 2021-06-19 H.J. Lu <hongjiu.lu@intel.com>
591 * testsuite/ld-i386/i386.exp: Run PR ld/27998 tests.
592 * testsuite/ld-i386/pr27998a.d: New file.
593 * testsuite/ld-i386/pr27998a.s: Likewise.
594 * testsuite/ld-i386/pr27998b.d: Likewise.
595 * testsuite/ld-i386/pr27998b.s: Likewise.
597 2021-06-19 H.J. Lu <hongjiu.lu@intel.com>
599 * testsuite/ld-x86-64/textrel-1.err: New file.
600 * testsuite/ld-x86-64/textrel-1a.s: Likewise.
601 * testsuite/ld-x86-64/textrel-1b.s: Likewise.
602 * testsuite/ld-x86-64/x86-64.exp: Run textrel-1 tests.
604 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
606 * testsuite/ld-elf/property-and-1.d: Skip am33_2.0, hppa-hpux
608 Pass --generate-missing-build-notes=no to assembler. Allow
609 other note sections for xtensa.
610 * testsuite/ld-elf/property-and-2.d: Likewise.
611 * testsuite/ld-elf/property-and-3.d: Likewise.
612 * testsuite/ld-elf/property-and-4.d: Likewise.
613 * testsuite/ld-elf/property-or-1.d: Likewise.
614 * testsuite/ld-elf/property-or-2.d: Likewise.
615 * testsuite/ld-elf/property-or-3.d: Likewise.
616 * testsuite/ld-elf/property-or-4.d: Likewise.
618 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
620 * ld.texi: Move -z unique-symbol after -z undefs.
622 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
624 * testsuite/ld-elf/property-and-1.d: New file.
625 * testsuite/ld-elf/property-and-1.s: Likewise.
626 * testsuite/ld-elf/property-and-2.d: Likewise.
627 * testsuite/ld-elf/property-and-2.s: Likewise.
628 * testsuite/ld-elf/property-and-3.d: Likewise.
629 * testsuite/ld-elf/property-and-3.s: Likewise.
630 * testsuite/ld-elf/property-and-4.d: Likewise.
631 * testsuite/ld-elf/property-and-empty.s: Likewise.
632 * testsuite/ld-elf/property-or-1.d: Likewise.
633 * testsuite/ld-elf/property-or-1.s: Likewise.
634 * testsuite/ld-elf/property-or-2.d: Likewise.
635 * testsuite/ld-elf/property-or-2.s: Likewise.
636 * testsuite/ld-elf/property-or-3.d: Likewise.
637 * testsuite/ld-elf/property-or-3.s: Likewise.
638 * testsuite/ld-elf/property-or-4.d: Likewise.
639 * testsuite/ld-elf/property-or-empty.s: Likewise.
641 2021-06-17 H.J. Lu <hongjiu.lu@intel.com>
644 * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and
645 $NOPIE_CFLAGS to protected-func-1 without PIE.
647 2021-06-17 H.J. Lu <hongjiu.lu@intel.com>
650 * testsuite/ld-x86-64/x86-64.exp: Run protected function tests.
651 * testsuite/ld-x86-64/protected-func-1.h: New file.
652 * testsuite/ld-x86-64/protected-func-1a.s: Likewise.
653 * testsuite/ld-x86-64/protected-func-1b.c: Likewise.
655 2021-06-17 Fangrui Song <maskray@google.com>
657 * ldlex.h (enum option_values): Add OPTION_NO_PIE.
658 * lexsup.c (struct ld_options): Add -no-pie.
659 (parse_args): Handle -no-pie.
660 * ld.texi: Document -no-pie.
662 2021-06-15 Alan Modra <amodra@gmail.com>
664 * testsuite/ld-pie/vaddr-0.d: Update expected output.
666 2021-06-11 Alan Modra <amodra@gmail.com>
669 * ldelf.c (ldelf_after_open): Error on input PIEs too.
671 2021-06-09 Nick Clifton <nickc@redhat.com>
674 * testsuite/ld-sparc/sparc.exp: Do not run the sparctests or
675 sparc64tests for Solaris2 targets.
677 2021-06-03 Alan Modra <amodra@gmail.com>
680 * ld.texi (link-time runtime library search path): Mention
681 plugin library path. Correct order of search.
683 2021-05-31 Nelson Chu <nelson.chu@sifive.com>
684 Lifang Xia <lifang_xia@c-sky.com>
687 * emultempl/riscvelf.em (after_allocation): Call
688 riscv_set_data_segment_info to set data segment phase before relaxing.
689 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
690 * testsuite/ld-riscv-elf/relro-relax-lui.d: New testcase.
691 * testsuite/ld-riscv-elf/relro-relax-lui.s: Likewise.
692 * testsuite/ld-riscv-elf/relro-relax-pcrel.d: Likewise.
693 * testsuite/ld-riscv-elf/relro-relax-pcrel.s: Likewise.
695 2021-05-28 H.J. Lu <hongjiu.lu@intel.com>
698 * testsuite/ld-i386/pcrel16-2.d: xfail.
699 * testsuite/ld-x86-64/pcrel16-2.d: Likewise.
701 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
704 * testsuite/ld-i386/code16.d: New file.
705 * testsuite/ld-i386/code16.t: Likewise.
706 * testsuite/ld-x86-64/code16.d: Likewise.
707 * testsuite/ld-x86-64/code16.t: Likewise.
708 * testsuite/ld-i386/i386.exp: Run code16.
709 * testsuite/ld-x86-64/x86-64.exp: Likewise.
711 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
713 * testsuite/ld-x86-64/ilp32-12.d: New file.
714 * testsuite/ld-x86-64/ilp32-12.s: Likewise.
715 * testsuite/ld-x86-64/x86-64.exp: Run ilp32-12.
717 2021-05-14 Nelson Chu <nelson.chu@sifive.com>
719 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
720 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d: Renamed from
722 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.s: Likewise.
723 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.d: New testcase.
724 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.s: Likewise.
726 2021-05-13 Fangrui Song <maskray@google.com>
729 * ldlex.h (enum option_values): Add OPTION_NO_SYMBOLIC.
730 * lexsup.c (ld_options): Add -Bno-symbolic.
731 (parse_args): Handle -Bno-symbolic.
732 * ld.texi: Document -Bno-symbolic.
733 * NEWS: Mention -Bno-symbolic.
734 * testsuite/ld-elf/shared.exp: Add a test.
736 2021-05-12 Richard Earnshaw <rearnsha@arm.com>
738 * testsuite/ld-arm/arm-elf.exp (farcall test for v8-m.mainline):
739 Correct expected output.
741 2021-05-11 Roland McGrath <mcgrathr@google.com>
743 * testsuite/ld-x86-64/rela.d: Fix regexp not to presume a specific
744 address layout, so it works for e.g. --target=x86-64-elf.
746 2021-05-11 Nick Clifton <nickc@redhat.com>
749 * Makefile.am (install-data-local): Also delete libdep.dll.a if it
751 * Makefile.in: Regenerate.
753 2021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
755 * testsuite/ld-elf/group8a.d: Remove pru from XFAIL list.
756 * testsuite/ld-elf/group8b.d: Ditto.
757 * testsuite/ld-elf/group9a.d: Ditto.
758 * testsuite/ld-elf/group9b.d: Ditto.
759 * testsuite/ld-elf/pr12851.d: Ditto.
760 * testsuite/ld-elf/pr22677.d: Ditto.
761 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove
764 2021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
766 * scripttempl/pru.sc (.resource_table): Add ALIGN directive.
767 Use symbols for memory sizes.
769 2021-05-08 Mike Frysinger <vapier@gentoo.org>
771 * Makefile.am (html-local, doc/ld/index.html): New targets.
772 * Makefile.in: Regenerate.
774 2021-05-08 Mike Frysinger <vapier@gentoo.org>
776 * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
777 * Makefile.in: Regenerate.
779 2021-05-07 Jan Beulich <jbeulich@suse.com>
781 * testsuite/ld-x86-64/rela.d: New.
782 * testsuite/ld-x86-64/x86-64.exp: Run new test.
784 2021-05-07 Nick Clifton <nickc@redhat.com>
786 * ldelfgen.c (compare_link_order): Ignore section size when
787 performing a relocateable link.
789 2021-05-07 Alan Modra <amodra@gmail.com>
791 * ldexp.c (update_definedness): Don't return false for absolute
793 * ldmain.c (multiple_definition): Print "warning: " in message
794 when not a hard error.
796 2021-05-07 Alan Modra <amodra@gmail.com>
798 * testsuite/ld-elf/pr27825-1.d: Correct xfail.
799 * testsuite/ld-elf/pr27825-2.d: Likewise.
801 2021-05-06 Stafford Horne <shorne@gmail.com>
804 testsuite/ld-or1k/or1k.exp (or1kplttests): Add tests for linking
805 along with gotha() relocations.
806 testsuite/ld-or1k/gotha1.dd: New file.
807 testsuite/ld-or1k/gotha1.s: New file.
808 testsuite/ld-or1k/gotha2.dd: New file.
809 testsuite/ld-or1k/gotha2.s: New file
810 testsuite/ld-or1k/pltlib.s (x): Define size to avoid link
813 2021-05-06 Nick Alcock <nick.alcock@oracle.com>
815 * testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt.
816 * testsuite/lib/ld-lib.exp: Likewise.
817 * testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types.
818 * testsuite/ld-ctf/nonrepresentable-2.c: Likewise.
819 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
820 * testsuite/ld-ctf/array.d: Larger type section.
821 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
822 * testsuite/ld-ctf/enums.d: Likewise.
823 * testsuite/ld-ctf/conflicting-enums.d: Don't compare types.
824 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order.
825 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
826 * testsuite/ld-ctf/slice.d: Adjust for improved slice emission.
828 2021-05-05 H.J. Lu <hongjiu.lu@intel.com>
831 * testsuite/ld-elf/pr27825-1.d: New file.
832 * testsuite/ld-elf/pr27825-1a.s: Likewise.
833 * testsuite/ld-elf/pr27825-1b.s: Likewise.
834 * testsuite/ld-elf/pr27825-2.d: Likewise.
835 * testsuite/ld-elf/pr27825-2a.s: Likewise.
836 * testsuite/ld-elf/pr27825-2b.s: Likewise.
838 2021-05-05 Alan Modra <amodra@gmail.com>
840 * testsuite/ld-powerpc/empty.s: New file.
841 * testsuite/ld-powerpc/undefweak.d,
842 * testsuite/ld-powerpc/undefweak.s: New testcase.
843 * testsuite/ld-powerpc/powerpc.exp: Run it.
845 2021-05-03 Alan Modra <amodra@gmail.com>
847 * testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
848 named section symbols.
850 2021-04-28 Nick Clifton <nickc@redhat.com>
852 * testsuite/ld-elf/anno-sym.s: New test source file.
853 * testsuite/ld-elf/anno-sym.d: New test driver.
854 * testsuite/ld-elf/anno-sym.l: New test error output.
856 2021-04-26 Jan Beulich <jbeulich@suse.com>
858 * testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d,
859 testsuite/ld-x86-64/pcrel16-2.d: New.
860 * testsuite/ld-i386/i386.exp: Run new test.
861 * testsuite/ld-x86-64/x86-64.exp: Likewise.
863 2021-04-23 H.J. Lu <hongjiu.lu@intel.com>
866 * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
867 to tmpdir/ldscripts only if it doesn't exist.
869 2021-04-22 Jan Beulich <jbeulich@suse.com>
872 * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
874 2021-04-21 Nick Clifton <nickc@redhat.com>
876 * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
877 to allow for named section symbols.
878 * testsuite/ld-aarch64/variant_pcs-r.d: Likewise.
879 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
880 * testsuite/ld-alpha/tlsbin.rd: Likewise.
881 * testsuite/ld-alpha/tlsbinr.rd: Likewise.
882 * testsuite/ld-alpha/tlspic.rd: Likewise.
883 * testsuite/ld-arm/rodata-merge-map.sym: Likewise.
884 * testsuite/ld-arm/script-type.sym: Likewise.
885 * testsuite/ld-cris/libdso-2.d: Likewise.
886 * testsuite/ld-cris/pr16044.d: Likewise.
887 * testsuite/ld-elf/sec64k.exp: Likewise.
888 * testsuite/ld-ia64/tlsbin.rd: Likewise.
889 * testsuite/ld-ia64/tlspic.rd: Likewise.
890 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
891 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
892 * testsuite/ld-mmix/bspec1.d: Likewise.
893 * testsuite/ld-mmix/bspec2.d: Likewise.
894 * testsuite/ld-mmix/local1.d: Likewise.
895 * testsuite/ld-mmix/local3.d: Likewise.
896 * testsuite/ld-mmix/local5.d: Likewise.
897 * testsuite/ld-mmix/local7.d: Likewise.
898 * testsuite/ld-mmix/undef-3.d: Likewise.
899 * testsuite/ld-powerpc/tlsso.r: Likewise.
900 * testsuite/ld-powerpc/tlsso32.r: Likewise.
901 * testsuite/ld-powerpc/tlstocso.r: Likewise.
902 * testsuite/ld-s390/tlsbin.rd: Likewise.
903 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
904 * testsuite/ld-s390/tlspic.rd: Likewise.
905 * testsuite/ld-s390/tlspic_64.rd: Likewise.
906 * testsuite/ld-sparc/gotop32.rd: Likewise.
907 * testsuite/ld-sparc/gotop64.rd: Likewise.
908 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
909 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
910 * testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
911 * testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
912 * testsuite/ld-sparc/tlssunpic32.rd: Likewise.
913 * testsuite/ld-sparc/tlssunpic64.rd: Likewise.
914 * testsuite/ld-tic6x/common.d: Likewise.
915 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
916 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
917 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
918 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
919 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
920 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
921 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
922 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
923 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
924 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
925 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
926 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
927 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
929 2021-04-20 Clément Chigot <clement.chigot@atos.net>
932 * testsuite/ld-powerpc/aix52.exp: Add new test.
933 * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
934 * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
935 * testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
936 * testsuite/ld-powerpc/aix-neg-reloc.s: New test.
938 2021-04-13 Nick Clifton <nickc@redhat.com>
940 * ld.texi (Options): Add note about the effect of --as-needed on
941 the --rpath and --rpath-link options on Linux based systems.
943 2021-04-13 Alan Modra <amodra@gmail.com>
946 * libdep_plugin.c (str2vec): Don't pass a potentially signed char
949 2021-04-12 Alan Modra <amodra@gmail.com>
951 * configure.ac (--enable-checking): Add support.
952 * config.in: Regenerate.
953 * configure: Regenerate.
955 2021-04-12 Alan Modra <amodra@gmail.com>
957 * emultempl/mipself.em (mips_create_output_section_statements):
958 Pass base type of hash table to is_elf_hash_table.
959 * ldelf.c (ldelf_after_open): Likewise.
961 2021-04-12 Alan Modra <amodra@gmail.com>
964 * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
965 the symbol hash table is the correct type before accessing
966 elf_link_hash_entry symbols.
967 * plugin.c (is_visible_from_outside): Likewise.
968 * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
969 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
971 2021-04-09 Alan Modra <amodra@gmail.com>
973 * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
974 * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
975 * testsuite/ld-powerpc/notoc2.d: Likewise.
976 * testsuite/ld-powerpc/notoc3.d: Likewise.
977 * testsuite/ld-powerpc/pcrelopt.d: Likewise.
978 * testsuite/ld-powerpc/startstop.d: Likewise.
979 * testsuite/ld-powerpc/tlsget.d: Likewise.
980 * testsuite/ld-powerpc/tlsget2.d: Likewise.
981 * testsuite/ld-powerpc/tlsld.d: Likewise.
982 * testsuite/ld-powerpc/weak1.d: Likewise.
983 * testsuite/ld-powerpc/weak1so.d: Likewise.
985 2021-04-06 Jan Beulich <jbeulich@suse.com>
987 * pe-dll.c (generate_reloc): Bail immediately when .reloc is
988 being discarded. Warn when relocated entry is above .reloc.
990 2021-04-05 Alan Modra <amodra@gmail.com>
992 * configure.ac: Move initfini-array arg handling earlier. Don't
993 check for string.h, strings.h, stdlib.h, or locale.h. Do check
994 for inttypes.h, stdint.h, sys/types.h. Don't check for
995 setlocale, free, getev or strstr.
996 (AC_ISC_POSIX): Don't invoke.
997 * sysdep.h: Include string.h and stdlib.h unconditionally. Test
998 HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and
999 getenv fallback declarations.
1000 * ld.h: Don't test HAVE_LOCALE_H.
1001 * ldmain.c: Don't test HAVE_SETLOCALE.
1002 * config.in: Regenerate.
1003 * configure: Regenerate.
1005 2021-04-01 Tamar Christina <tamar.christina@arm.com>
1008 * testsuite/ld-pe/pe.exp: Add test.
1009 * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
1010 * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
1012 2021-04-01 Martin Liska <mliska@suse.cz>
1014 * ldbuildid.c (strneq): Remove strneq and use startswith.
1015 (validate_build_id_style): Likewise.
1016 (compute_build_id_size): Likewise.
1018 2021-03-31 Alan Modra <amodra@gmail.com>
1020 * sysdep.h (POISON_BFD_BOOLEAN): Define.
1021 * configure.ac (elf_list_options, elf_shlib_list_options=false),
1022 (elf_plt_unwind_list_options=false): Replace FALSE with false,
1024 * emulparams/call_nop.sh, * emulparams/cet.sh,
1025 * emulparams/dynamic_undefined_weak.sh,
1026 * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
1027 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
1028 * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
1029 * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
1030 * emulparams/reloc_overflow.sh, * emulparams/static.sh,
1031 * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
1032 * emultempl/aix.em, * emultempl/alphaelf.em,
1033 * emultempl/armcoff.em, * emultempl/armelf.em,
1034 * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
1035 * emultempl/cr16elf.em, * emultempl/crxelf.em,
1036 * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
1037 * emultempl/hppaelf.em, * emultempl/linux.em,
1038 * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
1039 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
1040 * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
1041 * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
1042 * emultempl/pep.em, * emultempl/ppc32elf.em,
1043 * emultempl/ppc64elf.em, * emultempl/rxelf.em,
1044 * emultempl/rxlinux.em, * emultempl/scoreelf.em,
1045 * emultempl/solaris2.em, * emultempl/spuelf.em,
1046 * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
1047 * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
1048 * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
1049 * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
1050 * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
1051 * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
1052 * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
1053 * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
1054 * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
1055 bfd_boolean with bool, FALSE with false, and TRUE with true.
1056 * configure: Regenerate.
1058 2021-03-31 Alan Modra <amodra@gmail.com>
1060 * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
1061 * emultempl/nds32elf.em: Likewise.
1062 * testsuite/ld-elf/mbind2b.c: Likewise.
1063 * testsuite/ld-elf/pr18718.c: Likewise.
1064 * testsuite/ld-elf/pr18720a.c: Likewise.
1065 * testsuite/ld-elf/pr25749-1.c: Likewise.
1066 * testsuite/ld-elf/pr25749-1a.c: Likewise.
1067 * testsuite/ld-elf/pr25749-1b.c: Likewise.
1068 * testsuite/ld-elf/pr25749-1c.c: Likewise.
1069 * testsuite/ld-elf/pr25749-1d.c: Likewise.
1070 * testsuite/ld-elf/pr25749-2.c: Likewise.
1071 * testsuite/ld-elf/pr25754-1a.c: Likewise.
1072 * testsuite/ld-elf/pr25754-2a.c: Likewise.
1073 * testsuite/ld-elf/pr25754-3a.c: Likewise.
1074 * testsuite/ld-elf/pr25754-4a.c: Likewise.
1075 * testsuite/ld-elf/pr25754-5a.c: Likewise.
1076 * testsuite/ld-elf/pr25754-6a.c: Likewise.
1078 2021-03-29 Alan Modra <amodra@gmail.com>
1080 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
1082 * lexsup.c (parse_args): Likewise.
1083 * pe-dll.c (pe_dll_id_target): Likewise.
1085 2021-03-25 Nick Alcock <nick.alcock@oracle.com>
1087 * testsuite/ld-ctf/array.d: Only check that the data object
1088 section is nonempty: do not check its exact size.
1089 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1090 * testsuite/ld-ctf/slice.d: Likewise.
1091 * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
1092 func info section too.
1093 * testsuite/ld-ctf/function.d: Likewise, for the func info section.
1095 2021-03-22 Martin Liska <mliska@suse.cz>
1097 * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
1098 * emultempl/beos.em: Likewise.
1099 * emultempl/elf.em: Likewise.
1100 * emultempl/pe.em: Likewise.
1101 * emultempl/pep.em: Likewise.
1102 * emultempl/xtensaelf.em: Likewise.
1103 * ldctor.c (ctor_prio): Likewise.
1104 * ldelf.c (ldelf_try_needed): Likewise.
1105 (ldelf_parse_ld_so_conf): Likewise.
1106 (ldelf_after_open): Likewise.
1107 (output_rel_find): Likewise.
1108 (ldelf_place_orphan): Likewise.
1109 * ldfile.c (ldfile_add_library_path): Likewise.
1110 * ldlang.c (lang_add_input_file): Likewise.
1111 * ldmain.c (get_sysroot): Likewise.
1112 (get_emulation): Likewise.
1113 (add_archive_element): Likewise.
1114 * ldwrite.c (unsplittable_name): Likewise.
1115 (clone_section): Likewise.
1116 * lexsup.c (parse_args): Likewise.
1117 * pe-dll.c (is_import): Likewise.
1118 (pe_implied_import_dll): Likewise.
1120 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
1123 * testsuite/ld-x86-64/pr27590.rd: New file.
1124 * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
1125 * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
1126 * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
1128 2021-03-20 Alan Modra <amodra@gmail.com>
1131 * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
1132 for all sections except .stabstr.
1134 2021-03-19 Alan Modra <amodra@gmail.com>
1137 * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
1139 * testsuite/ld-elf/pr27590b.d: Likewise.
1141 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1144 * testsuite/ld-elf/pr27590.s: New file.
1145 * testsuite/ld-elf/pr27590a.d: Likewise.
1146 * testsuite/ld-elf/pr27590b.d: Likewise.
1147 * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
1148 --reduce-memory-overheads.
1150 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1153 * testsuite/ld-x86-64/pr27587.err: New file.
1154 * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
1155 * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
1156 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
1158 2021-03-18 Nick Alcock <nick.alcock@oracle.com>
1160 * testsuite/ld-ctf/slice.c: Check slices of enums too.
1161 * testsuite/ld-ctf/slice.d: Results adjusted.
1163 2021-03-16 Nick Clifton <nickc@redhat.com>
1165 * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
1168 2021-03-15 Jan Beulich <jbeulich@suse.com>
1170 * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
1172 2021-03-12 Alan Modra <amodra@gmail.com>
1174 * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
1175 (ALL_64_EMULATION_SOURCES): ..here.
1176 * Makefile.in: Regenerate.
1178 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1180 * emultempl/aix.em: Ensure .tdata section is removed
1181 if empty, even with -r flag.
1182 * scripttempl/aix.sc: Handle TLS sections.
1183 * testsuite/ld-powerpc/aix52.exp: Add new tests.
1184 * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
1185 * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
1186 * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
1187 * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
1188 * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
1189 * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
1190 * testsuite/ld-powerpc/aix-tls-section.ex: New test.
1191 * testsuite/ld-powerpc/aix-tls-section.s: New test.
1193 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1195 * scripttempl/aix.sc: Add .te to .data section.
1196 * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
1197 Add aix-largetoc-1 test.
1198 * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
1199 * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
1200 * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
1201 * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
1203 2021-03-12 Alan Modra <amodra@gmail.com>
1205 * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
1206 arrange to define __main for some run_dump_test tests.
1207 * testsuite/ld-gc/pr13683.d: Accept more symbols.
1208 * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
1209 * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
1210 * testsuite/ld-srec/srec.exp: Likewise.
1211 * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
1213 2021-03-11 Nelson Chu <nelson.chu@sifive.com>
1215 * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
1216 many times if riscv_restart_relax_sections returns TRUE.
1217 * testsuite/ld-riscv-elf/restart-relax.d: New testcase. Before
1218 applying this patch, the call won't be relaxed to jal; But now we
1219 have more chances to do relaxations.
1220 * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
1221 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
1223 2021-03-10 Jan Beulich <jbeulich@suse.com>
1225 * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
1227 * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
1229 * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
1231 2021-03-09 Jan Beulich <jbeulich@suse.com>
1233 * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
1235 * testsuite/ld-pe/reloc.d: xfail for mcore.
1237 2021-03-09 Jan Beulich <jbeulich@suse.com>
1239 * testsuite/ld-scripts/alignof.exp,
1240 testsuite/ld-scripts/data.exp,
1241 testsuite/ld-scripts/default-script.exp,
1242 testsuite/ld-scripts/log2.exp,
1243 testsuite/ld-scripts/print-memory-usage.exp,
1244 testsuite/ld-scripts/sizeof.exp,
1245 testsuite/ld-undefined/weak-undef.exp: Set image base to zero
1247 * testsuite/ld-scripts/default-script1.d,
1248 testsuite/ld-scripts/default-script2.d,
1249 testsuite/ld-scripts/default-script3.d,
1250 testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
1252 2021-03-05 H.J. Lu <hongjiu.lu@intel.com>
1256 * ldelf.c (ldelf_set_output_arch): New function.
1257 * ldelf.h (ldelf_set_output_arch): New prototype.
1258 * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
1259 ldelf_set_output_arch.
1260 * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
1261 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1262 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1263 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1264 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1265 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1266 * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
1267 * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
1268 * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
1270 2021-03-04 Jan Beulich <jbeulich@suse.com>
1272 * testsuite/ld-scripts/map-address.exp: Set image base to zero
1274 * testsuite/ld-scripts/map-address.t: Place .text.
1276 2021-03-04 Jan Beulich <jbeulich@suse.com>
1278 * ldexp.c (ldexp_is_final_sym_absolute): New.
1279 * ldexp.h (ldexp_is_final_sym_absolute): Declare.
1280 * pe-dll.c (generate_reloc): Skip absolute symbols.
1281 * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
1282 * testsuite/ld-pe/pe.exp: Run new test.
1284 2021-03-03 Alan Modra <amodra@gmail.com>
1287 * ldlang.c (insert_undefined): Don't mark symbols here.
1288 (lang_mark_undefineds): Do so here instead, new function.
1289 (lang_process): Call lang_mark_undefineds.
1290 * testsuite/ld-gc/start3.d,
1291 * testsuite/ld-gc/start3.s: New test.
1292 * testsuite/ld-gc/start4.d,
1293 * testsuite/ld-gc/start4.s: New test.
1294 * testsuite/ld-gc/gc.exp: Run them.
1296 2021-03-03 Alan Modra <amodra@gmail.com>
1298 * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
1299 Move tests with ELF section directives to is_elf_format block.
1300 * testsuite/ld-gc/abi-note.d: Run on more targets.
1301 * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
1302 * testsuite/ld-gc/start.d: Likewise.
1303 * testsuite/ld-gc/start2.d: Likewise.
1304 * testsuite/ld-gc/stop.d: Likewise.
1305 * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
1306 * testsuite/ld-gc/start.s: Likewise.
1307 * testsuite/ld-gc/start2.s: Likewise.
1309 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
1311 * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
1313 2021-03-02 Alan Modra <amodra@gmail.com>
1315 * testsuite/ld-powerpc/startstop.d,
1316 * testsuite/ld-powerpc/startstop.r,
1317 * testsuite/ld-powerpc/startstop.s: New test.
1318 * testsuite/ld-powerpc/powerpc.exp: Run it.
1320 2021-03-02 Alan Modra <amodra@gmail.com>
1322 * testsuite/ld-powerpc/weak1.d,
1323 * testsuite/ld-powerpc/weak1.r,
1324 * testsuite/ld-powerpc/weak1.s,
1325 * testsuite/ld-powerpc/weak1so.d,
1326 * testsuite/ld-powerpc/weak1so.r: New tests.
1327 * testsuite/ld-powerpc/powerpc.exp: Run them.
1329 2021-03-01 Hannes Domani <ssbssa@sourceware.org>
1330 Nick Clifton <nickc@redhat.com>
1333 * scripttempl/pe.sc: Add DWARF-5 section names.
1334 * scripttempl/pep.sc: Likewise.
1336 2021-03-01 Alan Modra <amodra@gmail.com>
1337 Fangrui Song <maskray@google.com>
1339 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
1340 * lexsup.c (elf_static_list_options): Display help for them. Move
1341 help for -z stack-size to here from elf_shlib_list_options. Add
1342 help for -z start-stop-visibility and -z undefs.
1343 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
1344 * NEWS: Mention -z start-stop-gc.
1345 * testsuite/ld-gc/start2.s,
1346 * testsuite/ld-gc/start2.d: New test.
1347 * testsuite/ld-gc/gc.exp: Run it.
1349 2021-03-01 Alan Modra <amodra@gmail.com>
1351 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
1352 symbols undefweak if that was how they were referenced. Undo
1355 2021-03-01 Alan Modra <amodra@gmail.com>
1357 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
1358 * testsuite/ld-elf/pr27128a.d: Likewise.
1359 * testsuite/ld-elf/pr27128b.d: Likewise.
1360 * testsuite/ld-elf/pr27128c.d: Likewise.
1361 * testsuite/ld-elf/pr27128d.d: Likewise.
1362 * testsuite/ld-elf/pr27128e.d: Likewise.
1364 2021-02-26 Alan Modra <amodra@gmail.com>
1367 * testsuite/ld-plugin/pr27441a.c,
1368 * testsuite/ld-plugin/pr27441b.c,
1369 * testsuite/ld-plugin/pr27441c.c,
1370 * testsuite/ld-plugin/pr27441c.d: New test.
1371 * testsuite/ld-plugin/lto.exp: Run it.
1373 2021-02-25 Jan Beulich <jbeulich@suse.com>
1375 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
1377 2021-02-21 Alan Modra <amodra@gmail.com>
1379 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
1380 defined in an object file.
1381 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
1382 * testsuite/ld-scripts/defined5.d: Expect a warning.
1384 2021-02-19 Alan Modra <amodra@gmail.com>
1386 * testsuite/lib/ld-lib.exp: Whitespace.
1387 (load_common_lib): Expand single use and delete this proc.
1388 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
1389 Use -B for clang too.
1391 2021-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
1393 * testplugin.c (record_read_length): Remove debug fprintf.
1395 2021-02-14 Alan Modra <amodra@gmail.com>
1397 * testsuite/ld-cdtest/cdtest.exp,
1398 * testsuite/ld-checks/checks.exp,
1399 * testsuite/ld-elf/binutils.exp,
1400 * testsuite/ld-elf/compress.exp,
1401 * testsuite/ld-elf/dwarf.exp,
1402 * testsuite/ld-elf/exclude.exp,
1403 * testsuite/ld-elf/frame.exp,
1404 * testsuite/ld-elf/indirect.exp,
1405 * testsuite/ld-elf/linux-x86.exp,
1406 * testsuite/ld-elf/sec-to-seg.exp,
1407 * testsuite/ld-elf/tls_common.exp,
1408 * testsuite/ld-elfcomm/elfcomm.exp,
1409 * testsuite/ld-elfvers/vers.exp,
1410 * testsuite/ld-elfvsb/elfvsb.exp,
1411 * testsuite/ld-elfweak/elfweak.exp,
1412 * testsuite/ld-ifunc/binutils.exp,
1413 * testsuite/ld-mips-elf/mips-elf-flags.exp,
1414 * testsuite/ld-misc/defsym.exp,
1415 * testsuite/ld-mn10300/mn10300.exp,
1416 * testsuite/ld-plugin/lto.exp,
1417 * testsuite/ld-plugin/plugin.exp,
1418 * testsuite/ld-scripts/align.exp,
1419 * testsuite/ld-scripts/assert.exp,
1420 * testsuite/ld-scripts/crossref.exp,
1421 * testsuite/ld-scripts/defined.exp,
1422 * testsuite/ld-scripts/extern.exp,
1423 * testsuite/ld-scripts/log2.exp,
1424 * testsuite/ld-scripts/map-address.exp,
1425 * testsuite/ld-scripts/phdrs.exp,
1426 * testsuite/ld-scripts/phdrs2.exp,
1427 * testsuite/ld-scripts/script.exp,
1428 * testsuite/ld-scripts/section-flags.exp,
1429 * testsuite/ld-scripts/sizeof.exp,
1430 * testsuite/ld-scripts/weak.exp,
1431 * testsuite/ld-selective/selective.exp,
1432 * testsuite/ld-sh/sh.exp,
1433 * testsuite/ld-shared/shared.exp,
1434 * testsuite/ld-srec/srec.exp,
1435 * testsuite/ld-tic6x/tic6x.exp,
1436 * testsuite/ld-undefined/undefined.exp,
1437 * testsuite/ld-undefined/weak-undef.exp,
1438 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
1439 perror. Instead report "unsupported" or "fail".
1441 2021-02-12 Nick Clifton <nickc@redhat.com>
1443 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
1444 following debug links.
1446 2021-02-11 Alan Modra <amodra@gmail.com>
1448 * NEWS: Mention arm-symbianelf removal.
1450 2021-02-09 Alan Modra <amodra@gmail.com>
1452 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
1453 Don't include symbian dep file.
1454 * configure.tgt: Remove arm*-*-symbianelf* entry.
1455 * emulparams/armsymbian.sh: Delete.
1456 * ld.texi: Don't mention symbian.
1457 * scripttempl/armbpabi.sc: Delete.
1458 * testsuite/ld-arm/symbian-seg1.d: Delete.
1459 * testsuite/ld-arm/symbian-seg1.s: Delete.
1460 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
1461 * Makefile.in: Regenerate.
1462 * po/BLD-POTFILES.in: Regenerate.
1464 2021-02-07 H.J. Lu <hongjiu.lu@intel.com>
1467 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
1469 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1471 2021-01-26 Nick Alcock <nick.alcock@oracle.com>
1473 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
1476 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1479 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
1480 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
1481 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
1482 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
1483 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
1484 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
1485 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
1487 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1490 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
1491 * testsuite/ld-plugin/pr15146.d: Restored.
1492 * testsuite/ld-plugin/pr15146a.c: Likewise.
1493 * testsuite/ld-plugin/pr15146b.c: Likewise.
1494 * testsuite/ld-plugin/pr15146c.c: Likewise.
1495 * testsuite/ld-plugin/pr15146d.c: Likewise.
1497 2021-02-04 Alan Modra <amodra@gmail.com>
1499 * testsuite/ld-plugin/pr27311d.c: New test.
1500 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
1501 and link new test as pr27311-2.
1503 2021-02-03 Alan Modra <amodra@gmail.com>
1505 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
1506 Link with --as-needed.
1508 2021-02-02 Alan Modra <amodra@gmail.com>
1510 * testsuite/ld-plugin/pr27311.d,
1511 * testsuite/ld-plugin/pr27311.ver,
1512 * testsuite/ld-plugin/pr27311a.c,
1513 * testsuite/ld-plugin/pr27311b.c,
1514 * testsuite/ld-plugin/pr27311c.c: New testcase.
1515 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
1518 2021-02-01 Emery Hemingway <ehmry@posteo.net>
1520 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1522 2021-02-01 Alan Modra <amodra@gmail.com>
1524 * ldgram.y (defsym_expr): Use assignment rule.
1525 * ldlex.h (ldlex_defsym): Delete.
1526 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
1528 2021-02-01 Alan Modra <amodra@gmail.com>
1530 * ldgram.y (section): Call ldlex_backup. Remove empty action.
1531 * ldlex.h (ldlex_backup): Declare.
1532 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
1533 chars, use SYMBOLNAMECHAR.
1534 (ldlex_backup): New function.
1536 2021-02-01 Alan Modra <amodra@gmail.com>
1538 * ldgram.y: Whitespace fixes.
1540 2021-02-01 Alan Modra <amodra@gmail.com>
1542 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
1544 2021-01-29 Alan Modra <amodra@gmail.com>
1546 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
1548 2021-01-28 H.J. Lu <hongjiu.lu@intel.com>
1551 * testsuite/ld-elf/pr27259.d: New file.
1552 * testsuite/ld-elf/pr27259.s: Likewise.
1554 2021-01-28 Alan Modra <amodra@gmail.com>
1557 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
1558 prevent endless looping of linked-to sections.
1560 2021-01-26 H.J. Lu <hongjiu.lu@intel.com>
1562 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
1564 2021-01-26 Alan Modra <amodra@gmail.com>
1567 * emulparams/alphavms.sh: Don't set COMPILE_IN.
1568 * emulparams/elf64_ia64_vms.sh: Likewise.
1569 * emulparams/elf64mmix.sh: Likewise.
1570 * emulparams/elf_iamcu.sh: Likewise.
1571 * emulparams/elf_k1om.sh: Likewise.
1572 * emulparams/elf_l1om.sh: Likewise.
1573 * emulparams/mmo.sh: Likewise.
1574 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
1575 * scripttempl/pdp11.sc: Use it.
1576 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
1577 instead use .xe script. Support scripts from file system.
1578 * emultempl/beos.em: Support scripts from file system.
1579 * emultempl/pe.em: Likewise.
1580 * emultempl/pep.em: Likewise.
1581 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
1583 2021-01-25 Fangrui Song <maskray@google.com>
1586 * scripttempl/DWARF.sc: Add .debug_* sections.
1588 2021-01-25 Nick Clifton <nickc@redhat.com>
1590 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
1591 .debug_line_str and .debug_str_offsets. Move .debug_macro and
1592 .debug_addr into DWARF-5 section.
1594 2021-01-21 Alan Modra <amodra@gmail.com>
1596 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
1598 2021-01-20 Alan Modra <amodra@gmail.com>
1600 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
1601 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
1602 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
1603 * testsuite/ld-powerpc/tlsget.wf: Likewise.
1604 * testsuite/ld-powerpc/tlsget2.d: Likewise.
1605 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
1606 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
1607 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
1608 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
1609 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
1610 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
1611 * testsuite/ld-powerpc/tlsexers.r: Likewise.
1612 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
1613 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
1614 * testsuite/ld-powerpc/tlsso.r: Likewise.
1615 * testsuite/ld-powerpc/tlsso32.r: Likewise.
1616 * testsuite/ld-powerpc/tlstocso.r: Likewise.
1618 2021-01-19 Nick Alcock <nick.alcock@oracle.com>
1620 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
1621 symbols by the optimizer.
1622 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
1624 2021-01-19 Nelson Chu <nelson.chu@sifive.com>
1626 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
1627 if target is riscv little endian. Otherwise, return false.
1628 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
1629 targets by [riscv_little_endian].
1631 2021-01-18 Alan Modra <amodra@gmail.com>
1634 * ldlang.c (map_input_to_output_sections): Start with a read-only
1635 section for data statements.
1636 * testsuite/ld-elf/size-2.d: Adjust to suit.
1638 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
1641 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
1642 * testsuite/ld-i386/pr27193.dd: New file.
1643 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
1644 * testsuite/ld-i386/pr27193b.s: Likewise.
1646 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1649 * testsuite/ld-plugin/lto.exp: Increase the max number of open
1650 files to 20 for PR binutils/23460 test.
1652 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1655 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
1656 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
1657 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
1660 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
1662 * NEWS: Mention -z report-relative-reloc.
1663 * ld.texi: Document -z report-relative-reloc.
1664 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
1665 * emulparams/elf_i386.sh: Likewse.
1666 * emulparams/elf_x86_64.sh: Likewse.
1667 * emulparams/x86-report-relative.sh: New file.
1668 * testsuite/ld-i386/report-reloc-1.d: Likewse.
1669 * testsuite/ld-i386/report-reloc-1.l: Likewse.
1670 * testsuite/ld-i386/report-reloc-1.s: Likewse.
1671 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
1672 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
1673 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
1674 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
1675 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
1676 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
1679 2021-01-16 Alan Modra <amodra@gmail.com>
1682 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
1683 unversioned symbols.
1684 * testsuite/ld-elfvers/vers16.dsym: Likewise.
1686 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1688 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
1689 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
1690 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
1691 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
1692 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
1693 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
1695 2021-01-14 Nick Clifton <nickc@redhat.com>
1697 * po/fr.po: Updated French translation.
1699 2021-01-14 Mike Frysinger <vapier@gentoo.org>
1701 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
1703 2021-01-14 Alan Modra <amodra@gmail.com>
1706 * ldelfgen.c (compare_link_order): Protect access of ELF section
1708 (add_link_order_input_section): Remove redundant NULL check.
1709 Use bfd_get_flavour.
1710 (ldelf_map_segments): Use bfd_get_flavour.
1712 2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
1714 * ldelfgen.c (add_link_order_input_section): Check for ELF input
1715 before accessing ELF section data.
1717 2021-01-13 Alan Modra <amodra@gmail.com>
1719 * Makefile.in: Regenerate.
1721 2021-01-13 Alan Modra <amodra@gmail.com>
1724 * ldlang.h (lang_output_section_statement_type): Add data field.
1725 (lang_input_section_type, lang_section_bst_type): Add pattern field.
1726 (statement_list): Declare.
1727 (lang_add_section): Adjust prototype.
1728 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
1729 * emultempl/armelf.em: Likewise.
1730 * emultempl/beos.em: Likewise.
1731 * emultempl/cskyelf.em: Likewise.
1732 * emultempl/hppaelf.em: Likewise.
1733 * emultempl/m68hc1xelf.em: Likewise.
1734 * emultempl/metagelf.em: Likewise.
1735 * emultempl/mipself.em: Likewise.
1736 * emultempl/mmo.em: Likewise.
1737 * emultempl/msp430.em: Likewise.
1738 * emultempl/nios2elf.em: Likewise.
1739 * emultempl/pe.em: Likewise.
1740 * emultempl/pep.em: Likewise.
1741 * emultempl/ppc64elf.em: Likewise.
1742 * emultempl/spuelf.em: Likewise.
1743 * emultempl/vms.em: Likewise.
1744 * ldelf.c: Likewise.
1745 * ldelfgen.c: Include ldctor.h.
1746 (struct os_sections): New.
1747 (add_link_order_input_section, link_order_scan): New functions.
1748 (compare_link_order, fixup_link_order): New functions.
1749 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
1750 * ldlang.c (statement_list): Make global.
1751 (output_section_callback_fast): Save pattern in tree node.
1752 (lang_add_section): Add pattern parameter, save in lang_input_section.
1753 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
1754 (lang_insert_orphan, output_section_callback): Likewise.
1755 (ldlang_place_orphan): Likewise.
1756 (gc_section_callback): Don't set section->pattern.
1757 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
1758 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1759 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
1761 2021-01-13 Alan Modra <amodra@gmail.com>
1763 * ldlang.h (callback_t): Remove flag_info function parameter.
1764 * ldlang.c (walk_wild_consider_section): Adjust to suit.
1765 (walk_wild_section_general): Likewise.
1766 (output_section_callback_fast, output_section_callback): Likewise.
1767 (check_section_callback, gc_section_callback): Likewise.
1768 (find_relro_section_callback): Likewise.
1770 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1773 * configure.ac: Use GNU_MAKE_JOBSERVER.
1774 * aclocal.m4: Regenerated.
1775 * configure: Likewise.
1777 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1780 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
1781 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1782 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1783 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
1785 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1788 * configure: Regenerated.
1790 2021-01-11 Matt Jenkins <matt@majenko.co.uk>
1793 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
1794 and mips64r5 to list of known mips targets.
1796 2021-01-11 Nick Clifton <nickc@redhat.com>matt@majenko.co.uk
1798 * po/pt_BR.po: Updated Brazilian Portuguese translation.
1799 ` * po/uk.po: Updated Ukranian translation.
1801 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1803 * configure: Regenerated.
1805 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1808 * testsuite/ld-x86-64/lam-u48.rd: New file.
1809 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
1810 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
1812 2021-01-09 Nick Clifton <nickc@redhat.com>
1814 * configure: Regenerate.
1815 * po/ld.pot: Regenerate.
1817 2021-01-09 Nick Clifton <nickc@redhat.com>
1819 * 2.36 release branch crated.
1821 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
1823 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
1824 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
1826 2021-01-09 Alan Modra <amodra@gmail.com>
1828 * configure: Regenerate.
1829 * Makefile.in: Regenerate.
1831 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1833 * configure: Regenerate.
1835 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1838 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
1839 * testsuite/ld-elf/loadaddr3b.d: Likewise.
1840 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1841 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1842 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1843 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1844 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1845 * testsuite/ld-i386/pr19636-1d.d: Likewise.
1846 * testsuite/ld-i386/pr19636-1l.d: Likewise.
1847 * testsuite/ld-i386/pr19636-2c.d: Likewise.
1848 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1849 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1850 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1851 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1852 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1853 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1854 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1855 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1856 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1857 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1858 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1859 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1860 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1861 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1862 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1863 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1864 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1865 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1866 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1867 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1868 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1869 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1870 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1871 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1872 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1873 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1874 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
1875 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
1876 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
1877 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
1878 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
1879 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
1880 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1881 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
1882 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1883 * testsuite/ld-x86-64/pr21038b.d: Likewise.
1884 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1885 * testsuite/ld-x86-64/pr21038c.d: Likewise.
1886 * testsuite/ld-x86-64/pr23854.d: Likewise.
1887 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1888 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1889 * testsuite/ld-i386/plt-pic.pd: Likewise.
1890 * testsuite/ld-i386/plt-pic2.dd: Likewise.
1891 * testsuite/ld-i386/plt.pd: Likewise.
1892 * testsuite/ld-i386/plt2.dd: Likewise.
1893 * testsuite/ld-i386/tlsbin.rd: Likewise.
1894 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1895 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1896 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1897 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
1898 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1899 * testsuite/ld-i386/tlspic.rd: Likewise.
1900 * testsuite/ld-i386/tlspic2.rd: Likewise.
1901 * testsuite/ld-x86-64/mpx3.dd: Likewise.
1902 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
1903 * testsuite/ld-x86-64/mpx4.dd: Likewise.
1904 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
1905 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
1906 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1907 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1908 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1909 * testsuite/ld-x86-64/plt.pd: Likewise.
1910 * testsuite/ld-x86-64/plt2.dd: Likewise.
1911 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1912 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1913 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1914 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1915 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
1916 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1917 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1918 * testsuite/ld-elf/sec64k.exp: Check
1919 is_elf_unused_section_symbols.
1921 2021-01-07 Alan Modra <amodra@gmail.com>
1923 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
1924 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
1925 * testsuite/ld-scripts/segment-start.d: Likewise.
1927 2021-01-07 Alan Modra <amodra@gmail.com>
1929 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
1930 about dynamic relocations in read-only sections.
1931 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1932 * testsuite/ld-elf/ehdr_start.d: Likewise.
1933 * testsuite/ld-scripts/pr22267.d: Likewise.
1934 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
1936 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
1938 2021-01-07 Marcus Comstedt <marcus@mc.pp.se>
1940 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
1941 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
1943 2021-01-07 Alan Modra <amodra@gmail.com>
1945 * po/BLD-POTFILES.in: Regenerate.
1947 2021-01-07 Alan Modra <amodra@gmail.com>
1949 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
1950 complain about relocs in read-only sections. Tidy ASFLAGS append.
1952 2021-01-06 Alan Modra <amodra@gmail.com>
1954 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
1955 base for some tests.
1956 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
1957 * testsuite/ld-sparc/gotop32.sd: Likewise.
1958 * testsuite/ld-sparc/gotop32.td: Likewise.
1959 * testsuite/ld-sparc/gotop64.dd: Likewise.
1960 * testsuite/ld-sparc/gotop64.sd: Likewise.
1961 * testsuite/ld-sparc/gotop64.td: Likewise.
1962 * testsuite/ld-sparc/tlsg32.sd: Likewise.
1963 * testsuite/ld-sparc/tlsg64.sd: Likewise.
1964 * testsuite/ld-sparc/tlspie32.dd: Likewise.
1965 * testsuite/ld-sparc/tlspie64.dd: Likewise.
1966 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
1967 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
1968 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
1969 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
1970 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
1971 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
1972 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
1973 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
1974 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
1975 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
1976 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
1977 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
1978 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
1979 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
1980 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
1981 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
1982 * testsuite/ld-sparc/wdispcall.dd: Likewise.
1984 2021-01-06 Alan Modra <amodra@gmail.com>
1986 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
1987 * testsuite/ld-scripts/rgn-at11.d: Likewise.
1989 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1991 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
1992 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
1993 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
1994 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
1995 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1996 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1997 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1998 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
1999 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
2000 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
2001 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
2002 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
2003 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
2004 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
2006 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
2008 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
2010 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
2011 riscv32be*-*-linux*, and riscv64be*-*-linux*.
2012 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
2013 eelf32briscv_ilp32.c.
2014 * Makefile.in: Regenerate.
2015 * emulparams/elf32briscv.sh: Added.
2016 * emulparams/elf32briscv_ilp32.sh: Likewise.
2017 * emulparams/elf32briscv_ilp32f.sh: Likewise.
2018 * emulparams/elf64briscv.sh: Likewise.
2019 * emulparams/elf64briscv_lp64.sh: Likewise.
2020 * emulparams/elf64briscv_lp64f.sh: Likewise.
2022 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
2024 * testsuite/ld-ctf/enum-forward.c: New test.
2025 * testsuite/ld-ctf/enum-forward.c: New results.
2027 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
2029 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2030 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
2031 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
2032 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
2033 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
2034 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
2035 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
2036 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
2037 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
2038 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
2039 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
2040 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
2041 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2042 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
2043 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
2044 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
2045 * testsuite/ld-ctf/cycle-1.d: Likewise.
2046 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
2047 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
2048 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
2049 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2050 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2051 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2052 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2053 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
2054 * testsuite/ld-ctf/forward.d: Likewise.
2055 * testsuite/ld-ctf/function.d: Likewise.
2056 * testsuite/ld-ctf/slice.d: Likewise.
2057 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
2058 * testsuite/ld-ctf/enums.c: New test.
2059 * testsuite/ld-ctf/enums.d: New test.
2061 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
2063 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
2065 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2066 * testsuite/ld-ctf/forward.c: New test...
2067 * testsuite/ld-ctf/forward.d: ... and results.
2069 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
2071 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2072 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2073 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2074 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2075 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2076 * testsuite/ld-ctf/function.d: Likewise.
2077 * testsuite/ld-ctf/slice.d: Likewise.
2079 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
2081 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2082 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
2083 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
2084 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
2085 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
2086 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
2087 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
2088 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
2089 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
2090 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
2091 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
2092 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
2093 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2094 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
2095 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
2096 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
2097 * testsuite/ld-ctf/cycle-1.d: Likewise.
2098 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
2099 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
2100 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
2101 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2102 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2103 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2104 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2105 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
2106 * testsuite/ld-ctf/function.d: Likewise.
2107 * testsuite/ld-ctf/slice.d: Likewise.
2108 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
2110 2021-01-05 Alan Modra <amodra@gmail.com>
2112 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
2114 2021-01-05 Alan Modra <amodra@gmail.com>
2117 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
2118 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
2120 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
2123 * ldlang.c (gc_section_callback): Set pattern.
2124 * testsuite/ld-elf/pr26256-1.s: New file.
2125 * testsuite/ld-elf/pr26256-1.t: Likewise.
2126 * testsuite/ld-elf/pr26256-1a.d: Likewise.
2127 * testsuite/ld-elf/pr26256-1b.d: Likewise.
2128 * testsuite/ld-elf/pr26256-2.s: Likewise.
2129 * testsuite/ld-elf/pr26256-2.t: Likewise.
2130 * testsuite/ld-elf/pr26256-2a.d: Likewise.
2131 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
2132 * testsuite/ld-elf/pr26256-2b.d: Likewise.
2133 * testsuite/ld-elf/pr26256-3.s: Likewise.
2134 * testsuite/ld-elf/pr26256-3a.d: Likewise.
2135 * testsuite/ld-elf/pr26256-3a.t: Likewise.
2136 * testsuite/ld-elf/pr26256-3b.d: Likewise.
2137 * testsuite/ld-elf/pr26256-3b.t: Likewise.
2139 2021-01-04 Alan Modra <amodra@gmail.com>
2142 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
2143 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
2144 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
2145 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
2146 * testsuite/ld-i386/tlsbin.rd: Likewise.
2147 * testsuite/ld-i386/tlsbin2.rd: Likewise.
2148 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
2149 * testsuite/ld-i386/tlsdesc.rd: Likewise.
2150 * testsuite/ld-i386/tlsnopic.rd: Likewise.
2151 * testsuite/ld-i386/tlspic.rd: Likewise.
2152 * testsuite/ld-i386/tlspic2.rd: Likewise.
2153 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
2154 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
2155 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
2156 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
2157 * testsuite/ld-plugin/pr17973.d: Likewise.
2158 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
2159 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
2160 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
2161 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
2162 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
2163 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
2164 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
2165 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
2166 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
2167 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
2168 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
2169 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
2170 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
2171 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
2172 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
2173 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
2174 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
2175 * testsuite/ld-x86-64/tlspic.rd: Likewise.
2176 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
2177 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
2178 * testsuite/ld-xtensa/tlspic.rd: Likewise.
2180 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
2182 * configure.tgt: Correct comment grammar.
2183 * emultempl/m68hc1xelf.em: Likewise.
2184 * ld.texi: Correct grammar.
2186 2021-01-01 Alan Modra <amodra@gmail.com>
2188 Update year range in copyright notice of all files.
2190 For older changes see ChangeLog-2020
2192 Copyright (C) 2021-2023 Free Software Foundation, Inc.
2194 Copying and distribution of this file, with or without modification,
2195 are permitted in any medium without royalty provided the copyright
2196 notice and this notice are preserved.
2202 version-control: never