Automatic date update in version.in
[binutils-gdb.git] / ld / ChangeLog
blobf53a81fdf9ee4815ddf7ec36ad16e4937c366470
1 2023-10-19  Jose E. Marchesi  <jose.marchesi@oracle.com>
3         * ld.texi (Options): Fix typo metdata->metadata.
5 2023-10-16  Nick Clifton  <nickc@redhat.com>
7         PR 28910
8         * lexsup.c (ld_options): Require that the --architecture option is
9         given exactly two dashes, so that it does not become confused with
10         the -a option.
12 2023-10-09  Nick Clifton  <nickc@redhat.com>
14         PR 30951
15         * ldlex.l (yy_input): Check for YY_CURRENT_BUFFER being NULL.
17         PR 30954
18         * ldlang.c (map_input_to_output_sections): Check that os is non
19         NULL before using it.
21 2023-10-05  A. Wilcox  <awilfox@adelielinux.org>
23         PR 30905
24         * testsuite/ld-elf/pr28158.rd: Adjust regexp to allow for section
25         indicies larger than 9.
27 2023-10-05  A. Wilcox  <awilfox@adelielinux.org>
29         PR 30917
30         * testsuite/ld-elf/dt-relr.exp: Skip for MUSL targets.
32 2023-10-05  A. Wilcox  <awilfox@adelielinux.org>
34         PR 30918
35         * testsuite/ld-shared/shared.exp: Add XFAILs for tests that fail
36         with the MUSL library.
38 2023-10-05  A. Wilcox  <awilfox@adelielinux.org>
40         PR 30923
41         * testsuite/ld-arm/thumb-plt-got.d: Skip test for configurations
42         using the MUSL library.
43         * testsuite/ld-arm/thumb-plt.d: Likewise.
45 2023-10-05  A. Wilcox  <awilfox@adelielinux.org>
47         PR 30925
48         PR 22001
49         * testsuite/ld-i386/i386.exp: Skip the pr22001 test with TEXTREL
50         relocations enabled on configurations using the MUSL library.
52 2023-10-05  A. Wilcox  <awilfox@adelielinux.org>
54         PR 30924
55         * testsuite/ld-elfvers/vers.exp (objdump_emptyverstuff): Handle
56         EABI version information in objdump's output.
58 2023-10-02  Nick Clifton  <nickc@redhat.com>
60         * pe-dll.c (fill_edata): Use bfd_get_current_time when filling in
61         the timestamp.
63 2023-09-27  Hsinyuan Xavier  <TheLastLin@hotmail.com>
65         PR 30875
66         * ldlang.c (get_os_init_flag): New function.
67         (exp_init_os, map_input_to_output_sections): Use it.
69 2023-07-24  Johannes Schauer Marin Rodrigues  <josch@debian.org>
71         * pe-dll.c (fill_edata): If inserting a timestamp, use the value
72         held in the SOURCE_DATE_EPOCH environment variable, if it is
73         defined.
74         * ld.texi (--insert-timestamp): Document change in behaviour.
76 2023-07-03  Nick Clifton  <nickc@redhat.com>
78         * configure: Regenerate.
80 2023-07-03  Nick Clifton  <nickc@redhat.com>
82         2.41 Branch Point.
84 2023-06-28  Nikita Popov  <npopov@redhat.com>
85             Nick Clifton  <nickc@redhat.com>
87         PR 30568
88         * ldfile.c (ldfile_try_open_bfd): Do not track lto generated
89         temporary files.
91 2023-06-21  Nick Clifton  <nickc@redhat.com>
93         PR 29072
94         * testsuite/ld-elf/elf.exp (target_defaults_to_execstack): Always
95         return false for linkers configured with the --enable-default-execstack=no
96         option.
98 2023-06-14  Nick Clifton  <nickc@redhat.com>
100         PR 30374
101         * ldfile.c (struct input_remap): New structure.
102         (ldfile_add_remap): New function.
103         (ldfile_remap_input_free): New function.
104         (ldfile_add_remap_file): New function.
105         (ldfile_possibly_remap_input): New function.
106         (ldfile_print_input_remaps): New function.
107         * ldfile.h: Add prototypes for new functions.
108         * ldlang.c (new_afile): Call ldfile_possibly_remap_input.
109         (lang_finish): Call ldfile_remap_input_free.
110         (lang_map): Call ldfile_print_input_remaps.
111         * ldlex.h (OPTION_REMAP_INPUTS, OPTION_REMAP_INPUTS_FILE): Define.
112         * lexsup.c (ld_options): Add --remap-inputs-file and --remap-inputs.
113         (parse_args): Handle new options.
114         * NEWS: Mention the new feature.
115         * ld.texi: Document the new options.
116         * testsuite/ld-misc/input-remap.exp: New test driver.
117         * testsuite/ld-misc/remaps.r: New file: Expected linker output.
118         * testsuite/ld-misc/remaps.txt: New file.  Input remaps file.
120 2023-06-07  Nick Clifton  <nickc@redhat.com>
122         PR 30499
123         * testsuite/ld-elfcomm/elfcomm.exp: Update regexps to match new
124         output from the linker.
126 2023-05-17  Luca Bacci  <luca.bacci@outlook.com>
128         PR 30421
129         * emultempl/pe.em (set_decoration): New function.
130         (pe_fixup_stdcalls): Call the new function.
131         * emultempl/pep.em (set_decoration): New function.
132         (pep_fixup_stdcalls): Call the new function.
133         * pe-dll.c (make_one): Check for decoated symbols.
135 2023-05-16  Nick Clifton  <nickc@redhat.com>
137         PR 30359
138         * ld.texi (WIN32): Document how to create a resource only DLL.
140 2023-05-16  Nick Clifton  <nickc@redhat.com>
142         * ld.texi (-Ur): Clarify the actions of this option.
144 2023-05-10  Nick Clifton  <nickc@redhat.com>
146         PR 16566
147         * ldlang.c (ld_is_local_symbol): New function.
148         (print_input_section): Add code to display local symbols in the
149         section.
150         * ldlex.h (enum option_values): Add OPTION_PRINT_MAP_LOCALS and
151         OPTION_PRINT_MAP_LOCALS.
152         * lexsup.c (ld_options[]): Add entries for --print-map-locals
153         and --no-print-map-locals.
154         * NEWS: Mention the new feature.
155         * ld.h (struct ld_config_type): Add print_map_locals field.
156         * ld.texi: Document the new command line option.
157         * testsuite/ld-scripts/sizeof.s: Add a local symbol.
158         * testsuite/ld-scripts/map-locals.d: New test control file.
159         * testsuite/ld-scripts/map-address.exp: Run the new test.
161 2023-05-04  Nick Clifton  <nickc@redhat.com>
163         PR 30300
164         * emultempl/pep.em (set_entry_point): Add an undefined reference
165         to the entry point if it has been constructed heuristically.
166         * emultempl/pe.em (set_entry_point): Likewise.
168 2023-05-04  Dimitar Dimitrov  <dimitar@dinux.eu>
170         * scripttempl/pru.sc (OUTPUT_SECTION_ALIGN): New helper variable
171         to place at end of DMEM output sections.
172         (.data): Use the helper variable.
173         (.eh_frame): New output section.
174         (.gnu_extab): Ditto.
175         (.gcc_except_table): Ditto.
176         (.resource_table): Use the helper variable.
178 2023-04-27  Nick Clifton  <nickc@redhat.com>
180         * ldmisc.c (vfinfo): Add support for %x and %lx.
182 2023-04-18  mengqinggang  <mengqinggang@loongson.cn>
184         * testsuite/ld-loongarch-elf/macro_op.d: Regenerated.
186 2023-04-17  Nick Clifton  <nickc@redhat.com>
188         PR 30354
189         * emulparams/armelf.sh (OTHER_PLT_SECTIONS): Define in order to
190         handle the .gnu.sgstubs section.
192 2023-04-13  Claudiu Zissulescu  <claziss@synopsys.com>
194         * testsuite/ld-arc/arc.exp: Update execution predicate.
195         * testsuite/ld-arc/nps-1a.d: Add linker script option.
196         * testsuite/ld-arc/nps-1b.d: Likewise.
197         * testsuite/ld-arc/relax-local-pic.d: Update matching patterns.
199 2023-04-12  Nick Clifton  <nickc@redhat.com>
201         * ld.texi (--enable-non-contiguous-regions): Fix typos in script
202         example.
204 2023-03-15  Nick Clifton  <nickc@redhat.com>
206         PR 30187
207         * NEWS: Mention the new feature.
208         * ld.texi: Document the new feature.
209         * ldgram.y: Handle LINKER_VERSION token.
210         * ldlang.c (lang_add_version): New function.
211         (enable_linker_version): New global variable.
212         * ldlang.h (land_add_version): Prototype.
213         (enable_linker_version): Export.
214         * ldlex.h (OPTION_ENABLE_LINKER_VERSION): Define.
215         (OPTION_DISABLE_LINKER_VERSION): Define.
216         * ldlex.l (LINKER_VERSION): Add token.
217         * lexsup.c (ld_options): Add --enable-linker-version and
218         --disable-linker-version.
219         (parse_args): Handle the new options.
220         * scripttempl/arclinux.sc: Remove stabs and comment sections and
221         replace with inclusion of misc-sections.sc
222         * scripttempl/avr.sc: Likewise.
223         * scripttempl/dlx.sc: Likewise.
224         * scripttempl/elf.sc: Likewise.
225         * scripttempl/elf32cr16.sc: Likewise.
226         * scripttempl/elf32crx.sc: Likewise.
227         * scripttempl/elf32msp430.sc: Likewise.
228         * scripttempl/elf64bpf.sc: Likewise.
229         * scripttempl/elf64hppa.sc: Likewise.
230         * scripttempl/elf_chaos.sc: Likewise.
231         * scripttempl/elfarc.sc: Likewise.
232         * scripttempl/elfarcv2.sc: Likewise.
233         * scripttempl/elfd10v.sc: Likewise.
234         * scripttempl/elfd30v.sc: Likewise.
235         * scripttempl/elfm68hc11.sc: Likewise.
236         * scripttempl/elfm68hc12.sc: Likewise.
237         * scripttempl/elfm9s12z.sc: Likewise.
238         * scripttempl/elfmicroblaze.sc: Likewise.
239         * scripttempl/elfxgate.sc: Likewise.
240         * scripttempl/elfxtensa.sc: Likewise.
241         * scripttempl/epiphany_4x4.sc: Likewise.
242         * scripttempl/ft32.sc: Likewise.
243         * scripttempl/ip2k.sc: Likewise.
244         * scripttempl/iq2000.sc: Likewise.
245         * scripttempl/mep.sc: Likewise.
246         * scripttempl/nds32elf.sc: Likewise.
247         * scripttempl/pru.sc: Likewise.
248         * scripttempl/v850.sc: Likewise.
249         * scripttempl/v850_rh850.sc: Likewise.
250         * scripttempl/visium.sc: Likewise.
251         * scripttempl/xstormy16.sc: Likewise.
252         * scripttempl/z80.sc: Likewise.
253         * testsuite/ld-scripts/script.exp: Run new tests.
254         * scripttempl/misc-sections.sc: New file.
255         * testsuite/ld-scripts/ld-version-2.d: New file.
256         * testsuite/ld-scripts/ld-version.d: New file.
257         * testsuite/ld-scripts/ld-version.t: New file.
259 2023-02-23  Fangrui Song  <i@maskray.me>
261         * emultempl/riscvelf.em: Add option parsing.
262         * testsuite/ld-riscv-elf/code-model-relax-medlow-01-norelaxgp.d: New.
263         * testsuite/ld-riscv-elf/pcgp-relax-01-norelaxgp.d: New.
264         * testsuite/ld-riscv-elf/pcgp-relax-02.d: Test --relax --relax-gp can be
265         used together.
267 2023-02-20  Nick Clifton  <nickc@redhat.com>
269         PR 30004
270         * pe-dll.c (pe_dll_build_sections): Do not build an edata section
271         if all symbols are being excluded.
273 2023-02-15  Nick Clifton  <nickc@redhat.com>
275         PR 30078
276         * testsuite/ld-elf/merge4b.s: Use .asciz instead of .string in
277         order to avoid the special behaviour of the .string directive on
278         HPPA architectures.
280 2023-02-14  Nick Clifton  <nickc@redhat.com>
282         * ld.texi (Plugins): Mention that the -plugin command line option
283         is used to load plugins.
285 2023-01-27  Nick Clifton  <nickc@redhat.com>
287         PR 29998
288         * pe-dll.c (build_filler_bfd): Initialise the next field of the
289         filler input statement, so that it does not break the file chain.
291 2023-01-24  Nick Clifton  <nickc@redhat.com>
293         PR 29998
294         * pe-dll.c (generate_reloc): Handle sections with no assigned
295         output section.  Terminate early of there are no relocs to put in
296         the .reloc section.
297         (pe_exe_fill_sections): Do not emit an empty .reloc section.
299 2023-01-06  Nick Clifton  <nickc@redhat.com>
301         * po/bg.po: Updated Bulgarian translation.
303 2023-01-05  Nick Clifton  <nickc@redhat.com>
305         * configure.tgt: Add arm64pe as an extra emulation for aarch64pe.
306         * Makefile.am (ALL_64_EMULATION_SOURCES): Add earm64pe.c
307         * emultempl/pep.em: Add suppport for arm64pe emulation.
308         * Makefile.in: Regenerate.
309         * po/BLD-POTFILES.in: Regenerate.
310         * po/ld.pot: Regenerate.
312 2023-01-05  Andreas K. Huettel  <dilfridge@gentoo.org>
314         * testsuite/ld-elf/shared.exp: un-xfail the PR19710 test for the
315         AArch64 architecture.
317 2023-01-04  Andreas K. Huettel  <dilfridge@gentoo.org>
319         PR 29843
320         * testsuite/ld-aarch64/bti-plt-5.d: Relax regxps slightly to allow
321         for differences in build environments.
322         * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: Likewise.
324 2023-01-03  Nick Clifton  <nickc@redhat.com>
326         * po/uk.po: Updated Ukrainian translation.
328 2022-12-31  Nick Clifton  <nickc@redhat.com>
330         * 2.40 branch created.
332 2022-12-21  Nick Clifton  <nickc@redhat.com>
334         PR 29900
335         * scripttempl/pe.sc: Keep the .drectve section when performing a
336         relocateable link.
337         * scripttempl/pep.sc: Likewise.
339 2022-12-08  Nick Clifton  <nickc@redhat.com>
341         PR 29861
342         * ld.texi (Output Section Type): Note that setting the output
343         section type only works if the section contains untyped data.
345 2022-12-05  Nick Clifton  <nickc@redhat.com>
347         PR 29849
348         * ldlang.c (spec_match): Check that there is sufficient length in
349         the target name to match the spec's prefix.
351 2022-11-03  Nick Clifton  <nickc@redhat.com>
353         PR 29748
354         * configure.tgt (ac_default_ld_warn_rwx_segments): Set to 0 for
355         the V850.
357 2022-11-03  Nick Clifton  <nickc@redhat.com>
359         PR 29741
360         * scripttempl/avr.sc (__DATA_REGION_ORIGIN__): Define.  If a value
361         has not been provided on the command line then use DATA_ORIGIN.
362         (MEMORY): Use __DATA_REGION_ORIGIN__ as the start of the data region.
364 2022-10-21  Nick Clifton  <nickc@redhat.com>
366         PR 29654
367         * ld.h (struct ld_config_type): Add no_warnings field.
368         * ldlex.h (enum option_values): Add OPTION_NO_WARNINGS.
369         * lexsup.c (ld_options): Add --no-warnings.
370         (parse_args): Add support for -w and --no-warnings.
371         * ldmisc.c (vfinfo): Return early if the message is a warning and
372         -w has been enabled.
373         * ld.texi (options): Document new command line option.
374         * NEWS: Mention the new feature.
376 2022-08-30  Nick Clifton  <nickc@redhat.com>
378         PR 29529
379         * testsuite/ld-x86-64/pr27587.err: Update expected output.
381 2022-08-18  Ralf Habacker  <ralf.habacker@freenet.de>
383         PR 28362
384         * testsuite/ld-pe/pe-run2-def.exp: New file.
386 2022-08-03  Alan Modra  <amodra@gmail.com>
388         PR 29389
389         * ldlang.h (lang_input_statement_struct): Add sort_key field.
390         * emultempl/pe.em (after_open): If multiple import libraries refer
391         to the same bfd, store their names in the sort_key field.
392         * emultempl/pep.em (after_open): Likewise.
393         * ldlang.c (sort_filename): New function.  Returns the filename to
394         be used when sorting input files.
395         (wild_sort): Use the sort_filename function.
397 2022-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
399         PR ld/29411
400         * configure.tgt (ac_default_ld_warn_rwx_segments): Extend to all
401         sparc targets.  Expand comment.
403 2022-07-26  Nick Clifton  <nickc@redhat.com>
405         PR 29411
406         * configure.tgt (ac_default_ld_warn_rwx_segments): Disable for
407         sparc-solaris configurations.
409 2022-07-08  Nick Clifton  <nickc@redhat.com>
411         * 2.39 branch created.
413 2022-06-27  Nick Clifton  <nickc@redhat.com>
415         PR 29263
416         * configure.ac: Move HPPA specific code from here...
417         * configure.tgt: ... to here.  Add similar code for MIPS.
418         Move code for CRIS, MIPS and HPPA to block at start of file.
419         * configure: Regenerate.
421 2022-06-21  Nick Clifton  <nickc@redhat.com>
423         PR 29263
424         * configure.ac (ac_default_ld_warn_execstack): Default to 'no' for
425         HPPA targets.
426         (ac_default_ld_warn_rwx_segments): Likewise.
427         * configure: Regenerate.
428         * testsuite/ld-elf/elf.exp: Add the --warn-execstack command line
429         option to the command line when running execstack tests for the
430         HPPA target.
432 2022-05-12  Alan Modra  <amodra@gmail.com>
434         PR 29006
435         * pe-dll.c (dll_name): Delete, replacing with..
436         (dll_filename): ..this, moved earlier in file.
437         (generate_edata): Delete parameters.  Don't set up dll_name here..
438         (pe_process_import_defs): ..instead set up dll_filename and
439         dll_symname here before returning.
440         (dll_symname_len): Delete write-only variable.
441         (pe_dll_generate_implib): Don't set up dll_symname here.
443 2022-05-03  Nick Clifton  <nickc@redhat.com>
445         PR 29101
446         * libdep_plugin.c (get_libdeps): Check for overflow when computing
447         amount of memory to allocate.
449 2022-04-27  Nick Clifton  <nickc@redhat.com>
451         PR 29006
452         * pe-dll.c (make_head): Use asprintf to allocate and populate a
453         buffer containing the temporary name.
454         (make_tail, make_one, make_singleton_name_thunk): Likewise.
455         (make_import_fixup_mark, make_import_fixup_entry): Likewise.
456         (make_runtime_pseudo_reloc): Likewise.
457         (pe_create_runtime_relocator_reference): Likewise.
459 2022-04-25  Nick Clifton  <nickc@redhat.com>
461         PR 29072
462         * testsuite/ld-elf/pr29072.b.warn: Update to include the note
463         about the linker's behaviour being depreccated.
465 2022-04-20  Clément Chigot  <clement.chigot@atos.net>
467         * emultempl/aix.em (params): New variable.
468         (stub_file): New variable.
469         (xcoff_add_stub_section): New function.
470         (xcoff_layout_sections_again): New function
471         (hook_in_stub): New function.
472         (_after_allocation): Add stub creation.
473         (_create_output_section_statements): Allocate stub file and
474         pass params to backend.
476 2022-04-20  Clément Chigot  <clement.chigot@atos.net>
478         * emultempl/aix.em (_after_allocation): New function.
480 2022-04-07  Mark Harmstone  <mark@harmstone.com>
482         * testsuite/ld-pe/secidx1.s: New test source file.
483         * testsuite/ld-pe/secidx2.s: New test source file.
484         * testsuite/ld-pe/secidx.d: New test driver file.
485         * testsuite/ld-pe/secidx_64.d: New test driver file.
486         * testsuite/ld-pe/pe.exp: Add new tests.
488 2022-03-01  Nick Clifton  <nickc@redhat.com>
490         PR 21964
491         * testsuite/ld-elf/pr21964-1a.c: Fix array comparisons.
492         * testsuite/ld-elf/pr21964-1b.c: Likewise.
493         * testsuite/ld-elf/pr21964-1c.c: Likewise.
494         * testsuite/ld-elf/pr21964-2a.c: Likewise.
495         * testsuite/ld-elf/pr21964-2b.c: Likewise.
496         * testsuite/ld-elf/pr21964-3a.c: Likewise.
498 2022-02-17  Roland McGrath  <mcgrathr@google.com>
500         * ld.texi (Output Section Type): Fix typo in @code syntax.
502 2022-02-17  Nick Clifton  <nickc@redhat.com>
504         * po/sr.po: Updated Serbian translation.
506 2022-02-16  Fangrui Song  <maskray@google.com>
507             Nick Clifton  <nickc@redhat.com>
509         PR ld/28841
510         * ld.texi: Document new output section type.
511         * ldlex.l: Add new token TYPE.
512         * ldgram.y: Handle TYPE=exp and READONLY (TYPE=exp).
513         * ldlang.h: Add type_section to list of section types.
514         * ldlang.c (lang_add_section): Handle type_section.
515         (map_input_to_output_sections): Handle type_section.
516         * testsuite/ld-scripts/output-section-types.t: Add tests.
517         * testsuite/ld-scripts/output-section-types.d: Update.
519 2022-02-02  Nick Clifton  <nickc@redhat.com>
521         * po/fr.po: Updated French translation.
523 2022-01-24  Nick Clifton  <nickc@redhat.com>
525         * po/bg.po: Updated Bulgarian translation.
526         * po/uk.po: Updated Ukranian translation.
528 2022-01-22  Alexander von Gluck IV  <kallisti5@unixzen.com>
530         * configure.tgt (arm-haiku): Fix typo.
531         * emulparams/armelf_haiku.su (MAXPAGESIZE): Use the default value.
532         (COMMONPAGESIZE): Likewise.
534 2022-01-22  Nick Clifton  <nickc@redhat.com>
536         * configure: Regenerate.
537         * po/ld.pot: Regenerate.
539 2022-01-22  Nick Clifton  <nickc@redhat.com>
541         * 2.38 release branch created.
543 2022-01-21  Nick Clifton  <nickc@redhat.com>
545         * po/sr.po: Updated Serbian translation.
547 2022-01-17  Nick Clifton  <nickc@redhat.com>
549         * Makefile.in: Regenerate.
550         * po/ld.pot: Regenerate.
552 2022-01-11  Martin Storsjö  <martin@martin.st>
554         * pe-dll.c (make_head): Prefix the symbol name with the dll name.
555         (make_tail, make_one, make_singleton_name_thunk): Likewise.
556         (make_import_fixup_entry, make_runtime_pseudo_reloc): Likewise.
557         (pe_create_runtime_relocator_reference): Likewise.
558         (pe_dll_generate_implib): Set dll_symname_len.
559         (pe_process_import_defs): Likewise.
561 2021-12-16  Nick Clifton  <nickc@redhat.com>
563         PR 28686
564         * testsuite/ld-avr/avr-prop-7.d: Adjust expected output.
565         * testsuite/ld-avr/avr-prop-8.d: Likewise.
566         * testsuite/ld-avr/pr13402.d: Likewise.
568 2021-11-30  Nick Clifton  <nickc@redhat.com>
570         * scripttempl/pru.sc (.pru_irq_map): Define output section.
571         * testsuite/ld-pru/pru_irq_map-1.d: New test.
572         * testsuite/ld-pru/pru_irq_map-2.d: New test.
573         * testsuite/ld-pru/pru_irq_map.s: New test.
575 2021-11-17  Jeremy Drake  <cygwin@jdrake.com>
577         * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Set to 0 for
578         Cygwin targets.
579         * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Likewise.
581 2021-11-17  Nick Clifton  <nickc@redhat.com>
583         PR 28452
584         * ldgram.y: Add support for PT_GNU_RELRO and PT_GNU_PROPERTY.
585         * ldgram.c: Regenerate.
587 2021-11-15  Roland McGrath  <mcgrathr@google.com>
589         * testsuite/ld-aarch64/dt_textrel.d: Pass explicit -z notext in
590         case ld was configured with --enable-textrel-check=error.
591         * testsuite/ld-aarch64/pr22764.d: Likewise.
592         * testsuite/ld-aarch64/pr20402.d: Likewise.
594 2021-10-25  Nick Alcock  <nick.alcock@oracle.com>
596         * testsuite/ld-ctf/nonrepresentable-member.*: New test.
598 2021-10-25  Nick Alcock  <nick.alcock@oracle.com>
600         * testsuite/ld-ctf/array.d: Change --ctf=.ctf to --ctf.
601         * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
602         * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
603         * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
604         * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
605         * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
606         * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
607         * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
608         * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
609         * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
610         * testsuite/ld-ctf/conflicting-enums.d: Likewise.
611         * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
612         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
613         * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
614         * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
615         * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
616         * testsuite/ld-ctf/cycle-1.d: Likewise.
617         * testsuite/ld-ctf/cycle-2.A.d: Likewise.
618         * testsuite/ld-ctf/cycle-2.B.d: Likewise.
619         * testsuite/ld-ctf/cycle-2.C.d: Likewise.
620         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
621         * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
622         * testsuite/ld-ctf/diag-cuname.d: Likewise.
623         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
624         * testsuite/ld-ctf/enum-forward.d: Likewise.
625         * testsuite/ld-ctf/enums.d: Likewise.
626         * testsuite/ld-ctf/forward.d: Likewise.
627         * testsuite/ld-ctf/function.d: Likewise.
628         * testsuite/ld-ctf/nonrepresentable.d: Likewise.
629         * testsuite/ld-ctf/slice.d: Likewise.
630         * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
632 2021-09-30  Dimitar Dimitrov  <dimitar@dinux.eu>
634         * scripttempl/pru.sc (.resource_table): Align the output
635         section, not the first symbol.
637 2021-09-27  Nick Alcock  <nick.alcock@oracle.com>
639         * configure: Regenerate.
641 2021-09-21  Nick Clifton  <nickc@redhat.com>
643         * ldlang.c (lang_end): When computing the entry point, only
644         try the start address of the entry section when creating an
645         executable.
646         * ld.texi (Entry point): Update description of heuristic used to
647         choose the entry point.
648         testsuite/ld-alpha/tlspic.rd: Update expected entry point address.
649         testsuite/ld-arm/tls-gdesc-got.d: Likewise.
650         testsuite/ld-i386/tlsnopic.rd: Likewise.
651         testsuite/ld-ia64/tlspic.rd: Likewise.
652         testsuite/ld-sparc/gotop32.rd: Likewise.
653         testsuite/ld-sparc/gotop64.rd: Likewise.
654         testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
655         testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
656         testsuite/ld-sparc/tlssunpic32.rd: Likewise.
657         testsuite/ld-sparc/tlssunpic64.rd: Likewise.
658         testsuite/ld-tic6x/shlib-1.rd: Likewise.
659         testsuite/ld-tic6x/shlib-1b.rd: Likewise.
660         testsuite/ld-tic6x/shlib-1r.rd: Likewise.
661         testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
662         testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
663         testsuite/ld-x86-64/pr14207.d: Likewise.
664         testsuite/ld-x86-64/tlsdesc.rd: Likewise.
665         testsuite/ld-x86-64/tlspic.rd: Likewise.
666         testsuite/ld-x86-64/tlspic2.rd: Likewise.
668 2021-09-15  Claudiu Zissulescu  <claziss@synopsys.com>
670         * testsuite/ld-arc/got-weak.d: Update file.
672 2021-09-14  Claudiu Zissulescu  <claziss@synopsys.com>
674         * ld-arc/got-weak.d: New file.
675         * ld-arc/got-weak.s: Likewise.
677 2021-07-26  Roland McGrath  <mcgrathr@google.com>
679         * testsuite/ld-x86-64/x86-64.exp (Build textrel-1): Use --warn-textrel.
681 2021-07-06  Michael Matz  <matz@suse.de>
683         PR ld/28021
684         * testsuite/ld-riscv-elf/relax-twice.ver: New.
685         * testsuite/ld-riscv-elf/relax-twice-1.s: New.
686         * testsuite/ld-riscv-elf/relax-twice-2.s: New.
687         * testsuite/ld-riscv-elf/ld-riscv-elf.exp
688         (run_relax_twice_test): New, and call it.
690 2021-07-03  Nick Clifton  <nickc@redhat.com>
692         * configure: Regenerate.
693         * po/ld.pot: Regenerate.
695 2021-07-03  Nick Clifton  <nickc@redhat.com>
697         * 2.37 release branch created.
699 2021-06-22  Nelson Chu  <nelson.chu@sifive.com>
701         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
702         * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.d: New testcase.
703         * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.s: Likewise.
704         * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.d: New testcase.
705         Should report error since the %pcrel_lo with addend refers to
706         %got_pcrel_hi.
707         * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.s: Likewise.
708         * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.d: New testcase.
709         Should report error since the %got_pcrel_hi with addend.
710         * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.s: Likewise.
711         * testsuite/ld-riscv-elf/pcrel-lo-addend-3.ld: Likewise.
713 2021-06-19  H.J. Lu  <hongjiu.lu@intel.com>
715         PR ld/27998
716         * testsuite/ld-i386/i386.exp: Run PR ld/27998 tests.
717         * testsuite/ld-i386/pr27998a.d: New file.
718         * testsuite/ld-i386/pr27998a.s: Likewise.
719         * testsuite/ld-i386/pr27998b.d: Likewise.
720         * testsuite/ld-i386/pr27998b.s: Likewise.
722 2021-06-19  H.J. Lu  <hongjiu.lu@intel.com>
724         * testsuite/ld-x86-64/textrel-1.err: New file.
725         * testsuite/ld-x86-64/textrel-1a.s: Likewise.
726         * testsuite/ld-x86-64/textrel-1b.s: Likewise.
727         * testsuite/ld-x86-64/x86-64.exp: Run textrel-1 tests.
729 2021-06-18  H.J. Lu  <hongjiu.lu@intel.com>
731         * testsuite/ld-elf/property-and-1.d: Skip am33_2.0, hppa-hpux
732         and mn10300.
733         Pass --generate-missing-build-notes=no to assembler.  Allow
734         other note sections for xtensa.
735         * testsuite/ld-elf/property-and-2.d: Likewise.
736         * testsuite/ld-elf/property-and-3.d: Likewise.
737         * testsuite/ld-elf/property-and-4.d: Likewise.
738         * testsuite/ld-elf/property-or-1.d: Likewise.
739         * testsuite/ld-elf/property-or-2.d: Likewise.
740         * testsuite/ld-elf/property-or-3.d: Likewise.
741         * testsuite/ld-elf/property-or-4.d: Likewise.
743 2021-06-18  H.J. Lu  <hongjiu.lu@intel.com>
745         * ld.texi: Move -z unique-symbol after -z undefs.
747 2021-06-18  H.J. Lu  <hongjiu.lu@intel.com>
749         * testsuite/ld-elf/property-and-1.d: New file.
750         * testsuite/ld-elf/property-and-1.s: Likewise.
751         * testsuite/ld-elf/property-and-2.d: Likewise.
752         * testsuite/ld-elf/property-and-2.s: Likewise.
753         * testsuite/ld-elf/property-and-3.d: Likewise.
754         * testsuite/ld-elf/property-and-3.s: Likewise.
755         * testsuite/ld-elf/property-and-4.d: Likewise.
756         * testsuite/ld-elf/property-and-empty.s: Likewise.
757         * testsuite/ld-elf/property-or-1.d: Likewise.
758         * testsuite/ld-elf/property-or-1.s: Likewise.
759         * testsuite/ld-elf/property-or-2.d: Likewise.
760         * testsuite/ld-elf/property-or-2.s: Likewise.
761         * testsuite/ld-elf/property-or-3.d: Likewise.
762         * testsuite/ld-elf/property-or-3.s: Likewise.
763         * testsuite/ld-elf/property-or-4.d: Likewise.
764         * testsuite/ld-elf/property-or-empty.s: Likewise.
766 2021-06-17  H.J. Lu  <hongjiu.lu@intel.com>
768         PR ld/27973
769         * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and
770         $NOPIE_CFLAGS to protected-func-1 without PIE.
772 2021-06-17  H.J. Lu  <hongjiu.lu@intel.com>
774         PR ld/27973
775         * testsuite/ld-x86-64/x86-64.exp: Run protected function tests.
776         * testsuite/ld-x86-64/protected-func-1.h: New file.
777         * testsuite/ld-x86-64/protected-func-1a.s: Likewise.
778         * testsuite/ld-x86-64/protected-func-1b.c: Likewise.
780 2021-06-17  Fangrui Song  <maskray@google.com>
782         * ldlex.h (enum option_values): Add OPTION_NO_PIE.
783         * lexsup.c (struct ld_options): Add -no-pie.
784         (parse_args): Handle -no-pie.
785         * ld.texi: Document -no-pie.
787 2021-06-15  Alan Modra  <amodra@gmail.com>
789         * testsuite/ld-pie/vaddr-0.d: Update expected output.
791 2021-06-11  Alan Modra  <amodra@gmail.com>
793         PR 27952
794         * ldelf.c (ldelf_after_open): Error on input PIEs too.
796 2021-06-09  Nick Clifton  <nickc@redhat.com>
798         PR 27666
799         * testsuite/ld-sparc/sparc.exp: Do not run the sparctests or
800         sparc64tests for Solaris2 targets.
802 2021-06-03  Alan Modra  <amodra@gmail.com>
804         PR 2589
805         * ld.texi (link-time runtime library search path): Mention
806         plugin library path.  Correct order of search.
808 2021-05-31  Nelson Chu  <nelson.chu@sifive.com>
809             Lifang Xia  <lifang_xia@c-sky.com>
811         PR 27566
812         * emultempl/riscvelf.em (after_allocation): Call
813         riscv_set_data_segment_info to set data segment phase before relaxing.
814         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
815         * testsuite/ld-riscv-elf/relro-relax-lui.d: New testcase.
816         * testsuite/ld-riscv-elf/relro-relax-lui.s: Likewise.
817         * testsuite/ld-riscv-elf/relro-relax-pcrel.d: Likewise.
818         * testsuite/ld-riscv-elf/relro-relax-pcrel.s: Likewise.
820 2021-05-28  H.J. Lu  <hongjiu.lu@intel.com>
822         PR ld/27905
823         * testsuite/ld-i386/pcrel16-2.d: xfail.
824         * testsuite/ld-x86-64/pcrel16-2.d: Likewise.
826 2021-05-26  H.J. Lu  <hongjiu.lu@intel.com>
828         PR ld/27905
829         * testsuite/ld-i386/code16.d: New file.
830         * testsuite/ld-i386/code16.t: Likewise.
831         * testsuite/ld-x86-64/code16.d: Likewise.
832         * testsuite/ld-x86-64/code16.t: Likewise.
833         * testsuite/ld-i386/i386.exp: Run code16.
834         * testsuite/ld-x86-64/x86-64.exp: Likewise.
836 2021-05-26  H.J. Lu  <hongjiu.lu@intel.com>
838         * testsuite/ld-x86-64/ilp32-12.d: New file.
839         * testsuite/ld-x86-64/ilp32-12.s: Likewise.
840         * testsuite/ld-x86-64/x86-64.exp: Run ilp32-12.
842 2021-05-14  Nelson Chu  <nelson.chu@sifive.com>
844         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
845         * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d: Renamed from
846         pcrel-lo-addend-2.
847         * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.s: Likewise.
848         * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.d: New testcase.
849         * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.s: Likewise.
851 2021-05-13  Fangrui Song  <maskray@google.com>
853         PR 27834
854         * ldlex.h (enum option_values): Add OPTION_NO_SYMBOLIC.
855         * lexsup.c (ld_options): Add -Bno-symbolic.
856         (parse_args): Handle -Bno-symbolic.
857         * ld.texi: Document -Bno-symbolic.
858         * NEWS: Mention -Bno-symbolic.
859         * testsuite/ld-elf/shared.exp: Add a test.
861 2021-05-12  Richard Earnshaw  <rearnsha@arm.com>
863         * testsuite/ld-arm/arm-elf.exp (farcall test for v8-m.mainline):
864         Correct expected output.
866 2021-05-11  Roland McGrath  <mcgrathr@google.com>
868         * testsuite/ld-x86-64/rela.d: Fix regexp not to presume a specific
869         address layout, so it works for e.g. --target=x86-64-elf.
871 2021-05-11  Nick Clifton  <nickc@redhat.com>
873         PR 27113
874         * Makefile.am (install-data-local): Also delete libdep.dll.a if it
875         is present.
876         * Makefile.in: Regenerate.
878 2021-05-10  Dimitar Dimitrov  <dimitar@dinux.eu>
880         * testsuite/ld-elf/group8a.d: Remove pru from XFAIL list.
881         * testsuite/ld-elf/group8b.d: Ditto.
882         * testsuite/ld-elf/group9a.d: Ditto.
883         * testsuite/ld-elf/group9b.d: Ditto.
884         * testsuite/ld-elf/pr12851.d: Ditto.
885         * testsuite/ld-elf/pr22677.d: Ditto.
886         * testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove
887         pru from list.
889 2021-05-10  Dimitar Dimitrov  <dimitar@dinux.eu>
891         * scripttempl/pru.sc (.resource_table): Add ALIGN directive.
892         Use symbols for memory sizes.
894 2021-05-08  Mike Frysinger  <vapier@gentoo.org>
896         * Makefile.am (html-local, doc/ld/index.html): New targets.
897         * Makefile.in: Regenerate.
899 2021-05-08  Mike Frysinger  <vapier@gentoo.org>
901         * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
902         * Makefile.in: Regenerate.
904 2021-05-07  Jan Beulich  <jbeulich@suse.com>
906         * testsuite/ld-x86-64/rela.d: New.
907         * testsuite/ld-x86-64/x86-64.exp: Run new test.
909 2021-05-07  Nick Clifton  <nickc@redhat.com>
911         * ldelfgen.c (compare_link_order): Ignore section size when
912         performing a relocateable link.
914 2021-05-07  Alan Modra  <amodra@gmail.com>
916         * ldexp.c (update_definedness): Don't return false for absolute
917         symbols.
918         * ldmain.c (multiple_definition): Print "warning: " in message
919         when not a hard error.
921 2021-05-07  Alan Modra  <amodra@gmail.com>
923         * testsuite/ld-elf/pr27825-1.d: Correct xfail.
924         * testsuite/ld-elf/pr27825-2.d: Likewise.
926 2021-05-06  Stafford Horne  <shorne@gmail.com>
928         PR 27746
929         testsuite/ld-or1k/or1k.exp (or1kplttests): Add tests for linking
930         along with gotha() relocations.
931         testsuite/ld-or1k/gotha1.dd: New file.
932         testsuite/ld-or1k/gotha1.s: New file.
933         testsuite/ld-or1k/gotha2.dd: New file.
934         testsuite/ld-or1k/gotha2.s: New file
935         testsuite/ld-or1k/pltlib.s (x): Define size to avoid link
936         failure.
938 2021-05-06  Nick Alcock  <nick.alcock@oracle.com>
940         * testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt.
941         * testsuite/lib/ld-lib.exp: Likewise.
942         * testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types.
943         * testsuite/ld-ctf/nonrepresentable-2.c: Likewise.
944         * testsuite/ld-ctf/nonrepresentable.d: Likewise.
945         * testsuite/ld-ctf/array.d: Larger type section.
946         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
947         * testsuite/ld-ctf/enums.d: Likewise.
948         * testsuite/ld-ctf/conflicting-enums.d: Don't compare types.
949         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order.
950         * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
951         * testsuite/ld-ctf/slice.d: Adjust for improved slice emission.
953 2021-05-05  H.J. Lu  <hongjiu.lu@intel.com>
955         PR ld/27825
956         * testsuite/ld-elf/pr27825-1.d: New file.
957         * testsuite/ld-elf/pr27825-1a.s: Likewise.
958         * testsuite/ld-elf/pr27825-1b.s: Likewise.
959         * testsuite/ld-elf/pr27825-2.d: Likewise.
960         * testsuite/ld-elf/pr27825-2a.s: Likewise.
961         * testsuite/ld-elf/pr27825-2b.s: Likewise.
963 2021-05-05  Alan Modra  <amodra@gmail.com>
965         * testsuite/ld-powerpc/empty.s: New file.
966         * testsuite/ld-powerpc/undefweak.d,
967         * testsuite/ld-powerpc/undefweak.s: New testcase.
968         * testsuite/ld-powerpc/powerpc.exp: Run it.
970 2021-05-03  Alan Modra  <amodra@gmail.com>
972         * testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
973         named section symbols.
975 2021-04-28  Nick Clifton  <nickc@redhat.com>
977         * testsuite/ld-elf/anno-sym.s: New test source file.
978         * testsuite/ld-elf/anno-sym.d: New test driver.
979         * testsuite/ld-elf/anno-sym.l: New test error output.
981 2021-04-26  Jan Beulich  <jbeulich@suse.com>
983         * testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d,
984         testsuite/ld-x86-64/pcrel16-2.d: New.
985         * testsuite/ld-i386/i386.exp: Run new test.
986         * testsuite/ld-x86-64/x86-64.exp: Likewise.
988 2021-04-23  H.J. Lu  <hongjiu.lu@intel.com>
990         PR ld/27771
991         * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
992         to tmpdir/ldscripts only if it doesn't exist.
994 2021-04-22  Jan Beulich  <jbeulich@suse.com>
996         PR ld/26659
997         * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
999 2021-04-21  Nick Clifton  <nickc@redhat.com>
1001         * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
1002         to allow for named section symbols.
1003         * testsuite/ld-aarch64/variant_pcs-r.d: Likewise.
1004         * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
1005         * testsuite/ld-alpha/tlsbin.rd: Likewise.
1006         * testsuite/ld-alpha/tlsbinr.rd: Likewise.
1007         * testsuite/ld-alpha/tlspic.rd: Likewise.
1008         * testsuite/ld-arm/rodata-merge-map.sym: Likewise.
1009         * testsuite/ld-arm/script-type.sym: Likewise.
1010         * testsuite/ld-cris/libdso-2.d: Likewise.
1011         * testsuite/ld-cris/pr16044.d: Likewise.
1012         * testsuite/ld-elf/sec64k.exp: Likewise.
1013         * testsuite/ld-ia64/tlsbin.rd: Likewise.
1014         * testsuite/ld-ia64/tlspic.rd: Likewise.
1015         * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
1016         * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
1017         * testsuite/ld-mmix/bspec1.d: Likewise.
1018         * testsuite/ld-mmix/bspec2.d: Likewise.
1019         * testsuite/ld-mmix/local1.d: Likewise.
1020         * testsuite/ld-mmix/local3.d: Likewise.
1021         * testsuite/ld-mmix/local5.d: Likewise.
1022         * testsuite/ld-mmix/local7.d: Likewise.
1023         * testsuite/ld-mmix/undef-3.d: Likewise.
1024         * testsuite/ld-powerpc/tlsso.r: Likewise.
1025         * testsuite/ld-powerpc/tlsso32.r: Likewise.
1026         * testsuite/ld-powerpc/tlstocso.r: Likewise.
1027         * testsuite/ld-s390/tlsbin.rd: Likewise.
1028         * testsuite/ld-s390/tlsbin_64.rd: Likewise.
1029         * testsuite/ld-s390/tlspic.rd: Likewise.
1030         * testsuite/ld-s390/tlspic_64.rd: Likewise.
1031         * testsuite/ld-sparc/gotop32.rd: Likewise.
1032         * testsuite/ld-sparc/gotop64.rd: Likewise.
1033         * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
1034         * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
1035         * testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
1036         * testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
1037         * testsuite/ld-sparc/tlssunpic32.rd: Likewise.
1038         * testsuite/ld-sparc/tlssunpic64.rd: Likewise.
1039         * testsuite/ld-tic6x/common.d: Likewise.
1040         * testsuite/ld-tic6x/shlib-1.rd: Likewise.
1041         * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
1042         * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
1043         * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
1044         * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
1045         * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
1046         * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
1047         * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
1048         * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
1049         * testsuite/ld-tic6x/static-app-1.rd: Likewise.
1050         * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
1051         * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
1052         * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
1054 2021-04-20  Clément Chigot  <clement.chigot@atos.net>
1056         PR binutils/21700
1057         * testsuite/ld-powerpc/aix52.exp: Add new test.
1058         * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
1059         * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
1060         * testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
1061         * testsuite/ld-powerpc/aix-neg-reloc.s: New test.
1063 2021-04-13  Nick Clifton  <nickc@redhat.com>
1065         * ld.texi (Options): Add note about the effect of --as-needed on
1066         the --rpath and --rpath-link options on Linux based systems.
1068 2021-04-13  Alan Modra  <amodra@gmail.com>
1070         PR 27722
1071         * libdep_plugin.c (str2vec): Don't pass a potentially signed char
1072         to isspace.
1074 2021-04-12  Alan Modra  <amodra@gmail.com>
1076         * configure.ac (--enable-checking): Add support.
1077         * config.in: Regenerate.
1078         * configure: Regenerate.
1080 2021-04-12  Alan Modra  <amodra@gmail.com>
1082         * emultempl/mipself.em (mips_create_output_section_statements):
1083         Pass base type of hash table to is_elf_hash_table.
1084         * ldelf.c (ldelf_after_open): Likewise.
1086 2021-04-12  Alan Modra  <amodra@gmail.com>
1088         PR 27719
1089         * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
1090         the symbol hash table is the correct type before accessing
1091         elf_link_hash_entry symbols.
1092         * plugin.c (is_visible_from_outside): Likewise.
1093         * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
1094         * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
1096 2021-04-09  Alan Modra  <amodra@gmail.com>
1098         * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
1099         * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
1100         * testsuite/ld-powerpc/notoc2.d: Likewise.
1101         * testsuite/ld-powerpc/notoc3.d: Likewise.
1102         * testsuite/ld-powerpc/pcrelopt.d: Likewise.
1103         * testsuite/ld-powerpc/startstop.d: Likewise.
1104         * testsuite/ld-powerpc/tlsget.d: Likewise.
1105         * testsuite/ld-powerpc/tlsget2.d: Likewise.
1106         * testsuite/ld-powerpc/tlsld.d: Likewise.
1107         * testsuite/ld-powerpc/weak1.d: Likewise.
1108         * testsuite/ld-powerpc/weak1so.d: Likewise.
1110 2021-04-06  Jan Beulich  <jbeulich@suse.com>
1112         * pe-dll.c (generate_reloc): Bail immediately when .reloc is
1113         being discarded. Warn when relocated entry is above .reloc.
1115 2021-04-05  Alan Modra  <amodra@gmail.com>
1117         * configure.ac: Move initfini-array arg handling earlier.  Don't
1118         check for string.h, strings.h, stdlib.h, or locale.h.  Do check
1119         for inttypes.h, stdint.h, sys/types.h.  Don't check for
1120         setlocale, free, getev or strstr.
1121         (AC_ISC_POSIX): Don't invoke.
1122         * sysdep.h: Include string.h and stdlib.h unconditionally.  Test
1123         HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H.  Remove strstr, free and
1124         getenv fallback declarations.
1125         * ld.h: Don't test HAVE_LOCALE_H.
1126         * ldmain.c: Don't test HAVE_SETLOCALE.
1127         * config.in: Regenerate.
1128         * configure: Regenerate.
1130 2021-04-01  Tamar Christina  <tamar.christina@arm.com>
1132         PR ld/26659
1133         * testsuite/ld-pe/pe.exp: Add test.
1134         * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
1135         * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
1137 2021-04-01  Martin Liska  <mliska@suse.cz>
1139         * ldbuildid.c (strneq): Remove strneq and use startswith.
1140         (validate_build_id_style): Likewise.
1141         (compute_build_id_size): Likewise.
1143 2021-03-31  Alan Modra  <amodra@gmail.com>
1145         * sysdep.h (POISON_BFD_BOOLEAN): Define.
1146         * configure.ac (elf_list_options, elf_shlib_list_options=false),
1147         (elf_plt_unwind_list_options=false): Replace FALSE with false,
1148         and TRUE with true.
1149         * emulparams/call_nop.sh, * emulparams/cet.sh,
1150         * emulparams/dynamic_undefined_weak.sh,
1151         * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
1152         * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
1153         * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
1154         * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
1155         * emulparams/reloc_overflow.sh, * emulparams/static.sh,
1156         * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
1157         * emultempl/aix.em, * emultempl/alphaelf.em,
1158         * emultempl/armcoff.em, * emultempl/armelf.em,
1159         * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
1160         * emultempl/cr16elf.em, * emultempl/crxelf.em,
1161         * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
1162         * emultempl/hppaelf.em, * emultempl/linux.em,
1163         * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
1164         * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
1165         * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
1166         * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
1167         * emultempl/pep.em, * emultempl/ppc32elf.em,
1168         * emultempl/ppc64elf.em, * emultempl/rxelf.em,
1169         * emultempl/rxlinux.em, * emultempl/scoreelf.em,
1170         * emultempl/solaris2.em, * emultempl/spuelf.em,
1171         * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
1172         * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
1173         * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
1174         * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
1175         * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
1176         * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
1177         * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
1178         * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
1179         * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
1180         bfd_boolean with bool, FALSE with false, and TRUE with true.
1181         * configure: Regenerate.
1183 2021-03-31  Alan Modra  <amodra@gmail.com>
1185         * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
1186         * emultempl/nds32elf.em: Likewise.
1187         * testsuite/ld-elf/mbind2b.c: Likewise.
1188         * testsuite/ld-elf/pr18718.c: Likewise.
1189         * testsuite/ld-elf/pr18720a.c: Likewise.
1190         * testsuite/ld-elf/pr25749-1.c: Likewise.
1191         * testsuite/ld-elf/pr25749-1a.c: Likewise.
1192         * testsuite/ld-elf/pr25749-1b.c: Likewise.
1193         * testsuite/ld-elf/pr25749-1c.c: Likewise.
1194         * testsuite/ld-elf/pr25749-1d.c: Likewise.
1195         * testsuite/ld-elf/pr25749-2.c: Likewise.
1196         * testsuite/ld-elf/pr25754-1a.c: Likewise.
1197         * testsuite/ld-elf/pr25754-2a.c: Likewise.
1198         * testsuite/ld-elf/pr25754-3a.c: Likewise.
1199         * testsuite/ld-elf/pr25754-4a.c: Likewise.
1200         * testsuite/ld-elf/pr25754-5a.c: Likewise.
1201         * testsuite/ld-elf/pr25754-6a.c: Likewise.
1203 2021-03-29  Alan Modra  <amodra@gmail.com>
1205         * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
1206         boolean expression.
1207         * lexsup.c (parse_args): Likewise.
1208         * pe-dll.c (pe_dll_id_target): Likewise.
1210 2021-03-25  Nick Alcock  <nick.alcock@oracle.com>
1212         * testsuite/ld-ctf/array.d: Only check that the data object
1213         section is nonempty: do not check its exact size.
1214         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1215         * testsuite/ld-ctf/slice.d: Likewise.
1216         * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
1217         func info section too.
1218         * testsuite/ld-ctf/function.d: Likewise, for the func info section.
1220 2021-03-22  Martin Liska  <mliska@suse.cz>
1222         * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
1223         * emultempl/beos.em: Likewise.
1224         * emultempl/elf.em: Likewise.
1225         * emultempl/pe.em: Likewise.
1226         * emultempl/pep.em: Likewise.
1227         * emultempl/xtensaelf.em: Likewise.
1228         * ldctor.c (ctor_prio): Likewise.
1229         * ldelf.c (ldelf_try_needed): Likewise.
1230         (ldelf_parse_ld_so_conf): Likewise.
1231         (ldelf_after_open): Likewise.
1232         (output_rel_find): Likewise.
1233         (ldelf_place_orphan): Likewise.
1234         * ldfile.c (ldfile_add_library_path): Likewise.
1235         * ldlang.c (lang_add_input_file): Likewise.
1236         * ldmain.c (get_sysroot): Likewise.
1237         (get_emulation): Likewise.
1238         (add_archive_element): Likewise.
1239         * ldwrite.c (unsplittable_name): Likewise.
1240         (clone_section): Likewise.
1241         * lexsup.c (parse_args): Likewise.
1242         * pe-dll.c (is_import): Likewise.
1243         (pe_implied_import_dll): Likewise.
1245 2021-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1247         PR ld/27590
1248         * testsuite/ld-x86-64/pr27590.rd: New file.
1249         * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
1250         * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
1251         * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
1253 2021-03-20  Alan Modra  <amodra@gmail.com>
1255         PR 27590
1256         * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
1257         for all sections except .stabstr.
1259 2021-03-19  Alan Modra  <amodra@gmail.com>
1261         PR 27590
1262         * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
1263         R_MIPS_NONE.
1264         * testsuite/ld-elf/pr27590b.d: Likewise.
1266 2021-03-18  H.J. Lu  <hongjiu.lu@intel.com>
1268         PR ld/27590
1269         * testsuite/ld-elf/pr27590.s: New file.
1270         * testsuite/ld-elf/pr27590a.d: Likewise.
1271         * testsuite/ld-elf/pr27590b.d: Likewise.
1272         * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
1273         --reduce-memory-overheads.
1275 2021-03-18  H.J. Lu  <hongjiu.lu@intel.com>
1277         PR ld/27587
1278         * testsuite/ld-x86-64/pr27587.err: New file.
1279         * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
1280         * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
1281         * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
1283 2021-03-18  Nick Alcock  <nick.alcock@oracle.com>
1285         * testsuite/ld-ctf/slice.c: Check slices of enums too.
1286         * testsuite/ld-ctf/slice.d: Results adjusted.
1288 2021-03-16  Nick Clifton  <nickc@redhat.com>
1290         * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
1291         lname string.
1293 2021-03-15  Jan Beulich  <jbeulich@suse.com>
1295         * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
1297 2021-03-12  Alan Modra  <amodra@gmail.com>
1299         * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
1300         (ALL_64_EMULATION_SOURCES): ..here.
1301         * Makefile.in: Regenerate.
1303 2021-03-12  Clément Chigot  <clement.chigot@atos.net>
1305         * emultempl/aix.em: Ensure .tdata section is removed
1306         if empty, even with -r flag.
1307         * scripttempl/aix.sc: Handle TLS sections.
1308         * testsuite/ld-powerpc/aix52.exp: Add new tests.
1309         * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
1310         * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
1311         * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
1312         * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
1313         * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
1314         * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
1315         * testsuite/ld-powerpc/aix-tls-section.ex: New test.
1316         * testsuite/ld-powerpc/aix-tls-section.s: New test.
1318 2021-03-12  Clément Chigot  <clement.chigot@atos.net>
1320         * scripttempl/aix.sc: Add .te to .data section.
1321         * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
1322         Add aix-largetoc-1 test.
1323         * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
1324         * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
1325         * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
1326         * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
1328 2021-03-12  Alan Modra  <amodra@gmail.com>
1330         * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
1331         arrange to define __main for some run_dump_test tests.
1332         * testsuite/ld-gc/pr13683.d: Accept more symbols.
1333         * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
1334         * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
1335         * testsuite/ld-srec/srec.exp: Likewise.
1336         * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
1338 2021-03-11  Nelson Chu  <nelson.chu@sifive.com>
1340         * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
1341         many times if riscv_restart_relax_sections returns TRUE.
1342         * testsuite/ld-riscv-elf/restart-relax.d: New testcase.  Before
1343         applying this patch, the call won't be relaxed to jal; But now we
1344         have more chances to do relaxations.
1345         * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
1346         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
1348 2021-03-10  Jan Beulich  <jbeulich@suse.com>
1350         * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
1351         than 32 set bits.
1352         * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
1353         comment.
1354         * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
1356 2021-03-09  Jan Beulich  <jbeulich@suse.com>
1358         * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
1359         alignment to 4k.
1360         * testsuite/ld-pe/reloc.d: xfail for mcore.
1362 2021-03-09  Jan Beulich  <jbeulich@suse.com>
1364         * testsuite/ld-scripts/alignof.exp,
1365         testsuite/ld-scripts/data.exp,
1366         testsuite/ld-scripts/default-script.exp,
1367         testsuite/ld-scripts/log2.exp,
1368         testsuite/ld-scripts/print-memory-usage.exp,
1369         testsuite/ld-scripts/sizeof.exp,
1370         testsuite/ld-undefined/weak-undef.exp: Set image base to zero
1371         for PE/COFF.
1372         * testsuite/ld-scripts/default-script1.d,
1373         testsuite/ld-scripts/default-script2.d,
1374         testsuite/ld-scripts/default-script3.d,
1375         testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
1377 2021-03-05  H.J. Lu  <hongjiu.lu@intel.com>
1379         PR ld/27425
1380         PR ld/27432
1381         * ldelf.c (ldelf_set_output_arch): New function.
1382         * ldelf.h (ldelf_set_output_arch): New prototype.
1383         * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
1384         ldelf_set_output_arch.
1385         * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
1386         * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1387         * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1388         * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1389         * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1390         * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1391         * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
1392         * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
1393         * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
1395 2021-03-04  Jan Beulich  <jbeulich@suse.com>
1397         * testsuite/ld-scripts/map-address.exp: Set image base to zero
1398         for PE/COFF.
1399         * testsuite/ld-scripts/map-address.t: Place .text.
1401 2021-03-04  Jan Beulich  <jbeulich@suse.com>
1403         * ldexp.c (ldexp_is_final_sym_absolute): New.
1404         * ldexp.h (ldexp_is_final_sym_absolute): Declare.
1405         * pe-dll.c (generate_reloc): Skip absolute symbols.
1406         * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
1407         * testsuite/ld-pe/pe.exp: Run new test.
1409 2021-03-03  Alan Modra  <amodra@gmail.com>
1411         PR 27500
1412         * ldlang.c (insert_undefined): Don't mark symbols here.
1413         (lang_mark_undefineds): Do so here instead, new function.
1414         (lang_process): Call lang_mark_undefineds.
1415         * testsuite/ld-gc/start3.d,
1416         * testsuite/ld-gc/start3.s: New test.
1417         * testsuite/ld-gc/start4.d,
1418         * testsuite/ld-gc/start4.s: New test.
1419         * testsuite/ld-gc/gc.exp: Run them.
1421 2021-03-03  Alan Modra  <amodra@gmail.com>
1423         * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
1424         Move tests with ELF section directives to is_elf_format block.
1425         * testsuite/ld-gc/abi-note.d: Run on more targets.
1426         * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
1427         * testsuite/ld-gc/start.d: Likewise.
1428         * testsuite/ld-gc/start2.d: Likewise.
1429         * testsuite/ld-gc/stop.d: Likewise.
1430         * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
1431         * testsuite/ld-gc/start.s: Likewise.
1432         * testsuite/ld-gc/start2.s: Likewise.
1434 2021-03-02  Nick Alcock  <nick.alcock@oracle.com>
1436         * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
1438 2021-03-02  Alan Modra  <amodra@gmail.com>
1440         * testsuite/ld-powerpc/startstop.d,
1441         * testsuite/ld-powerpc/startstop.r,
1442         * testsuite/ld-powerpc/startstop.s: New test.
1443         * testsuite/ld-powerpc/powerpc.exp: Run it.
1445 2021-03-02  Alan Modra  <amodra@gmail.com>
1447         * testsuite/ld-powerpc/weak1.d,
1448         * testsuite/ld-powerpc/weak1.r,
1449         * testsuite/ld-powerpc/weak1.s,
1450         * testsuite/ld-powerpc/weak1so.d,
1451         * testsuite/ld-powerpc/weak1so.r: New tests.
1452         * testsuite/ld-powerpc/powerpc.exp: Run them.
1454 2021-03-01  Hannes Domani  <ssbssa@sourceware.org>
1455             Nick Clifton  <nickc@redhat.com>
1457         PR 27268
1458         * scripttempl/pe.sc: Add DWARF-5 section names.
1459         * scripttempl/pep.sc: Likewise.
1461 2021-03-01  Alan Modra  <amodra@gmail.com>
1462             Fangrui Song <maskray@google.com>
1464         * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
1465         * lexsup.c (elf_static_list_options): Display help for them.  Move
1466         help for -z stack-size to here from elf_shlib_list_options. Add
1467         help for -z start-stop-visibility and -z undefs.
1468         * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
1469         * NEWS: Mention -z start-stop-gc.
1470         * testsuite/ld-gc/start2.s,
1471         * testsuite/ld-gc/start2.d: New test.
1472         * testsuite/ld-gc/gc.exp: Run it.
1474 2021-03-01  Alan Modra  <amodra@gmail.com>
1476         * ldlang.c (undef_start_stop): For ELF make undefined start/stop
1477         symbols undefweak if that was how they were referenced.  Undo
1478         dynamic state too.
1480 2021-03-01  Alan Modra  <amodra@gmail.com>
1482         * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
1483         * testsuite/ld-elf/pr27128a.d: Likewise.
1484         * testsuite/ld-elf/pr27128b.d: Likewise.
1485         * testsuite/ld-elf/pr27128c.d: Likewise.
1486         * testsuite/ld-elf/pr27128d.d: Likewise.
1487         * testsuite/ld-elf/pr27128e.d: Likewise.
1489 2021-02-26  Alan Modra  <amodra@gmail.com>
1491         PR 27441
1492         * testsuite/ld-plugin/pr27441a.c,
1493         * testsuite/ld-plugin/pr27441b.c,
1494         * testsuite/ld-plugin/pr27441c.c,
1495         * testsuite/ld-plugin/pr27441c.d: New test.
1496         * testsuite/ld-plugin/lto.exp: Run it.
1498 2021-02-25  Jan Beulich  <jbeulich@suse.com>
1500         * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
1502 2021-02-21  Alan Modra  <amodra@gmail.com>
1504         * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
1505         defined in an object file.
1506         * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
1507         * testsuite/ld-scripts/defined5.d: Expect a warning.
1509 2021-02-19  Alan Modra  <amodra@gmail.com>
1511         * testsuite/lib/ld-lib.exp: Whitespace.
1512         (load_common_lib): Expand single use and delete this proc.
1513         (run_host_cmd): Use -fno-lto when getting gcc's ld version.
1514         Use -B for clang too.
1516 2021-02-18  Andrew Burgess  <andrew.burgess@embecosm.com>
1518         * testplugin.c (record_read_length): Remove debug fprintf.
1520 2021-02-14  Alan Modra  <amodra@gmail.com>
1522         * testsuite/ld-cdtest/cdtest.exp,
1523         * testsuite/ld-checks/checks.exp,
1524         * testsuite/ld-elf/binutils.exp,
1525         * testsuite/ld-elf/compress.exp,
1526         * testsuite/ld-elf/dwarf.exp,
1527         * testsuite/ld-elf/exclude.exp,
1528         * testsuite/ld-elf/frame.exp,
1529         * testsuite/ld-elf/indirect.exp,
1530         * testsuite/ld-elf/linux-x86.exp,
1531         * testsuite/ld-elf/sec-to-seg.exp,
1532         * testsuite/ld-elf/tls_common.exp,
1533         * testsuite/ld-elfcomm/elfcomm.exp,
1534         * testsuite/ld-elfvers/vers.exp,
1535         * testsuite/ld-elfvsb/elfvsb.exp,
1536         * testsuite/ld-elfweak/elfweak.exp,
1537         * testsuite/ld-ifunc/binutils.exp,
1538         * testsuite/ld-mips-elf/mips-elf-flags.exp,
1539         * testsuite/ld-misc/defsym.exp,
1540         * testsuite/ld-mn10300/mn10300.exp,
1541         * testsuite/ld-plugin/lto.exp,
1542         * testsuite/ld-plugin/plugin.exp,
1543         * testsuite/ld-scripts/align.exp,
1544         * testsuite/ld-scripts/assert.exp,
1545         * testsuite/ld-scripts/crossref.exp,
1546         * testsuite/ld-scripts/defined.exp,
1547         * testsuite/ld-scripts/extern.exp,
1548         * testsuite/ld-scripts/log2.exp,
1549         * testsuite/ld-scripts/map-address.exp,
1550         * testsuite/ld-scripts/phdrs.exp,
1551         * testsuite/ld-scripts/phdrs2.exp,
1552         * testsuite/ld-scripts/script.exp,
1553         * testsuite/ld-scripts/section-flags.exp,
1554         * testsuite/ld-scripts/sizeof.exp,
1555         * testsuite/ld-scripts/weak.exp,
1556         * testsuite/ld-selective/selective.exp,
1557         * testsuite/ld-sh/sh.exp,
1558         * testsuite/ld-shared/shared.exp,
1559         * testsuite/ld-srec/srec.exp,
1560         * testsuite/ld-tic6x/tic6x.exp,
1561         * testsuite/ld-undefined/undefined.exp,
1562         * testsuite/ld-undefined/weak-undef.exp,
1563         * testsuite/lib/ld-lib.exp: Don't use unresolved except after
1564         perror.  Instead report "unsupported" or "fail".
1566 2021-02-12  Nick Clifton  <nickc@redhat.com>
1568         * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
1569         following debug links.
1571 2021-02-11  Alan Modra  <amodra@gmail.com>
1573         * NEWS: Mention arm-symbianelf removal.
1575 2021-02-09  Alan Modra  <amodra@gmail.com>
1577         * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
1578         Don't include symbian dep file.
1579         * configure.tgt: Remove arm*-*-symbianelf* entry.
1580         * emulparams/armsymbian.sh: Delete.
1581         * ld.texi: Don't mention symbian.
1582         * scripttempl/armbpabi.sc: Delete.
1583         * testsuite/ld-arm/symbian-seg1.d: Delete.
1584         * testsuite/ld-arm/symbian-seg1.s: Delete.
1585         * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
1586         * Makefile.in: Regenerate.
1587         * po/BLD-POTFILES.in: Regenerate.
1589 2021-02-07  H.J. Lu  <hongjiu.lu@intel.com>
1591         PR ld/27358
1592         * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
1593         tests.
1594         * testsuite/ld-x86-64/x86-64.exp: Likewise.
1596 2021-01-26  Nick Alcock  <nick.alcock@oracle.com>
1598         * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
1599         when appropriate.
1601 2021-02-04  H.J. Lu  <hongjiu.lu@intel.com>
1603         PR ld/19609
1604         * testsuite/ld-x86-64/pr19609-2a.d: Updated.
1605         * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
1606         * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
1607         * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
1608         * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
1609         * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
1610         * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
1612 2021-02-04  H.J. Lu  <hongjiu.lu@intel.com>
1614         PR ld/15146
1615         * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
1616         * testsuite/ld-plugin/pr15146.d: Restored.
1617         * testsuite/ld-plugin/pr15146a.c: Likewise.
1618         * testsuite/ld-plugin/pr15146b.c: Likewise.
1619         * testsuite/ld-plugin/pr15146c.c: Likewise.
1620         * testsuite/ld-plugin/pr15146d.c: Likewise.
1622 2021-02-04  Alan Modra  <amodra@gmail.com>
1624         * testsuite/ld-plugin/pr27311d.c: New test.
1625         * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
1626         and link new test as pr27311-2.
1628 2021-02-03  Alan Modra  <amodra@gmail.com>
1630         * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
1631         Link with --as-needed.
1633 2021-02-02  Alan Modra  <amodra@gmail.com>
1635         * testsuite/ld-plugin/pr27311.d,
1636         * testsuite/ld-plugin/pr27311.ver,
1637         * testsuite/ld-plugin/pr27311a.c,
1638         * testsuite/ld-plugin/pr27311b.c,
1639         * testsuite/ld-plugin/pr27311c.c: New testcase.
1640         * testsuite/ld-plugin/lto.exp: Run it.  Correct PR14918 and
1641         PR12982 entries.
1643 2021-02-01  Emery Hemingway  <ehmry@posteo.net>
1645         * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1647 2021-02-01  Alan Modra  <amodra@gmail.com>
1649         * ldgram.y (defsym_expr): Use assignment rule.
1650         * ldlex.h (ldlex_defsym): Delete.
1651         * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
1653 2021-02-01  Alan Modra  <amodra@gmail.com>
1655         * ldgram.y (section): Call ldlex_backup.  Remove empty action.
1656         * ldlex.h (ldlex_backup): Declare.
1657         * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
1658         chars, use SYMBOLNAMECHAR.
1659         (ldlex_backup): New function.
1661 2021-02-01  Alan Modra  <amodra@gmail.com>
1663         * ldgram.y: Whitespace fixes.
1665 2021-02-01  Alan Modra  <amodra@gmail.com>
1667         * testsuite/ld-elf/pr27259.d: Correct sh_link match.
1669 2021-01-29  Alan Modra  <amodra@gmail.com>
1671         * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
1673 2021-01-28  H.J. Lu  <hongjiu.lu@intel.com>
1675         PR ld/27259
1676         * testsuite/ld-elf/pr27259.d: New file.
1677         * testsuite/ld-elf/pr27259.s: Likewise.
1679 2021-01-28  Alan Modra  <amodra@gmail.com>
1681         PR 27259
1682         * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
1683         prevent endless looping of linked-to sections.
1685 2021-01-26  H.J. Lu  <hongjiu.lu@intel.com>
1687         * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
1689 2021-01-26  Alan Modra  <amodra@gmail.com>
1691         PR 27226
1692         * emulparams/alphavms.sh: Don't set COMPILE_IN.
1693         * emulparams/elf64_ia64_vms.sh: Likewise.
1694         * emulparams/elf64mmix.sh: Likewise.
1695         * emulparams/elf_iamcu.sh: Likewise.
1696         * emulparams/elf_k1om.sh: Likewise.
1697         * emulparams/elf_l1om.sh: Likewise.
1698         * emulparams/mmo.sh: Likewise.
1699         * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
1700         * scripttempl/pdp11.sc: Use it.
1701         * emultempl/pdp11.em: Don't edit .xn script for separate_code,
1702         instead use .xe script.  Support scripts from file system.
1703         * emultempl/beos.em: Support scripts from file system.
1704         * emultempl/pe.em: Likewise.
1705         * emultempl/pep.em: Likewise.
1706         * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
1708 2021-01-25  Fangrui Song  <maskray@google.com>
1710         PR ld/27230
1711         * scripttempl/DWARF.sc: Add .debug_* sections.
1713 2021-01-25  Nick Clifton  <nickc@redhat.com>
1715         * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
1716         .debug_line_str and .debug_str_offsets.  Move .debug_macro and
1717         .debug_addr into DWARF-5 section.
1719 2021-01-21  Alan Modra  <amodra@gmail.com>
1721         * testsuite/ld-elf/pr26936.d: No longer xfail mips.
1723 2021-01-20  Alan Modra  <amodra@gmail.com>
1725         * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
1726         * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
1727         * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
1728         * testsuite/ld-powerpc/tlsget.wf: Likewise.
1729         * testsuite/ld-powerpc/tlsget2.d: Likewise.
1730         * testsuite/ld-powerpc/tlsget2.wf: Likewise.
1731         * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
1732         * testsuite/ld-powerpc/tlsexe32.r: Likewise.
1733         * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
1734         * testsuite/ld-powerpc/tlsexeno.r: Likewise.
1735         * testsuite/ld-powerpc/tlsexenors.r: Likewise.
1736         * testsuite/ld-powerpc/tlsexers.r: Likewise.
1737         * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
1738         * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
1739         * testsuite/ld-powerpc/tlsso.r: Likewise.
1740         * testsuite/ld-powerpc/tlsso32.r: Likewise.
1741         * testsuite/ld-powerpc/tlstocso.r: Likewise.
1743 2021-01-19  Nick Alcock  <nick.alcock@oracle.com>
1745         * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
1746         symbols by the optimizer.
1747         * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
1749 2021-01-19  Nelson Chu  <nelson.chu@sifive.com>
1751         * testsuite/ld-elf/elf.exp (riscv_little_endian): Added.  Return true
1752         if target is riscv little endian.  Otherwise, return false.
1753         * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
1754         targets by [riscv_little_endian].
1756 2021-01-18  Alan Modra  <amodra@gmail.com>
1758         PR 26378
1759         * ldlang.c (map_input_to_output_sections): Start with a read-only
1760         section for data statements.
1761         * testsuite/ld-elf/size-2.d: Adjust to suit.
1763 2021-01-17  H.J. Lu  <hongjiu.lu@intel.com>
1765         PR ld/27193
1766         * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
1767         * testsuite/ld-i386/pr27193.dd: New file.
1768         * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
1769         * testsuite/ld-i386/pr27193b.s: Likewise.
1771 2021-01-16  H.J. Lu  <hongjiu.lu@intel.com>
1773         PR binutils/23460
1774         * testsuite/ld-plugin/lto.exp: Increase the max number of open
1775         files to 20 for PR binutils/23460 test.
1777 2021-01-16  H.J. Lu  <hongjiu.lu@intel.com>
1779         PR ld/23169
1780         * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
1781         pr23169a.rd for pr23169c and pr23169f.  Remove pr23169e tests.
1782         * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
1783         address.
1785 2021-01-15  H.J. Lu  <hongjiu.lu@intel.com>
1787         * NEWS: Mention -z report-relative-reloc.
1788         * ld.texi: Document -z report-relative-reloc.
1789         * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
1790         * emulparams/elf_i386.sh: Likewse.
1791         * emulparams/elf_x86_64.sh: Likewse.
1792         * emulparams/x86-report-relative.sh: New file.
1793         * testsuite/ld-i386/report-reloc-1.d: Likewse.
1794         * testsuite/ld-i386/report-reloc-1.l: Likewse.
1795         * testsuite/ld-i386/report-reloc-1.s: Likewse.
1796         * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
1797         * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
1798         * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
1799         * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
1800         * testsuite/ld-i386/i386.exp: Run report-reloc-1.
1801         * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
1802         report-reloc-1-x32.
1804 2021-01-16  Alan Modra  <amodra@gmail.com>
1806         PR 26002
1807         * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
1808         unversioned symbols.
1809         * testsuite/ld-elfvers/vers16.dsym: Likewise.
1811 2021-01-15  Nelson Chu  <nelson.chu@sifive.com>
1813         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
1814         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
1815         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
1816         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
1817         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
1818         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
1820 2021-01-14  Nick Clifton  <nickc@redhat.com>
1822         * po/fr.po: Updated French translation.
1824 2021-01-14  Mike Frysinger  <vapier@gentoo.org>
1826         * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
1828 2021-01-14  Alan Modra  <amodra@gmail.com>
1830         PR 27160
1831         * ldelfgen.c (compare_link_order): Protect access of ELF section
1832         data.
1833         (add_link_order_input_section): Remove redundant NULL check.
1834         Use bfd_get_flavour.
1835         (ldelf_map_segments): Use bfd_get_flavour.
1837 2021-01-13  H.J. Lu  <hongjiu.lu@intel.com>
1839         * ldelfgen.c (add_link_order_input_section): Check for ELF input
1840         before accessing ELF section data.
1842 2021-01-13  Alan Modra  <amodra@gmail.com>
1844         * Makefile.in: Regenerate.
1846 2021-01-13  Alan Modra  <amodra@gmail.com>
1848         PR 27160
1849         * ldlang.h (lang_output_section_statement_type): Add data field.
1850         (lang_input_section_type, lang_section_bst_type): Add pattern field.
1851         (statement_list): Declare.
1852         (lang_add_section): Adjust prototype.
1853         * emultempl/aarch64elf.em: Adjust lang_add_section calls.
1854         * emultempl/armelf.em: Likewise.
1855         * emultempl/beos.em: Likewise.
1856         * emultempl/cskyelf.em: Likewise.
1857         * emultempl/hppaelf.em: Likewise.
1858         * emultempl/m68hc1xelf.em: Likewise.
1859         * emultempl/metagelf.em: Likewise.
1860         * emultempl/mipself.em: Likewise.
1861         * emultempl/mmo.em: Likewise.
1862         * emultempl/msp430.em: Likewise.
1863         * emultempl/nios2elf.em: Likewise.
1864         * emultempl/pe.em: Likewise.
1865         * emultempl/pep.em: Likewise.
1866         * emultempl/ppc64elf.em: Likewise.
1867         * emultempl/spuelf.em: Likewise.
1868         * emultempl/vms.em: Likewise.
1869         * ldelf.c: Likewise.
1870         * ldelfgen.c: Include ldctor.h.
1871         (struct os_sections): New.
1872         (add_link_order_input_section, link_order_scan): New functions.
1873         (compare_link_order, fixup_link_order): New functions.
1874         (ldelf_map_segments): Call link_order_scan and fixup_link_order.
1875         * ldlang.c (statement_list): Make global.
1876         (output_section_callback_fast): Save pattern in tree node.
1877         (lang_add_section): Add pattern parameter, save in lang_input_section.
1878         (output_section_callback_tree_to_list): Adjust lang_add_section calls.
1879         (lang_insert_orphan, output_section_callback): Likewise.
1880         (ldlang_place_orphan): Likewise.
1881         (gc_section_callback): Don't set section->pattern.
1882         * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
1883         * testsuite/ld-elf/pr26256-3b.d: Likewise.
1884         * testsuite/ld-elf/pr26256-2b.d: Likewise.  notarget xgate.
1886 2021-01-13  Alan Modra  <amodra@gmail.com>
1888         * ldlang.h (callback_t): Remove flag_info function parameter.
1889         * ldlang.c (walk_wild_consider_section): Adjust to suit.
1890         (walk_wild_section_general): Likewise.
1891         (output_section_callback_fast, output_section_callback): Likewise.
1892         (check_section_callback, gc_section_callback): Likewise.
1893         (find_relro_section_callback): Likewise.
1895 2021-01-12  H.J. Lu  <hongjiu.lu@intel.com>
1897         PR binutils/26792
1898         * configure.ac: Use GNU_MAKE_JOBSERVER.
1899         * aclocal.m4: Regenerated.
1900         * configure: Likewise.
1902 2021-01-12  H.J. Lu  <hongjiu.lu@intel.com>
1904         PR ld/27171
1905         * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
1906         * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1907         * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1908         * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
1910 2021-01-11  H.J. Lu  <hongjiu.lu@intel.com>
1912         PR ld/27173
1913         * configure: Regenerated.
1915 2021-01-11  Matt Jenkins  <matt@majenko.co.uk>
1917         PR ld/27167
1918         * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
1919         and mips64r5 to list of known mips targets.
1921 2021-01-11  Nick Clifton  <nickc@redhat.com>matt@majenko.co.uk
1923         * po/pt_BR.po: Updated Brazilian Portuguese translation.
1924 `       * po/uk.po: Updated Ukranian translation.
1926 2021-01-09  H.J. Lu  <hongjiu.lu@intel.com>
1928         * configure: Regenerated.
1930 2021-01-09  H.J. Lu  <hongjiu.lu@intel.com>
1932         PR ld/27166
1933         * testsuite/ld-x86-64/lam-u48.rd: New file.
1934         * testsuite/ld-x86-64/lam-u57.rd: Likewise.
1935         * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
1937 2021-01-09  Nick Clifton  <nickc@redhat.com>
1939         * configure: Regenerate.
1940         * po/ld.pot: Regenerate.
1942 2021-01-09  Nick Clifton  <nickc@redhat.com>
1944         * 2.36 release branch crated.
1946 2021-01-08  H.J. Lu  <hongjiu.lu@intel.com>
1948         * ld-x86-64/property-x86-lam-u48-4.d: Updated.
1949         * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
1951 2021-01-09  Alan Modra  <amodra@gmail.com>
1953         * configure: Regenerate.
1954         * Makefile.in: Regenerate.
1956 2021-01-07  Samuel Thibault  <samuel.thibault@gnu.org>
1958         * configure: Regenerate.
1960 2021-01-07  H.J. Lu  <hongjiu.lu@intel.com>
1962         PR 27109
1963         * testsuite/ld-elf/export-class.sd: Adjust the expected output.
1964         * testsuite/ld-elf/loadaddr3b.d: Likewise.
1965         * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1966         * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1967         * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1968         * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1969         * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1970         * testsuite/ld-i386/pr19636-1d.d: Likewise.
1971         * testsuite/ld-i386/pr19636-1l.d: Likewise.
1972         * testsuite/ld-i386/pr19636-2c.d: Likewise.
1973         * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1974         * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1975         * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1976         * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1977         * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1978         * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1979         * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1980         * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1981         * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1982         * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1983         * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1984         * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1985         * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1986         * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1987         * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1988         * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1989         * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1990         * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1991         * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1992         * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1993         * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1994         * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1995         * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1996         * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1997         * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1998         * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1999         * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
2000         * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
2001         * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
2002         * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
2003         * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
2004         * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
2005         * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
2006         * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
2007         * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
2008         * testsuite/ld-x86-64/pr21038b.d: Likewise.
2009         * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
2010         * testsuite/ld-x86-64/pr21038c.d: Likewise.
2011         * testsuite/ld-x86-64/pr23854.d: Likewise.
2012         * testsuite/ld-x86-64/pr25416-3.d: Likewise.
2013         * testsuite/ld-x86-64/pr25416-4.d: Likewise.
2014         * testsuite/ld-i386/plt-pic.pd: Likewise.
2015         * testsuite/ld-i386/plt-pic2.dd: Likewise.
2016         * testsuite/ld-i386/plt.pd: Likewise.
2017         * testsuite/ld-i386/plt2.dd: Likewise.
2018         * testsuite/ld-i386/tlsbin.rd: Likewise.
2019         * testsuite/ld-i386/tlsbin2.rd: Likewise.
2020         * testsuite/ld-i386/tlsbindesc.rd: Likewise.
2021         * testsuite/ld-i386/tlsdesc.rd: Likewise.
2022         * testsuite/ld-i386/tlsgdesc.rd: Likewise.
2023         * testsuite/ld-i386/tlsnopic.rd: Likewise.
2024         * testsuite/ld-i386/tlspic.rd: Likewise.
2025         * testsuite/ld-i386/tlspic2.rd: Likewise.
2026         * testsuite/ld-x86-64/mpx3.dd: Likewise.
2027         * testsuite/ld-x86-64/mpx3n.dd: Likewise.
2028         * testsuite/ld-x86-64/mpx4.dd: Likewise.
2029         * testsuite/ld-x86-64/mpx4n.dd: Likewise.
2030         * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
2031         * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
2032         * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
2033         * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
2034         * testsuite/ld-x86-64/plt.pd: Likewise.
2035         * testsuite/ld-x86-64/plt2.dd: Likewise.
2036         * testsuite/ld-x86-64/tlsbin.rd: Likewise.
2037         * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
2038         * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
2039         * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
2040         * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
2041         * testsuite/ld-x86-64/tlspic.rd: Likewise.
2042         * testsuite/ld-x86-64/tlspic2.rd: Likewise.
2043         * testsuite/ld-elf/sec64k.exp: Check
2044         is_elf_unused_section_symbols.
2046 2021-01-07  Alan Modra  <amodra@gmail.com>
2048         * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
2049         * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
2050         * testsuite/ld-scripts/segment-start.d: Likewise.
2052 2021-01-07  Alan Modra  <amodra@gmail.com>
2054         * testsuite/ld-elf/comm-data5.d: xfail targets that complain
2055         about dynamic relocations in read-only sections.
2056         * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
2057         * testsuite/ld-elf/ehdr_start.d: Likewise.
2058         * testsuite/ld-scripts/pr22267.d: Likewise.
2059         * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
2060         pr20995 text.
2061         * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
2063 2021-01-07  Marcus Comstedt  <marcus@mc.pp.se>
2065         * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
2066         * testsuite/ld-scripts/empty-address-2b.d: Likewise.
2068 2021-01-07  Alan Modra  <amodra@gmail.com>
2070         * po/BLD-POTFILES.in: Regenerate.
2072 2021-01-07  Alan Modra  <amodra@gmail.com>
2074         * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
2075         complain about relocs in read-only sections.  Tidy ASFLAGS append.
2077 2021-01-06  Alan Modra  <amodra@gmail.com>
2079         * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
2080         base for some tests.
2081         * testsuite/ld-sparc/gotop32.dd: Match solaris output.
2082         * testsuite/ld-sparc/gotop32.sd: Likewise.
2083         * testsuite/ld-sparc/gotop32.td: Likewise.
2084         * testsuite/ld-sparc/gotop64.dd: Likewise.
2085         * testsuite/ld-sparc/gotop64.sd: Likewise.
2086         * testsuite/ld-sparc/gotop64.td: Likewise.
2087         * testsuite/ld-sparc/tlsg32.sd: Likewise.
2088         * testsuite/ld-sparc/tlsg64.sd: Likewise.
2089         * testsuite/ld-sparc/tlspie32.dd: Likewise.
2090         * testsuite/ld-sparc/tlspie64.dd: Likewise.
2091         * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
2092         * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
2093         * testsuite/ld-sparc/tlssunbin32.td: Likewise.
2094         * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
2095         * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
2096         * testsuite/ld-sparc/tlssunbin64.td: Likewise.
2097         * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
2098         * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
2099         * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
2100         * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
2101         * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
2102         * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
2103         * testsuite/ld-sparc/tlssunpic32.td: Likewise.
2104         * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
2105         * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
2106         * testsuite/ld-sparc/tlssunpic64.td: Likewise.
2107         * testsuite/ld-sparc/wdispcall.dd: Likewise.
2109 2021-01-06  Alan Modra  <amodra@gmail.com>
2111         * testsuite/ld-scripts/rgn-at10.d: xfail v850.
2112         * testsuite/ld-scripts/rgn-at11.d: Likewise.
2114 2021-01-06  Marcus Comstedt  <marcus@mc.pp.se>
2116         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
2117         riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
2118         * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
2119         riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
2120         * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
2121         * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
2122         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
2123         * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
2124         * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
2125         * testsuite/ld-riscv-elf/c-lui.d: Likewise.
2126         * testsuite/ld-riscv-elf/call-relax.d: Likewise.
2127         * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
2128         * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
2129         * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
2130         to littleriscv.
2131         * testsuite/ld-riscv-elf/weakref64.d: Likewise.
2133 2021-01-06  Marcus Comstedt  <marcus@mc.pp.se>
2135         * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
2136         riscv32be*-*-linux*, and riscv64be*-*-linux*.
2137         * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
2138         eelf32briscv_ilp32.c.
2139         * Makefile.in: Regenerate.
2140         * emulparams/elf32briscv.sh: Added.
2141         * emulparams/elf32briscv_ilp32.sh: Likewise.
2142         * emulparams/elf32briscv_ilp32f.sh: Likewise.
2143         * emulparams/elf64briscv.sh: Likewise.
2144         * emulparams/elf64briscv_lp64.sh: Likewise.
2145         * emulparams/elf64briscv_lp64f.sh: Likewise.
2147 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
2149         * testsuite/ld-ctf/enum-forward.c: New test.
2150         * testsuite/ld-ctf/enum-forward.c: New results.
2152 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
2154         * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2155         * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
2156         * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
2157         * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
2158         * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
2159         * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
2160         * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
2161         * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
2162         * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
2163         * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
2164         * testsuite/ld-ctf/conflicting-enums.d: Likewise.
2165         * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
2166         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2167         * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
2168         * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
2169         * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
2170         * testsuite/ld-ctf/cycle-1.d: Likewise.
2171         * testsuite/ld-ctf/cycle-2.A.d: Likewise.
2172         * testsuite/ld-ctf/cycle-2.B.d: Likewise.
2173         * testsuite/ld-ctf/cycle-2.C.d: Likewise.
2174         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2175         * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2176         * testsuite/ld-ctf/diag-cuname.d: Likewise.
2177         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2178         * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
2179         * testsuite/ld-ctf/forward.d: Likewise.
2180         * testsuite/ld-ctf/function.d: Likewise.
2181         * testsuite/ld-ctf/slice.d: Likewise.
2182         * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
2183         * testsuite/ld-ctf/enums.c: New test.
2184         * testsuite/ld-ctf/enums.d: New test.
2186 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
2188         * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
2189         changes.
2190         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2191         * testsuite/ld-ctf/forward.c: New test...
2192         * testsuite/ld-ctf/forward.d: ... and results.
2194 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
2196         * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2197         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2198         * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2199         * testsuite/ld-ctf/diag-cuname.d: Likewise.
2200         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2201         * testsuite/ld-ctf/function.d: Likewise.
2202         * testsuite/ld-ctf/slice.d: Likewise.
2204 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
2206         * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2207         * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
2208         * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
2209         * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
2210         * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
2211         * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
2212         * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
2213         * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
2214         * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
2215         * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
2216         * testsuite/ld-ctf/conflicting-enums.d: Likewise.
2217         * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
2218         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2219         * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
2220         * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
2221         * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
2222         * testsuite/ld-ctf/cycle-1.d: Likewise.
2223         * testsuite/ld-ctf/cycle-2.A.d: Likewise.
2224         * testsuite/ld-ctf/cycle-2.B.d: Likewise.
2225         * testsuite/ld-ctf/cycle-2.C.d: Likewise.
2226         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2227         * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2228         * testsuite/ld-ctf/diag-cuname.d: Likewise.
2229         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2230         * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
2231         * testsuite/ld-ctf/function.d: Likewise.
2232         * testsuite/ld-ctf/slice.d: Likewise.
2233         * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
2235 2021-01-05  Alan Modra  <amodra@gmail.com>
2237         * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
2239 2021-01-05  Alan Modra  <amodra@gmail.com>
2241         PR ld/26256
2242         * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
2243         * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
2245 2021-01-04  H.J. Lu  <hongjiu.lu@intel.com>
2247         PR ld/26256
2248         * ldlang.c (gc_section_callback): Set pattern.
2249         * testsuite/ld-elf/pr26256-1.s: New file.
2250         * testsuite/ld-elf/pr26256-1.t: Likewise.
2251         * testsuite/ld-elf/pr26256-1a.d: Likewise.
2252         * testsuite/ld-elf/pr26256-1b.d: Likewise.
2253         * testsuite/ld-elf/pr26256-2.s: Likewise.
2254         * testsuite/ld-elf/pr26256-2.t: Likewise.
2255         * testsuite/ld-elf/pr26256-2a.d: Likewise.
2256         * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
2257         * testsuite/ld-elf/pr26256-2b.d: Likewise.
2258         * testsuite/ld-elf/pr26256-3.s: Likewise.
2259         * testsuite/ld-elf/pr26256-3a.d: Likewise.
2260         * testsuite/ld-elf/pr26256-3a.t: Likewise.
2261         * testsuite/ld-elf/pr26256-3b.d: Likewise.
2262         * testsuite/ld-elf/pr26256-3b.t: Likewise.
2264 2021-01-04  Alan Modra  <amodra@gmail.com>
2266         PR 26822
2267         * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
2268         * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
2269         * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
2270         * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
2271         * testsuite/ld-i386/tlsbin.rd: Likewise.
2272         * testsuite/ld-i386/tlsbin2.rd: Likewise.
2273         * testsuite/ld-i386/tlsbindesc.rd: Likewise.
2274         * testsuite/ld-i386/tlsdesc.rd: Likewise.
2275         * testsuite/ld-i386/tlsnopic.rd: Likewise.
2276         * testsuite/ld-i386/tlspic.rd: Likewise.
2277         * testsuite/ld-i386/tlspic2.rd: Likewise.
2278         * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
2279         * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
2280         * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
2281         * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
2282         * testsuite/ld-plugin/pr17973.d: Likewise.
2283         * testsuite/ld-tic6x/shlib-1.rd: Likewise.
2284         * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
2285         * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
2286         * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
2287         * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
2288         * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
2289         * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
2290         * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
2291         * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
2292         * testsuite/ld-tic6x/static-app-1.rd: Likewise.
2293         * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
2294         * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
2295         * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
2296         * testsuite/ld-x86-64/tlsbin.rd: Likewise.
2297         * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
2298         * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
2299         * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
2300         * testsuite/ld-x86-64/tlspic.rd: Likewise.
2301         * testsuite/ld-x86-64/tlspic2.rd: Likewise.
2302         * testsuite/ld-xtensa/tlsbin.rd: Likewise.
2303         * testsuite/ld-xtensa/tlspic.rd: Likewise.
2305 2021-01-01  Nicolas Boulenguez  <nicolas@debian.org>
2307         * configure.tgt: Correct comment grammar.
2308         * emultempl/m68hc1xelf.em: Likewise.
2309         * ld.texi: Correct grammar.
2311 2021-01-01  Alan Modra  <amodra@gmail.com>
2313         Update year range in copyright notice of all files.
2315 For older changes see ChangeLog-2020
2317 Copyright (C) 2021-2023 Free Software Foundation, Inc.
2319 Copying and distribution of this file, with or without modification,
2320 are permitted in any medium without royalty provided the copyright
2321 notice and this notice are preserved.
2323 Local Variables:
2324 mode: change-log
2325 left-margin: 8
2326 fill-column: 74
2327 version-control: never
2328 End: