Use bfd_get_current_time in places where it is suitable
[binutils-gdb.git] / ld / ChangeLog
blob4e4f5326d80b67cbeb0c52ff1d8728dd5215f0ba
1 2023-10-02  Nick Clifton  <nickc@redhat.com>
3         * pe-dll.c (fill_edata): Use bfd_get_current_time when filling in
4         the timestamp.
6 2023-09-27  Hsinyuan Xavier  <TheLastLin@hotmail.com>
8         PR 30875
9         * ldlang.c (get_os_init_flag): New function.
10         (exp_init_os, map_input_to_output_sections): Use it.
12 2023-07-24  Johannes Schauer Marin Rodrigues  <josch@debian.org>
14         * pe-dll.c (fill_edata): If inserting a timestamp, use the value
15         held in the SOURCE_DATE_EPOCH environment variable, if it is
16         defined.
17         * ld.texi (--insert-timestamp): Document change in behaviour.
19 2023-07-03  Nick Clifton  <nickc@redhat.com>
21         * configure: Regenerate.
23 2023-07-03  Nick Clifton  <nickc@redhat.com>
25         2.41 Branch Point.
27 2023-06-28  Nikita Popov  <npopov@redhat.com>
28             Nick Clifton  <nickc@redhat.com>
30         PR 30568
31         * ldfile.c (ldfile_try_open_bfd): Do not track lto generated
32         temporary files.
34 2023-06-21  Nick Clifton  <nickc@redhat.com>
36         PR 29072
37         * testsuite/ld-elf/elf.exp (target_defaults_to_execstack): Always
38         return false for linkers configured with the --enable-default-execstack=no
39         option.
41 2023-06-14  Nick Clifton  <nickc@redhat.com>
43         PR 30374
44         * ldfile.c (struct input_remap): New structure.
45         (ldfile_add_remap): New function.
46         (ldfile_remap_input_free): New function.
47         (ldfile_add_remap_file): New function.
48         (ldfile_possibly_remap_input): New function.
49         (ldfile_print_input_remaps): New function.
50         * ldfile.h: Add prototypes for new functions.
51         * ldlang.c (new_afile): Call ldfile_possibly_remap_input.
52         (lang_finish): Call ldfile_remap_input_free.
53         (lang_map): Call ldfile_print_input_remaps.
54         * ldlex.h (OPTION_REMAP_INPUTS, OPTION_REMAP_INPUTS_FILE): Define.
55         * lexsup.c (ld_options): Add --remap-inputs-file and --remap-inputs.
56         (parse_args): Handle new options.
57         * NEWS: Mention the new feature.
58         * ld.texi: Document the new options.
59         * testsuite/ld-misc/input-remap.exp: New test driver.
60         * testsuite/ld-misc/remaps.r: New file: Expected linker output.
61         * testsuite/ld-misc/remaps.txt: New file.  Input remaps file.
63 2023-06-07  Nick Clifton  <nickc@redhat.com>
65         PR 30499
66         * testsuite/ld-elfcomm/elfcomm.exp: Update regexps to match new
67         output from the linker.
69 2023-05-17  Luca Bacci  <luca.bacci@outlook.com>
71         PR 30421
72         * emultempl/pe.em (set_decoration): New function.
73         (pe_fixup_stdcalls): Call the new function.
74         * emultempl/pep.em (set_decoration): New function.
75         (pep_fixup_stdcalls): Call the new function.
76         * pe-dll.c (make_one): Check for decoated symbols.
78 2023-05-16  Nick Clifton  <nickc@redhat.com>
80         PR 30359
81         * ld.texi (WIN32): Document how to create a resource only DLL.
83 2023-05-16  Nick Clifton  <nickc@redhat.com>
85         * ld.texi (-Ur): Clarify the actions of this option.
87 2023-05-10  Nick Clifton  <nickc@redhat.com>
89         PR 16566
90         * ldlang.c (ld_is_local_symbol): New function.
91         (print_input_section): Add code to display local symbols in the
92         section.
93         * ldlex.h (enum option_values): Add OPTION_PRINT_MAP_LOCALS and
94         OPTION_PRINT_MAP_LOCALS.
95         * lexsup.c (ld_options[]): Add entries for --print-map-locals
96         and --no-print-map-locals.
97         * NEWS: Mention the new feature.
98         * ld.h (struct ld_config_type): Add print_map_locals field.
99         * ld.texi: Document the new command line option.
100         * testsuite/ld-scripts/sizeof.s: Add a local symbol.
101         * testsuite/ld-scripts/map-locals.d: New test control file.
102         * testsuite/ld-scripts/map-address.exp: Run the new test.
104 2023-05-04  Nick Clifton  <nickc@redhat.com>
106         PR 30300
107         * emultempl/pep.em (set_entry_point): Add an undefined reference
108         to the entry point if it has been constructed heuristically.
109         * emultempl/pe.em (set_entry_point): Likewise.
111 2023-05-04  Dimitar Dimitrov  <dimitar@dinux.eu>
113         * scripttempl/pru.sc (OUTPUT_SECTION_ALIGN): New helper variable
114         to place at end of DMEM output sections.
115         (.data): Use the helper variable.
116         (.eh_frame): New output section.
117         (.gnu_extab): Ditto.
118         (.gcc_except_table): Ditto.
119         (.resource_table): Use the helper variable.
121 2023-04-27  Nick Clifton  <nickc@redhat.com>
123         * ldmisc.c (vfinfo): Add support for %x and %lx.
125 2023-04-18  mengqinggang  <mengqinggang@loongson.cn>
127         * testsuite/ld-loongarch-elf/macro_op.d: Regenerated.
129 2023-04-17  Nick Clifton  <nickc@redhat.com>
131         PR 30354
132         * emulparams/armelf.sh (OTHER_PLT_SECTIONS): Define in order to
133         handle the .gnu.sgstubs section.
135 2023-04-13  Claudiu Zissulescu  <claziss@synopsys.com>
137         * testsuite/ld-arc/arc.exp: Update execution predicate.
138         * testsuite/ld-arc/nps-1a.d: Add linker script option.
139         * testsuite/ld-arc/nps-1b.d: Likewise.
140         * testsuite/ld-arc/relax-local-pic.d: Update matching patterns.
142 2023-04-12  Nick Clifton  <nickc@redhat.com>
144         * ld.texi (--enable-non-contiguous-regions): Fix typos in script
145         example.
147 2023-03-15  Nick Clifton  <nickc@redhat.com>
149         PR 30187
150         * NEWS: Mention the new feature.
151         * ld.texi: Document the new feature.
152         * ldgram.y: Handle LINKER_VERSION token.
153         * ldlang.c (lang_add_version): New function.
154         (enable_linker_version): New global variable.
155         * ldlang.h (land_add_version): Prototype.
156         (enable_linker_version): Export.
157         * ldlex.h (OPTION_ENABLE_LINKER_VERSION): Define.
158         (OPTION_DISABLE_LINKER_VERSION): Define.
159         * ldlex.l (LINKER_VERSION): Add token.
160         * lexsup.c (ld_options): Add --enable-linker-version and
161         --disable-linker-version.
162         (parse_args): Handle the new options.
163         * scripttempl/arclinux.sc: Remove stabs and comment sections and
164         replace with inclusion of misc-sections.sc
165         * scripttempl/avr.sc: Likewise.
166         * scripttempl/dlx.sc: Likewise.
167         * scripttempl/elf.sc: Likewise.
168         * scripttempl/elf32cr16.sc: Likewise.
169         * scripttempl/elf32crx.sc: Likewise.
170         * scripttempl/elf32msp430.sc: Likewise.
171         * scripttempl/elf64bpf.sc: Likewise.
172         * scripttempl/elf64hppa.sc: Likewise.
173         * scripttempl/elf_chaos.sc: Likewise.
174         * scripttempl/elfarc.sc: Likewise.
175         * scripttempl/elfarcv2.sc: Likewise.
176         * scripttempl/elfd10v.sc: Likewise.
177         * scripttempl/elfd30v.sc: Likewise.
178         * scripttempl/elfm68hc11.sc: Likewise.
179         * scripttempl/elfm68hc12.sc: Likewise.
180         * scripttempl/elfm9s12z.sc: Likewise.
181         * scripttempl/elfmicroblaze.sc: Likewise.
182         * scripttempl/elfxgate.sc: Likewise.
183         * scripttempl/elfxtensa.sc: Likewise.
184         * scripttempl/epiphany_4x4.sc: Likewise.
185         * scripttempl/ft32.sc: Likewise.
186         * scripttempl/ip2k.sc: Likewise.
187         * scripttempl/iq2000.sc: Likewise.
188         * scripttempl/mep.sc: Likewise.
189         * scripttempl/nds32elf.sc: Likewise.
190         * scripttempl/pru.sc: Likewise.
191         * scripttempl/v850.sc: Likewise.
192         * scripttempl/v850_rh850.sc: Likewise.
193         * scripttempl/visium.sc: Likewise.
194         * scripttempl/xstormy16.sc: Likewise.
195         * scripttempl/z80.sc: Likewise.
196         * testsuite/ld-scripts/script.exp: Run new tests.
197         * scripttempl/misc-sections.sc: New file.
198         * testsuite/ld-scripts/ld-version-2.d: New file.
199         * testsuite/ld-scripts/ld-version.d: New file.
200         * testsuite/ld-scripts/ld-version.t: New file.
202 2023-02-23  Fangrui Song  <i@maskray.me>
204         * emultempl/riscvelf.em: Add option parsing.
205         * testsuite/ld-riscv-elf/code-model-relax-medlow-01-norelaxgp.d: New.
206         * testsuite/ld-riscv-elf/pcgp-relax-01-norelaxgp.d: New.
207         * testsuite/ld-riscv-elf/pcgp-relax-02.d: Test --relax --relax-gp can be
208         used together.
210 2023-02-20  Nick Clifton  <nickc@redhat.com>
212         PR 30004
213         * pe-dll.c (pe_dll_build_sections): Do not build an edata section
214         if all symbols are being excluded.
216 2023-02-15  Nick Clifton  <nickc@redhat.com>
218         PR 30078
219         * testsuite/ld-elf/merge4b.s: Use .asciz instead of .string in
220         order to avoid the special behaviour of the .string directive on
221         HPPA architectures.
223 2023-02-14  Nick Clifton  <nickc@redhat.com>
225         * ld.texi (Plugins): Mention that the -plugin command line option
226         is used to load plugins.
228 2023-01-27  Nick Clifton  <nickc@redhat.com>
230         PR 29998
231         * pe-dll.c (build_filler_bfd): Initialise the next field of the
232         filler input statement, so that it does not break the file chain.
234 2023-01-24  Nick Clifton  <nickc@redhat.com>
236         PR 29998
237         * pe-dll.c (generate_reloc): Handle sections with no assigned
238         output section.  Terminate early of there are no relocs to put in
239         the .reloc section.
240         (pe_exe_fill_sections): Do not emit an empty .reloc section.
242 2023-01-06  Nick Clifton  <nickc@redhat.com>
244         * po/bg.po: Updated Bulgarian translation.
246 2023-01-05  Nick Clifton  <nickc@redhat.com>
248         * configure.tgt: Add arm64pe as an extra emulation for aarch64pe.
249         * Makefile.am (ALL_64_EMULATION_SOURCES): Add earm64pe.c
250         * emultempl/pep.em: Add suppport for arm64pe emulation.
251         * Makefile.in: Regenerate.
252         * po/BLD-POTFILES.in: Regenerate.
253         * po/ld.pot: Regenerate.
255 2023-01-05  Andreas K. Huettel  <dilfridge@gentoo.org>
257         * testsuite/ld-elf/shared.exp: un-xfail the PR19710 test for the
258         AArch64 architecture.
260 2023-01-04  Andreas K. Huettel  <dilfridge@gentoo.org>
262         PR 29843
263         * testsuite/ld-aarch64/bti-plt-5.d: Relax regxps slightly to allow
264         for differences in build environments.
265         * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: Likewise.
267 2023-01-03  Nick Clifton  <nickc@redhat.com>
269         * po/uk.po: Updated Ukrainian translation.
271 2022-12-31  Nick Clifton  <nickc@redhat.com>
273         * 2.40 branch created.
275 2022-12-21  Nick Clifton  <nickc@redhat.com>
277         PR 29900
278         * scripttempl/pe.sc: Keep the .drectve section when performing a
279         relocateable link.
280         * scripttempl/pep.sc: Likewise.
282 2022-12-08  Nick Clifton  <nickc@redhat.com>
284         PR 29861
285         * ld.texi (Output Section Type): Note that setting the output
286         section type only works if the section contains untyped data.
288 2022-12-05  Nick Clifton  <nickc@redhat.com>
290         PR 29849
291         * ldlang.c (spec_match): Check that there is sufficient length in
292         the target name to match the spec's prefix.
294 2022-11-03  Nick Clifton  <nickc@redhat.com>
296         PR 29748
297         * configure.tgt (ac_default_ld_warn_rwx_segments): Set to 0 for
298         the V850.
300 2022-11-03  Nick Clifton  <nickc@redhat.com>
302         PR 29741
303         * scripttempl/avr.sc (__DATA_REGION_ORIGIN__): Define.  If a value
304         has not been provided on the command line then use DATA_ORIGIN.
305         (MEMORY): Use __DATA_REGION_ORIGIN__ as the start of the data region.
307 2022-10-21  Nick Clifton  <nickc@redhat.com>
309         PR 29654
310         * ld.h (struct ld_config_type): Add no_warnings field.
311         * ldlex.h (enum option_values): Add OPTION_NO_WARNINGS.
312         * lexsup.c (ld_options): Add --no-warnings.
313         (parse_args): Add support for -w and --no-warnings.
314         * ldmisc.c (vfinfo): Return early if the message is a warning and
315         -w has been enabled.
316         * ld.texi (options): Document new command line option.
317         * NEWS: Mention the new feature.
319 2022-08-30  Nick Clifton  <nickc@redhat.com>
321         PR 29529
322         * testsuite/ld-x86-64/pr27587.err: Update expected output.
324 2022-08-18  Ralf Habacker  <ralf.habacker@freenet.de>
326         PR 28362
327         * testsuite/ld-pe/pe-run2-def.exp: New file.
329 2022-08-03  Alan Modra  <amodra@gmail.com>
331         PR 29389
332         * ldlang.h (lang_input_statement_struct): Add sort_key field.
333         * emultempl/pe.em (after_open): If multiple import libraries refer
334         to the same bfd, store their names in the sort_key field.
335         * emultempl/pep.em (after_open): Likewise.
336         * ldlang.c (sort_filename): New function.  Returns the filename to
337         be used when sorting input files.
338         (wild_sort): Use the sort_filename function.
340 2022-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
342         PR ld/29411
343         * configure.tgt (ac_default_ld_warn_rwx_segments): Extend to all
344         sparc targets.  Expand comment.
346 2022-07-26  Nick Clifton  <nickc@redhat.com>
348         PR 29411
349         * configure.tgt (ac_default_ld_warn_rwx_segments): Disable for
350         sparc-solaris configurations.
352 2022-07-08  Nick Clifton  <nickc@redhat.com>
354         * 2.39 branch created.
356 2022-06-27  Nick Clifton  <nickc@redhat.com>
358         PR 29263
359         * configure.ac: Move HPPA specific code from here...
360         * configure.tgt: ... to here.  Add similar code for MIPS.
361         Move code for CRIS, MIPS and HPPA to block at start of file.
362         * configure: Regenerate.
364 2022-06-21  Nick Clifton  <nickc@redhat.com>
366         PR 29263
367         * configure.ac (ac_default_ld_warn_execstack): Default to 'no' for
368         HPPA targets.
369         (ac_default_ld_warn_rwx_segments): Likewise.
370         * configure: Regenerate.
371         * testsuite/ld-elf/elf.exp: Add the --warn-execstack command line
372         option to the command line when running execstack tests for the
373         HPPA target.
375 2022-05-12  Alan Modra  <amodra@gmail.com>
377         PR 29006
378         * pe-dll.c (dll_name): Delete, replacing with..
379         (dll_filename): ..this, moved earlier in file.
380         (generate_edata): Delete parameters.  Don't set up dll_name here..
381         (pe_process_import_defs): ..instead set up dll_filename and
382         dll_symname here before returning.
383         (dll_symname_len): Delete write-only variable.
384         (pe_dll_generate_implib): Don't set up dll_symname here.
386 2022-05-03  Nick Clifton  <nickc@redhat.com>
388         PR 29101
389         * libdep_plugin.c (get_libdeps): Check for overflow when computing
390         amount of memory to allocate.
392 2022-04-27  Nick Clifton  <nickc@redhat.com>
394         PR 29006
395         * pe-dll.c (make_head): Use asprintf to allocate and populate a
396         buffer containing the temporary name.
397         (make_tail, make_one, make_singleton_name_thunk): Likewise.
398         (make_import_fixup_mark, make_import_fixup_entry): Likewise.
399         (make_runtime_pseudo_reloc): Likewise.
400         (pe_create_runtime_relocator_reference): Likewise.
402 2022-04-25  Nick Clifton  <nickc@redhat.com>
404         PR 29072
405         * testsuite/ld-elf/pr29072.b.warn: Update to include the note
406         about the linker's behaviour being depreccated.
408 2022-04-20  Clément Chigot  <clement.chigot@atos.net>
410         * emultempl/aix.em (params): New variable.
411         (stub_file): New variable.
412         (xcoff_add_stub_section): New function.
413         (xcoff_layout_sections_again): New function
414         (hook_in_stub): New function.
415         (_after_allocation): Add stub creation.
416         (_create_output_section_statements): Allocate stub file and
417         pass params to backend.
419 2022-04-20  Clément Chigot  <clement.chigot@atos.net>
421         * emultempl/aix.em (_after_allocation): New function.
423 2022-04-07  Mark Harmstone  <mark@harmstone.com>
425         * testsuite/ld-pe/secidx1.s: New test source file.
426         * testsuite/ld-pe/secidx2.s: New test source file.
427         * testsuite/ld-pe/secidx.d: New test driver file.
428         * testsuite/ld-pe/secidx_64.d: New test driver file.
429         * testsuite/ld-pe/pe.exp: Add new tests.
431 2022-03-01  Nick Clifton  <nickc@redhat.com>
433         PR 21964
434         * testsuite/ld-elf/pr21964-1a.c: Fix array comparisons.
435         * testsuite/ld-elf/pr21964-1b.c: Likewise.
436         * testsuite/ld-elf/pr21964-1c.c: Likewise.
437         * testsuite/ld-elf/pr21964-2a.c: Likewise.
438         * testsuite/ld-elf/pr21964-2b.c: Likewise.
439         * testsuite/ld-elf/pr21964-3a.c: Likewise.
441 2022-02-17  Roland McGrath  <mcgrathr@google.com>
443         * ld.texi (Output Section Type): Fix typo in @code syntax.
445 2022-02-17  Nick Clifton  <nickc@redhat.com>
447         * po/sr.po: Updated Serbian translation.
449 2022-02-16  Fangrui Song  <maskray@google.com>
450             Nick Clifton  <nickc@redhat.com>
452         PR ld/28841
453         * ld.texi: Document new output section type.
454         * ldlex.l: Add new token TYPE.
455         * ldgram.y: Handle TYPE=exp and READONLY (TYPE=exp).
456         * ldlang.h: Add type_section to list of section types.
457         * ldlang.c (lang_add_section): Handle type_section.
458         (map_input_to_output_sections): Handle type_section.
459         * testsuite/ld-scripts/output-section-types.t: Add tests.
460         * testsuite/ld-scripts/output-section-types.d: Update.
462 2022-02-02  Nick Clifton  <nickc@redhat.com>
464         * po/fr.po: Updated French translation.
466 2022-01-24  Nick Clifton  <nickc@redhat.com>
468         * po/bg.po: Updated Bulgarian translation.
469         * po/uk.po: Updated Ukranian translation.
471 2022-01-22  Alexander von Gluck IV  <kallisti5@unixzen.com>
473         * configure.tgt (arm-haiku): Fix typo.
474         * emulparams/armelf_haiku.su (MAXPAGESIZE): Use the default value.
475         (COMMONPAGESIZE): Likewise.
477 2022-01-22  Nick Clifton  <nickc@redhat.com>
479         * configure: Regenerate.
480         * po/ld.pot: Regenerate.
482 2022-01-22  Nick Clifton  <nickc@redhat.com>
484         * 2.38 release branch created.
486 2022-01-21  Nick Clifton  <nickc@redhat.com>
488         * po/sr.po: Updated Serbian translation.
490 2022-01-17  Nick Clifton  <nickc@redhat.com>
492         * Makefile.in: Regenerate.
493         * po/ld.pot: Regenerate.
495 2022-01-11  Martin Storsjö  <martin@martin.st>
497         * pe-dll.c (make_head): Prefix the symbol name with the dll name.
498         (make_tail, make_one, make_singleton_name_thunk): Likewise.
499         (make_import_fixup_entry, make_runtime_pseudo_reloc): Likewise.
500         (pe_create_runtime_relocator_reference): Likewise.
501         (pe_dll_generate_implib): Set dll_symname_len.
502         (pe_process_import_defs): Likewise.
504 2021-12-16  Nick Clifton  <nickc@redhat.com>
506         PR 28686
507         * testsuite/ld-avr/avr-prop-7.d: Adjust expected output.
508         * testsuite/ld-avr/avr-prop-8.d: Likewise.
509         * testsuite/ld-avr/pr13402.d: Likewise.
511 2021-11-30  Nick Clifton  <nickc@redhat.com>
513         * scripttempl/pru.sc (.pru_irq_map): Define output section.
514         * testsuite/ld-pru/pru_irq_map-1.d: New test.
515         * testsuite/ld-pru/pru_irq_map-2.d: New test.
516         * testsuite/ld-pru/pru_irq_map.s: New test.
518 2021-11-17  Jeremy Drake  <cygwin@jdrake.com>
520         * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Set to 0 for
521         Cygwin targets.
522         * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Likewise.
524 2021-11-17  Nick Clifton  <nickc@redhat.com>
526         PR 28452
527         * ldgram.y: Add support for PT_GNU_RELRO and PT_GNU_PROPERTY.
528         * ldgram.c: Regenerate.
530 2021-11-15  Roland McGrath  <mcgrathr@google.com>
532         * testsuite/ld-aarch64/dt_textrel.d: Pass explicit -z notext in
533         case ld was configured with --enable-textrel-check=error.
534         * testsuite/ld-aarch64/pr22764.d: Likewise.
535         * testsuite/ld-aarch64/pr20402.d: Likewise.
537 2021-10-25  Nick Alcock  <nick.alcock@oracle.com>
539         * testsuite/ld-ctf/nonrepresentable-member.*: New test.
541 2021-10-25  Nick Alcock  <nick.alcock@oracle.com>
543         * testsuite/ld-ctf/array.d: Change --ctf=.ctf to --ctf.
544         * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
545         * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
546         * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
547         * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
548         * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
549         * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
550         * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
551         * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
552         * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
553         * testsuite/ld-ctf/conflicting-enums.d: Likewise.
554         * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
555         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
556         * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
557         * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
558         * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
559         * testsuite/ld-ctf/cycle-1.d: Likewise.
560         * testsuite/ld-ctf/cycle-2.A.d: Likewise.
561         * testsuite/ld-ctf/cycle-2.B.d: Likewise.
562         * testsuite/ld-ctf/cycle-2.C.d: Likewise.
563         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
564         * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
565         * testsuite/ld-ctf/diag-cuname.d: Likewise.
566         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
567         * testsuite/ld-ctf/enum-forward.d: Likewise.
568         * testsuite/ld-ctf/enums.d: Likewise.
569         * testsuite/ld-ctf/forward.d: Likewise.
570         * testsuite/ld-ctf/function.d: Likewise.
571         * testsuite/ld-ctf/nonrepresentable.d: Likewise.
572         * testsuite/ld-ctf/slice.d: Likewise.
573         * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
575 2021-09-30  Dimitar Dimitrov  <dimitar@dinux.eu>
577         * scripttempl/pru.sc (.resource_table): Align the output
578         section, not the first symbol.
580 2021-09-27  Nick Alcock  <nick.alcock@oracle.com>
582         * configure: Regenerate.
584 2021-09-21  Nick Clifton  <nickc@redhat.com>
586         * ldlang.c (lang_end): When computing the entry point, only
587         try the start address of the entry section when creating an
588         executable.
589         * ld.texi (Entry point): Update description of heuristic used to
590         choose the entry point.
591         testsuite/ld-alpha/tlspic.rd: Update expected entry point address.
592         testsuite/ld-arm/tls-gdesc-got.d: Likewise.
593         testsuite/ld-i386/tlsnopic.rd: Likewise.
594         testsuite/ld-ia64/tlspic.rd: Likewise.
595         testsuite/ld-sparc/gotop32.rd: Likewise.
596         testsuite/ld-sparc/gotop64.rd: Likewise.
597         testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
598         testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
599         testsuite/ld-sparc/tlssunpic32.rd: Likewise.
600         testsuite/ld-sparc/tlssunpic64.rd: Likewise.
601         testsuite/ld-tic6x/shlib-1.rd: Likewise.
602         testsuite/ld-tic6x/shlib-1b.rd: Likewise.
603         testsuite/ld-tic6x/shlib-1r.rd: Likewise.
604         testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
605         testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
606         testsuite/ld-x86-64/pr14207.d: Likewise.
607         testsuite/ld-x86-64/tlsdesc.rd: Likewise.
608         testsuite/ld-x86-64/tlspic.rd: Likewise.
609         testsuite/ld-x86-64/tlspic2.rd: Likewise.
611 2021-09-15  Claudiu Zissulescu  <claziss@synopsys.com>
613         * testsuite/ld-arc/got-weak.d: Update file.
615 2021-09-14  Claudiu Zissulescu  <claziss@synopsys.com>
617         * ld-arc/got-weak.d: New file.
618         * ld-arc/got-weak.s: Likewise.
620 2021-07-26  Roland McGrath  <mcgrathr@google.com>
622         * testsuite/ld-x86-64/x86-64.exp (Build textrel-1): Use --warn-textrel.
624 2021-07-06  Michael Matz  <matz@suse.de>
626         PR ld/28021
627         * testsuite/ld-riscv-elf/relax-twice.ver: New.
628         * testsuite/ld-riscv-elf/relax-twice-1.s: New.
629         * testsuite/ld-riscv-elf/relax-twice-2.s: New.
630         * testsuite/ld-riscv-elf/ld-riscv-elf.exp
631         (run_relax_twice_test): New, and call it.
633 2021-07-03  Nick Clifton  <nickc@redhat.com>
635         * configure: Regenerate.
636         * po/ld.pot: Regenerate.
638 2021-07-03  Nick Clifton  <nickc@redhat.com>
640         * 2.37 release branch created.
642 2021-06-22  Nelson Chu  <nelson.chu@sifive.com>
644         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
645         * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.d: New testcase.
646         * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.s: Likewise.
647         * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.d: New testcase.
648         Should report error since the %pcrel_lo with addend refers to
649         %got_pcrel_hi.
650         * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.s: Likewise.
651         * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.d: New testcase.
652         Should report error since the %got_pcrel_hi with addend.
653         * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.s: Likewise.
654         * testsuite/ld-riscv-elf/pcrel-lo-addend-3.ld: Likewise.
656 2021-06-19  H.J. Lu  <hongjiu.lu@intel.com>
658         PR ld/27998
659         * testsuite/ld-i386/i386.exp: Run PR ld/27998 tests.
660         * testsuite/ld-i386/pr27998a.d: New file.
661         * testsuite/ld-i386/pr27998a.s: Likewise.
662         * testsuite/ld-i386/pr27998b.d: Likewise.
663         * testsuite/ld-i386/pr27998b.s: Likewise.
665 2021-06-19  H.J. Lu  <hongjiu.lu@intel.com>
667         * testsuite/ld-x86-64/textrel-1.err: New file.
668         * testsuite/ld-x86-64/textrel-1a.s: Likewise.
669         * testsuite/ld-x86-64/textrel-1b.s: Likewise.
670         * testsuite/ld-x86-64/x86-64.exp: Run textrel-1 tests.
672 2021-06-18  H.J. Lu  <hongjiu.lu@intel.com>
674         * testsuite/ld-elf/property-and-1.d: Skip am33_2.0, hppa-hpux
675         and mn10300.
676         Pass --generate-missing-build-notes=no to assembler.  Allow
677         other note sections for xtensa.
678         * testsuite/ld-elf/property-and-2.d: Likewise.
679         * testsuite/ld-elf/property-and-3.d: Likewise.
680         * testsuite/ld-elf/property-and-4.d: Likewise.
681         * testsuite/ld-elf/property-or-1.d: Likewise.
682         * testsuite/ld-elf/property-or-2.d: Likewise.
683         * testsuite/ld-elf/property-or-3.d: Likewise.
684         * testsuite/ld-elf/property-or-4.d: Likewise.
686 2021-06-18  H.J. Lu  <hongjiu.lu@intel.com>
688         * ld.texi: Move -z unique-symbol after -z undefs.
690 2021-06-18  H.J. Lu  <hongjiu.lu@intel.com>
692         * testsuite/ld-elf/property-and-1.d: New file.
693         * testsuite/ld-elf/property-and-1.s: Likewise.
694         * testsuite/ld-elf/property-and-2.d: Likewise.
695         * testsuite/ld-elf/property-and-2.s: Likewise.
696         * testsuite/ld-elf/property-and-3.d: Likewise.
697         * testsuite/ld-elf/property-and-3.s: Likewise.
698         * testsuite/ld-elf/property-and-4.d: Likewise.
699         * testsuite/ld-elf/property-and-empty.s: Likewise.
700         * testsuite/ld-elf/property-or-1.d: Likewise.
701         * testsuite/ld-elf/property-or-1.s: Likewise.
702         * testsuite/ld-elf/property-or-2.d: Likewise.
703         * testsuite/ld-elf/property-or-2.s: Likewise.
704         * testsuite/ld-elf/property-or-3.d: Likewise.
705         * testsuite/ld-elf/property-or-3.s: Likewise.
706         * testsuite/ld-elf/property-or-4.d: Likewise.
707         * testsuite/ld-elf/property-or-empty.s: Likewise.
709 2021-06-17  H.J. Lu  <hongjiu.lu@intel.com>
711         PR ld/27973
712         * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and
713         $NOPIE_CFLAGS to protected-func-1 without PIE.
715 2021-06-17  H.J. Lu  <hongjiu.lu@intel.com>
717         PR ld/27973
718         * testsuite/ld-x86-64/x86-64.exp: Run protected function tests.
719         * testsuite/ld-x86-64/protected-func-1.h: New file.
720         * testsuite/ld-x86-64/protected-func-1a.s: Likewise.
721         * testsuite/ld-x86-64/protected-func-1b.c: Likewise.
723 2021-06-17  Fangrui Song  <maskray@google.com>
725         * ldlex.h (enum option_values): Add OPTION_NO_PIE.
726         * lexsup.c (struct ld_options): Add -no-pie.
727         (parse_args): Handle -no-pie.
728         * ld.texi: Document -no-pie.
730 2021-06-15  Alan Modra  <amodra@gmail.com>
732         * testsuite/ld-pie/vaddr-0.d: Update expected output.
734 2021-06-11  Alan Modra  <amodra@gmail.com>
736         PR 27952
737         * ldelf.c (ldelf_after_open): Error on input PIEs too.
739 2021-06-09  Nick Clifton  <nickc@redhat.com>
741         PR 27666
742         * testsuite/ld-sparc/sparc.exp: Do not run the sparctests or
743         sparc64tests for Solaris2 targets.
745 2021-06-03  Alan Modra  <amodra@gmail.com>
747         PR 2589
748         * ld.texi (link-time runtime library search path): Mention
749         plugin library path.  Correct order of search.
751 2021-05-31  Nelson Chu  <nelson.chu@sifive.com>
752             Lifang Xia  <lifang_xia@c-sky.com>
754         PR 27566
755         * emultempl/riscvelf.em (after_allocation): Call
756         riscv_set_data_segment_info to set data segment phase before relaxing.
757         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
758         * testsuite/ld-riscv-elf/relro-relax-lui.d: New testcase.
759         * testsuite/ld-riscv-elf/relro-relax-lui.s: Likewise.
760         * testsuite/ld-riscv-elf/relro-relax-pcrel.d: Likewise.
761         * testsuite/ld-riscv-elf/relro-relax-pcrel.s: Likewise.
763 2021-05-28  H.J. Lu  <hongjiu.lu@intel.com>
765         PR ld/27905
766         * testsuite/ld-i386/pcrel16-2.d: xfail.
767         * testsuite/ld-x86-64/pcrel16-2.d: Likewise.
769 2021-05-26  H.J. Lu  <hongjiu.lu@intel.com>
771         PR ld/27905
772         * testsuite/ld-i386/code16.d: New file.
773         * testsuite/ld-i386/code16.t: Likewise.
774         * testsuite/ld-x86-64/code16.d: Likewise.
775         * testsuite/ld-x86-64/code16.t: Likewise.
776         * testsuite/ld-i386/i386.exp: Run code16.
777         * testsuite/ld-x86-64/x86-64.exp: Likewise.
779 2021-05-26  H.J. Lu  <hongjiu.lu@intel.com>
781         * testsuite/ld-x86-64/ilp32-12.d: New file.
782         * testsuite/ld-x86-64/ilp32-12.s: Likewise.
783         * testsuite/ld-x86-64/x86-64.exp: Run ilp32-12.
785 2021-05-14  Nelson Chu  <nelson.chu@sifive.com>
787         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
788         * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d: Renamed from
789         pcrel-lo-addend-2.
790         * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.s: Likewise.
791         * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.d: New testcase.
792         * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.s: Likewise.
794 2021-05-13  Fangrui Song  <maskray@google.com>
796         PR 27834
797         * ldlex.h (enum option_values): Add OPTION_NO_SYMBOLIC.
798         * lexsup.c (ld_options): Add -Bno-symbolic.
799         (parse_args): Handle -Bno-symbolic.
800         * ld.texi: Document -Bno-symbolic.
801         * NEWS: Mention -Bno-symbolic.
802         * testsuite/ld-elf/shared.exp: Add a test.
804 2021-05-12  Richard Earnshaw  <rearnsha@arm.com>
806         * testsuite/ld-arm/arm-elf.exp (farcall test for v8-m.mainline):
807         Correct expected output.
809 2021-05-11  Roland McGrath  <mcgrathr@google.com>
811         * testsuite/ld-x86-64/rela.d: Fix regexp not to presume a specific
812         address layout, so it works for e.g. --target=x86-64-elf.
814 2021-05-11  Nick Clifton  <nickc@redhat.com>
816         PR 27113
817         * Makefile.am (install-data-local): Also delete libdep.dll.a if it
818         is present.
819         * Makefile.in: Regenerate.
821 2021-05-10  Dimitar Dimitrov  <dimitar@dinux.eu>
823         * testsuite/ld-elf/group8a.d: Remove pru from XFAIL list.
824         * testsuite/ld-elf/group8b.d: Ditto.
825         * testsuite/ld-elf/group9a.d: Ditto.
826         * testsuite/ld-elf/group9b.d: Ditto.
827         * testsuite/ld-elf/pr12851.d: Ditto.
828         * testsuite/ld-elf/pr22677.d: Ditto.
829         * testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove
830         pru from list.
832 2021-05-10  Dimitar Dimitrov  <dimitar@dinux.eu>
834         * scripttempl/pru.sc (.resource_table): Add ALIGN directive.
835         Use symbols for memory sizes.
837 2021-05-08  Mike Frysinger  <vapier@gentoo.org>
839         * Makefile.am (html-local, doc/ld/index.html): New targets.
840         * Makefile.in: Regenerate.
842 2021-05-08  Mike Frysinger  <vapier@gentoo.org>
844         * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
845         * Makefile.in: Regenerate.
847 2021-05-07  Jan Beulich  <jbeulich@suse.com>
849         * testsuite/ld-x86-64/rela.d: New.
850         * testsuite/ld-x86-64/x86-64.exp: Run new test.
852 2021-05-07  Nick Clifton  <nickc@redhat.com>
854         * ldelfgen.c (compare_link_order): Ignore section size when
855         performing a relocateable link.
857 2021-05-07  Alan Modra  <amodra@gmail.com>
859         * ldexp.c (update_definedness): Don't return false for absolute
860         symbols.
861         * ldmain.c (multiple_definition): Print "warning: " in message
862         when not a hard error.
864 2021-05-07  Alan Modra  <amodra@gmail.com>
866         * testsuite/ld-elf/pr27825-1.d: Correct xfail.
867         * testsuite/ld-elf/pr27825-2.d: Likewise.
869 2021-05-06  Stafford Horne  <shorne@gmail.com>
871         PR 27746
872         testsuite/ld-or1k/or1k.exp (or1kplttests): Add tests for linking
873         along with gotha() relocations.
874         testsuite/ld-or1k/gotha1.dd: New file.
875         testsuite/ld-or1k/gotha1.s: New file.
876         testsuite/ld-or1k/gotha2.dd: New file.
877         testsuite/ld-or1k/gotha2.s: New file
878         testsuite/ld-or1k/pltlib.s (x): Define size to avoid link
879         failure.
881 2021-05-06  Nick Alcock  <nick.alcock@oracle.com>
883         * testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt.
884         * testsuite/lib/ld-lib.exp: Likewise.
885         * testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types.
886         * testsuite/ld-ctf/nonrepresentable-2.c: Likewise.
887         * testsuite/ld-ctf/nonrepresentable.d: Likewise.
888         * testsuite/ld-ctf/array.d: Larger type section.
889         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
890         * testsuite/ld-ctf/enums.d: Likewise.
891         * testsuite/ld-ctf/conflicting-enums.d: Don't compare types.
892         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order.
893         * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
894         * testsuite/ld-ctf/slice.d: Adjust for improved slice emission.
896 2021-05-05  H.J. Lu  <hongjiu.lu@intel.com>
898         PR ld/27825
899         * testsuite/ld-elf/pr27825-1.d: New file.
900         * testsuite/ld-elf/pr27825-1a.s: Likewise.
901         * testsuite/ld-elf/pr27825-1b.s: Likewise.
902         * testsuite/ld-elf/pr27825-2.d: Likewise.
903         * testsuite/ld-elf/pr27825-2a.s: Likewise.
904         * testsuite/ld-elf/pr27825-2b.s: Likewise.
906 2021-05-05  Alan Modra  <amodra@gmail.com>
908         * testsuite/ld-powerpc/empty.s: New file.
909         * testsuite/ld-powerpc/undefweak.d,
910         * testsuite/ld-powerpc/undefweak.s: New testcase.
911         * testsuite/ld-powerpc/powerpc.exp: Run it.
913 2021-05-03  Alan Modra  <amodra@gmail.com>
915         * testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
916         named section symbols.
918 2021-04-28  Nick Clifton  <nickc@redhat.com>
920         * testsuite/ld-elf/anno-sym.s: New test source file.
921         * testsuite/ld-elf/anno-sym.d: New test driver.
922         * testsuite/ld-elf/anno-sym.l: New test error output.
924 2021-04-26  Jan Beulich  <jbeulich@suse.com>
926         * testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d,
927         testsuite/ld-x86-64/pcrel16-2.d: New.
928         * testsuite/ld-i386/i386.exp: Run new test.
929         * testsuite/ld-x86-64/x86-64.exp: Likewise.
931 2021-04-23  H.J. Lu  <hongjiu.lu@intel.com>
933         PR ld/27771
934         * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
935         to tmpdir/ldscripts only if it doesn't exist.
937 2021-04-22  Jan Beulich  <jbeulich@suse.com>
939         PR ld/26659
940         * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
942 2021-04-21  Nick Clifton  <nickc@redhat.com>
944         * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
945         to allow for named section symbols.
946         * testsuite/ld-aarch64/variant_pcs-r.d: Likewise.
947         * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
948         * testsuite/ld-alpha/tlsbin.rd: Likewise.
949         * testsuite/ld-alpha/tlsbinr.rd: Likewise.
950         * testsuite/ld-alpha/tlspic.rd: Likewise.
951         * testsuite/ld-arm/rodata-merge-map.sym: Likewise.
952         * testsuite/ld-arm/script-type.sym: Likewise.
953         * testsuite/ld-cris/libdso-2.d: Likewise.
954         * testsuite/ld-cris/pr16044.d: Likewise.
955         * testsuite/ld-elf/sec64k.exp: Likewise.
956         * testsuite/ld-ia64/tlsbin.rd: Likewise.
957         * testsuite/ld-ia64/tlspic.rd: Likewise.
958         * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
959         * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
960         * testsuite/ld-mmix/bspec1.d: Likewise.
961         * testsuite/ld-mmix/bspec2.d: Likewise.
962         * testsuite/ld-mmix/local1.d: Likewise.
963         * testsuite/ld-mmix/local3.d: Likewise.
964         * testsuite/ld-mmix/local5.d: Likewise.
965         * testsuite/ld-mmix/local7.d: Likewise.
966         * testsuite/ld-mmix/undef-3.d: Likewise.
967         * testsuite/ld-powerpc/tlsso.r: Likewise.
968         * testsuite/ld-powerpc/tlsso32.r: Likewise.
969         * testsuite/ld-powerpc/tlstocso.r: Likewise.
970         * testsuite/ld-s390/tlsbin.rd: Likewise.
971         * testsuite/ld-s390/tlsbin_64.rd: Likewise.
972         * testsuite/ld-s390/tlspic.rd: Likewise.
973         * testsuite/ld-s390/tlspic_64.rd: Likewise.
974         * testsuite/ld-sparc/gotop32.rd: Likewise.
975         * testsuite/ld-sparc/gotop64.rd: Likewise.
976         * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
977         * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
978         * testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
979         * testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
980         * testsuite/ld-sparc/tlssunpic32.rd: Likewise.
981         * testsuite/ld-sparc/tlssunpic64.rd: Likewise.
982         * testsuite/ld-tic6x/common.d: Likewise.
983         * testsuite/ld-tic6x/shlib-1.rd: Likewise.
984         * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
985         * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
986         * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
987         * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
988         * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
989         * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
990         * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
991         * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
992         * testsuite/ld-tic6x/static-app-1.rd: Likewise.
993         * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
994         * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
995         * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
997 2021-04-20  Clément Chigot  <clement.chigot@atos.net>
999         PR binutils/21700
1000         * testsuite/ld-powerpc/aix52.exp: Add new test.
1001         * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
1002         * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
1003         * testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
1004         * testsuite/ld-powerpc/aix-neg-reloc.s: New test.
1006 2021-04-13  Nick Clifton  <nickc@redhat.com>
1008         * ld.texi (Options): Add note about the effect of --as-needed on
1009         the --rpath and --rpath-link options on Linux based systems.
1011 2021-04-13  Alan Modra  <amodra@gmail.com>
1013         PR 27722
1014         * libdep_plugin.c (str2vec): Don't pass a potentially signed char
1015         to isspace.
1017 2021-04-12  Alan Modra  <amodra@gmail.com>
1019         * configure.ac (--enable-checking): Add support.
1020         * config.in: Regenerate.
1021         * configure: Regenerate.
1023 2021-04-12  Alan Modra  <amodra@gmail.com>
1025         * emultempl/mipself.em (mips_create_output_section_statements):
1026         Pass base type of hash table to is_elf_hash_table.
1027         * ldelf.c (ldelf_after_open): Likewise.
1029 2021-04-12  Alan Modra  <amodra@gmail.com>
1031         PR 27719
1032         * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
1033         the symbol hash table is the correct type before accessing
1034         elf_link_hash_entry symbols.
1035         * plugin.c (is_visible_from_outside): Likewise.
1036         * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
1037         * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
1039 2021-04-09  Alan Modra  <amodra@gmail.com>
1041         * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
1042         * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
1043         * testsuite/ld-powerpc/notoc2.d: Likewise.
1044         * testsuite/ld-powerpc/notoc3.d: Likewise.
1045         * testsuite/ld-powerpc/pcrelopt.d: Likewise.
1046         * testsuite/ld-powerpc/startstop.d: Likewise.
1047         * testsuite/ld-powerpc/tlsget.d: Likewise.
1048         * testsuite/ld-powerpc/tlsget2.d: Likewise.
1049         * testsuite/ld-powerpc/tlsld.d: Likewise.
1050         * testsuite/ld-powerpc/weak1.d: Likewise.
1051         * testsuite/ld-powerpc/weak1so.d: Likewise.
1053 2021-04-06  Jan Beulich  <jbeulich@suse.com>
1055         * pe-dll.c (generate_reloc): Bail immediately when .reloc is
1056         being discarded. Warn when relocated entry is above .reloc.
1058 2021-04-05  Alan Modra  <amodra@gmail.com>
1060         * configure.ac: Move initfini-array arg handling earlier.  Don't
1061         check for string.h, strings.h, stdlib.h, or locale.h.  Do check
1062         for inttypes.h, stdint.h, sys/types.h.  Don't check for
1063         setlocale, free, getev or strstr.
1064         (AC_ISC_POSIX): Don't invoke.
1065         * sysdep.h: Include string.h and stdlib.h unconditionally.  Test
1066         HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H.  Remove strstr, free and
1067         getenv fallback declarations.
1068         * ld.h: Don't test HAVE_LOCALE_H.
1069         * ldmain.c: Don't test HAVE_SETLOCALE.
1070         * config.in: Regenerate.
1071         * configure: Regenerate.
1073 2021-04-01  Tamar Christina  <tamar.christina@arm.com>
1075         PR ld/26659
1076         * testsuite/ld-pe/pe.exp: Add test.
1077         * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
1078         * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
1080 2021-04-01  Martin Liska  <mliska@suse.cz>
1082         * ldbuildid.c (strneq): Remove strneq and use startswith.
1083         (validate_build_id_style): Likewise.
1084         (compute_build_id_size): Likewise.
1086 2021-03-31  Alan Modra  <amodra@gmail.com>
1088         * sysdep.h (POISON_BFD_BOOLEAN): Define.
1089         * configure.ac (elf_list_options, elf_shlib_list_options=false),
1090         (elf_plt_unwind_list_options=false): Replace FALSE with false,
1091         and TRUE with true.
1092         * emulparams/call_nop.sh, * emulparams/cet.sh,
1093         * emulparams/dynamic_undefined_weak.sh,
1094         * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
1095         * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
1096         * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
1097         * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
1098         * emulparams/reloc_overflow.sh, * emulparams/static.sh,
1099         * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
1100         * emultempl/aix.em, * emultempl/alphaelf.em,
1101         * emultempl/armcoff.em, * emultempl/armelf.em,
1102         * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
1103         * emultempl/cr16elf.em, * emultempl/crxelf.em,
1104         * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
1105         * emultempl/hppaelf.em, * emultempl/linux.em,
1106         * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
1107         * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
1108         * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
1109         * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
1110         * emultempl/pep.em, * emultempl/ppc32elf.em,
1111         * emultempl/ppc64elf.em, * emultempl/rxelf.em,
1112         * emultempl/rxlinux.em, * emultempl/scoreelf.em,
1113         * emultempl/solaris2.em, * emultempl/spuelf.em,
1114         * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
1115         * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
1116         * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
1117         * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
1118         * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
1119         * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
1120         * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
1121         * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
1122         * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
1123         bfd_boolean with bool, FALSE with false, and TRUE with true.
1124         * configure: Regenerate.
1126 2021-03-31  Alan Modra  <amodra@gmail.com>
1128         * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
1129         * emultempl/nds32elf.em: Likewise.
1130         * testsuite/ld-elf/mbind2b.c: Likewise.
1131         * testsuite/ld-elf/pr18718.c: Likewise.
1132         * testsuite/ld-elf/pr18720a.c: Likewise.
1133         * testsuite/ld-elf/pr25749-1.c: Likewise.
1134         * testsuite/ld-elf/pr25749-1a.c: Likewise.
1135         * testsuite/ld-elf/pr25749-1b.c: Likewise.
1136         * testsuite/ld-elf/pr25749-1c.c: Likewise.
1137         * testsuite/ld-elf/pr25749-1d.c: Likewise.
1138         * testsuite/ld-elf/pr25749-2.c: Likewise.
1139         * testsuite/ld-elf/pr25754-1a.c: Likewise.
1140         * testsuite/ld-elf/pr25754-2a.c: Likewise.
1141         * testsuite/ld-elf/pr25754-3a.c: Likewise.
1142         * testsuite/ld-elf/pr25754-4a.c: Likewise.
1143         * testsuite/ld-elf/pr25754-5a.c: Likewise.
1144         * testsuite/ld-elf/pr25754-6a.c: Likewise.
1146 2021-03-29  Alan Modra  <amodra@gmail.com>
1148         * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
1149         boolean expression.
1150         * lexsup.c (parse_args): Likewise.
1151         * pe-dll.c (pe_dll_id_target): Likewise.
1153 2021-03-25  Nick Alcock  <nick.alcock@oracle.com>
1155         * testsuite/ld-ctf/array.d: Only check that the data object
1156         section is nonempty: do not check its exact size.
1157         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1158         * testsuite/ld-ctf/slice.d: Likewise.
1159         * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
1160         func info section too.
1161         * testsuite/ld-ctf/function.d: Likewise, for the func info section.
1163 2021-03-22  Martin Liska  <mliska@suse.cz>
1165         * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
1166         * emultempl/beos.em: Likewise.
1167         * emultempl/elf.em: Likewise.
1168         * emultempl/pe.em: Likewise.
1169         * emultempl/pep.em: Likewise.
1170         * emultempl/xtensaelf.em: Likewise.
1171         * ldctor.c (ctor_prio): Likewise.
1172         * ldelf.c (ldelf_try_needed): Likewise.
1173         (ldelf_parse_ld_so_conf): Likewise.
1174         (ldelf_after_open): Likewise.
1175         (output_rel_find): Likewise.
1176         (ldelf_place_orphan): Likewise.
1177         * ldfile.c (ldfile_add_library_path): Likewise.
1178         * ldlang.c (lang_add_input_file): Likewise.
1179         * ldmain.c (get_sysroot): Likewise.
1180         (get_emulation): Likewise.
1181         (add_archive_element): Likewise.
1182         * ldwrite.c (unsplittable_name): Likewise.
1183         (clone_section): Likewise.
1184         * lexsup.c (parse_args): Likewise.
1185         * pe-dll.c (is_import): Likewise.
1186         (pe_implied_import_dll): Likewise.
1188 2021-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1190         PR ld/27590
1191         * testsuite/ld-x86-64/pr27590.rd: New file.
1192         * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
1193         * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
1194         * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
1196 2021-03-20  Alan Modra  <amodra@gmail.com>
1198         PR 27590
1199         * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
1200         for all sections except .stabstr.
1202 2021-03-19  Alan Modra  <amodra@gmail.com>
1204         PR 27590
1205         * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
1206         R_MIPS_NONE.
1207         * testsuite/ld-elf/pr27590b.d: Likewise.
1209 2021-03-18  H.J. Lu  <hongjiu.lu@intel.com>
1211         PR ld/27590
1212         * testsuite/ld-elf/pr27590.s: New file.
1213         * testsuite/ld-elf/pr27590a.d: Likewise.
1214         * testsuite/ld-elf/pr27590b.d: Likewise.
1215         * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
1216         --reduce-memory-overheads.
1218 2021-03-18  H.J. Lu  <hongjiu.lu@intel.com>
1220         PR ld/27587
1221         * testsuite/ld-x86-64/pr27587.err: New file.
1222         * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
1223         * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
1224         * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
1226 2021-03-18  Nick Alcock  <nick.alcock@oracle.com>
1228         * testsuite/ld-ctf/slice.c: Check slices of enums too.
1229         * testsuite/ld-ctf/slice.d: Results adjusted.
1231 2021-03-16  Nick Clifton  <nickc@redhat.com>
1233         * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
1234         lname string.
1236 2021-03-15  Jan Beulich  <jbeulich@suse.com>
1238         * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
1240 2021-03-12  Alan Modra  <amodra@gmail.com>
1242         * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
1243         (ALL_64_EMULATION_SOURCES): ..here.
1244         * Makefile.in: Regenerate.
1246 2021-03-12  Clément Chigot  <clement.chigot@atos.net>
1248         * emultempl/aix.em: Ensure .tdata section is removed
1249         if empty, even with -r flag.
1250         * scripttempl/aix.sc: Handle TLS sections.
1251         * testsuite/ld-powerpc/aix52.exp: Add new tests.
1252         * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
1253         * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
1254         * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
1255         * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
1256         * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
1257         * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
1258         * testsuite/ld-powerpc/aix-tls-section.ex: New test.
1259         * testsuite/ld-powerpc/aix-tls-section.s: New test.
1261 2021-03-12  Clément Chigot  <clement.chigot@atos.net>
1263         * scripttempl/aix.sc: Add .te to .data section.
1264         * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
1265         Add aix-largetoc-1 test.
1266         * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
1267         * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
1268         * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
1269         * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
1271 2021-03-12  Alan Modra  <amodra@gmail.com>
1273         * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
1274         arrange to define __main for some run_dump_test tests.
1275         * testsuite/ld-gc/pr13683.d: Accept more symbols.
1276         * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
1277         * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
1278         * testsuite/ld-srec/srec.exp: Likewise.
1279         * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
1281 2021-03-11  Nelson Chu  <nelson.chu@sifive.com>
1283         * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
1284         many times if riscv_restart_relax_sections returns TRUE.
1285         * testsuite/ld-riscv-elf/restart-relax.d: New testcase.  Before
1286         applying this patch, the call won't be relaxed to jal; But now we
1287         have more chances to do relaxations.
1288         * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
1289         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
1291 2021-03-10  Jan Beulich  <jbeulich@suse.com>
1293         * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
1294         than 32 set bits.
1295         * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
1296         comment.
1297         * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
1299 2021-03-09  Jan Beulich  <jbeulich@suse.com>
1301         * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
1302         alignment to 4k.
1303         * testsuite/ld-pe/reloc.d: xfail for mcore.
1305 2021-03-09  Jan Beulich  <jbeulich@suse.com>
1307         * testsuite/ld-scripts/alignof.exp,
1308         testsuite/ld-scripts/data.exp,
1309         testsuite/ld-scripts/default-script.exp,
1310         testsuite/ld-scripts/log2.exp,
1311         testsuite/ld-scripts/print-memory-usage.exp,
1312         testsuite/ld-scripts/sizeof.exp,
1313         testsuite/ld-undefined/weak-undef.exp: Set image base to zero
1314         for PE/COFF.
1315         * testsuite/ld-scripts/default-script1.d,
1316         testsuite/ld-scripts/default-script2.d,
1317         testsuite/ld-scripts/default-script3.d,
1318         testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
1320 2021-03-05  H.J. Lu  <hongjiu.lu@intel.com>
1322         PR ld/27425
1323         PR ld/27432
1324         * ldelf.c (ldelf_set_output_arch): New function.
1325         * ldelf.h (ldelf_set_output_arch): New prototype.
1326         * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
1327         ldelf_set_output_arch.
1328         * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
1329         * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1330         * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1331         * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1332         * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1333         * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1334         * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
1335         * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
1336         * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
1338 2021-03-04  Jan Beulich  <jbeulich@suse.com>
1340         * testsuite/ld-scripts/map-address.exp: Set image base to zero
1341         for PE/COFF.
1342         * testsuite/ld-scripts/map-address.t: Place .text.
1344 2021-03-04  Jan Beulich  <jbeulich@suse.com>
1346         * ldexp.c (ldexp_is_final_sym_absolute): New.
1347         * ldexp.h (ldexp_is_final_sym_absolute): Declare.
1348         * pe-dll.c (generate_reloc): Skip absolute symbols.
1349         * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
1350         * testsuite/ld-pe/pe.exp: Run new test.
1352 2021-03-03  Alan Modra  <amodra@gmail.com>
1354         PR 27500
1355         * ldlang.c (insert_undefined): Don't mark symbols here.
1356         (lang_mark_undefineds): Do so here instead, new function.
1357         (lang_process): Call lang_mark_undefineds.
1358         * testsuite/ld-gc/start3.d,
1359         * testsuite/ld-gc/start3.s: New test.
1360         * testsuite/ld-gc/start4.d,
1361         * testsuite/ld-gc/start4.s: New test.
1362         * testsuite/ld-gc/gc.exp: Run them.
1364 2021-03-03  Alan Modra  <amodra@gmail.com>
1366         * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
1367         Move tests with ELF section directives to is_elf_format block.
1368         * testsuite/ld-gc/abi-note.d: Run on more targets.
1369         * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
1370         * testsuite/ld-gc/start.d: Likewise.
1371         * testsuite/ld-gc/start2.d: Likewise.
1372         * testsuite/ld-gc/stop.d: Likewise.
1373         * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
1374         * testsuite/ld-gc/start.s: Likewise.
1375         * testsuite/ld-gc/start2.s: Likewise.
1377 2021-03-02  Nick Alcock  <nick.alcock@oracle.com>
1379         * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
1381 2021-03-02  Alan Modra  <amodra@gmail.com>
1383         * testsuite/ld-powerpc/startstop.d,
1384         * testsuite/ld-powerpc/startstop.r,
1385         * testsuite/ld-powerpc/startstop.s: New test.
1386         * testsuite/ld-powerpc/powerpc.exp: Run it.
1388 2021-03-02  Alan Modra  <amodra@gmail.com>
1390         * testsuite/ld-powerpc/weak1.d,
1391         * testsuite/ld-powerpc/weak1.r,
1392         * testsuite/ld-powerpc/weak1.s,
1393         * testsuite/ld-powerpc/weak1so.d,
1394         * testsuite/ld-powerpc/weak1so.r: New tests.
1395         * testsuite/ld-powerpc/powerpc.exp: Run them.
1397 2021-03-01  Hannes Domani  <ssbssa@sourceware.org>
1398             Nick Clifton  <nickc@redhat.com>
1400         PR 27268
1401         * scripttempl/pe.sc: Add DWARF-5 section names.
1402         * scripttempl/pep.sc: Likewise.
1404 2021-03-01  Alan Modra  <amodra@gmail.com>
1405             Fangrui Song <maskray@google.com>
1407         * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
1408         * lexsup.c (elf_static_list_options): Display help for them.  Move
1409         help for -z stack-size to here from elf_shlib_list_options. Add
1410         help for -z start-stop-visibility and -z undefs.
1411         * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
1412         * NEWS: Mention -z start-stop-gc.
1413         * testsuite/ld-gc/start2.s,
1414         * testsuite/ld-gc/start2.d: New test.
1415         * testsuite/ld-gc/gc.exp: Run it.
1417 2021-03-01  Alan Modra  <amodra@gmail.com>
1419         * ldlang.c (undef_start_stop): For ELF make undefined start/stop
1420         symbols undefweak if that was how they were referenced.  Undo
1421         dynamic state too.
1423 2021-03-01  Alan Modra  <amodra@gmail.com>
1425         * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
1426         * testsuite/ld-elf/pr27128a.d: Likewise.
1427         * testsuite/ld-elf/pr27128b.d: Likewise.
1428         * testsuite/ld-elf/pr27128c.d: Likewise.
1429         * testsuite/ld-elf/pr27128d.d: Likewise.
1430         * testsuite/ld-elf/pr27128e.d: Likewise.
1432 2021-02-26  Alan Modra  <amodra@gmail.com>
1434         PR 27441
1435         * testsuite/ld-plugin/pr27441a.c,
1436         * testsuite/ld-plugin/pr27441b.c,
1437         * testsuite/ld-plugin/pr27441c.c,
1438         * testsuite/ld-plugin/pr27441c.d: New test.
1439         * testsuite/ld-plugin/lto.exp: Run it.
1441 2021-02-25  Jan Beulich  <jbeulich@suse.com>
1443         * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
1445 2021-02-21  Alan Modra  <amodra@gmail.com>
1447         * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
1448         defined in an object file.
1449         * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
1450         * testsuite/ld-scripts/defined5.d: Expect a warning.
1452 2021-02-19  Alan Modra  <amodra@gmail.com>
1454         * testsuite/lib/ld-lib.exp: Whitespace.
1455         (load_common_lib): Expand single use and delete this proc.
1456         (run_host_cmd): Use -fno-lto when getting gcc's ld version.
1457         Use -B for clang too.
1459 2021-02-18  Andrew Burgess  <andrew.burgess@embecosm.com>
1461         * testplugin.c (record_read_length): Remove debug fprintf.
1463 2021-02-14  Alan Modra  <amodra@gmail.com>
1465         * testsuite/ld-cdtest/cdtest.exp,
1466         * testsuite/ld-checks/checks.exp,
1467         * testsuite/ld-elf/binutils.exp,
1468         * testsuite/ld-elf/compress.exp,
1469         * testsuite/ld-elf/dwarf.exp,
1470         * testsuite/ld-elf/exclude.exp,
1471         * testsuite/ld-elf/frame.exp,
1472         * testsuite/ld-elf/indirect.exp,
1473         * testsuite/ld-elf/linux-x86.exp,
1474         * testsuite/ld-elf/sec-to-seg.exp,
1475         * testsuite/ld-elf/tls_common.exp,
1476         * testsuite/ld-elfcomm/elfcomm.exp,
1477         * testsuite/ld-elfvers/vers.exp,
1478         * testsuite/ld-elfvsb/elfvsb.exp,
1479         * testsuite/ld-elfweak/elfweak.exp,
1480         * testsuite/ld-ifunc/binutils.exp,
1481         * testsuite/ld-mips-elf/mips-elf-flags.exp,
1482         * testsuite/ld-misc/defsym.exp,
1483         * testsuite/ld-mn10300/mn10300.exp,
1484         * testsuite/ld-plugin/lto.exp,
1485         * testsuite/ld-plugin/plugin.exp,
1486         * testsuite/ld-scripts/align.exp,
1487         * testsuite/ld-scripts/assert.exp,
1488         * testsuite/ld-scripts/crossref.exp,
1489         * testsuite/ld-scripts/defined.exp,
1490         * testsuite/ld-scripts/extern.exp,
1491         * testsuite/ld-scripts/log2.exp,
1492         * testsuite/ld-scripts/map-address.exp,
1493         * testsuite/ld-scripts/phdrs.exp,
1494         * testsuite/ld-scripts/phdrs2.exp,
1495         * testsuite/ld-scripts/script.exp,
1496         * testsuite/ld-scripts/section-flags.exp,
1497         * testsuite/ld-scripts/sizeof.exp,
1498         * testsuite/ld-scripts/weak.exp,
1499         * testsuite/ld-selective/selective.exp,
1500         * testsuite/ld-sh/sh.exp,
1501         * testsuite/ld-shared/shared.exp,
1502         * testsuite/ld-srec/srec.exp,
1503         * testsuite/ld-tic6x/tic6x.exp,
1504         * testsuite/ld-undefined/undefined.exp,
1505         * testsuite/ld-undefined/weak-undef.exp,
1506         * testsuite/lib/ld-lib.exp: Don't use unresolved except after
1507         perror.  Instead report "unsupported" or "fail".
1509 2021-02-12  Nick Clifton  <nickc@redhat.com>
1511         * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
1512         following debug links.
1514 2021-02-11  Alan Modra  <amodra@gmail.com>
1516         * NEWS: Mention arm-symbianelf removal.
1518 2021-02-09  Alan Modra  <amodra@gmail.com>
1520         * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
1521         Don't include symbian dep file.
1522         * configure.tgt: Remove arm*-*-symbianelf* entry.
1523         * emulparams/armsymbian.sh: Delete.
1524         * ld.texi: Don't mention symbian.
1525         * scripttempl/armbpabi.sc: Delete.
1526         * testsuite/ld-arm/symbian-seg1.d: Delete.
1527         * testsuite/ld-arm/symbian-seg1.s: Delete.
1528         * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
1529         * Makefile.in: Regenerate.
1530         * po/BLD-POTFILES.in: Regenerate.
1532 2021-02-07  H.J. Lu  <hongjiu.lu@intel.com>
1534         PR ld/27358
1535         * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
1536         tests.
1537         * testsuite/ld-x86-64/x86-64.exp: Likewise.
1539 2021-01-26  Nick Alcock  <nick.alcock@oracle.com>
1541         * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
1542         when appropriate.
1544 2021-02-04  H.J. Lu  <hongjiu.lu@intel.com>
1546         PR ld/19609
1547         * testsuite/ld-x86-64/pr19609-2a.d: Updated.
1548         * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
1549         * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
1550         * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
1551         * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
1552         * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
1553         * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
1555 2021-02-04  H.J. Lu  <hongjiu.lu@intel.com>
1557         PR ld/15146
1558         * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
1559         * testsuite/ld-plugin/pr15146.d: Restored.
1560         * testsuite/ld-plugin/pr15146a.c: Likewise.
1561         * testsuite/ld-plugin/pr15146b.c: Likewise.
1562         * testsuite/ld-plugin/pr15146c.c: Likewise.
1563         * testsuite/ld-plugin/pr15146d.c: Likewise.
1565 2021-02-04  Alan Modra  <amodra@gmail.com>
1567         * testsuite/ld-plugin/pr27311d.c: New test.
1568         * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
1569         and link new test as pr27311-2.
1571 2021-02-03  Alan Modra  <amodra@gmail.com>
1573         * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
1574         Link with --as-needed.
1576 2021-02-02  Alan Modra  <amodra@gmail.com>
1578         * testsuite/ld-plugin/pr27311.d,
1579         * testsuite/ld-plugin/pr27311.ver,
1580         * testsuite/ld-plugin/pr27311a.c,
1581         * testsuite/ld-plugin/pr27311b.c,
1582         * testsuite/ld-plugin/pr27311c.c: New testcase.
1583         * testsuite/ld-plugin/lto.exp: Run it.  Correct PR14918 and
1584         PR12982 entries.
1586 2021-02-01  Emery Hemingway  <ehmry@posteo.net>
1588         * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1590 2021-02-01  Alan Modra  <amodra@gmail.com>
1592         * ldgram.y (defsym_expr): Use assignment rule.
1593         * ldlex.h (ldlex_defsym): Delete.
1594         * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
1596 2021-02-01  Alan Modra  <amodra@gmail.com>
1598         * ldgram.y (section): Call ldlex_backup.  Remove empty action.
1599         * ldlex.h (ldlex_backup): Declare.
1600         * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
1601         chars, use SYMBOLNAMECHAR.
1602         (ldlex_backup): New function.
1604 2021-02-01  Alan Modra  <amodra@gmail.com>
1606         * ldgram.y: Whitespace fixes.
1608 2021-02-01  Alan Modra  <amodra@gmail.com>
1610         * testsuite/ld-elf/pr27259.d: Correct sh_link match.
1612 2021-01-29  Alan Modra  <amodra@gmail.com>
1614         * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
1616 2021-01-28  H.J. Lu  <hongjiu.lu@intel.com>
1618         PR ld/27259
1619         * testsuite/ld-elf/pr27259.d: New file.
1620         * testsuite/ld-elf/pr27259.s: Likewise.
1622 2021-01-28  Alan Modra  <amodra@gmail.com>
1624         PR 27259
1625         * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
1626         prevent endless looping of linked-to sections.
1628 2021-01-26  H.J. Lu  <hongjiu.lu@intel.com>
1630         * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
1632 2021-01-26  Alan Modra  <amodra@gmail.com>
1634         PR 27226
1635         * emulparams/alphavms.sh: Don't set COMPILE_IN.
1636         * emulparams/elf64_ia64_vms.sh: Likewise.
1637         * emulparams/elf64mmix.sh: Likewise.
1638         * emulparams/elf_iamcu.sh: Likewise.
1639         * emulparams/elf_k1om.sh: Likewise.
1640         * emulparams/elf_l1om.sh: Likewise.
1641         * emulparams/mmo.sh: Likewise.
1642         * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
1643         * scripttempl/pdp11.sc: Use it.
1644         * emultempl/pdp11.em: Don't edit .xn script for separate_code,
1645         instead use .xe script.  Support scripts from file system.
1646         * emultempl/beos.em: Support scripts from file system.
1647         * emultempl/pe.em: Likewise.
1648         * emultempl/pep.em: Likewise.
1649         * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
1651 2021-01-25  Fangrui Song  <maskray@google.com>
1653         PR ld/27230
1654         * scripttempl/DWARF.sc: Add .debug_* sections.
1656 2021-01-25  Nick Clifton  <nickc@redhat.com>
1658         * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
1659         .debug_line_str and .debug_str_offsets.  Move .debug_macro and
1660         .debug_addr into DWARF-5 section.
1662 2021-01-21  Alan Modra  <amodra@gmail.com>
1664         * testsuite/ld-elf/pr26936.d: No longer xfail mips.
1666 2021-01-20  Alan Modra  <amodra@gmail.com>
1668         * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
1669         * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
1670         * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
1671         * testsuite/ld-powerpc/tlsget.wf: Likewise.
1672         * testsuite/ld-powerpc/tlsget2.d: Likewise.
1673         * testsuite/ld-powerpc/tlsget2.wf: Likewise.
1674         * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
1675         * testsuite/ld-powerpc/tlsexe32.r: Likewise.
1676         * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
1677         * testsuite/ld-powerpc/tlsexeno.r: Likewise.
1678         * testsuite/ld-powerpc/tlsexenors.r: Likewise.
1679         * testsuite/ld-powerpc/tlsexers.r: Likewise.
1680         * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
1681         * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
1682         * testsuite/ld-powerpc/tlsso.r: Likewise.
1683         * testsuite/ld-powerpc/tlsso32.r: Likewise.
1684         * testsuite/ld-powerpc/tlstocso.r: Likewise.
1686 2021-01-19  Nick Alcock  <nick.alcock@oracle.com>
1688         * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
1689         symbols by the optimizer.
1690         * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
1692 2021-01-19  Nelson Chu  <nelson.chu@sifive.com>
1694         * testsuite/ld-elf/elf.exp (riscv_little_endian): Added.  Return true
1695         if target is riscv little endian.  Otherwise, return false.
1696         * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
1697         targets by [riscv_little_endian].
1699 2021-01-18  Alan Modra  <amodra@gmail.com>
1701         PR 26378
1702         * ldlang.c (map_input_to_output_sections): Start with a read-only
1703         section for data statements.
1704         * testsuite/ld-elf/size-2.d: Adjust to suit.
1706 2021-01-17  H.J. Lu  <hongjiu.lu@intel.com>
1708         PR ld/27193
1709         * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
1710         * testsuite/ld-i386/pr27193.dd: New file.
1711         * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
1712         * testsuite/ld-i386/pr27193b.s: Likewise.
1714 2021-01-16  H.J. Lu  <hongjiu.lu@intel.com>
1716         PR binutils/23460
1717         * testsuite/ld-plugin/lto.exp: Increase the max number of open
1718         files to 20 for PR binutils/23460 test.
1720 2021-01-16  H.J. Lu  <hongjiu.lu@intel.com>
1722         PR ld/23169
1723         * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
1724         pr23169a.rd for pr23169c and pr23169f.  Remove pr23169e tests.
1725         * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
1726         address.
1728 2021-01-15  H.J. Lu  <hongjiu.lu@intel.com>
1730         * NEWS: Mention -z report-relative-reloc.
1731         * ld.texi: Document -z report-relative-reloc.
1732         * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
1733         * emulparams/elf_i386.sh: Likewse.
1734         * emulparams/elf_x86_64.sh: Likewse.
1735         * emulparams/x86-report-relative.sh: New file.
1736         * testsuite/ld-i386/report-reloc-1.d: Likewse.
1737         * testsuite/ld-i386/report-reloc-1.l: Likewse.
1738         * testsuite/ld-i386/report-reloc-1.s: Likewse.
1739         * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
1740         * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
1741         * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
1742         * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
1743         * testsuite/ld-i386/i386.exp: Run report-reloc-1.
1744         * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
1745         report-reloc-1-x32.
1747 2021-01-16  Alan Modra  <amodra@gmail.com>
1749         PR 26002
1750         * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
1751         unversioned symbols.
1752         * testsuite/ld-elfvers/vers16.dsym: Likewise.
1754 2021-01-15  Nelson Chu  <nelson.chu@sifive.com>
1756         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
1757         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
1758         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
1759         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
1760         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
1761         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
1763 2021-01-14  Nick Clifton  <nickc@redhat.com>
1765         * po/fr.po: Updated French translation.
1767 2021-01-14  Mike Frysinger  <vapier@gentoo.org>
1769         * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
1771 2021-01-14  Alan Modra  <amodra@gmail.com>
1773         PR 27160
1774         * ldelfgen.c (compare_link_order): Protect access of ELF section
1775         data.
1776         (add_link_order_input_section): Remove redundant NULL check.
1777         Use bfd_get_flavour.
1778         (ldelf_map_segments): Use bfd_get_flavour.
1780 2021-01-13  H.J. Lu  <hongjiu.lu@intel.com>
1782         * ldelfgen.c (add_link_order_input_section): Check for ELF input
1783         before accessing ELF section data.
1785 2021-01-13  Alan Modra  <amodra@gmail.com>
1787         * Makefile.in: Regenerate.
1789 2021-01-13  Alan Modra  <amodra@gmail.com>
1791         PR 27160
1792         * ldlang.h (lang_output_section_statement_type): Add data field.
1793         (lang_input_section_type, lang_section_bst_type): Add pattern field.
1794         (statement_list): Declare.
1795         (lang_add_section): Adjust prototype.
1796         * emultempl/aarch64elf.em: Adjust lang_add_section calls.
1797         * emultempl/armelf.em: Likewise.
1798         * emultempl/beos.em: Likewise.
1799         * emultempl/cskyelf.em: Likewise.
1800         * emultempl/hppaelf.em: Likewise.
1801         * emultempl/m68hc1xelf.em: Likewise.
1802         * emultempl/metagelf.em: Likewise.
1803         * emultempl/mipself.em: Likewise.
1804         * emultempl/mmo.em: Likewise.
1805         * emultempl/msp430.em: Likewise.
1806         * emultempl/nios2elf.em: Likewise.
1807         * emultempl/pe.em: Likewise.
1808         * emultempl/pep.em: Likewise.
1809         * emultempl/ppc64elf.em: Likewise.
1810         * emultempl/spuelf.em: Likewise.
1811         * emultempl/vms.em: Likewise.
1812         * ldelf.c: Likewise.
1813         * ldelfgen.c: Include ldctor.h.
1814         (struct os_sections): New.
1815         (add_link_order_input_section, link_order_scan): New functions.
1816         (compare_link_order, fixup_link_order): New functions.
1817         (ldelf_map_segments): Call link_order_scan and fixup_link_order.
1818         * ldlang.c (statement_list): Make global.
1819         (output_section_callback_fast): Save pattern in tree node.
1820         (lang_add_section): Add pattern parameter, save in lang_input_section.
1821         (output_section_callback_tree_to_list): Adjust lang_add_section calls.
1822         (lang_insert_orphan, output_section_callback): Likewise.
1823         (ldlang_place_orphan): Likewise.
1824         (gc_section_callback): Don't set section->pattern.
1825         * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
1826         * testsuite/ld-elf/pr26256-3b.d: Likewise.
1827         * testsuite/ld-elf/pr26256-2b.d: Likewise.  notarget xgate.
1829 2021-01-13  Alan Modra  <amodra@gmail.com>
1831         * ldlang.h (callback_t): Remove flag_info function parameter.
1832         * ldlang.c (walk_wild_consider_section): Adjust to suit.
1833         (walk_wild_section_general): Likewise.
1834         (output_section_callback_fast, output_section_callback): Likewise.
1835         (check_section_callback, gc_section_callback): Likewise.
1836         (find_relro_section_callback): Likewise.
1838 2021-01-12  H.J. Lu  <hongjiu.lu@intel.com>
1840         PR binutils/26792
1841         * configure.ac: Use GNU_MAKE_JOBSERVER.
1842         * aclocal.m4: Regenerated.
1843         * configure: Likewise.
1845 2021-01-12  H.J. Lu  <hongjiu.lu@intel.com>
1847         PR ld/27171
1848         * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
1849         * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1850         * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1851         * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
1853 2021-01-11  H.J. Lu  <hongjiu.lu@intel.com>
1855         PR ld/27173
1856         * configure: Regenerated.
1858 2021-01-11  Matt Jenkins  <matt@majenko.co.uk>
1860         PR ld/27167
1861         * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
1862         and mips64r5 to list of known mips targets.
1864 2021-01-11  Nick Clifton  <nickc@redhat.com>matt@majenko.co.uk
1866         * po/pt_BR.po: Updated Brazilian Portuguese translation.
1867 `       * po/uk.po: Updated Ukranian translation.
1869 2021-01-09  H.J. Lu  <hongjiu.lu@intel.com>
1871         * configure: Regenerated.
1873 2021-01-09  H.J. Lu  <hongjiu.lu@intel.com>
1875         PR ld/27166
1876         * testsuite/ld-x86-64/lam-u48.rd: New file.
1877         * testsuite/ld-x86-64/lam-u57.rd: Likewise.
1878         * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
1880 2021-01-09  Nick Clifton  <nickc@redhat.com>
1882         * configure: Regenerate.
1883         * po/ld.pot: Regenerate.
1885 2021-01-09  Nick Clifton  <nickc@redhat.com>
1887         * 2.36 release branch crated.
1889 2021-01-08  H.J. Lu  <hongjiu.lu@intel.com>
1891         * ld-x86-64/property-x86-lam-u48-4.d: Updated.
1892         * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
1894 2021-01-09  Alan Modra  <amodra@gmail.com>
1896         * configure: Regenerate.
1897         * Makefile.in: Regenerate.
1899 2021-01-07  Samuel Thibault  <samuel.thibault@gnu.org>
1901         * configure: Regenerate.
1903 2021-01-07  H.J. Lu  <hongjiu.lu@intel.com>
1905         PR 27109
1906         * testsuite/ld-elf/export-class.sd: Adjust the expected output.
1907         * testsuite/ld-elf/loadaddr3b.d: Likewise.
1908         * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1909         * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1910         * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1911         * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1912         * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1913         * testsuite/ld-i386/pr19636-1d.d: Likewise.
1914         * testsuite/ld-i386/pr19636-1l.d: Likewise.
1915         * testsuite/ld-i386/pr19636-2c.d: Likewise.
1916         * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1917         * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1918         * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1919         * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1920         * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1921         * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1922         * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1923         * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1924         * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1925         * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1926         * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1927         * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1928         * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1929         * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1930         * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1931         * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1932         * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1933         * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1934         * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1935         * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1936         * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1937         * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1938         * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1939         * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1940         * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1941         * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1942         * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
1943         * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
1944         * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
1945         * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
1946         * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
1947         * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
1948         * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1949         * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
1950         * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1951         * testsuite/ld-x86-64/pr21038b.d: Likewise.
1952         * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1953         * testsuite/ld-x86-64/pr21038c.d: Likewise.
1954         * testsuite/ld-x86-64/pr23854.d: Likewise.
1955         * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1956         * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1957         * testsuite/ld-i386/plt-pic.pd: Likewise.
1958         * testsuite/ld-i386/plt-pic2.dd: Likewise.
1959         * testsuite/ld-i386/plt.pd: Likewise.
1960         * testsuite/ld-i386/plt2.dd: Likewise.
1961         * testsuite/ld-i386/tlsbin.rd: Likewise.
1962         * testsuite/ld-i386/tlsbin2.rd: Likewise.
1963         * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1964         * testsuite/ld-i386/tlsdesc.rd: Likewise.
1965         * testsuite/ld-i386/tlsgdesc.rd: Likewise.
1966         * testsuite/ld-i386/tlsnopic.rd: Likewise.
1967         * testsuite/ld-i386/tlspic.rd: Likewise.
1968         * testsuite/ld-i386/tlspic2.rd: Likewise.
1969         * testsuite/ld-x86-64/mpx3.dd: Likewise.
1970         * testsuite/ld-x86-64/mpx3n.dd: Likewise.
1971         * testsuite/ld-x86-64/mpx4.dd: Likewise.
1972         * testsuite/ld-x86-64/mpx4n.dd: Likewise.
1973         * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
1974         * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1975         * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1976         * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1977         * testsuite/ld-x86-64/plt.pd: Likewise.
1978         * testsuite/ld-x86-64/plt2.dd: Likewise.
1979         * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1980         * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1981         * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1982         * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1983         * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
1984         * testsuite/ld-x86-64/tlspic.rd: Likewise.
1985         * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1986         * testsuite/ld-elf/sec64k.exp: Check
1987         is_elf_unused_section_symbols.
1989 2021-01-07  Alan Modra  <amodra@gmail.com>
1991         * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
1992         * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
1993         * testsuite/ld-scripts/segment-start.d: Likewise.
1995 2021-01-07  Alan Modra  <amodra@gmail.com>
1997         * testsuite/ld-elf/comm-data5.d: xfail targets that complain
1998         about dynamic relocations in read-only sections.
1999         * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
2000         * testsuite/ld-elf/ehdr_start.d: Likewise.
2001         * testsuite/ld-scripts/pr22267.d: Likewise.
2002         * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
2003         pr20995 text.
2004         * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
2006 2021-01-07  Marcus Comstedt  <marcus@mc.pp.se>
2008         * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
2009         * testsuite/ld-scripts/empty-address-2b.d: Likewise.
2011 2021-01-07  Alan Modra  <amodra@gmail.com>
2013         * po/BLD-POTFILES.in: Regenerate.
2015 2021-01-07  Alan Modra  <amodra@gmail.com>
2017         * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
2018         complain about relocs in read-only sections.  Tidy ASFLAGS append.
2020 2021-01-06  Alan Modra  <amodra@gmail.com>
2022         * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
2023         base for some tests.
2024         * testsuite/ld-sparc/gotop32.dd: Match solaris output.
2025         * testsuite/ld-sparc/gotop32.sd: Likewise.
2026         * testsuite/ld-sparc/gotop32.td: Likewise.
2027         * testsuite/ld-sparc/gotop64.dd: Likewise.
2028         * testsuite/ld-sparc/gotop64.sd: Likewise.
2029         * testsuite/ld-sparc/gotop64.td: Likewise.
2030         * testsuite/ld-sparc/tlsg32.sd: Likewise.
2031         * testsuite/ld-sparc/tlsg64.sd: Likewise.
2032         * testsuite/ld-sparc/tlspie32.dd: Likewise.
2033         * testsuite/ld-sparc/tlspie64.dd: Likewise.
2034         * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
2035         * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
2036         * testsuite/ld-sparc/tlssunbin32.td: Likewise.
2037         * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
2038         * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
2039         * testsuite/ld-sparc/tlssunbin64.td: Likewise.
2040         * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
2041         * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
2042         * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
2043         * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
2044         * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
2045         * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
2046         * testsuite/ld-sparc/tlssunpic32.td: Likewise.
2047         * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
2048         * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
2049         * testsuite/ld-sparc/tlssunpic64.td: Likewise.
2050         * testsuite/ld-sparc/wdispcall.dd: Likewise.
2052 2021-01-06  Alan Modra  <amodra@gmail.com>
2054         * testsuite/ld-scripts/rgn-at10.d: xfail v850.
2055         * testsuite/ld-scripts/rgn-at11.d: Likewise.
2057 2021-01-06  Marcus Comstedt  <marcus@mc.pp.se>
2059         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
2060         riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
2061         * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
2062         riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
2063         * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
2064         * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
2065         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
2066         * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
2067         * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
2068         * testsuite/ld-riscv-elf/c-lui.d: Likewise.
2069         * testsuite/ld-riscv-elf/call-relax.d: Likewise.
2070         * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
2071         * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
2072         * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
2073         to littleriscv.
2074         * testsuite/ld-riscv-elf/weakref64.d: Likewise.
2076 2021-01-06  Marcus Comstedt  <marcus@mc.pp.se>
2078         * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
2079         riscv32be*-*-linux*, and riscv64be*-*-linux*.
2080         * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
2081         eelf32briscv_ilp32.c.
2082         * Makefile.in: Regenerate.
2083         * emulparams/elf32briscv.sh: Added.
2084         * emulparams/elf32briscv_ilp32.sh: Likewise.
2085         * emulparams/elf32briscv_ilp32f.sh: Likewise.
2086         * emulparams/elf64briscv.sh: Likewise.
2087         * emulparams/elf64briscv_lp64.sh: Likewise.
2088         * emulparams/elf64briscv_lp64f.sh: Likewise.
2090 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
2092         * testsuite/ld-ctf/enum-forward.c: New test.
2093         * testsuite/ld-ctf/enum-forward.c: New results.
2095 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
2097         * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2098         * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
2099         * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
2100         * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
2101         * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
2102         * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
2103         * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
2104         * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
2105         * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
2106         * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
2107         * testsuite/ld-ctf/conflicting-enums.d: Likewise.
2108         * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
2109         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2110         * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
2111         * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
2112         * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
2113         * testsuite/ld-ctf/cycle-1.d: Likewise.
2114         * testsuite/ld-ctf/cycle-2.A.d: Likewise.
2115         * testsuite/ld-ctf/cycle-2.B.d: Likewise.
2116         * testsuite/ld-ctf/cycle-2.C.d: Likewise.
2117         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2118         * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2119         * testsuite/ld-ctf/diag-cuname.d: Likewise.
2120         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2121         * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
2122         * testsuite/ld-ctf/forward.d: Likewise.
2123         * testsuite/ld-ctf/function.d: Likewise.
2124         * testsuite/ld-ctf/slice.d: Likewise.
2125         * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
2126         * testsuite/ld-ctf/enums.c: New test.
2127         * testsuite/ld-ctf/enums.d: New test.
2129 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
2131         * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
2132         changes.
2133         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2134         * testsuite/ld-ctf/forward.c: New test...
2135         * testsuite/ld-ctf/forward.d: ... and results.
2137 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
2139         * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2140         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2141         * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2142         * testsuite/ld-ctf/diag-cuname.d: Likewise.
2143         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2144         * testsuite/ld-ctf/function.d: Likewise.
2145         * testsuite/ld-ctf/slice.d: Likewise.
2147 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
2149         * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2150         * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
2151         * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
2152         * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
2153         * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
2154         * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
2155         * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
2156         * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
2157         * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
2158         * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
2159         * testsuite/ld-ctf/conflicting-enums.d: Likewise.
2160         * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
2161         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2162         * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
2163         * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
2164         * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
2165         * testsuite/ld-ctf/cycle-1.d: Likewise.
2166         * testsuite/ld-ctf/cycle-2.A.d: Likewise.
2167         * testsuite/ld-ctf/cycle-2.B.d: Likewise.
2168         * testsuite/ld-ctf/cycle-2.C.d: Likewise.
2169         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2170         * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2171         * testsuite/ld-ctf/diag-cuname.d: Likewise.
2172         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2173         * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
2174         * testsuite/ld-ctf/function.d: Likewise.
2175         * testsuite/ld-ctf/slice.d: Likewise.
2176         * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
2178 2021-01-05  Alan Modra  <amodra@gmail.com>
2180         * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
2182 2021-01-05  Alan Modra  <amodra@gmail.com>
2184         PR ld/26256
2185         * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
2186         * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
2188 2021-01-04  H.J. Lu  <hongjiu.lu@intel.com>
2190         PR ld/26256
2191         * ldlang.c (gc_section_callback): Set pattern.
2192         * testsuite/ld-elf/pr26256-1.s: New file.
2193         * testsuite/ld-elf/pr26256-1.t: Likewise.
2194         * testsuite/ld-elf/pr26256-1a.d: Likewise.
2195         * testsuite/ld-elf/pr26256-1b.d: Likewise.
2196         * testsuite/ld-elf/pr26256-2.s: Likewise.
2197         * testsuite/ld-elf/pr26256-2.t: Likewise.
2198         * testsuite/ld-elf/pr26256-2a.d: Likewise.
2199         * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
2200         * testsuite/ld-elf/pr26256-2b.d: Likewise.
2201         * testsuite/ld-elf/pr26256-3.s: Likewise.
2202         * testsuite/ld-elf/pr26256-3a.d: Likewise.
2203         * testsuite/ld-elf/pr26256-3a.t: Likewise.
2204         * testsuite/ld-elf/pr26256-3b.d: Likewise.
2205         * testsuite/ld-elf/pr26256-3b.t: Likewise.
2207 2021-01-04  Alan Modra  <amodra@gmail.com>
2209         PR 26822
2210         * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
2211         * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
2212         * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
2213         * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
2214         * testsuite/ld-i386/tlsbin.rd: Likewise.
2215         * testsuite/ld-i386/tlsbin2.rd: Likewise.
2216         * testsuite/ld-i386/tlsbindesc.rd: Likewise.
2217         * testsuite/ld-i386/tlsdesc.rd: Likewise.
2218         * testsuite/ld-i386/tlsnopic.rd: Likewise.
2219         * testsuite/ld-i386/tlspic.rd: Likewise.
2220         * testsuite/ld-i386/tlspic2.rd: Likewise.
2221         * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
2222         * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
2223         * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
2224         * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
2225         * testsuite/ld-plugin/pr17973.d: Likewise.
2226         * testsuite/ld-tic6x/shlib-1.rd: Likewise.
2227         * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
2228         * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
2229         * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
2230         * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
2231         * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
2232         * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
2233         * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
2234         * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
2235         * testsuite/ld-tic6x/static-app-1.rd: Likewise.
2236         * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
2237         * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
2238         * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
2239         * testsuite/ld-x86-64/tlsbin.rd: Likewise.
2240         * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
2241         * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
2242         * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
2243         * testsuite/ld-x86-64/tlspic.rd: Likewise.
2244         * testsuite/ld-x86-64/tlspic2.rd: Likewise.
2245         * testsuite/ld-xtensa/tlsbin.rd: Likewise.
2246         * testsuite/ld-xtensa/tlspic.rd: Likewise.
2248 2021-01-01  Nicolas Boulenguez  <nicolas@debian.org>
2250         * configure.tgt: Correct comment grammar.
2251         * emultempl/m68hc1xelf.em: Likewise.
2252         * ld.texi: Correct grammar.
2254 2021-01-01  Alan Modra  <amodra@gmail.com>
2256         Update year range in copyright notice of all files.
2258 For older changes see ChangeLog-2020
2260 Copyright (C) 2021-2023 Free Software Foundation, Inc.
2262 Copying and distribution of this file, with or without modification,
2263 are permitted in any medium without royalty provided the copyright
2264 notice and this notice are preserved.
2266 Local Variables:
2267 mode: change-log
2268 left-margin: 8
2269 fill-column: 74
2270 version-control: never
2271 End: