Fix the linker's merge4 test for the HPPA architecture.
[binutils-gdb.git] / ld / ChangeLog
blobac2c913f3cdd198629e452c5a55e3aa63c4c8f60
1 2023-02-15  Nick Clifton  <nickc@redhat.com>
3         PR 30078
4         * testsuite/ld-elf/merge4b.s: Use .asciz instead of .string in
5         order to avoid the special behaviour of the .string directive on
6         HPPA architectures.
8 2023-02-14  Nick Clifton  <nickc@redhat.com>
10         * ld.texi (Plugins): Mention that the -plugin command line option
11         is used to load plugins.
13 2023-01-27  Nick Clifton  <nickc@redhat.com>
15         PR 29998
16         * pe-dll.c (build_filler_bfd): Initialise the next field of the
17         filler input statement, so that it does not break the file chain.
19 2023-01-24  Nick Clifton  <nickc@redhat.com>
21         PR 29998
22         * pe-dll.c (generate_reloc): Handle sections with no assigned
23         output section.  Terminate early of there are no relocs to put in
24         the .reloc section.
25         (pe_exe_fill_sections): Do not emit an empty .reloc section.
27 2023-01-06  Nick Clifton  <nickc@redhat.com>
29         * po/bg.po: Updated Bulgarian translation.
31 2023-01-05  Nick Clifton  <nickc@redhat.com>
33         * configure.tgt: Add arm64pe as an extra emulation for aarch64pe.
34         * Makefile.am (ALL_64_EMULATION_SOURCES): Add earm64pe.c
35         * emultempl/pep.em: Add suppport for arm64pe emulation.
36         * Makefile.in: Regenerate.
37         * po/BLD-POTFILES.in: Regenerate.
38         * po/ld.pot: Regenerate.
40 2023-01-05  Andreas K. Huettel  <dilfridge@gentoo.org>
42         * testsuite/ld-elf/shared.exp: un-xfail the PR19710 test for the
43         AArch64 architecture.
45 2023-01-04  Andreas K. Huettel  <dilfridge@gentoo.org>
47         PR 29843
48         * testsuite/ld-aarch64/bti-plt-5.d: Relax regxps slightly to allow
49         for differences in build environments.
50         * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: Likewise.
52 2023-01-03  Nick Clifton  <nickc@redhat.com>
54         * po/uk.po: Updated Ukrainian translation.
56 2022-12-31  Nick Clifton  <nickc@redhat.com>
58         * 2.40 branch created.
60 2022-12-21  Nick Clifton  <nickc@redhat.com>
62         PR 29900
63         * scripttempl/pe.sc: Keep the .drectve section when performing a
64         relocateable link.
65         * scripttempl/pep.sc: Likewise.
67 2022-12-08  Nick Clifton  <nickc@redhat.com>
69         PR 29861
70         * ld.texi (Output Section Type): Note that setting the output
71         section type only works if the section contains untyped data.
73 2022-12-05  Nick Clifton  <nickc@redhat.com>
75         PR 29849
76         * ldlang.c (spec_match): Check that there is sufficient length in
77         the target name to match the spec's prefix.
79 2022-11-03  Nick Clifton  <nickc@redhat.com>
81         PR 29748
82         * configure.tgt (ac_default_ld_warn_rwx_segments): Set to 0 for
83         the V850.
85 2022-11-03  Nick Clifton  <nickc@redhat.com>
87         PR 29741
88         * scripttempl/avr.sc (__DATA_REGION_ORIGIN__): Define.  If a value
89         has not been provided on the command line then use DATA_ORIGIN.
90         (MEMORY): Use __DATA_REGION_ORIGIN__ as the start of the data region.
92 2022-10-21  Nick Clifton  <nickc@redhat.com>
94         PR 29654
95         * ld.h (struct ld_config_type): Add no_warnings field.
96         * ldlex.h (enum option_values): Add OPTION_NO_WARNINGS.
97         * lexsup.c (ld_options): Add --no-warnings.
98         (parse_args): Add support for -w and --no-warnings.
99         * ldmisc.c (vfinfo): Return early if the message is a warning and
100         -w has been enabled.
101         * ld.texi (options): Document new command line option.
102         * NEWS: Mention the new feature.
104 2022-08-30  Nick Clifton  <nickc@redhat.com>
106         PR 29529
107         * testsuite/ld-x86-64/pr27587.err: Update expected output.
109 2022-08-18  Ralf Habacker  <ralf.habacker@freenet.de>
111         PR 28362
112         * testsuite/ld-pe/pe-run2-def.exp: New file.
114 2022-08-03  Alan Modra  <amodra@gmail.com>
116         PR 29389
117         * ldlang.h (lang_input_statement_struct): Add sort_key field.
118         * emultempl/pe.em (after_open): If multiple import libraries refer
119         to the same bfd, store their names in the sort_key field.
120         * emultempl/pep.em (after_open): Likewise.
121         * ldlang.c (sort_filename): New function.  Returns the filename to
122         be used when sorting input files.
123         (wild_sort): Use the sort_filename function.
125 2022-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
127         PR ld/29411
128         * configure.tgt (ac_default_ld_warn_rwx_segments): Extend to all
129         sparc targets.  Expand comment.
131 2022-07-26  Nick Clifton  <nickc@redhat.com>
133         PR 29411
134         * configure.tgt (ac_default_ld_warn_rwx_segments): Disable for
135         sparc-solaris configurations.
137 2022-07-08  Nick Clifton  <nickc@redhat.com>
139         * 2.39 branch created.
141 2022-06-27  Nick Clifton  <nickc@redhat.com>
143         PR 29263
144         * configure.ac: Move HPPA specific code from here...
145         * configure.tgt: ... to here.  Add similar code for MIPS.
146         Move code for CRIS, MIPS and HPPA to block at start of file.
147         * configure: Regenerate.
149 2022-06-21  Nick Clifton  <nickc@redhat.com>
151         PR 29263
152         * configure.ac (ac_default_ld_warn_execstack): Default to 'no' for
153         HPPA targets.
154         (ac_default_ld_warn_rwx_segments): Likewise.
155         * configure: Regenerate.
156         * testsuite/ld-elf/elf.exp: Add the --warn-execstack command line
157         option to the command line when running execstack tests for the
158         HPPA target.
160 2022-05-12  Alan Modra  <amodra@gmail.com>
162         PR 29006
163         * pe-dll.c (dll_name): Delete, replacing with..
164         (dll_filename): ..this, moved earlier in file.
165         (generate_edata): Delete parameters.  Don't set up dll_name here..
166         (pe_process_import_defs): ..instead set up dll_filename and
167         dll_symname here before returning.
168         (dll_symname_len): Delete write-only variable.
169         (pe_dll_generate_implib): Don't set up dll_symname here.
171 2022-05-03  Nick Clifton  <nickc@redhat.com>
173         PR 29101
174         * libdep_plugin.c (get_libdeps): Check for overflow when computing
175         amount of memory to allocate.
177 2022-04-27  Nick Clifton  <nickc@redhat.com>
179         PR 29006
180         * pe-dll.c (make_head): Use asprintf to allocate and populate a
181         buffer containing the temporary name.
182         (make_tail, make_one, make_singleton_name_thunk): Likewise.
183         (make_import_fixup_mark, make_import_fixup_entry): Likewise.
184         (make_runtime_pseudo_reloc): Likewise.
185         (pe_create_runtime_relocator_reference): Likewise.
187 2022-04-25  Nick Clifton  <nickc@redhat.com>
189         PR 29072
190         * testsuite/ld-elf/pr29072.b.warn: Update to include the note
191         about the linker's behaviour being depreccated.
193 2022-04-20  Clément Chigot  <clement.chigot@atos.net>
195         * emultempl/aix.em (params): New variable.
196         (stub_file): New variable.
197         (xcoff_add_stub_section): New function.
198         (xcoff_layout_sections_again): New function
199         (hook_in_stub): New function.
200         (_after_allocation): Add stub creation.
201         (_create_output_section_statements): Allocate stub file and
202         pass params to backend.
204 2022-04-20  Clément Chigot  <clement.chigot@atos.net>
206         * emultempl/aix.em (_after_allocation): New function.
208 2022-04-07  Mark Harmstone  <mark@harmstone.com>
210         * testsuite/ld-pe/secidx1.s: New test source file.
211         * testsuite/ld-pe/secidx2.s: New test source file.
212         * testsuite/ld-pe/secidx.d: New test driver file.
213         * testsuite/ld-pe/secidx_64.d: New test driver file.
214         * testsuite/ld-pe/pe.exp: Add new tests.
216 2022-03-01  Nick Clifton  <nickc@redhat.com>
218         PR 21964
219         * testsuite/ld-elf/pr21964-1a.c: Fix array comparisons.
220         * testsuite/ld-elf/pr21964-1b.c: Likewise.
221         * testsuite/ld-elf/pr21964-1c.c: Likewise.
222         * testsuite/ld-elf/pr21964-2a.c: Likewise.
223         * testsuite/ld-elf/pr21964-2b.c: Likewise.
224         * testsuite/ld-elf/pr21964-3a.c: Likewise.
226 2022-02-17  Roland McGrath  <mcgrathr@google.com>
228         * ld.texi (Output Section Type): Fix typo in @code syntax.
230 2022-02-17  Nick Clifton  <nickc@redhat.com>
232         * po/sr.po: Updated Serbian translation.
234 2022-02-16  Fangrui Song  <maskray@google.com>
235             Nick Clifton  <nickc@redhat.com>
237         PR ld/28841
238         * ld.texi: Document new output section type.
239         * ldlex.l: Add new token TYPE.
240         * ldgram.y: Handle TYPE=exp and READONLY (TYPE=exp).
241         * ldlang.h: Add type_section to list of section types.
242         * ldlang.c (lang_add_section): Handle type_section.
243         (map_input_to_output_sections): Handle type_section.
244         * testsuite/ld-scripts/output-section-types.t: Add tests.
245         * testsuite/ld-scripts/output-section-types.d: Update.
247 2022-02-02  Nick Clifton  <nickc@redhat.com>
249         * po/fr.po: Updated French translation.
251 2022-01-24  Nick Clifton  <nickc@redhat.com>
253         * po/bg.po: Updated Bulgarian translation.
254         * po/uk.po: Updated Ukranian translation.
256 2022-01-22  Alexander von Gluck IV  <kallisti5@unixzen.com>
258         * configure.tgt (arm-haiku): Fix typo.
259         * emulparams/armelf_haiku.su (MAXPAGESIZE): Use the default value.
260         (COMMONPAGESIZE): Likewise.
262 2022-01-22  Nick Clifton  <nickc@redhat.com>
264         * configure: Regenerate.
265         * po/ld.pot: Regenerate.
267 2022-01-22  Nick Clifton  <nickc@redhat.com>
269         * 2.38 release branch created.
271 2022-01-21  Nick Clifton  <nickc@redhat.com>
273         * po/sr.po: Updated Serbian translation.
275 2022-01-17  Nick Clifton  <nickc@redhat.com>
277         * Makefile.in: Regenerate.
278         * po/ld.pot: Regenerate.
280 2022-01-11  Martin Storsjö  <martin@martin.st>
282         * pe-dll.c (make_head): Prefix the symbol name with the dll name.
283         (make_tail, make_one, make_singleton_name_thunk): Likewise.
284         (make_import_fixup_entry, make_runtime_pseudo_reloc): Likewise.
285         (pe_create_runtime_relocator_reference): Likewise.
286         (pe_dll_generate_implib): Set dll_symname_len.
287         (pe_process_import_defs): Likewise.
289 2021-12-16  Nick Clifton  <nickc@redhat.com>
291         PR 28686
292         * testsuite/ld-avr/avr-prop-7.d: Adjust expected output.
293         * testsuite/ld-avr/avr-prop-8.d: Likewise.
294         * testsuite/ld-avr/pr13402.d: Likewise.
296 2021-11-30  Nick Clifton  <nickc@redhat.com>
298         * scripttempl/pru.sc (.pru_irq_map): Define output section.
299         * testsuite/ld-pru/pru_irq_map-1.d: New test.
300         * testsuite/ld-pru/pru_irq_map-2.d: New test.
301         * testsuite/ld-pru/pru_irq_map.s: New test.
303 2021-11-17  Jeremy Drake  <cygwin@jdrake.com>
305         * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Set to 0 for
306         Cygwin targets.
307         * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Likewise.
309 2021-11-17  Nick Clifton  <nickc@redhat.com>
311         PR 28452
312         * ldgram.y: Add support for PT_GNU_RELRO and PT_GNU_PROPERTY.
313         * ldgram.c: Regenerate.
315 2021-11-15  Roland McGrath  <mcgrathr@google.com>
317         * testsuite/ld-aarch64/dt_textrel.d: Pass explicit -z notext in
318         case ld was configured with --enable-textrel-check=error.
319         * testsuite/ld-aarch64/pr22764.d: Likewise.
320         * testsuite/ld-aarch64/pr20402.d: Likewise.
322 2021-10-25  Nick Alcock  <nick.alcock@oracle.com>
324         * testsuite/ld-ctf/nonrepresentable-member.*: New test.
326 2021-10-25  Nick Alcock  <nick.alcock@oracle.com>
328         * testsuite/ld-ctf/array.d: Change --ctf=.ctf to --ctf.
329         * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
330         * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
331         * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
332         * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
333         * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
334         * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
335         * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
336         * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
337         * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
338         * testsuite/ld-ctf/conflicting-enums.d: Likewise.
339         * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
340         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
341         * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
342         * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
343         * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
344         * testsuite/ld-ctf/cycle-1.d: Likewise.
345         * testsuite/ld-ctf/cycle-2.A.d: Likewise.
346         * testsuite/ld-ctf/cycle-2.B.d: Likewise.
347         * testsuite/ld-ctf/cycle-2.C.d: Likewise.
348         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
349         * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
350         * testsuite/ld-ctf/diag-cuname.d: Likewise.
351         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
352         * testsuite/ld-ctf/enum-forward.d: Likewise.
353         * testsuite/ld-ctf/enums.d: Likewise.
354         * testsuite/ld-ctf/forward.d: Likewise.
355         * testsuite/ld-ctf/function.d: Likewise.
356         * testsuite/ld-ctf/nonrepresentable.d: Likewise.
357         * testsuite/ld-ctf/slice.d: Likewise.
358         * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
360 2021-09-30  Dimitar Dimitrov  <dimitar@dinux.eu>
362         * scripttempl/pru.sc (.resource_table): Align the output
363         section, not the first symbol.
365 2021-09-27  Nick Alcock  <nick.alcock@oracle.com>
367         * configure: Regenerate.
369 2021-09-21  Nick Clifton  <nickc@redhat.com>
371         * ldlang.c (lang_end): When computing the entry point, only
372         try the start address of the entry section when creating an
373         executable.
374         * ld.texi (Entry point): Update description of heuristic used to
375         choose the entry point.
376         testsuite/ld-alpha/tlspic.rd: Update expected entry point address.
377         testsuite/ld-arm/tls-gdesc-got.d: Likewise.
378         testsuite/ld-i386/tlsnopic.rd: Likewise.
379         testsuite/ld-ia64/tlspic.rd: Likewise.
380         testsuite/ld-sparc/gotop32.rd: Likewise.
381         testsuite/ld-sparc/gotop64.rd: Likewise.
382         testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
383         testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
384         testsuite/ld-sparc/tlssunpic32.rd: Likewise.
385         testsuite/ld-sparc/tlssunpic64.rd: Likewise.
386         testsuite/ld-tic6x/shlib-1.rd: Likewise.
387         testsuite/ld-tic6x/shlib-1b.rd: Likewise.
388         testsuite/ld-tic6x/shlib-1r.rd: Likewise.
389         testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
390         testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
391         testsuite/ld-x86-64/pr14207.d: Likewise.
392         testsuite/ld-x86-64/tlsdesc.rd: Likewise.
393         testsuite/ld-x86-64/tlspic.rd: Likewise.
394         testsuite/ld-x86-64/tlspic2.rd: Likewise.
396 2021-09-15  Claudiu Zissulescu  <claziss@synopsys.com>
398         * testsuite/ld-arc/got-weak.d: Update file.
400 2021-09-14  Claudiu Zissulescu  <claziss@synopsys.com>
402         * ld-arc/got-weak.d: New file.
403         * ld-arc/got-weak.s: Likewise.
405 2021-07-26  Roland McGrath  <mcgrathr@google.com>
407         * testsuite/ld-x86-64/x86-64.exp (Build textrel-1): Use --warn-textrel.
409 2021-07-06  Michael Matz  <matz@suse.de>
411         PR ld/28021
412         * testsuite/ld-riscv-elf/relax-twice.ver: New.
413         * testsuite/ld-riscv-elf/relax-twice-1.s: New.
414         * testsuite/ld-riscv-elf/relax-twice-2.s: New.
415         * testsuite/ld-riscv-elf/ld-riscv-elf.exp
416         (run_relax_twice_test): New, and call it.
418 2021-07-03  Nick Clifton  <nickc@redhat.com>
420         * configure: Regenerate.
421         * po/ld.pot: Regenerate.
423 2021-07-03  Nick Clifton  <nickc@redhat.com>
425         * 2.37 release branch created.
427 2021-06-22  Nelson Chu  <nelson.chu@sifive.com>
429         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
430         * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.d: New testcase.
431         * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.s: Likewise.
432         * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.d: New testcase.
433         Should report error since the %pcrel_lo with addend refers to
434         %got_pcrel_hi.
435         * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.s: Likewise.
436         * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.d: New testcase.
437         Should report error since the %got_pcrel_hi with addend.
438         * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.s: Likewise.
439         * testsuite/ld-riscv-elf/pcrel-lo-addend-3.ld: Likewise.
441 2021-06-19  H.J. Lu  <hongjiu.lu@intel.com>
443         PR ld/27998
444         * testsuite/ld-i386/i386.exp: Run PR ld/27998 tests.
445         * testsuite/ld-i386/pr27998a.d: New file.
446         * testsuite/ld-i386/pr27998a.s: Likewise.
447         * testsuite/ld-i386/pr27998b.d: Likewise.
448         * testsuite/ld-i386/pr27998b.s: Likewise.
450 2021-06-19  H.J. Lu  <hongjiu.lu@intel.com>
452         * testsuite/ld-x86-64/textrel-1.err: New file.
453         * testsuite/ld-x86-64/textrel-1a.s: Likewise.
454         * testsuite/ld-x86-64/textrel-1b.s: Likewise.
455         * testsuite/ld-x86-64/x86-64.exp: Run textrel-1 tests.
457 2021-06-18  H.J. Lu  <hongjiu.lu@intel.com>
459         * testsuite/ld-elf/property-and-1.d: Skip am33_2.0, hppa-hpux
460         and mn10300.
461         Pass --generate-missing-build-notes=no to assembler.  Allow
462         other note sections for xtensa.
463         * testsuite/ld-elf/property-and-2.d: Likewise.
464         * testsuite/ld-elf/property-and-3.d: Likewise.
465         * testsuite/ld-elf/property-and-4.d: Likewise.
466         * testsuite/ld-elf/property-or-1.d: Likewise.
467         * testsuite/ld-elf/property-or-2.d: Likewise.
468         * testsuite/ld-elf/property-or-3.d: Likewise.
469         * testsuite/ld-elf/property-or-4.d: Likewise.
471 2021-06-18  H.J. Lu  <hongjiu.lu@intel.com>
473         * ld.texi: Move -z unique-symbol after -z undefs.
475 2021-06-18  H.J. Lu  <hongjiu.lu@intel.com>
477         * testsuite/ld-elf/property-and-1.d: New file.
478         * testsuite/ld-elf/property-and-1.s: Likewise.
479         * testsuite/ld-elf/property-and-2.d: Likewise.
480         * testsuite/ld-elf/property-and-2.s: Likewise.
481         * testsuite/ld-elf/property-and-3.d: Likewise.
482         * testsuite/ld-elf/property-and-3.s: Likewise.
483         * testsuite/ld-elf/property-and-4.d: Likewise.
484         * testsuite/ld-elf/property-and-empty.s: Likewise.
485         * testsuite/ld-elf/property-or-1.d: Likewise.
486         * testsuite/ld-elf/property-or-1.s: Likewise.
487         * testsuite/ld-elf/property-or-2.d: Likewise.
488         * testsuite/ld-elf/property-or-2.s: Likewise.
489         * testsuite/ld-elf/property-or-3.d: Likewise.
490         * testsuite/ld-elf/property-or-3.s: Likewise.
491         * testsuite/ld-elf/property-or-4.d: Likewise.
492         * testsuite/ld-elf/property-or-empty.s: Likewise.
494 2021-06-17  H.J. Lu  <hongjiu.lu@intel.com>
496         PR ld/27973
497         * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and
498         $NOPIE_CFLAGS to protected-func-1 without PIE.
500 2021-06-17  H.J. Lu  <hongjiu.lu@intel.com>
502         PR ld/27973
503         * testsuite/ld-x86-64/x86-64.exp: Run protected function tests.
504         * testsuite/ld-x86-64/protected-func-1.h: New file.
505         * testsuite/ld-x86-64/protected-func-1a.s: Likewise.
506         * testsuite/ld-x86-64/protected-func-1b.c: Likewise.
508 2021-06-17  Fangrui Song  <maskray@google.com>
510         * ldlex.h (enum option_values): Add OPTION_NO_PIE.
511         * lexsup.c (struct ld_options): Add -no-pie.
512         (parse_args): Handle -no-pie.
513         * ld.texi: Document -no-pie.
515 2021-06-15  Alan Modra  <amodra@gmail.com>
517         * testsuite/ld-pie/vaddr-0.d: Update expected output.
519 2021-06-11  Alan Modra  <amodra@gmail.com>
521         PR 27952
522         * ldelf.c (ldelf_after_open): Error on input PIEs too.
524 2021-06-09  Nick Clifton  <nickc@redhat.com>
526         PR 27666
527         * testsuite/ld-sparc/sparc.exp: Do not run the sparctests or
528         sparc64tests for Solaris2 targets.
530 2021-06-03  Alan Modra  <amodra@gmail.com>
532         PR 2589
533         * ld.texi (link-time runtime library search path): Mention
534         plugin library path.  Correct order of search.
536 2021-05-31  Nelson Chu  <nelson.chu@sifive.com>
537             Lifang Xia  <lifang_xia@c-sky.com>
539         PR 27566
540         * emultempl/riscvelf.em (after_allocation): Call
541         riscv_set_data_segment_info to set data segment phase before relaxing.
542         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
543         * testsuite/ld-riscv-elf/relro-relax-lui.d: New testcase.
544         * testsuite/ld-riscv-elf/relro-relax-lui.s: Likewise.
545         * testsuite/ld-riscv-elf/relro-relax-pcrel.d: Likewise.
546         * testsuite/ld-riscv-elf/relro-relax-pcrel.s: Likewise.
548 2021-05-28  H.J. Lu  <hongjiu.lu@intel.com>
550         PR ld/27905
551         * testsuite/ld-i386/pcrel16-2.d: xfail.
552         * testsuite/ld-x86-64/pcrel16-2.d: Likewise.
554 2021-05-26  H.J. Lu  <hongjiu.lu@intel.com>
556         PR ld/27905
557         * testsuite/ld-i386/code16.d: New file.
558         * testsuite/ld-i386/code16.t: Likewise.
559         * testsuite/ld-x86-64/code16.d: Likewise.
560         * testsuite/ld-x86-64/code16.t: Likewise.
561         * testsuite/ld-i386/i386.exp: Run code16.
562         * testsuite/ld-x86-64/x86-64.exp: Likewise.
564 2021-05-26  H.J. Lu  <hongjiu.lu@intel.com>
566         * testsuite/ld-x86-64/ilp32-12.d: New file.
567         * testsuite/ld-x86-64/ilp32-12.s: Likewise.
568         * testsuite/ld-x86-64/x86-64.exp: Run ilp32-12.
570 2021-05-14  Nelson Chu  <nelson.chu@sifive.com>
572         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
573         * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d: Renamed from
574         pcrel-lo-addend-2.
575         * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.s: Likewise.
576         * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.d: New testcase.
577         * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.s: Likewise.
579 2021-05-13  Fangrui Song  <maskray@google.com>
581         PR 27834
582         * ldlex.h (enum option_values): Add OPTION_NO_SYMBOLIC.
583         * lexsup.c (ld_options): Add -Bno-symbolic.
584         (parse_args): Handle -Bno-symbolic.
585         * ld.texi: Document -Bno-symbolic.
586         * NEWS: Mention -Bno-symbolic.
587         * testsuite/ld-elf/shared.exp: Add a test.
589 2021-05-12  Richard Earnshaw  <rearnsha@arm.com>
591         * testsuite/ld-arm/arm-elf.exp (farcall test for v8-m.mainline):
592         Correct expected output.
594 2021-05-11  Roland McGrath  <mcgrathr@google.com>
596         * testsuite/ld-x86-64/rela.d: Fix regexp not to presume a specific
597         address layout, so it works for e.g. --target=x86-64-elf.
599 2021-05-11  Nick Clifton  <nickc@redhat.com>
601         PR 27113
602         * Makefile.am (install-data-local): Also delete libdep.dll.a if it
603         is present.
604         * Makefile.in: Regenerate.
606 2021-05-10  Dimitar Dimitrov  <dimitar@dinux.eu>
608         * testsuite/ld-elf/group8a.d: Remove pru from XFAIL list.
609         * testsuite/ld-elf/group8b.d: Ditto.
610         * testsuite/ld-elf/group9a.d: Ditto.
611         * testsuite/ld-elf/group9b.d: Ditto.
612         * testsuite/ld-elf/pr12851.d: Ditto.
613         * testsuite/ld-elf/pr22677.d: Ditto.
614         * testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove
615         pru from list.
617 2021-05-10  Dimitar Dimitrov  <dimitar@dinux.eu>
619         * scripttempl/pru.sc (.resource_table): Add ALIGN directive.
620         Use symbols for memory sizes.
622 2021-05-08  Mike Frysinger  <vapier@gentoo.org>
624         * Makefile.am (html-local, doc/ld/index.html): New targets.
625         * Makefile.in: Regenerate.
627 2021-05-08  Mike Frysinger  <vapier@gentoo.org>
629         * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
630         * Makefile.in: Regenerate.
632 2021-05-07  Jan Beulich  <jbeulich@suse.com>
634         * testsuite/ld-x86-64/rela.d: New.
635         * testsuite/ld-x86-64/x86-64.exp: Run new test.
637 2021-05-07  Nick Clifton  <nickc@redhat.com>
639         * ldelfgen.c (compare_link_order): Ignore section size when
640         performing a relocateable link.
642 2021-05-07  Alan Modra  <amodra@gmail.com>
644         * ldexp.c (update_definedness): Don't return false for absolute
645         symbols.
646         * ldmain.c (multiple_definition): Print "warning: " in message
647         when not a hard error.
649 2021-05-07  Alan Modra  <amodra@gmail.com>
651         * testsuite/ld-elf/pr27825-1.d: Correct xfail.
652         * testsuite/ld-elf/pr27825-2.d: Likewise.
654 2021-05-06  Stafford Horne  <shorne@gmail.com>
656         PR 27746
657         testsuite/ld-or1k/or1k.exp (or1kplttests): Add tests for linking
658         along with gotha() relocations.
659         testsuite/ld-or1k/gotha1.dd: New file.
660         testsuite/ld-or1k/gotha1.s: New file.
661         testsuite/ld-or1k/gotha2.dd: New file.
662         testsuite/ld-or1k/gotha2.s: New file
663         testsuite/ld-or1k/pltlib.s (x): Define size to avoid link
664         failure.
666 2021-05-06  Nick Alcock  <nick.alcock@oracle.com>
668         * testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt.
669         * testsuite/lib/ld-lib.exp: Likewise.
670         * testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types.
671         * testsuite/ld-ctf/nonrepresentable-2.c: Likewise.
672         * testsuite/ld-ctf/nonrepresentable.d: Likewise.
673         * testsuite/ld-ctf/array.d: Larger type section.
674         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
675         * testsuite/ld-ctf/enums.d: Likewise.
676         * testsuite/ld-ctf/conflicting-enums.d: Don't compare types.
677         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order.
678         * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
679         * testsuite/ld-ctf/slice.d: Adjust for improved slice emission.
681 2021-05-05  H.J. Lu  <hongjiu.lu@intel.com>
683         PR ld/27825
684         * testsuite/ld-elf/pr27825-1.d: New file.
685         * testsuite/ld-elf/pr27825-1a.s: Likewise.
686         * testsuite/ld-elf/pr27825-1b.s: Likewise.
687         * testsuite/ld-elf/pr27825-2.d: Likewise.
688         * testsuite/ld-elf/pr27825-2a.s: Likewise.
689         * testsuite/ld-elf/pr27825-2b.s: Likewise.
691 2021-05-05  Alan Modra  <amodra@gmail.com>
693         * testsuite/ld-powerpc/empty.s: New file.
694         * testsuite/ld-powerpc/undefweak.d,
695         * testsuite/ld-powerpc/undefweak.s: New testcase.
696         * testsuite/ld-powerpc/powerpc.exp: Run it.
698 2021-05-03  Alan Modra  <amodra@gmail.com>
700         * testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
701         named section symbols.
703 2021-04-28  Nick Clifton  <nickc@redhat.com>
705         * testsuite/ld-elf/anno-sym.s: New test source file.
706         * testsuite/ld-elf/anno-sym.d: New test driver.
707         * testsuite/ld-elf/anno-sym.l: New test error output.
709 2021-04-26  Jan Beulich  <jbeulich@suse.com>
711         * testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d,
712         testsuite/ld-x86-64/pcrel16-2.d: New.
713         * testsuite/ld-i386/i386.exp: Run new test.
714         * testsuite/ld-x86-64/x86-64.exp: Likewise.
716 2021-04-23  H.J. Lu  <hongjiu.lu@intel.com>
718         PR ld/27771
719         * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
720         to tmpdir/ldscripts only if it doesn't exist.
722 2021-04-22  Jan Beulich  <jbeulich@suse.com>
724         PR ld/26659
725         * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
727 2021-04-21  Nick Clifton  <nickc@redhat.com>
729         * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
730         to allow for named section symbols.
731         * testsuite/ld-aarch64/variant_pcs-r.d: Likewise.
732         * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
733         * testsuite/ld-alpha/tlsbin.rd: Likewise.
734         * testsuite/ld-alpha/tlsbinr.rd: Likewise.
735         * testsuite/ld-alpha/tlspic.rd: Likewise.
736         * testsuite/ld-arm/rodata-merge-map.sym: Likewise.
737         * testsuite/ld-arm/script-type.sym: Likewise.
738         * testsuite/ld-cris/libdso-2.d: Likewise.
739         * testsuite/ld-cris/pr16044.d: Likewise.
740         * testsuite/ld-elf/sec64k.exp: Likewise.
741         * testsuite/ld-ia64/tlsbin.rd: Likewise.
742         * testsuite/ld-ia64/tlspic.rd: Likewise.
743         * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
744         * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
745         * testsuite/ld-mmix/bspec1.d: Likewise.
746         * testsuite/ld-mmix/bspec2.d: Likewise.
747         * testsuite/ld-mmix/local1.d: Likewise.
748         * testsuite/ld-mmix/local3.d: Likewise.
749         * testsuite/ld-mmix/local5.d: Likewise.
750         * testsuite/ld-mmix/local7.d: Likewise.
751         * testsuite/ld-mmix/undef-3.d: Likewise.
752         * testsuite/ld-powerpc/tlsso.r: Likewise.
753         * testsuite/ld-powerpc/tlsso32.r: Likewise.
754         * testsuite/ld-powerpc/tlstocso.r: Likewise.
755         * testsuite/ld-s390/tlsbin.rd: Likewise.
756         * testsuite/ld-s390/tlsbin_64.rd: Likewise.
757         * testsuite/ld-s390/tlspic.rd: Likewise.
758         * testsuite/ld-s390/tlspic_64.rd: Likewise.
759         * testsuite/ld-sparc/gotop32.rd: Likewise.
760         * testsuite/ld-sparc/gotop64.rd: Likewise.
761         * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
762         * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
763         * testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
764         * testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
765         * testsuite/ld-sparc/tlssunpic32.rd: Likewise.
766         * testsuite/ld-sparc/tlssunpic64.rd: Likewise.
767         * testsuite/ld-tic6x/common.d: Likewise.
768         * testsuite/ld-tic6x/shlib-1.rd: Likewise.
769         * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
770         * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
771         * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
772         * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
773         * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
774         * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
775         * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
776         * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
777         * testsuite/ld-tic6x/static-app-1.rd: Likewise.
778         * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
779         * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
780         * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
782 2021-04-20  Clément Chigot  <clement.chigot@atos.net>
784         PR binutils/21700
785         * testsuite/ld-powerpc/aix52.exp: Add new test.
786         * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
787         * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
788         * testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
789         * testsuite/ld-powerpc/aix-neg-reloc.s: New test.
791 2021-04-13  Nick Clifton  <nickc@redhat.com>
793         * ld.texi (Options): Add note about the effect of --as-needed on
794         the --rpath and --rpath-link options on Linux based systems.
796 2021-04-13  Alan Modra  <amodra@gmail.com>
798         PR 27722
799         * libdep_plugin.c (str2vec): Don't pass a potentially signed char
800         to isspace.
802 2021-04-12  Alan Modra  <amodra@gmail.com>
804         * configure.ac (--enable-checking): Add support.
805         * config.in: Regenerate.
806         * configure: Regenerate.
808 2021-04-12  Alan Modra  <amodra@gmail.com>
810         * emultempl/mipself.em (mips_create_output_section_statements):
811         Pass base type of hash table to is_elf_hash_table.
812         * ldelf.c (ldelf_after_open): Likewise.
814 2021-04-12  Alan Modra  <amodra@gmail.com>
816         PR 27719
817         * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
818         the symbol hash table is the correct type before accessing
819         elf_link_hash_entry symbols.
820         * plugin.c (is_visible_from_outside): Likewise.
821         * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
822         * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
824 2021-04-09  Alan Modra  <amodra@gmail.com>
826         * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
827         * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
828         * testsuite/ld-powerpc/notoc2.d: Likewise.
829         * testsuite/ld-powerpc/notoc3.d: Likewise.
830         * testsuite/ld-powerpc/pcrelopt.d: Likewise.
831         * testsuite/ld-powerpc/startstop.d: Likewise.
832         * testsuite/ld-powerpc/tlsget.d: Likewise.
833         * testsuite/ld-powerpc/tlsget2.d: Likewise.
834         * testsuite/ld-powerpc/tlsld.d: Likewise.
835         * testsuite/ld-powerpc/weak1.d: Likewise.
836         * testsuite/ld-powerpc/weak1so.d: Likewise.
838 2021-04-06  Jan Beulich  <jbeulich@suse.com>
840         * pe-dll.c (generate_reloc): Bail immediately when .reloc is
841         being discarded. Warn when relocated entry is above .reloc.
843 2021-04-05  Alan Modra  <amodra@gmail.com>
845         * configure.ac: Move initfini-array arg handling earlier.  Don't
846         check for string.h, strings.h, stdlib.h, or locale.h.  Do check
847         for inttypes.h, stdint.h, sys/types.h.  Don't check for
848         setlocale, free, getev or strstr.
849         (AC_ISC_POSIX): Don't invoke.
850         * sysdep.h: Include string.h and stdlib.h unconditionally.  Test
851         HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H.  Remove strstr, free and
852         getenv fallback declarations.
853         * ld.h: Don't test HAVE_LOCALE_H.
854         * ldmain.c: Don't test HAVE_SETLOCALE.
855         * config.in: Regenerate.
856         * configure: Regenerate.
858 2021-04-01  Tamar Christina  <tamar.christina@arm.com>
860         PR ld/26659
861         * testsuite/ld-pe/pe.exp: Add test.
862         * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
863         * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
865 2021-04-01  Martin Liska  <mliska@suse.cz>
867         * ldbuildid.c (strneq): Remove strneq and use startswith.
868         (validate_build_id_style): Likewise.
869         (compute_build_id_size): Likewise.
871 2021-03-31  Alan Modra  <amodra@gmail.com>
873         * sysdep.h (POISON_BFD_BOOLEAN): Define.
874         * configure.ac (elf_list_options, elf_shlib_list_options=false),
875         (elf_plt_unwind_list_options=false): Replace FALSE with false,
876         and TRUE with true.
877         * emulparams/call_nop.sh, * emulparams/cet.sh,
878         * emulparams/dynamic_undefined_weak.sh,
879         * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
880         * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
881         * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
882         * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
883         * emulparams/reloc_overflow.sh, * emulparams/static.sh,
884         * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
885         * emultempl/aix.em, * emultempl/alphaelf.em,
886         * emultempl/armcoff.em, * emultempl/armelf.em,
887         * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
888         * emultempl/cr16elf.em, * emultempl/crxelf.em,
889         * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
890         * emultempl/hppaelf.em, * emultempl/linux.em,
891         * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
892         * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
893         * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
894         * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
895         * emultempl/pep.em, * emultempl/ppc32elf.em,
896         * emultempl/ppc64elf.em, * emultempl/rxelf.em,
897         * emultempl/rxlinux.em, * emultempl/scoreelf.em,
898         * emultempl/solaris2.em, * emultempl/spuelf.em,
899         * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
900         * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
901         * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
902         * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
903         * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
904         * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
905         * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
906         * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
907         * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
908         bfd_boolean with bool, FALSE with false, and TRUE with true.
909         * configure: Regenerate.
911 2021-03-31  Alan Modra  <amodra@gmail.com>
913         * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
914         * emultempl/nds32elf.em: Likewise.
915         * testsuite/ld-elf/mbind2b.c: Likewise.
916         * testsuite/ld-elf/pr18718.c: Likewise.
917         * testsuite/ld-elf/pr18720a.c: Likewise.
918         * testsuite/ld-elf/pr25749-1.c: Likewise.
919         * testsuite/ld-elf/pr25749-1a.c: Likewise.
920         * testsuite/ld-elf/pr25749-1b.c: Likewise.
921         * testsuite/ld-elf/pr25749-1c.c: Likewise.
922         * testsuite/ld-elf/pr25749-1d.c: Likewise.
923         * testsuite/ld-elf/pr25749-2.c: Likewise.
924         * testsuite/ld-elf/pr25754-1a.c: Likewise.
925         * testsuite/ld-elf/pr25754-2a.c: Likewise.
926         * testsuite/ld-elf/pr25754-3a.c: Likewise.
927         * testsuite/ld-elf/pr25754-4a.c: Likewise.
928         * testsuite/ld-elf/pr25754-5a.c: Likewise.
929         * testsuite/ld-elf/pr25754-6a.c: Likewise.
931 2021-03-29  Alan Modra  <amodra@gmail.com>
933         * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
934         boolean expression.
935         * lexsup.c (parse_args): Likewise.
936         * pe-dll.c (pe_dll_id_target): Likewise.
938 2021-03-25  Nick Alcock  <nick.alcock@oracle.com>
940         * testsuite/ld-ctf/array.d: Only check that the data object
941         section is nonempty: do not check its exact size.
942         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
943         * testsuite/ld-ctf/slice.d: Likewise.
944         * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
945         func info section too.
946         * testsuite/ld-ctf/function.d: Likewise, for the func info section.
948 2021-03-22  Martin Liska  <mliska@suse.cz>
950         * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
951         * emultempl/beos.em: Likewise.
952         * emultempl/elf.em: Likewise.
953         * emultempl/pe.em: Likewise.
954         * emultempl/pep.em: Likewise.
955         * emultempl/xtensaelf.em: Likewise.
956         * ldctor.c (ctor_prio): Likewise.
957         * ldelf.c (ldelf_try_needed): Likewise.
958         (ldelf_parse_ld_so_conf): Likewise.
959         (ldelf_after_open): Likewise.
960         (output_rel_find): Likewise.
961         (ldelf_place_orphan): Likewise.
962         * ldfile.c (ldfile_add_library_path): Likewise.
963         * ldlang.c (lang_add_input_file): Likewise.
964         * ldmain.c (get_sysroot): Likewise.
965         (get_emulation): Likewise.
966         (add_archive_element): Likewise.
967         * ldwrite.c (unsplittable_name): Likewise.
968         (clone_section): Likewise.
969         * lexsup.c (parse_args): Likewise.
970         * pe-dll.c (is_import): Likewise.
971         (pe_implied_import_dll): Likewise.
973 2021-03-19  H.J. Lu  <hongjiu.lu@intel.com>
975         PR ld/27590
976         * testsuite/ld-x86-64/pr27590.rd: New file.
977         * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
978         * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
979         * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
981 2021-03-20  Alan Modra  <amodra@gmail.com>
983         PR 27590
984         * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
985         for all sections except .stabstr.
987 2021-03-19  Alan Modra  <amodra@gmail.com>
989         PR 27590
990         * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
991         R_MIPS_NONE.
992         * testsuite/ld-elf/pr27590b.d: Likewise.
994 2021-03-18  H.J. Lu  <hongjiu.lu@intel.com>
996         PR ld/27590
997         * testsuite/ld-elf/pr27590.s: New file.
998         * testsuite/ld-elf/pr27590a.d: Likewise.
999         * testsuite/ld-elf/pr27590b.d: Likewise.
1000         * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
1001         --reduce-memory-overheads.
1003 2021-03-18  H.J. Lu  <hongjiu.lu@intel.com>
1005         PR ld/27587
1006         * testsuite/ld-x86-64/pr27587.err: New file.
1007         * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
1008         * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
1009         * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
1011 2021-03-18  Nick Alcock  <nick.alcock@oracle.com>
1013         * testsuite/ld-ctf/slice.c: Check slices of enums too.
1014         * testsuite/ld-ctf/slice.d: Results adjusted.
1016 2021-03-16  Nick Clifton  <nickc@redhat.com>
1018         * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
1019         lname string.
1021 2021-03-15  Jan Beulich  <jbeulich@suse.com>
1023         * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
1025 2021-03-12  Alan Modra  <amodra@gmail.com>
1027         * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
1028         (ALL_64_EMULATION_SOURCES): ..here.
1029         * Makefile.in: Regenerate.
1031 2021-03-12  Clément Chigot  <clement.chigot@atos.net>
1033         * emultempl/aix.em: Ensure .tdata section is removed
1034         if empty, even with -r flag.
1035         * scripttempl/aix.sc: Handle TLS sections.
1036         * testsuite/ld-powerpc/aix52.exp: Add new tests.
1037         * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
1038         * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
1039         * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
1040         * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
1041         * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
1042         * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
1043         * testsuite/ld-powerpc/aix-tls-section.ex: New test.
1044         * testsuite/ld-powerpc/aix-tls-section.s: New test.
1046 2021-03-12  Clément Chigot  <clement.chigot@atos.net>
1048         * scripttempl/aix.sc: Add .te to .data section.
1049         * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
1050         Add aix-largetoc-1 test.
1051         * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
1052         * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
1053         * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
1054         * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
1056 2021-03-12  Alan Modra  <amodra@gmail.com>
1058         * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
1059         arrange to define __main for some run_dump_test tests.
1060         * testsuite/ld-gc/pr13683.d: Accept more symbols.
1061         * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
1062         * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
1063         * testsuite/ld-srec/srec.exp: Likewise.
1064         * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
1066 2021-03-11  Nelson Chu  <nelson.chu@sifive.com>
1068         * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
1069         many times if riscv_restart_relax_sections returns TRUE.
1070         * testsuite/ld-riscv-elf/restart-relax.d: New testcase.  Before
1071         applying this patch, the call won't be relaxed to jal; But now we
1072         have more chances to do relaxations.
1073         * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
1074         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
1076 2021-03-10  Jan Beulich  <jbeulich@suse.com>
1078         * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
1079         than 32 set bits.
1080         * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
1081         comment.
1082         * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
1084 2021-03-09  Jan Beulich  <jbeulich@suse.com>
1086         * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
1087         alignment to 4k.
1088         * testsuite/ld-pe/reloc.d: xfail for mcore.
1090 2021-03-09  Jan Beulich  <jbeulich@suse.com>
1092         * testsuite/ld-scripts/alignof.exp,
1093         testsuite/ld-scripts/data.exp,
1094         testsuite/ld-scripts/default-script.exp,
1095         testsuite/ld-scripts/log2.exp,
1096         testsuite/ld-scripts/print-memory-usage.exp,
1097         testsuite/ld-scripts/sizeof.exp,
1098         testsuite/ld-undefined/weak-undef.exp: Set image base to zero
1099         for PE/COFF.
1100         * testsuite/ld-scripts/default-script1.d,
1101         testsuite/ld-scripts/default-script2.d,
1102         testsuite/ld-scripts/default-script3.d,
1103         testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
1105 2021-03-05  H.J. Lu  <hongjiu.lu@intel.com>
1107         PR ld/27425
1108         PR ld/27432
1109         * ldelf.c (ldelf_set_output_arch): New function.
1110         * ldelf.h (ldelf_set_output_arch): New prototype.
1111         * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
1112         ldelf_set_output_arch.
1113         * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
1114         * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1115         * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1116         * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1117         * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1118         * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1119         * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
1120         * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
1121         * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
1123 2021-03-04  Jan Beulich  <jbeulich@suse.com>
1125         * testsuite/ld-scripts/map-address.exp: Set image base to zero
1126         for PE/COFF.
1127         * testsuite/ld-scripts/map-address.t: Place .text.
1129 2021-03-04  Jan Beulich  <jbeulich@suse.com>
1131         * ldexp.c (ldexp_is_final_sym_absolute): New.
1132         * ldexp.h (ldexp_is_final_sym_absolute): Declare.
1133         * pe-dll.c (generate_reloc): Skip absolute symbols.
1134         * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
1135         * testsuite/ld-pe/pe.exp: Run new test.
1137 2021-03-03  Alan Modra  <amodra@gmail.com>
1139         PR 27500
1140         * ldlang.c (insert_undefined): Don't mark symbols here.
1141         (lang_mark_undefineds): Do so here instead, new function.
1142         (lang_process): Call lang_mark_undefineds.
1143         * testsuite/ld-gc/start3.d,
1144         * testsuite/ld-gc/start3.s: New test.
1145         * testsuite/ld-gc/start4.d,
1146         * testsuite/ld-gc/start4.s: New test.
1147         * testsuite/ld-gc/gc.exp: Run them.
1149 2021-03-03  Alan Modra  <amodra@gmail.com>
1151         * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
1152         Move tests with ELF section directives to is_elf_format block.
1153         * testsuite/ld-gc/abi-note.d: Run on more targets.
1154         * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
1155         * testsuite/ld-gc/start.d: Likewise.
1156         * testsuite/ld-gc/start2.d: Likewise.
1157         * testsuite/ld-gc/stop.d: Likewise.
1158         * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
1159         * testsuite/ld-gc/start.s: Likewise.
1160         * testsuite/ld-gc/start2.s: Likewise.
1162 2021-03-02  Nick Alcock  <nick.alcock@oracle.com>
1164         * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
1166 2021-03-02  Alan Modra  <amodra@gmail.com>
1168         * testsuite/ld-powerpc/startstop.d,
1169         * testsuite/ld-powerpc/startstop.r,
1170         * testsuite/ld-powerpc/startstop.s: New test.
1171         * testsuite/ld-powerpc/powerpc.exp: Run it.
1173 2021-03-02  Alan Modra  <amodra@gmail.com>
1175         * testsuite/ld-powerpc/weak1.d,
1176         * testsuite/ld-powerpc/weak1.r,
1177         * testsuite/ld-powerpc/weak1.s,
1178         * testsuite/ld-powerpc/weak1so.d,
1179         * testsuite/ld-powerpc/weak1so.r: New tests.
1180         * testsuite/ld-powerpc/powerpc.exp: Run them.
1182 2021-03-01  Hannes Domani  <ssbssa@sourceware.org>
1183             Nick Clifton  <nickc@redhat.com>
1185         PR 27268
1186         * scripttempl/pe.sc: Add DWARF-5 section names.
1187         * scripttempl/pep.sc: Likewise.
1189 2021-03-01  Alan Modra  <amodra@gmail.com>
1190             Fangrui Song <maskray@google.com>
1192         * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
1193         * lexsup.c (elf_static_list_options): Display help for them.  Move
1194         help for -z stack-size to here from elf_shlib_list_options. Add
1195         help for -z start-stop-visibility and -z undefs.
1196         * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
1197         * NEWS: Mention -z start-stop-gc.
1198         * testsuite/ld-gc/start2.s,
1199         * testsuite/ld-gc/start2.d: New test.
1200         * testsuite/ld-gc/gc.exp: Run it.
1202 2021-03-01  Alan Modra  <amodra@gmail.com>
1204         * ldlang.c (undef_start_stop): For ELF make undefined start/stop
1205         symbols undefweak if that was how they were referenced.  Undo
1206         dynamic state too.
1208 2021-03-01  Alan Modra  <amodra@gmail.com>
1210         * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
1211         * testsuite/ld-elf/pr27128a.d: Likewise.
1212         * testsuite/ld-elf/pr27128b.d: Likewise.
1213         * testsuite/ld-elf/pr27128c.d: Likewise.
1214         * testsuite/ld-elf/pr27128d.d: Likewise.
1215         * testsuite/ld-elf/pr27128e.d: Likewise.
1217 2021-02-26  Alan Modra  <amodra@gmail.com>
1219         PR 27441
1220         * testsuite/ld-plugin/pr27441a.c,
1221         * testsuite/ld-plugin/pr27441b.c,
1222         * testsuite/ld-plugin/pr27441c.c,
1223         * testsuite/ld-plugin/pr27441c.d: New test.
1224         * testsuite/ld-plugin/lto.exp: Run it.
1226 2021-02-25  Jan Beulich  <jbeulich@suse.com>
1228         * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
1230 2021-02-21  Alan Modra  <amodra@gmail.com>
1232         * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
1233         defined in an object file.
1234         * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
1235         * testsuite/ld-scripts/defined5.d: Expect a warning.
1237 2021-02-19  Alan Modra  <amodra@gmail.com>
1239         * testsuite/lib/ld-lib.exp: Whitespace.
1240         (load_common_lib): Expand single use and delete this proc.
1241         (run_host_cmd): Use -fno-lto when getting gcc's ld version.
1242         Use -B for clang too.
1244 2021-02-18  Andrew Burgess  <andrew.burgess@embecosm.com>
1246         * testplugin.c (record_read_length): Remove debug fprintf.
1248 2021-02-14  Alan Modra  <amodra@gmail.com>
1250         * testsuite/ld-cdtest/cdtest.exp,
1251         * testsuite/ld-checks/checks.exp,
1252         * testsuite/ld-elf/binutils.exp,
1253         * testsuite/ld-elf/compress.exp,
1254         * testsuite/ld-elf/dwarf.exp,
1255         * testsuite/ld-elf/exclude.exp,
1256         * testsuite/ld-elf/frame.exp,
1257         * testsuite/ld-elf/indirect.exp,
1258         * testsuite/ld-elf/linux-x86.exp,
1259         * testsuite/ld-elf/sec-to-seg.exp,
1260         * testsuite/ld-elf/tls_common.exp,
1261         * testsuite/ld-elfcomm/elfcomm.exp,
1262         * testsuite/ld-elfvers/vers.exp,
1263         * testsuite/ld-elfvsb/elfvsb.exp,
1264         * testsuite/ld-elfweak/elfweak.exp,
1265         * testsuite/ld-ifunc/binutils.exp,
1266         * testsuite/ld-mips-elf/mips-elf-flags.exp,
1267         * testsuite/ld-misc/defsym.exp,
1268         * testsuite/ld-mn10300/mn10300.exp,
1269         * testsuite/ld-plugin/lto.exp,
1270         * testsuite/ld-plugin/plugin.exp,
1271         * testsuite/ld-scripts/align.exp,
1272         * testsuite/ld-scripts/assert.exp,
1273         * testsuite/ld-scripts/crossref.exp,
1274         * testsuite/ld-scripts/defined.exp,
1275         * testsuite/ld-scripts/extern.exp,
1276         * testsuite/ld-scripts/log2.exp,
1277         * testsuite/ld-scripts/map-address.exp,
1278         * testsuite/ld-scripts/phdrs.exp,
1279         * testsuite/ld-scripts/phdrs2.exp,
1280         * testsuite/ld-scripts/script.exp,
1281         * testsuite/ld-scripts/section-flags.exp,
1282         * testsuite/ld-scripts/sizeof.exp,
1283         * testsuite/ld-scripts/weak.exp,
1284         * testsuite/ld-selective/selective.exp,
1285         * testsuite/ld-sh/sh.exp,
1286         * testsuite/ld-shared/shared.exp,
1287         * testsuite/ld-srec/srec.exp,
1288         * testsuite/ld-tic6x/tic6x.exp,
1289         * testsuite/ld-undefined/undefined.exp,
1290         * testsuite/ld-undefined/weak-undef.exp,
1291         * testsuite/lib/ld-lib.exp: Don't use unresolved except after
1292         perror.  Instead report "unsupported" or "fail".
1294 2021-02-12  Nick Clifton  <nickc@redhat.com>
1296         * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
1297         following debug links.
1299 2021-02-11  Alan Modra  <amodra@gmail.com>
1301         * NEWS: Mention arm-symbianelf removal.
1303 2021-02-09  Alan Modra  <amodra@gmail.com>
1305         * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
1306         Don't include symbian dep file.
1307         * configure.tgt: Remove arm*-*-symbianelf* entry.
1308         * emulparams/armsymbian.sh: Delete.
1309         * ld.texi: Don't mention symbian.
1310         * scripttempl/armbpabi.sc: Delete.
1311         * testsuite/ld-arm/symbian-seg1.d: Delete.
1312         * testsuite/ld-arm/symbian-seg1.s: Delete.
1313         * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
1314         * Makefile.in: Regenerate.
1315         * po/BLD-POTFILES.in: Regenerate.
1317 2021-02-07  H.J. Lu  <hongjiu.lu@intel.com>
1319         PR ld/27358
1320         * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
1321         tests.
1322         * testsuite/ld-x86-64/x86-64.exp: Likewise.
1324 2021-01-26  Nick Alcock  <nick.alcock@oracle.com>
1326         * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
1327         when appropriate.
1329 2021-02-04  H.J. Lu  <hongjiu.lu@intel.com>
1331         PR ld/19609
1332         * testsuite/ld-x86-64/pr19609-2a.d: Updated.
1333         * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
1334         * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
1335         * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
1336         * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
1337         * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
1338         * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
1340 2021-02-04  H.J. Lu  <hongjiu.lu@intel.com>
1342         PR ld/15146
1343         * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
1344         * testsuite/ld-plugin/pr15146.d: Restored.
1345         * testsuite/ld-plugin/pr15146a.c: Likewise.
1346         * testsuite/ld-plugin/pr15146b.c: Likewise.
1347         * testsuite/ld-plugin/pr15146c.c: Likewise.
1348         * testsuite/ld-plugin/pr15146d.c: Likewise.
1350 2021-02-04  Alan Modra  <amodra@gmail.com>
1352         * testsuite/ld-plugin/pr27311d.c: New test.
1353         * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
1354         and link new test as pr27311-2.
1356 2021-02-03  Alan Modra  <amodra@gmail.com>
1358         * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
1359         Link with --as-needed.
1361 2021-02-02  Alan Modra  <amodra@gmail.com>
1363         * testsuite/ld-plugin/pr27311.d,
1364         * testsuite/ld-plugin/pr27311.ver,
1365         * testsuite/ld-plugin/pr27311a.c,
1366         * testsuite/ld-plugin/pr27311b.c,
1367         * testsuite/ld-plugin/pr27311c.c: New testcase.
1368         * testsuite/ld-plugin/lto.exp: Run it.  Correct PR14918 and
1369         PR12982 entries.
1371 2021-02-01  Emery Hemingway  <ehmry@posteo.net>
1373         * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1375 2021-02-01  Alan Modra  <amodra@gmail.com>
1377         * ldgram.y (defsym_expr): Use assignment rule.
1378         * ldlex.h (ldlex_defsym): Delete.
1379         * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
1381 2021-02-01  Alan Modra  <amodra@gmail.com>
1383         * ldgram.y (section): Call ldlex_backup.  Remove empty action.
1384         * ldlex.h (ldlex_backup): Declare.
1385         * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
1386         chars, use SYMBOLNAMECHAR.
1387         (ldlex_backup): New function.
1389 2021-02-01  Alan Modra  <amodra@gmail.com>
1391         * ldgram.y: Whitespace fixes.
1393 2021-02-01  Alan Modra  <amodra@gmail.com>
1395         * testsuite/ld-elf/pr27259.d: Correct sh_link match.
1397 2021-01-29  Alan Modra  <amodra@gmail.com>
1399         * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
1401 2021-01-28  H.J. Lu  <hongjiu.lu@intel.com>
1403         PR ld/27259
1404         * testsuite/ld-elf/pr27259.d: New file.
1405         * testsuite/ld-elf/pr27259.s: Likewise.
1407 2021-01-28  Alan Modra  <amodra@gmail.com>
1409         PR 27259
1410         * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
1411         prevent endless looping of linked-to sections.
1413 2021-01-26  H.J. Lu  <hongjiu.lu@intel.com>
1415         * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
1417 2021-01-26  Alan Modra  <amodra@gmail.com>
1419         PR 27226
1420         * emulparams/alphavms.sh: Don't set COMPILE_IN.
1421         * emulparams/elf64_ia64_vms.sh: Likewise.
1422         * emulparams/elf64mmix.sh: Likewise.
1423         * emulparams/elf_iamcu.sh: Likewise.
1424         * emulparams/elf_k1om.sh: Likewise.
1425         * emulparams/elf_l1om.sh: Likewise.
1426         * emulparams/mmo.sh: Likewise.
1427         * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
1428         * scripttempl/pdp11.sc: Use it.
1429         * emultempl/pdp11.em: Don't edit .xn script for separate_code,
1430         instead use .xe script.  Support scripts from file system.
1431         * emultempl/beos.em: Support scripts from file system.
1432         * emultempl/pe.em: Likewise.
1433         * emultempl/pep.em: Likewise.
1434         * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
1436 2021-01-25  Fangrui Song  <maskray@google.com>
1438         PR ld/27230
1439         * scripttempl/DWARF.sc: Add .debug_* sections.
1441 2021-01-25  Nick Clifton  <nickc@redhat.com>
1443         * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
1444         .debug_line_str and .debug_str_offsets.  Move .debug_macro and
1445         .debug_addr into DWARF-5 section.
1447 2021-01-21  Alan Modra  <amodra@gmail.com>
1449         * testsuite/ld-elf/pr26936.d: No longer xfail mips.
1451 2021-01-20  Alan Modra  <amodra@gmail.com>
1453         * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
1454         * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
1455         * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
1456         * testsuite/ld-powerpc/tlsget.wf: Likewise.
1457         * testsuite/ld-powerpc/tlsget2.d: Likewise.
1458         * testsuite/ld-powerpc/tlsget2.wf: Likewise.
1459         * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
1460         * testsuite/ld-powerpc/tlsexe32.r: Likewise.
1461         * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
1462         * testsuite/ld-powerpc/tlsexeno.r: Likewise.
1463         * testsuite/ld-powerpc/tlsexenors.r: Likewise.
1464         * testsuite/ld-powerpc/tlsexers.r: Likewise.
1465         * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
1466         * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
1467         * testsuite/ld-powerpc/tlsso.r: Likewise.
1468         * testsuite/ld-powerpc/tlsso32.r: Likewise.
1469         * testsuite/ld-powerpc/tlstocso.r: Likewise.
1471 2021-01-19  Nick Alcock  <nick.alcock@oracle.com>
1473         * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
1474         symbols by the optimizer.
1475         * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
1477 2021-01-19  Nelson Chu  <nelson.chu@sifive.com>
1479         * testsuite/ld-elf/elf.exp (riscv_little_endian): Added.  Return true
1480         if target is riscv little endian.  Otherwise, return false.
1481         * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
1482         targets by [riscv_little_endian].
1484 2021-01-18  Alan Modra  <amodra@gmail.com>
1486         PR 26378
1487         * ldlang.c (map_input_to_output_sections): Start with a read-only
1488         section for data statements.
1489         * testsuite/ld-elf/size-2.d: Adjust to suit.
1491 2021-01-17  H.J. Lu  <hongjiu.lu@intel.com>
1493         PR ld/27193
1494         * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
1495         * testsuite/ld-i386/pr27193.dd: New file.
1496         * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
1497         * testsuite/ld-i386/pr27193b.s: Likewise.
1499 2021-01-16  H.J. Lu  <hongjiu.lu@intel.com>
1501         PR binutils/23460
1502         * testsuite/ld-plugin/lto.exp: Increase the max number of open
1503         files to 20 for PR binutils/23460 test.
1505 2021-01-16  H.J. Lu  <hongjiu.lu@intel.com>
1507         PR ld/23169
1508         * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
1509         pr23169a.rd for pr23169c and pr23169f.  Remove pr23169e tests.
1510         * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
1511         address.
1513 2021-01-15  H.J. Lu  <hongjiu.lu@intel.com>
1515         * NEWS: Mention -z report-relative-reloc.
1516         * ld.texi: Document -z report-relative-reloc.
1517         * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
1518         * emulparams/elf_i386.sh: Likewse.
1519         * emulparams/elf_x86_64.sh: Likewse.
1520         * emulparams/x86-report-relative.sh: New file.
1521         * testsuite/ld-i386/report-reloc-1.d: Likewse.
1522         * testsuite/ld-i386/report-reloc-1.l: Likewse.
1523         * testsuite/ld-i386/report-reloc-1.s: Likewse.
1524         * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
1525         * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
1526         * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
1527         * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
1528         * testsuite/ld-i386/i386.exp: Run report-reloc-1.
1529         * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
1530         report-reloc-1-x32.
1532 2021-01-16  Alan Modra  <amodra@gmail.com>
1534         PR 26002
1535         * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
1536         unversioned symbols.
1537         * testsuite/ld-elfvers/vers16.dsym: Likewise.
1539 2021-01-15  Nelson Chu  <nelson.chu@sifive.com>
1541         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
1542         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
1543         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
1544         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
1545         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
1546         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
1548 2021-01-14  Nick Clifton  <nickc@redhat.com>
1550         * po/fr.po: Updated French translation.
1552 2021-01-14  Mike Frysinger  <vapier@gentoo.org>
1554         * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
1556 2021-01-14  Alan Modra  <amodra@gmail.com>
1558         PR 27160
1559         * ldelfgen.c (compare_link_order): Protect access of ELF section
1560         data.
1561         (add_link_order_input_section): Remove redundant NULL check.
1562         Use bfd_get_flavour.
1563         (ldelf_map_segments): Use bfd_get_flavour.
1565 2021-01-13  H.J. Lu  <hongjiu.lu@intel.com>
1567         * ldelfgen.c (add_link_order_input_section): Check for ELF input
1568         before accessing ELF section data.
1570 2021-01-13  Alan Modra  <amodra@gmail.com>
1572         * Makefile.in: Regenerate.
1574 2021-01-13  Alan Modra  <amodra@gmail.com>
1576         PR 27160
1577         * ldlang.h (lang_output_section_statement_type): Add data field.
1578         (lang_input_section_type, lang_section_bst_type): Add pattern field.
1579         (statement_list): Declare.
1580         (lang_add_section): Adjust prototype.
1581         * emultempl/aarch64elf.em: Adjust lang_add_section calls.
1582         * emultempl/armelf.em: Likewise.
1583         * emultempl/beos.em: Likewise.
1584         * emultempl/cskyelf.em: Likewise.
1585         * emultempl/hppaelf.em: Likewise.
1586         * emultempl/m68hc1xelf.em: Likewise.
1587         * emultempl/metagelf.em: Likewise.
1588         * emultempl/mipself.em: Likewise.
1589         * emultempl/mmo.em: Likewise.
1590         * emultempl/msp430.em: Likewise.
1591         * emultempl/nios2elf.em: Likewise.
1592         * emultempl/pe.em: Likewise.
1593         * emultempl/pep.em: Likewise.
1594         * emultempl/ppc64elf.em: Likewise.
1595         * emultempl/spuelf.em: Likewise.
1596         * emultempl/vms.em: Likewise.
1597         * ldelf.c: Likewise.
1598         * ldelfgen.c: Include ldctor.h.
1599         (struct os_sections): New.
1600         (add_link_order_input_section, link_order_scan): New functions.
1601         (compare_link_order, fixup_link_order): New functions.
1602         (ldelf_map_segments): Call link_order_scan and fixup_link_order.
1603         * ldlang.c (statement_list): Make global.
1604         (output_section_callback_fast): Save pattern in tree node.
1605         (lang_add_section): Add pattern parameter, save in lang_input_section.
1606         (output_section_callback_tree_to_list): Adjust lang_add_section calls.
1607         (lang_insert_orphan, output_section_callback): Likewise.
1608         (ldlang_place_orphan): Likewise.
1609         (gc_section_callback): Don't set section->pattern.
1610         * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
1611         * testsuite/ld-elf/pr26256-3b.d: Likewise.
1612         * testsuite/ld-elf/pr26256-2b.d: Likewise.  notarget xgate.
1614 2021-01-13  Alan Modra  <amodra@gmail.com>
1616         * ldlang.h (callback_t): Remove flag_info function parameter.
1617         * ldlang.c (walk_wild_consider_section): Adjust to suit.
1618         (walk_wild_section_general): Likewise.
1619         (output_section_callback_fast, output_section_callback): Likewise.
1620         (check_section_callback, gc_section_callback): Likewise.
1621         (find_relro_section_callback): Likewise.
1623 2021-01-12  H.J. Lu  <hongjiu.lu@intel.com>
1625         PR binutils/26792
1626         * configure.ac: Use GNU_MAKE_JOBSERVER.
1627         * aclocal.m4: Regenerated.
1628         * configure: Likewise.
1630 2021-01-12  H.J. Lu  <hongjiu.lu@intel.com>
1632         PR ld/27171
1633         * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
1634         * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1635         * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1636         * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
1638 2021-01-11  H.J. Lu  <hongjiu.lu@intel.com>
1640         PR ld/27173
1641         * configure: Regenerated.
1643 2021-01-11  Matt Jenkins  <matt@majenko.co.uk>
1645         PR ld/27167
1646         * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
1647         and mips64r5 to list of known mips targets.
1649 2021-01-11  Nick Clifton  <nickc@redhat.com>matt@majenko.co.uk
1651         * po/pt_BR.po: Updated Brazilian Portuguese translation.
1652 `       * po/uk.po: Updated Ukranian translation.
1654 2021-01-09  H.J. Lu  <hongjiu.lu@intel.com>
1656         * configure: Regenerated.
1658 2021-01-09  H.J. Lu  <hongjiu.lu@intel.com>
1660         PR ld/27166
1661         * testsuite/ld-x86-64/lam-u48.rd: New file.
1662         * testsuite/ld-x86-64/lam-u57.rd: Likewise.
1663         * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
1665 2021-01-09  Nick Clifton  <nickc@redhat.com>
1667         * configure: Regenerate.
1668         * po/ld.pot: Regenerate.
1670 2021-01-09  Nick Clifton  <nickc@redhat.com>
1672         * 2.36 release branch crated.
1674 2021-01-08  H.J. Lu  <hongjiu.lu@intel.com>
1676         * ld-x86-64/property-x86-lam-u48-4.d: Updated.
1677         * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
1679 2021-01-09  Alan Modra  <amodra@gmail.com>
1681         * configure: Regenerate.
1682         * Makefile.in: Regenerate.
1684 2021-01-07  Samuel Thibault  <samuel.thibault@gnu.org>
1686         * configure: Regenerate.
1688 2021-01-07  H.J. Lu  <hongjiu.lu@intel.com>
1690         PR 27109
1691         * testsuite/ld-elf/export-class.sd: Adjust the expected output.
1692         * testsuite/ld-elf/loadaddr3b.d: Likewise.
1693         * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1694         * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1695         * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1696         * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1697         * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1698         * testsuite/ld-i386/pr19636-1d.d: Likewise.
1699         * testsuite/ld-i386/pr19636-1l.d: Likewise.
1700         * testsuite/ld-i386/pr19636-2c.d: Likewise.
1701         * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1702         * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1703         * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1704         * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1705         * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1706         * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1707         * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1708         * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1709         * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1710         * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1711         * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1712         * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1713         * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1714         * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1715         * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1716         * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1717         * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1718         * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1719         * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1720         * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1721         * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1722         * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1723         * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1724         * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1725         * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1726         * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1727         * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
1728         * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
1729         * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
1730         * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
1731         * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
1732         * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
1733         * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1734         * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
1735         * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1736         * testsuite/ld-x86-64/pr21038b.d: Likewise.
1737         * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1738         * testsuite/ld-x86-64/pr21038c.d: Likewise.
1739         * testsuite/ld-x86-64/pr23854.d: Likewise.
1740         * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1741         * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1742         * testsuite/ld-i386/plt-pic.pd: Likewise.
1743         * testsuite/ld-i386/plt-pic2.dd: Likewise.
1744         * testsuite/ld-i386/plt.pd: Likewise.
1745         * testsuite/ld-i386/plt2.dd: Likewise.
1746         * testsuite/ld-i386/tlsbin.rd: Likewise.
1747         * testsuite/ld-i386/tlsbin2.rd: Likewise.
1748         * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1749         * testsuite/ld-i386/tlsdesc.rd: Likewise.
1750         * testsuite/ld-i386/tlsgdesc.rd: Likewise.
1751         * testsuite/ld-i386/tlsnopic.rd: Likewise.
1752         * testsuite/ld-i386/tlspic.rd: Likewise.
1753         * testsuite/ld-i386/tlspic2.rd: Likewise.
1754         * testsuite/ld-x86-64/mpx3.dd: Likewise.
1755         * testsuite/ld-x86-64/mpx3n.dd: Likewise.
1756         * testsuite/ld-x86-64/mpx4.dd: Likewise.
1757         * testsuite/ld-x86-64/mpx4n.dd: Likewise.
1758         * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
1759         * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1760         * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1761         * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1762         * testsuite/ld-x86-64/plt.pd: Likewise.
1763         * testsuite/ld-x86-64/plt2.dd: Likewise.
1764         * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1765         * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1766         * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1767         * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1768         * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
1769         * testsuite/ld-x86-64/tlspic.rd: Likewise.
1770         * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1771         * testsuite/ld-elf/sec64k.exp: Check
1772         is_elf_unused_section_symbols.
1774 2021-01-07  Alan Modra  <amodra@gmail.com>
1776         * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
1777         * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
1778         * testsuite/ld-scripts/segment-start.d: Likewise.
1780 2021-01-07  Alan Modra  <amodra@gmail.com>
1782         * testsuite/ld-elf/comm-data5.d: xfail targets that complain
1783         about dynamic relocations in read-only sections.
1784         * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1785         * testsuite/ld-elf/ehdr_start.d: Likewise.
1786         * testsuite/ld-scripts/pr22267.d: Likewise.
1787         * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
1788         pr20995 text.
1789         * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
1791 2021-01-07  Marcus Comstedt  <marcus@mc.pp.se>
1793         * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
1794         * testsuite/ld-scripts/empty-address-2b.d: Likewise.
1796 2021-01-07  Alan Modra  <amodra@gmail.com>
1798         * po/BLD-POTFILES.in: Regenerate.
1800 2021-01-07  Alan Modra  <amodra@gmail.com>
1802         * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
1803         complain about relocs in read-only sections.  Tidy ASFLAGS append.
1805 2021-01-06  Alan Modra  <amodra@gmail.com>
1807         * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
1808         base for some tests.
1809         * testsuite/ld-sparc/gotop32.dd: Match solaris output.
1810         * testsuite/ld-sparc/gotop32.sd: Likewise.
1811         * testsuite/ld-sparc/gotop32.td: Likewise.
1812         * testsuite/ld-sparc/gotop64.dd: Likewise.
1813         * testsuite/ld-sparc/gotop64.sd: Likewise.
1814         * testsuite/ld-sparc/gotop64.td: Likewise.
1815         * testsuite/ld-sparc/tlsg32.sd: Likewise.
1816         * testsuite/ld-sparc/tlsg64.sd: Likewise.
1817         * testsuite/ld-sparc/tlspie32.dd: Likewise.
1818         * testsuite/ld-sparc/tlspie64.dd: Likewise.
1819         * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
1820         * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
1821         * testsuite/ld-sparc/tlssunbin32.td: Likewise.
1822         * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
1823         * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
1824         * testsuite/ld-sparc/tlssunbin64.td: Likewise.
1825         * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
1826         * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
1827         * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
1828         * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
1829         * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
1830         * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
1831         * testsuite/ld-sparc/tlssunpic32.td: Likewise.
1832         * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
1833         * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
1834         * testsuite/ld-sparc/tlssunpic64.td: Likewise.
1835         * testsuite/ld-sparc/wdispcall.dd: Likewise.
1837 2021-01-06  Alan Modra  <amodra@gmail.com>
1839         * testsuite/ld-scripts/rgn-at10.d: xfail v850.
1840         * testsuite/ld-scripts/rgn-at11.d: Likewise.
1842 2021-01-06  Marcus Comstedt  <marcus@mc.pp.se>
1844         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
1845         riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
1846         * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
1847         riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
1848         * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1849         * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1850         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1851         * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
1852         * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
1853         * testsuite/ld-riscv-elf/c-lui.d: Likewise.
1854         * testsuite/ld-riscv-elf/call-relax.d: Likewise.
1855         * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
1856         * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
1857         * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
1858         to littleriscv.
1859         * testsuite/ld-riscv-elf/weakref64.d: Likewise.
1861 2021-01-06  Marcus Comstedt  <marcus@mc.pp.se>
1863         * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
1864         riscv32be*-*-linux*, and riscv64be*-*-linux*.
1865         * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
1866         eelf32briscv_ilp32.c.
1867         * Makefile.in: Regenerate.
1868         * emulparams/elf32briscv.sh: Added.
1869         * emulparams/elf32briscv_ilp32.sh: Likewise.
1870         * emulparams/elf32briscv_ilp32f.sh: Likewise.
1871         * emulparams/elf64briscv.sh: Likewise.
1872         * emulparams/elf64briscv_lp64.sh: Likewise.
1873         * emulparams/elf64briscv_lp64f.sh: Likewise.
1875 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
1877         * testsuite/ld-ctf/enum-forward.c: New test.
1878         * testsuite/ld-ctf/enum-forward.c: New results.
1880 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
1882         * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1883         * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1884         * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1885         * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1886         * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1887         * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1888         * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1889         * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1890         * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1891         * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1892         * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1893         * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1894         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1895         * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1896         * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1897         * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1898         * testsuite/ld-ctf/cycle-1.d: Likewise.
1899         * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1900         * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1901         * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1902         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1903         * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1904         * testsuite/ld-ctf/diag-cuname.d: Likewise.
1905         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1906         * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1907         * testsuite/ld-ctf/forward.d: Likewise.
1908         * testsuite/ld-ctf/function.d: Likewise.
1909         * testsuite/ld-ctf/slice.d: Likewise.
1910         * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1911         * testsuite/ld-ctf/enums.c: New test.
1912         * testsuite/ld-ctf/enums.d: New test.
1914 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
1916         * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
1917         changes.
1918         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1919         * testsuite/ld-ctf/forward.c: New test...
1920         * testsuite/ld-ctf/forward.d: ... and results.
1922 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
1924         * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1925         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1926         * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1927         * testsuite/ld-ctf/diag-cuname.d: Likewise.
1928         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1929         * testsuite/ld-ctf/function.d: Likewise.
1930         * testsuite/ld-ctf/slice.d: Likewise.
1932 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
1934         * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1935         * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1936         * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1937         * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1938         * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1939         * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1940         * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1941         * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1942         * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1943         * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1944         * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1945         * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1946         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1947         * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1948         * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1949         * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1950         * testsuite/ld-ctf/cycle-1.d: Likewise.
1951         * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1952         * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1953         * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1954         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1955         * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1956         * testsuite/ld-ctf/diag-cuname.d: Likewise.
1957         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1958         * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1959         * testsuite/ld-ctf/function.d: Likewise.
1960         * testsuite/ld-ctf/slice.d: Likewise.
1961         * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1963 2021-01-05  Alan Modra  <amodra@gmail.com>
1965         * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
1967 2021-01-05  Alan Modra  <amodra@gmail.com>
1969         PR ld/26256
1970         * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
1971         * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
1973 2021-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1975         PR ld/26256
1976         * ldlang.c (gc_section_callback): Set pattern.
1977         * testsuite/ld-elf/pr26256-1.s: New file.
1978         * testsuite/ld-elf/pr26256-1.t: Likewise.
1979         * testsuite/ld-elf/pr26256-1a.d: Likewise.
1980         * testsuite/ld-elf/pr26256-1b.d: Likewise.
1981         * testsuite/ld-elf/pr26256-2.s: Likewise.
1982         * testsuite/ld-elf/pr26256-2.t: Likewise.
1983         * testsuite/ld-elf/pr26256-2a.d: Likewise.
1984         * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
1985         * testsuite/ld-elf/pr26256-2b.d: Likewise.
1986         * testsuite/ld-elf/pr26256-3.s: Likewise.
1987         * testsuite/ld-elf/pr26256-3a.d: Likewise.
1988         * testsuite/ld-elf/pr26256-3a.t: Likewise.
1989         * testsuite/ld-elf/pr26256-3b.d: Likewise.
1990         * testsuite/ld-elf/pr26256-3b.t: Likewise.
1992 2021-01-04  Alan Modra  <amodra@gmail.com>
1994         PR 26822
1995         * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
1996         * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
1997         * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
1998         * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
1999         * testsuite/ld-i386/tlsbin.rd: Likewise.
2000         * testsuite/ld-i386/tlsbin2.rd: Likewise.
2001         * testsuite/ld-i386/tlsbindesc.rd: Likewise.
2002         * testsuite/ld-i386/tlsdesc.rd: Likewise.
2003         * testsuite/ld-i386/tlsnopic.rd: Likewise.
2004         * testsuite/ld-i386/tlspic.rd: Likewise.
2005         * testsuite/ld-i386/tlspic2.rd: Likewise.
2006         * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
2007         * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
2008         * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
2009         * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
2010         * testsuite/ld-plugin/pr17973.d: Likewise.
2011         * testsuite/ld-tic6x/shlib-1.rd: Likewise.
2012         * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
2013         * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
2014         * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
2015         * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
2016         * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
2017         * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
2018         * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
2019         * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
2020         * testsuite/ld-tic6x/static-app-1.rd: Likewise.
2021         * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
2022         * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
2023         * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
2024         * testsuite/ld-x86-64/tlsbin.rd: Likewise.
2025         * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
2026         * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
2027         * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
2028         * testsuite/ld-x86-64/tlspic.rd: Likewise.
2029         * testsuite/ld-x86-64/tlspic2.rd: Likewise.
2030         * testsuite/ld-xtensa/tlsbin.rd: Likewise.
2031         * testsuite/ld-xtensa/tlspic.rd: Likewise.
2033 2021-01-01  Nicolas Boulenguez  <nicolas@debian.org>
2035         * configure.tgt: Correct comment grammar.
2036         * emultempl/m68hc1xelf.em: Likewise.
2037         * ld.texi: Correct grammar.
2039 2021-01-01  Alan Modra  <amodra@gmail.com>
2041         Update year range in copyright notice of all files.
2043 For older changes see ChangeLog-2020
2045 Copyright (C) 2021-2023 Free Software Foundation, Inc.
2047 Copying and distribution of this file, with or without modification,
2048 are permitted in any medium without royalty provided the copyright
2049 notice and this notice are preserved.
2051 Local Variables:
2052 mode: change-log
2053 left-margin: 8
2054 fill-column: 74
2055 version-control: never
2056 End: