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