Add support for the ASCII directive inside linker scripts.
[binutils-gdb.git] / ld / ChangeLog
blob0fa00a95525081d7989392e61ba3a2f70cf26339
1 2023-02-16  Ulf Samuelsson <binutils@emagii.com>
2             Nick Clifton  <nickc@redhat.com>
4         * ldlex.l: Add ASCII token.
5         * ldgram.y: Add parsing of the ASCII command.
6         * ldlang.c (lang_add_string): Add maximum size parameter.  Move
7         escape character handling code into separate function.
8         * ldlang.h (lang_add_string): Update prototype.
9         * NEWS: Mention the new feature.
10         * ld.texi (Output Section Data): Document the new directives.
11         * testsuite/ld-scripts/asciz.t: Adjust to work on more architectures
12         and to test more aspects of the ASCIZ directive.
13         * testsuite/ld-scripts/asciz.d: Adjust to match the changes to the
14         test linker script.
15         * testsuite/ld-scripts/ascii.d: New test driver.
16         * testsuite/ld-scripts/ascii.s: New test assembler source.
17         * testsuite/ld-scripts/ascii.t: New test script.
18         * testsuite/ld-scripts/script.exp: Run the new test.
20 2023-02-15  Nick Clifton  <nickc@redhat.com>
22         PR 30078
23         * testsuite/ld-elf/merge4b.s: Use .asciz instead of .string in
24         order to avoid the special behaviour of the .string directive on
25         HPPA architectures.
27 2023-02-14  Nick Clifton  <nickc@redhat.com>
29         * ld.texi (Plugins): Mention that the -plugin command line option
30         is used to load plugins.
32 2023-01-27  Nick Clifton  <nickc@redhat.com>
34         PR 29998
35         * pe-dll.c (build_filler_bfd): Initialise the next field of the
36         filler input statement, so that it does not break the file chain.
38 2023-01-24  Nick Clifton  <nickc@redhat.com>
40         PR 29998
41         * pe-dll.c (generate_reloc): Handle sections with no assigned
42         output section.  Terminate early of there are no relocs to put in
43         the .reloc section.
44         (pe_exe_fill_sections): Do not emit an empty .reloc section.
46 2023-01-06  Nick Clifton  <nickc@redhat.com>
48         * po/bg.po: Updated Bulgarian translation.
50 2023-01-05  Nick Clifton  <nickc@redhat.com>
52         * configure.tgt: Add arm64pe as an extra emulation for aarch64pe.
53         * Makefile.am (ALL_64_EMULATION_SOURCES): Add earm64pe.c
54         * emultempl/pep.em: Add suppport for arm64pe emulation.
55         * Makefile.in: Regenerate.
56         * po/BLD-POTFILES.in: Regenerate.
57         * po/ld.pot: Regenerate.
59 2023-01-05  Andreas K. Huettel  <dilfridge@gentoo.org>
61         * testsuite/ld-elf/shared.exp: un-xfail the PR19710 test for the
62         AArch64 architecture.
64 2023-01-04  Andreas K. Huettel  <dilfridge@gentoo.org>
66         PR 29843
67         * testsuite/ld-aarch64/bti-plt-5.d: Relax regxps slightly to allow
68         for differences in build environments.
69         * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: Likewise.
71 2023-01-03  Nick Clifton  <nickc@redhat.com>
73         * po/uk.po: Updated Ukrainian translation.
75 2022-12-31  Nick Clifton  <nickc@redhat.com>
77         * 2.40 branch created.
79 2022-12-21  Nick Clifton  <nickc@redhat.com>
81         PR 29900
82         * scripttempl/pe.sc: Keep the .drectve section when performing a
83         relocateable link.
84         * scripttempl/pep.sc: Likewise.
86 2022-12-08  Nick Clifton  <nickc@redhat.com>
88         PR 29861
89         * ld.texi (Output Section Type): Note that setting the output
90         section type only works if the section contains untyped data.
92 2022-12-05  Nick Clifton  <nickc@redhat.com>
94         PR 29849
95         * ldlang.c (spec_match): Check that there is sufficient length in
96         the target name to match the spec's prefix.
98 2022-11-03  Nick Clifton  <nickc@redhat.com>
100         PR 29748
101         * configure.tgt (ac_default_ld_warn_rwx_segments): Set to 0 for
102         the V850.
104 2022-11-03  Nick Clifton  <nickc@redhat.com>
106         PR 29741
107         * scripttempl/avr.sc (__DATA_REGION_ORIGIN__): Define.  If a value
108         has not been provided on the command line then use DATA_ORIGIN.
109         (MEMORY): Use __DATA_REGION_ORIGIN__ as the start of the data region.
111 2022-10-21  Nick Clifton  <nickc@redhat.com>
113         PR 29654
114         * ld.h (struct ld_config_type): Add no_warnings field.
115         * ldlex.h (enum option_values): Add OPTION_NO_WARNINGS.
116         * lexsup.c (ld_options): Add --no-warnings.
117         (parse_args): Add support for -w and --no-warnings.
118         * ldmisc.c (vfinfo): Return early if the message is a warning and
119         -w has been enabled.
120         * ld.texi (options): Document new command line option.
121         * NEWS: Mention the new feature.
123 2022-08-30  Nick Clifton  <nickc@redhat.com>
125         PR 29529
126         * testsuite/ld-x86-64/pr27587.err: Update expected output.
128 2022-08-18  Ralf Habacker  <ralf.habacker@freenet.de>
130         PR 28362
131         * testsuite/ld-pe/pe-run2-def.exp: New file.
133 2022-08-03  Alan Modra  <amodra@gmail.com>
135         PR 29389
136         * ldlang.h (lang_input_statement_struct): Add sort_key field.
137         * emultempl/pe.em (after_open): If multiple import libraries refer
138         to the same bfd, store their names in the sort_key field.
139         * emultempl/pep.em (after_open): Likewise.
140         * ldlang.c (sort_filename): New function.  Returns the filename to
141         be used when sorting input files.
142         (wild_sort): Use the sort_filename function.
144 2022-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
146         PR ld/29411
147         * configure.tgt (ac_default_ld_warn_rwx_segments): Extend to all
148         sparc targets.  Expand comment.
150 2022-07-26  Nick Clifton  <nickc@redhat.com>
152         PR 29411
153         * configure.tgt (ac_default_ld_warn_rwx_segments): Disable for
154         sparc-solaris configurations.
156 2022-07-08  Nick Clifton  <nickc@redhat.com>
158         * 2.39 branch created.
160 2022-06-27  Nick Clifton  <nickc@redhat.com>
162         PR 29263
163         * configure.ac: Move HPPA specific code from here...
164         * configure.tgt: ... to here.  Add similar code for MIPS.
165         Move code for CRIS, MIPS and HPPA to block at start of file.
166         * configure: Regenerate.
168 2022-06-21  Nick Clifton  <nickc@redhat.com>
170         PR 29263
171         * configure.ac (ac_default_ld_warn_execstack): Default to 'no' for
172         HPPA targets.
173         (ac_default_ld_warn_rwx_segments): Likewise.
174         * configure: Regenerate.
175         * testsuite/ld-elf/elf.exp: Add the --warn-execstack command line
176         option to the command line when running execstack tests for the
177         HPPA target.
179 2022-05-12  Alan Modra  <amodra@gmail.com>
181         PR 29006
182         * pe-dll.c (dll_name): Delete, replacing with..
183         (dll_filename): ..this, moved earlier in file.
184         (generate_edata): Delete parameters.  Don't set up dll_name here..
185         (pe_process_import_defs): ..instead set up dll_filename and
186         dll_symname here before returning.
187         (dll_symname_len): Delete write-only variable.
188         (pe_dll_generate_implib): Don't set up dll_symname here.
190 2022-05-03  Nick Clifton  <nickc@redhat.com>
192         PR 29101
193         * libdep_plugin.c (get_libdeps): Check for overflow when computing
194         amount of memory to allocate.
196 2022-04-27  Nick Clifton  <nickc@redhat.com>
198         PR 29006
199         * pe-dll.c (make_head): Use asprintf to allocate and populate a
200         buffer containing the temporary name.
201         (make_tail, make_one, make_singleton_name_thunk): Likewise.
202         (make_import_fixup_mark, make_import_fixup_entry): Likewise.
203         (make_runtime_pseudo_reloc): Likewise.
204         (pe_create_runtime_relocator_reference): Likewise.
206 2022-04-25  Nick Clifton  <nickc@redhat.com>
208         PR 29072
209         * testsuite/ld-elf/pr29072.b.warn: Update to include the note
210         about the linker's behaviour being depreccated.
212 2022-04-20  Clément Chigot  <clement.chigot@atos.net>
214         * emultempl/aix.em (params): New variable.
215         (stub_file): New variable.
216         (xcoff_add_stub_section): New function.
217         (xcoff_layout_sections_again): New function
218         (hook_in_stub): New function.
219         (_after_allocation): Add stub creation.
220         (_create_output_section_statements): Allocate stub file and
221         pass params to backend.
223 2022-04-20  Clément Chigot  <clement.chigot@atos.net>
225         * emultempl/aix.em (_after_allocation): New function.
227 2022-04-07  Mark Harmstone  <mark@harmstone.com>
229         * testsuite/ld-pe/secidx1.s: New test source file.
230         * testsuite/ld-pe/secidx2.s: New test source file.
231         * testsuite/ld-pe/secidx.d: New test driver file.
232         * testsuite/ld-pe/secidx_64.d: New test driver file.
233         * testsuite/ld-pe/pe.exp: Add new tests.
235 2022-03-01  Nick Clifton  <nickc@redhat.com>
237         PR 21964
238         * testsuite/ld-elf/pr21964-1a.c: Fix array comparisons.
239         * testsuite/ld-elf/pr21964-1b.c: Likewise.
240         * testsuite/ld-elf/pr21964-1c.c: Likewise.
241         * testsuite/ld-elf/pr21964-2a.c: Likewise.
242         * testsuite/ld-elf/pr21964-2b.c: Likewise.
243         * testsuite/ld-elf/pr21964-3a.c: Likewise.
245 2022-02-17  Roland McGrath  <mcgrathr@google.com>
247         * ld.texi (Output Section Type): Fix typo in @code syntax.
249 2022-02-17  Nick Clifton  <nickc@redhat.com>
251         * po/sr.po: Updated Serbian translation.
253 2022-02-16  Fangrui Song  <maskray@google.com>
254             Nick Clifton  <nickc@redhat.com>
256         PR ld/28841
257         * ld.texi: Document new output section type.
258         * ldlex.l: Add new token TYPE.
259         * ldgram.y: Handle TYPE=exp and READONLY (TYPE=exp).
260         * ldlang.h: Add type_section to list of section types.
261         * ldlang.c (lang_add_section): Handle type_section.
262         (map_input_to_output_sections): Handle type_section.
263         * testsuite/ld-scripts/output-section-types.t: Add tests.
264         * testsuite/ld-scripts/output-section-types.d: Update.
266 2022-02-02  Nick Clifton  <nickc@redhat.com>
268         * po/fr.po: Updated French translation.
270 2022-01-24  Nick Clifton  <nickc@redhat.com>
272         * po/bg.po: Updated Bulgarian translation.
273         * po/uk.po: Updated Ukranian translation.
275 2022-01-22  Alexander von Gluck IV  <kallisti5@unixzen.com>
277         * configure.tgt (arm-haiku): Fix typo.
278         * emulparams/armelf_haiku.su (MAXPAGESIZE): Use the default value.
279         (COMMONPAGESIZE): Likewise.
281 2022-01-22  Nick Clifton  <nickc@redhat.com>
283         * configure: Regenerate.
284         * po/ld.pot: Regenerate.
286 2022-01-22  Nick Clifton  <nickc@redhat.com>
288         * 2.38 release branch created.
290 2022-01-21  Nick Clifton  <nickc@redhat.com>
292         * po/sr.po: Updated Serbian translation.
294 2022-01-17  Nick Clifton  <nickc@redhat.com>
296         * Makefile.in: Regenerate.
297         * po/ld.pot: Regenerate.
299 2022-01-11  Martin Storsjö  <martin@martin.st>
301         * pe-dll.c (make_head): Prefix the symbol name with the dll name.
302         (make_tail, make_one, make_singleton_name_thunk): Likewise.
303         (make_import_fixup_entry, make_runtime_pseudo_reloc): Likewise.
304         (pe_create_runtime_relocator_reference): Likewise.
305         (pe_dll_generate_implib): Set dll_symname_len.
306         (pe_process_import_defs): Likewise.
308 2021-12-16  Nick Clifton  <nickc@redhat.com>
310         PR 28686
311         * testsuite/ld-avr/avr-prop-7.d: Adjust expected output.
312         * testsuite/ld-avr/avr-prop-8.d: Likewise.
313         * testsuite/ld-avr/pr13402.d: Likewise.
315 2021-11-30  Nick Clifton  <nickc@redhat.com>
317         * scripttempl/pru.sc (.pru_irq_map): Define output section.
318         * testsuite/ld-pru/pru_irq_map-1.d: New test.
319         * testsuite/ld-pru/pru_irq_map-2.d: New test.
320         * testsuite/ld-pru/pru_irq_map.s: New test.
322 2021-11-17  Jeremy Drake  <cygwin@jdrake.com>
324         * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Set to 0 for
325         Cygwin targets.
326         * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Likewise.
328 2021-11-17  Nick Clifton  <nickc@redhat.com>
330         PR 28452
331         * ldgram.y: Add support for PT_GNU_RELRO and PT_GNU_PROPERTY.
332         * ldgram.c: Regenerate.
334 2021-11-15  Roland McGrath  <mcgrathr@google.com>
336         * testsuite/ld-aarch64/dt_textrel.d: Pass explicit -z notext in
337         case ld was configured with --enable-textrel-check=error.
338         * testsuite/ld-aarch64/pr22764.d: Likewise.
339         * testsuite/ld-aarch64/pr20402.d: Likewise.
341 2021-10-25  Nick Alcock  <nick.alcock@oracle.com>
343         * testsuite/ld-ctf/nonrepresentable-member.*: New test.
345 2021-10-25  Nick Alcock  <nick.alcock@oracle.com>
347         * testsuite/ld-ctf/array.d: Change --ctf=.ctf to --ctf.
348         * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
349         * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
350         * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
351         * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
352         * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
353         * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
354         * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
355         * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
356         * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
357         * testsuite/ld-ctf/conflicting-enums.d: Likewise.
358         * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
359         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
360         * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
361         * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
362         * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
363         * testsuite/ld-ctf/cycle-1.d: Likewise.
364         * testsuite/ld-ctf/cycle-2.A.d: Likewise.
365         * testsuite/ld-ctf/cycle-2.B.d: Likewise.
366         * testsuite/ld-ctf/cycle-2.C.d: Likewise.
367         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
368         * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
369         * testsuite/ld-ctf/diag-cuname.d: Likewise.
370         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
371         * testsuite/ld-ctf/enum-forward.d: Likewise.
372         * testsuite/ld-ctf/enums.d: Likewise.
373         * testsuite/ld-ctf/forward.d: Likewise.
374         * testsuite/ld-ctf/function.d: Likewise.
375         * testsuite/ld-ctf/nonrepresentable.d: Likewise.
376         * testsuite/ld-ctf/slice.d: Likewise.
377         * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
379 2021-09-30  Dimitar Dimitrov  <dimitar@dinux.eu>
381         * scripttempl/pru.sc (.resource_table): Align the output
382         section, not the first symbol.
384 2021-09-27  Nick Alcock  <nick.alcock@oracle.com>
386         * configure: Regenerate.
388 2021-09-21  Nick Clifton  <nickc@redhat.com>
390         * ldlang.c (lang_end): When computing the entry point, only
391         try the start address of the entry section when creating an
392         executable.
393         * ld.texi (Entry point): Update description of heuristic used to
394         choose the entry point.
395         testsuite/ld-alpha/tlspic.rd: Update expected entry point address.
396         testsuite/ld-arm/tls-gdesc-got.d: Likewise.
397         testsuite/ld-i386/tlsnopic.rd: Likewise.
398         testsuite/ld-ia64/tlspic.rd: Likewise.
399         testsuite/ld-sparc/gotop32.rd: Likewise.
400         testsuite/ld-sparc/gotop64.rd: Likewise.
401         testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
402         testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
403         testsuite/ld-sparc/tlssunpic32.rd: Likewise.
404         testsuite/ld-sparc/tlssunpic64.rd: Likewise.
405         testsuite/ld-tic6x/shlib-1.rd: Likewise.
406         testsuite/ld-tic6x/shlib-1b.rd: Likewise.
407         testsuite/ld-tic6x/shlib-1r.rd: Likewise.
408         testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
409         testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
410         testsuite/ld-x86-64/pr14207.d: Likewise.
411         testsuite/ld-x86-64/tlsdesc.rd: Likewise.
412         testsuite/ld-x86-64/tlspic.rd: Likewise.
413         testsuite/ld-x86-64/tlspic2.rd: Likewise.
415 2021-09-15  Claudiu Zissulescu  <claziss@synopsys.com>
417         * testsuite/ld-arc/got-weak.d: Update file.
419 2021-09-14  Claudiu Zissulescu  <claziss@synopsys.com>
421         * ld-arc/got-weak.d: New file.
422         * ld-arc/got-weak.s: Likewise.
424 2021-07-26  Roland McGrath  <mcgrathr@google.com>
426         * testsuite/ld-x86-64/x86-64.exp (Build textrel-1): Use --warn-textrel.
428 2021-07-06  Michael Matz  <matz@suse.de>
430         PR ld/28021
431         * testsuite/ld-riscv-elf/relax-twice.ver: New.
432         * testsuite/ld-riscv-elf/relax-twice-1.s: New.
433         * testsuite/ld-riscv-elf/relax-twice-2.s: New.
434         * testsuite/ld-riscv-elf/ld-riscv-elf.exp
435         (run_relax_twice_test): New, and call it.
437 2021-07-03  Nick Clifton  <nickc@redhat.com>
439         * configure: Regenerate.
440         * po/ld.pot: Regenerate.
442 2021-07-03  Nick Clifton  <nickc@redhat.com>
444         * 2.37 release branch created.
446 2021-06-22  Nelson Chu  <nelson.chu@sifive.com>
448         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
449         * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.d: New testcase.
450         * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.s: Likewise.
451         * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.d: New testcase.
452         Should report error since the %pcrel_lo with addend refers to
453         %got_pcrel_hi.
454         * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.s: Likewise.
455         * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.d: New testcase.
456         Should report error since the %got_pcrel_hi with addend.
457         * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.s: Likewise.
458         * testsuite/ld-riscv-elf/pcrel-lo-addend-3.ld: Likewise.
460 2021-06-19  H.J. Lu  <hongjiu.lu@intel.com>
462         PR ld/27998
463         * testsuite/ld-i386/i386.exp: Run PR ld/27998 tests.
464         * testsuite/ld-i386/pr27998a.d: New file.
465         * testsuite/ld-i386/pr27998a.s: Likewise.
466         * testsuite/ld-i386/pr27998b.d: Likewise.
467         * testsuite/ld-i386/pr27998b.s: Likewise.
469 2021-06-19  H.J. Lu  <hongjiu.lu@intel.com>
471         * testsuite/ld-x86-64/textrel-1.err: New file.
472         * testsuite/ld-x86-64/textrel-1a.s: Likewise.
473         * testsuite/ld-x86-64/textrel-1b.s: Likewise.
474         * testsuite/ld-x86-64/x86-64.exp: Run textrel-1 tests.
476 2021-06-18  H.J. Lu  <hongjiu.lu@intel.com>
478         * testsuite/ld-elf/property-and-1.d: Skip am33_2.0, hppa-hpux
479         and mn10300.
480         Pass --generate-missing-build-notes=no to assembler.  Allow
481         other note sections for xtensa.
482         * testsuite/ld-elf/property-and-2.d: Likewise.
483         * testsuite/ld-elf/property-and-3.d: Likewise.
484         * testsuite/ld-elf/property-and-4.d: Likewise.
485         * testsuite/ld-elf/property-or-1.d: Likewise.
486         * testsuite/ld-elf/property-or-2.d: Likewise.
487         * testsuite/ld-elf/property-or-3.d: Likewise.
488         * testsuite/ld-elf/property-or-4.d: Likewise.
490 2021-06-18  H.J. Lu  <hongjiu.lu@intel.com>
492         * ld.texi: Move -z unique-symbol after -z undefs.
494 2021-06-18  H.J. Lu  <hongjiu.lu@intel.com>
496         * testsuite/ld-elf/property-and-1.d: New file.
497         * testsuite/ld-elf/property-and-1.s: Likewise.
498         * testsuite/ld-elf/property-and-2.d: Likewise.
499         * testsuite/ld-elf/property-and-2.s: Likewise.
500         * testsuite/ld-elf/property-and-3.d: Likewise.
501         * testsuite/ld-elf/property-and-3.s: Likewise.
502         * testsuite/ld-elf/property-and-4.d: Likewise.
503         * testsuite/ld-elf/property-and-empty.s: Likewise.
504         * testsuite/ld-elf/property-or-1.d: Likewise.
505         * testsuite/ld-elf/property-or-1.s: Likewise.
506         * testsuite/ld-elf/property-or-2.d: Likewise.
507         * testsuite/ld-elf/property-or-2.s: Likewise.
508         * testsuite/ld-elf/property-or-3.d: Likewise.
509         * testsuite/ld-elf/property-or-3.s: Likewise.
510         * testsuite/ld-elf/property-or-4.d: Likewise.
511         * testsuite/ld-elf/property-or-empty.s: Likewise.
513 2021-06-17  H.J. Lu  <hongjiu.lu@intel.com>
515         PR ld/27973
516         * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and
517         $NOPIE_CFLAGS to protected-func-1 without PIE.
519 2021-06-17  H.J. Lu  <hongjiu.lu@intel.com>
521         PR ld/27973
522         * testsuite/ld-x86-64/x86-64.exp: Run protected function tests.
523         * testsuite/ld-x86-64/protected-func-1.h: New file.
524         * testsuite/ld-x86-64/protected-func-1a.s: Likewise.
525         * testsuite/ld-x86-64/protected-func-1b.c: Likewise.
527 2021-06-17  Fangrui Song  <maskray@google.com>
529         * ldlex.h (enum option_values): Add OPTION_NO_PIE.
530         * lexsup.c (struct ld_options): Add -no-pie.
531         (parse_args): Handle -no-pie.
532         * ld.texi: Document -no-pie.
534 2021-06-15  Alan Modra  <amodra@gmail.com>
536         * testsuite/ld-pie/vaddr-0.d: Update expected output.
538 2021-06-11  Alan Modra  <amodra@gmail.com>
540         PR 27952
541         * ldelf.c (ldelf_after_open): Error on input PIEs too.
543 2021-06-09  Nick Clifton  <nickc@redhat.com>
545         PR 27666
546         * testsuite/ld-sparc/sparc.exp: Do not run the sparctests or
547         sparc64tests for Solaris2 targets.
549 2021-06-03  Alan Modra  <amodra@gmail.com>
551         PR 2589
552         * ld.texi (link-time runtime library search path): Mention
553         plugin library path.  Correct order of search.
555 2021-05-31  Nelson Chu  <nelson.chu@sifive.com>
556             Lifang Xia  <lifang_xia@c-sky.com>
558         PR 27566
559         * emultempl/riscvelf.em (after_allocation): Call
560         riscv_set_data_segment_info to set data segment phase before relaxing.
561         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
562         * testsuite/ld-riscv-elf/relro-relax-lui.d: New testcase.
563         * testsuite/ld-riscv-elf/relro-relax-lui.s: Likewise.
564         * testsuite/ld-riscv-elf/relro-relax-pcrel.d: Likewise.
565         * testsuite/ld-riscv-elf/relro-relax-pcrel.s: Likewise.
567 2021-05-28  H.J. Lu  <hongjiu.lu@intel.com>
569         PR ld/27905
570         * testsuite/ld-i386/pcrel16-2.d: xfail.
571         * testsuite/ld-x86-64/pcrel16-2.d: Likewise.
573 2021-05-26  H.J. Lu  <hongjiu.lu@intel.com>
575         PR ld/27905
576         * testsuite/ld-i386/code16.d: New file.
577         * testsuite/ld-i386/code16.t: Likewise.
578         * testsuite/ld-x86-64/code16.d: Likewise.
579         * testsuite/ld-x86-64/code16.t: Likewise.
580         * testsuite/ld-i386/i386.exp: Run code16.
581         * testsuite/ld-x86-64/x86-64.exp: Likewise.
583 2021-05-26  H.J. Lu  <hongjiu.lu@intel.com>
585         * testsuite/ld-x86-64/ilp32-12.d: New file.
586         * testsuite/ld-x86-64/ilp32-12.s: Likewise.
587         * testsuite/ld-x86-64/x86-64.exp: Run ilp32-12.
589 2021-05-14  Nelson Chu  <nelson.chu@sifive.com>
591         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
592         * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d: Renamed from
593         pcrel-lo-addend-2.
594         * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.s: Likewise.
595         * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.d: New testcase.
596         * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.s: Likewise.
598 2021-05-13  Fangrui Song  <maskray@google.com>
600         PR 27834
601         * ldlex.h (enum option_values): Add OPTION_NO_SYMBOLIC.
602         * lexsup.c (ld_options): Add -Bno-symbolic.
603         (parse_args): Handle -Bno-symbolic.
604         * ld.texi: Document -Bno-symbolic.
605         * NEWS: Mention -Bno-symbolic.
606         * testsuite/ld-elf/shared.exp: Add a test.
608 2021-05-12  Richard Earnshaw  <rearnsha@arm.com>
610         * testsuite/ld-arm/arm-elf.exp (farcall test for v8-m.mainline):
611         Correct expected output.
613 2021-05-11  Roland McGrath  <mcgrathr@google.com>
615         * testsuite/ld-x86-64/rela.d: Fix regexp not to presume a specific
616         address layout, so it works for e.g. --target=x86-64-elf.
618 2021-05-11  Nick Clifton  <nickc@redhat.com>
620         PR 27113
621         * Makefile.am (install-data-local): Also delete libdep.dll.a if it
622         is present.
623         * Makefile.in: Regenerate.
625 2021-05-10  Dimitar Dimitrov  <dimitar@dinux.eu>
627         * testsuite/ld-elf/group8a.d: Remove pru from XFAIL list.
628         * testsuite/ld-elf/group8b.d: Ditto.
629         * testsuite/ld-elf/group9a.d: Ditto.
630         * testsuite/ld-elf/group9b.d: Ditto.
631         * testsuite/ld-elf/pr12851.d: Ditto.
632         * testsuite/ld-elf/pr22677.d: Ditto.
633         * testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove
634         pru from list.
636 2021-05-10  Dimitar Dimitrov  <dimitar@dinux.eu>
638         * scripttempl/pru.sc (.resource_table): Add ALIGN directive.
639         Use symbols for memory sizes.
641 2021-05-08  Mike Frysinger  <vapier@gentoo.org>
643         * Makefile.am (html-local, doc/ld/index.html): New targets.
644         * Makefile.in: Regenerate.
646 2021-05-08  Mike Frysinger  <vapier@gentoo.org>
648         * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
649         * Makefile.in: Regenerate.
651 2021-05-07  Jan Beulich  <jbeulich@suse.com>
653         * testsuite/ld-x86-64/rela.d: New.
654         * testsuite/ld-x86-64/x86-64.exp: Run new test.
656 2021-05-07  Nick Clifton  <nickc@redhat.com>
658         * ldelfgen.c (compare_link_order): Ignore section size when
659         performing a relocateable link.
661 2021-05-07  Alan Modra  <amodra@gmail.com>
663         * ldexp.c (update_definedness): Don't return false for absolute
664         symbols.
665         * ldmain.c (multiple_definition): Print "warning: " in message
666         when not a hard error.
668 2021-05-07  Alan Modra  <amodra@gmail.com>
670         * testsuite/ld-elf/pr27825-1.d: Correct xfail.
671         * testsuite/ld-elf/pr27825-2.d: Likewise.
673 2021-05-06  Stafford Horne  <shorne@gmail.com>
675         PR 27746
676         testsuite/ld-or1k/or1k.exp (or1kplttests): Add tests for linking
677         along with gotha() relocations.
678         testsuite/ld-or1k/gotha1.dd: New file.
679         testsuite/ld-or1k/gotha1.s: New file.
680         testsuite/ld-or1k/gotha2.dd: New file.
681         testsuite/ld-or1k/gotha2.s: New file
682         testsuite/ld-or1k/pltlib.s (x): Define size to avoid link
683         failure.
685 2021-05-06  Nick Alcock  <nick.alcock@oracle.com>
687         * testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt.
688         * testsuite/lib/ld-lib.exp: Likewise.
689         * testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types.
690         * testsuite/ld-ctf/nonrepresentable-2.c: Likewise.
691         * testsuite/ld-ctf/nonrepresentable.d: Likewise.
692         * testsuite/ld-ctf/array.d: Larger type section.
693         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
694         * testsuite/ld-ctf/enums.d: Likewise.
695         * testsuite/ld-ctf/conflicting-enums.d: Don't compare types.
696         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order.
697         * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
698         * testsuite/ld-ctf/slice.d: Adjust for improved slice emission.
700 2021-05-05  H.J. Lu  <hongjiu.lu@intel.com>
702         PR ld/27825
703         * testsuite/ld-elf/pr27825-1.d: New file.
704         * testsuite/ld-elf/pr27825-1a.s: Likewise.
705         * testsuite/ld-elf/pr27825-1b.s: Likewise.
706         * testsuite/ld-elf/pr27825-2.d: Likewise.
707         * testsuite/ld-elf/pr27825-2a.s: Likewise.
708         * testsuite/ld-elf/pr27825-2b.s: Likewise.
710 2021-05-05  Alan Modra  <amodra@gmail.com>
712         * testsuite/ld-powerpc/empty.s: New file.
713         * testsuite/ld-powerpc/undefweak.d,
714         * testsuite/ld-powerpc/undefweak.s: New testcase.
715         * testsuite/ld-powerpc/powerpc.exp: Run it.
717 2021-05-03  Alan Modra  <amodra@gmail.com>
719         * testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
720         named section symbols.
722 2021-04-28  Nick Clifton  <nickc@redhat.com>
724         * testsuite/ld-elf/anno-sym.s: New test source file.
725         * testsuite/ld-elf/anno-sym.d: New test driver.
726         * testsuite/ld-elf/anno-sym.l: New test error output.
728 2021-04-26  Jan Beulich  <jbeulich@suse.com>
730         * testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d,
731         testsuite/ld-x86-64/pcrel16-2.d: New.
732         * testsuite/ld-i386/i386.exp: Run new test.
733         * testsuite/ld-x86-64/x86-64.exp: Likewise.
735 2021-04-23  H.J. Lu  <hongjiu.lu@intel.com>
737         PR ld/27771
738         * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
739         to tmpdir/ldscripts only if it doesn't exist.
741 2021-04-22  Jan Beulich  <jbeulich@suse.com>
743         PR ld/26659
744         * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
746 2021-04-21  Nick Clifton  <nickc@redhat.com>
748         * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
749         to allow for named section symbols.
750         * testsuite/ld-aarch64/variant_pcs-r.d: Likewise.
751         * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
752         * testsuite/ld-alpha/tlsbin.rd: Likewise.
753         * testsuite/ld-alpha/tlsbinr.rd: Likewise.
754         * testsuite/ld-alpha/tlspic.rd: Likewise.
755         * testsuite/ld-arm/rodata-merge-map.sym: Likewise.
756         * testsuite/ld-arm/script-type.sym: Likewise.
757         * testsuite/ld-cris/libdso-2.d: Likewise.
758         * testsuite/ld-cris/pr16044.d: Likewise.
759         * testsuite/ld-elf/sec64k.exp: Likewise.
760         * testsuite/ld-ia64/tlsbin.rd: Likewise.
761         * testsuite/ld-ia64/tlspic.rd: Likewise.
762         * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
763         * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
764         * testsuite/ld-mmix/bspec1.d: Likewise.
765         * testsuite/ld-mmix/bspec2.d: Likewise.
766         * testsuite/ld-mmix/local1.d: Likewise.
767         * testsuite/ld-mmix/local3.d: Likewise.
768         * testsuite/ld-mmix/local5.d: Likewise.
769         * testsuite/ld-mmix/local7.d: Likewise.
770         * testsuite/ld-mmix/undef-3.d: Likewise.
771         * testsuite/ld-powerpc/tlsso.r: Likewise.
772         * testsuite/ld-powerpc/tlsso32.r: Likewise.
773         * testsuite/ld-powerpc/tlstocso.r: Likewise.
774         * testsuite/ld-s390/tlsbin.rd: Likewise.
775         * testsuite/ld-s390/tlsbin_64.rd: Likewise.
776         * testsuite/ld-s390/tlspic.rd: Likewise.
777         * testsuite/ld-s390/tlspic_64.rd: Likewise.
778         * testsuite/ld-sparc/gotop32.rd: Likewise.
779         * testsuite/ld-sparc/gotop64.rd: Likewise.
780         * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
781         * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
782         * testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
783         * testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
784         * testsuite/ld-sparc/tlssunpic32.rd: Likewise.
785         * testsuite/ld-sparc/tlssunpic64.rd: Likewise.
786         * testsuite/ld-tic6x/common.d: Likewise.
787         * testsuite/ld-tic6x/shlib-1.rd: Likewise.
788         * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
789         * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
790         * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
791         * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
792         * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
793         * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
794         * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
795         * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
796         * testsuite/ld-tic6x/static-app-1.rd: Likewise.
797         * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
798         * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
799         * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
801 2021-04-20  Clément Chigot  <clement.chigot@atos.net>
803         PR binutils/21700
804         * testsuite/ld-powerpc/aix52.exp: Add new test.
805         * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
806         * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
807         * testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
808         * testsuite/ld-powerpc/aix-neg-reloc.s: New test.
810 2021-04-13  Nick Clifton  <nickc@redhat.com>
812         * ld.texi (Options): Add note about the effect of --as-needed on
813         the --rpath and --rpath-link options on Linux based systems.
815 2021-04-13  Alan Modra  <amodra@gmail.com>
817         PR 27722
818         * libdep_plugin.c (str2vec): Don't pass a potentially signed char
819         to isspace.
821 2021-04-12  Alan Modra  <amodra@gmail.com>
823         * configure.ac (--enable-checking): Add support.
824         * config.in: Regenerate.
825         * configure: Regenerate.
827 2021-04-12  Alan Modra  <amodra@gmail.com>
829         * emultempl/mipself.em (mips_create_output_section_statements):
830         Pass base type of hash table to is_elf_hash_table.
831         * ldelf.c (ldelf_after_open): Likewise.
833 2021-04-12  Alan Modra  <amodra@gmail.com>
835         PR 27719
836         * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
837         the symbol hash table is the correct type before accessing
838         elf_link_hash_entry symbols.
839         * plugin.c (is_visible_from_outside): Likewise.
840         * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
841         * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
843 2021-04-09  Alan Modra  <amodra@gmail.com>
845         * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
846         * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
847         * testsuite/ld-powerpc/notoc2.d: Likewise.
848         * testsuite/ld-powerpc/notoc3.d: Likewise.
849         * testsuite/ld-powerpc/pcrelopt.d: Likewise.
850         * testsuite/ld-powerpc/startstop.d: Likewise.
851         * testsuite/ld-powerpc/tlsget.d: Likewise.
852         * testsuite/ld-powerpc/tlsget2.d: Likewise.
853         * testsuite/ld-powerpc/tlsld.d: Likewise.
854         * testsuite/ld-powerpc/weak1.d: Likewise.
855         * testsuite/ld-powerpc/weak1so.d: Likewise.
857 2021-04-06  Jan Beulich  <jbeulich@suse.com>
859         * pe-dll.c (generate_reloc): Bail immediately when .reloc is
860         being discarded. Warn when relocated entry is above .reloc.
862 2021-04-05  Alan Modra  <amodra@gmail.com>
864         * configure.ac: Move initfini-array arg handling earlier.  Don't
865         check for string.h, strings.h, stdlib.h, or locale.h.  Do check
866         for inttypes.h, stdint.h, sys/types.h.  Don't check for
867         setlocale, free, getev or strstr.
868         (AC_ISC_POSIX): Don't invoke.
869         * sysdep.h: Include string.h and stdlib.h unconditionally.  Test
870         HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H.  Remove strstr, free and
871         getenv fallback declarations.
872         * ld.h: Don't test HAVE_LOCALE_H.
873         * ldmain.c: Don't test HAVE_SETLOCALE.
874         * config.in: Regenerate.
875         * configure: Regenerate.
877 2021-04-01  Tamar Christina  <tamar.christina@arm.com>
879         PR ld/26659
880         * testsuite/ld-pe/pe.exp: Add test.
881         * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
882         * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
884 2021-04-01  Martin Liska  <mliska@suse.cz>
886         * ldbuildid.c (strneq): Remove strneq and use startswith.
887         (validate_build_id_style): Likewise.
888         (compute_build_id_size): Likewise.
890 2021-03-31  Alan Modra  <amodra@gmail.com>
892         * sysdep.h (POISON_BFD_BOOLEAN): Define.
893         * configure.ac (elf_list_options, elf_shlib_list_options=false),
894         (elf_plt_unwind_list_options=false): Replace FALSE with false,
895         and TRUE with true.
896         * emulparams/call_nop.sh, * emulparams/cet.sh,
897         * emulparams/dynamic_undefined_weak.sh,
898         * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
899         * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
900         * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
901         * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
902         * emulparams/reloc_overflow.sh, * emulparams/static.sh,
903         * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
904         * emultempl/aix.em, * emultempl/alphaelf.em,
905         * emultempl/armcoff.em, * emultempl/armelf.em,
906         * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
907         * emultempl/cr16elf.em, * emultempl/crxelf.em,
908         * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
909         * emultempl/hppaelf.em, * emultempl/linux.em,
910         * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
911         * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
912         * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
913         * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
914         * emultempl/pep.em, * emultempl/ppc32elf.em,
915         * emultempl/ppc64elf.em, * emultempl/rxelf.em,
916         * emultempl/rxlinux.em, * emultempl/scoreelf.em,
917         * emultempl/solaris2.em, * emultempl/spuelf.em,
918         * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
919         * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
920         * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
921         * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
922         * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
923         * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
924         * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
925         * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
926         * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
927         bfd_boolean with bool, FALSE with false, and TRUE with true.
928         * configure: Regenerate.
930 2021-03-31  Alan Modra  <amodra@gmail.com>
932         * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
933         * emultempl/nds32elf.em: Likewise.
934         * testsuite/ld-elf/mbind2b.c: Likewise.
935         * testsuite/ld-elf/pr18718.c: Likewise.
936         * testsuite/ld-elf/pr18720a.c: Likewise.
937         * testsuite/ld-elf/pr25749-1.c: Likewise.
938         * testsuite/ld-elf/pr25749-1a.c: Likewise.
939         * testsuite/ld-elf/pr25749-1b.c: Likewise.
940         * testsuite/ld-elf/pr25749-1c.c: Likewise.
941         * testsuite/ld-elf/pr25749-1d.c: Likewise.
942         * testsuite/ld-elf/pr25749-2.c: Likewise.
943         * testsuite/ld-elf/pr25754-1a.c: Likewise.
944         * testsuite/ld-elf/pr25754-2a.c: Likewise.
945         * testsuite/ld-elf/pr25754-3a.c: Likewise.
946         * testsuite/ld-elf/pr25754-4a.c: Likewise.
947         * testsuite/ld-elf/pr25754-5a.c: Likewise.
948         * testsuite/ld-elf/pr25754-6a.c: Likewise.
950 2021-03-29  Alan Modra  <amodra@gmail.com>
952         * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
953         boolean expression.
954         * lexsup.c (parse_args): Likewise.
955         * pe-dll.c (pe_dll_id_target): Likewise.
957 2021-03-25  Nick Alcock  <nick.alcock@oracle.com>
959         * testsuite/ld-ctf/array.d: Only check that the data object
960         section is nonempty: do not check its exact size.
961         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
962         * testsuite/ld-ctf/slice.d: Likewise.
963         * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
964         func info section too.
965         * testsuite/ld-ctf/function.d: Likewise, for the func info section.
967 2021-03-22  Martin Liska  <mliska@suse.cz>
969         * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
970         * emultempl/beos.em: Likewise.
971         * emultempl/elf.em: Likewise.
972         * emultempl/pe.em: Likewise.
973         * emultempl/pep.em: Likewise.
974         * emultempl/xtensaelf.em: Likewise.
975         * ldctor.c (ctor_prio): Likewise.
976         * ldelf.c (ldelf_try_needed): Likewise.
977         (ldelf_parse_ld_so_conf): Likewise.
978         (ldelf_after_open): Likewise.
979         (output_rel_find): Likewise.
980         (ldelf_place_orphan): Likewise.
981         * ldfile.c (ldfile_add_library_path): Likewise.
982         * ldlang.c (lang_add_input_file): Likewise.
983         * ldmain.c (get_sysroot): Likewise.
984         (get_emulation): Likewise.
985         (add_archive_element): Likewise.
986         * ldwrite.c (unsplittable_name): Likewise.
987         (clone_section): Likewise.
988         * lexsup.c (parse_args): Likewise.
989         * pe-dll.c (is_import): Likewise.
990         (pe_implied_import_dll): Likewise.
992 2021-03-19  H.J. Lu  <hongjiu.lu@intel.com>
994         PR ld/27590
995         * testsuite/ld-x86-64/pr27590.rd: New file.
996         * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
997         * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
998         * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
1000 2021-03-20  Alan Modra  <amodra@gmail.com>
1002         PR 27590
1003         * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
1004         for all sections except .stabstr.
1006 2021-03-19  Alan Modra  <amodra@gmail.com>
1008         PR 27590
1009         * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
1010         R_MIPS_NONE.
1011         * testsuite/ld-elf/pr27590b.d: Likewise.
1013 2021-03-18  H.J. Lu  <hongjiu.lu@intel.com>
1015         PR ld/27590
1016         * testsuite/ld-elf/pr27590.s: New file.
1017         * testsuite/ld-elf/pr27590a.d: Likewise.
1018         * testsuite/ld-elf/pr27590b.d: Likewise.
1019         * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
1020         --reduce-memory-overheads.
1022 2021-03-18  H.J. Lu  <hongjiu.lu@intel.com>
1024         PR ld/27587
1025         * testsuite/ld-x86-64/pr27587.err: New file.
1026         * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
1027         * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
1028         * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
1030 2021-03-18  Nick Alcock  <nick.alcock@oracle.com>
1032         * testsuite/ld-ctf/slice.c: Check slices of enums too.
1033         * testsuite/ld-ctf/slice.d: Results adjusted.
1035 2021-03-16  Nick Clifton  <nickc@redhat.com>
1037         * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
1038         lname string.
1040 2021-03-15  Jan Beulich  <jbeulich@suse.com>
1042         * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
1044 2021-03-12  Alan Modra  <amodra@gmail.com>
1046         * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
1047         (ALL_64_EMULATION_SOURCES): ..here.
1048         * Makefile.in: Regenerate.
1050 2021-03-12  Clément Chigot  <clement.chigot@atos.net>
1052         * emultempl/aix.em: Ensure .tdata section is removed
1053         if empty, even with -r flag.
1054         * scripttempl/aix.sc: Handle TLS sections.
1055         * testsuite/ld-powerpc/aix52.exp: Add new tests.
1056         * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
1057         * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
1058         * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
1059         * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
1060         * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
1061         * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
1062         * testsuite/ld-powerpc/aix-tls-section.ex: New test.
1063         * testsuite/ld-powerpc/aix-tls-section.s: New test.
1065 2021-03-12  Clément Chigot  <clement.chigot@atos.net>
1067         * scripttempl/aix.sc: Add .te to .data section.
1068         * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
1069         Add aix-largetoc-1 test.
1070         * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
1071         * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
1072         * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
1073         * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
1075 2021-03-12  Alan Modra  <amodra@gmail.com>
1077         * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
1078         arrange to define __main for some run_dump_test tests.
1079         * testsuite/ld-gc/pr13683.d: Accept more symbols.
1080         * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
1081         * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
1082         * testsuite/ld-srec/srec.exp: Likewise.
1083         * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
1085 2021-03-11  Nelson Chu  <nelson.chu@sifive.com>
1087         * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
1088         many times if riscv_restart_relax_sections returns TRUE.
1089         * testsuite/ld-riscv-elf/restart-relax.d: New testcase.  Before
1090         applying this patch, the call won't be relaxed to jal; But now we
1091         have more chances to do relaxations.
1092         * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
1093         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
1095 2021-03-10  Jan Beulich  <jbeulich@suse.com>
1097         * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
1098         than 32 set bits.
1099         * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
1100         comment.
1101         * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
1103 2021-03-09  Jan Beulich  <jbeulich@suse.com>
1105         * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
1106         alignment to 4k.
1107         * testsuite/ld-pe/reloc.d: xfail for mcore.
1109 2021-03-09  Jan Beulich  <jbeulich@suse.com>
1111         * testsuite/ld-scripts/alignof.exp,
1112         testsuite/ld-scripts/data.exp,
1113         testsuite/ld-scripts/default-script.exp,
1114         testsuite/ld-scripts/log2.exp,
1115         testsuite/ld-scripts/print-memory-usage.exp,
1116         testsuite/ld-scripts/sizeof.exp,
1117         testsuite/ld-undefined/weak-undef.exp: Set image base to zero
1118         for PE/COFF.
1119         * testsuite/ld-scripts/default-script1.d,
1120         testsuite/ld-scripts/default-script2.d,
1121         testsuite/ld-scripts/default-script3.d,
1122         testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
1124 2021-03-05  H.J. Lu  <hongjiu.lu@intel.com>
1126         PR ld/27425
1127         PR ld/27432
1128         * ldelf.c (ldelf_set_output_arch): New function.
1129         * ldelf.h (ldelf_set_output_arch): New prototype.
1130         * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
1131         ldelf_set_output_arch.
1132         * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
1133         * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1134         * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1135         * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1136         * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1137         * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1138         * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
1139         * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
1140         * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
1142 2021-03-04  Jan Beulich  <jbeulich@suse.com>
1144         * testsuite/ld-scripts/map-address.exp: Set image base to zero
1145         for PE/COFF.
1146         * testsuite/ld-scripts/map-address.t: Place .text.
1148 2021-03-04  Jan Beulich  <jbeulich@suse.com>
1150         * ldexp.c (ldexp_is_final_sym_absolute): New.
1151         * ldexp.h (ldexp_is_final_sym_absolute): Declare.
1152         * pe-dll.c (generate_reloc): Skip absolute symbols.
1153         * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
1154         * testsuite/ld-pe/pe.exp: Run new test.
1156 2021-03-03  Alan Modra  <amodra@gmail.com>
1158         PR 27500
1159         * ldlang.c (insert_undefined): Don't mark symbols here.
1160         (lang_mark_undefineds): Do so here instead, new function.
1161         (lang_process): Call lang_mark_undefineds.
1162         * testsuite/ld-gc/start3.d,
1163         * testsuite/ld-gc/start3.s: New test.
1164         * testsuite/ld-gc/start4.d,
1165         * testsuite/ld-gc/start4.s: New test.
1166         * testsuite/ld-gc/gc.exp: Run them.
1168 2021-03-03  Alan Modra  <amodra@gmail.com>
1170         * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
1171         Move tests with ELF section directives to is_elf_format block.
1172         * testsuite/ld-gc/abi-note.d: Run on more targets.
1173         * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
1174         * testsuite/ld-gc/start.d: Likewise.
1175         * testsuite/ld-gc/start2.d: Likewise.
1176         * testsuite/ld-gc/stop.d: Likewise.
1177         * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
1178         * testsuite/ld-gc/start.s: Likewise.
1179         * testsuite/ld-gc/start2.s: Likewise.
1181 2021-03-02  Nick Alcock  <nick.alcock@oracle.com>
1183         * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
1185 2021-03-02  Alan Modra  <amodra@gmail.com>
1187         * testsuite/ld-powerpc/startstop.d,
1188         * testsuite/ld-powerpc/startstop.r,
1189         * testsuite/ld-powerpc/startstop.s: New test.
1190         * testsuite/ld-powerpc/powerpc.exp: Run it.
1192 2021-03-02  Alan Modra  <amodra@gmail.com>
1194         * testsuite/ld-powerpc/weak1.d,
1195         * testsuite/ld-powerpc/weak1.r,
1196         * testsuite/ld-powerpc/weak1.s,
1197         * testsuite/ld-powerpc/weak1so.d,
1198         * testsuite/ld-powerpc/weak1so.r: New tests.
1199         * testsuite/ld-powerpc/powerpc.exp: Run them.
1201 2021-03-01  Hannes Domani  <ssbssa@sourceware.org>
1202             Nick Clifton  <nickc@redhat.com>
1204         PR 27268
1205         * scripttempl/pe.sc: Add DWARF-5 section names.
1206         * scripttempl/pep.sc: Likewise.
1208 2021-03-01  Alan Modra  <amodra@gmail.com>
1209             Fangrui Song <maskray@google.com>
1211         * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
1212         * lexsup.c (elf_static_list_options): Display help for them.  Move
1213         help for -z stack-size to here from elf_shlib_list_options. Add
1214         help for -z start-stop-visibility and -z undefs.
1215         * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
1216         * NEWS: Mention -z start-stop-gc.
1217         * testsuite/ld-gc/start2.s,
1218         * testsuite/ld-gc/start2.d: New test.
1219         * testsuite/ld-gc/gc.exp: Run it.
1221 2021-03-01  Alan Modra  <amodra@gmail.com>
1223         * ldlang.c (undef_start_stop): For ELF make undefined start/stop
1224         symbols undefweak if that was how they were referenced.  Undo
1225         dynamic state too.
1227 2021-03-01  Alan Modra  <amodra@gmail.com>
1229         * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
1230         * testsuite/ld-elf/pr27128a.d: Likewise.
1231         * testsuite/ld-elf/pr27128b.d: Likewise.
1232         * testsuite/ld-elf/pr27128c.d: Likewise.
1233         * testsuite/ld-elf/pr27128d.d: Likewise.
1234         * testsuite/ld-elf/pr27128e.d: Likewise.
1236 2021-02-26  Alan Modra  <amodra@gmail.com>
1238         PR 27441
1239         * testsuite/ld-plugin/pr27441a.c,
1240         * testsuite/ld-plugin/pr27441b.c,
1241         * testsuite/ld-plugin/pr27441c.c,
1242         * testsuite/ld-plugin/pr27441c.d: New test.
1243         * testsuite/ld-plugin/lto.exp: Run it.
1245 2021-02-25  Jan Beulich  <jbeulich@suse.com>
1247         * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
1249 2021-02-21  Alan Modra  <amodra@gmail.com>
1251         * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
1252         defined in an object file.
1253         * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
1254         * testsuite/ld-scripts/defined5.d: Expect a warning.
1256 2021-02-19  Alan Modra  <amodra@gmail.com>
1258         * testsuite/lib/ld-lib.exp: Whitespace.
1259         (load_common_lib): Expand single use and delete this proc.
1260         (run_host_cmd): Use -fno-lto when getting gcc's ld version.
1261         Use -B for clang too.
1263 2021-02-18  Andrew Burgess  <andrew.burgess@embecosm.com>
1265         * testplugin.c (record_read_length): Remove debug fprintf.
1267 2021-02-14  Alan Modra  <amodra@gmail.com>
1269         * testsuite/ld-cdtest/cdtest.exp,
1270         * testsuite/ld-checks/checks.exp,
1271         * testsuite/ld-elf/binutils.exp,
1272         * testsuite/ld-elf/compress.exp,
1273         * testsuite/ld-elf/dwarf.exp,
1274         * testsuite/ld-elf/exclude.exp,
1275         * testsuite/ld-elf/frame.exp,
1276         * testsuite/ld-elf/indirect.exp,
1277         * testsuite/ld-elf/linux-x86.exp,
1278         * testsuite/ld-elf/sec-to-seg.exp,
1279         * testsuite/ld-elf/tls_common.exp,
1280         * testsuite/ld-elfcomm/elfcomm.exp,
1281         * testsuite/ld-elfvers/vers.exp,
1282         * testsuite/ld-elfvsb/elfvsb.exp,
1283         * testsuite/ld-elfweak/elfweak.exp,
1284         * testsuite/ld-ifunc/binutils.exp,
1285         * testsuite/ld-mips-elf/mips-elf-flags.exp,
1286         * testsuite/ld-misc/defsym.exp,
1287         * testsuite/ld-mn10300/mn10300.exp,
1288         * testsuite/ld-plugin/lto.exp,
1289         * testsuite/ld-plugin/plugin.exp,
1290         * testsuite/ld-scripts/align.exp,
1291         * testsuite/ld-scripts/assert.exp,
1292         * testsuite/ld-scripts/crossref.exp,
1293         * testsuite/ld-scripts/defined.exp,
1294         * testsuite/ld-scripts/extern.exp,
1295         * testsuite/ld-scripts/log2.exp,
1296         * testsuite/ld-scripts/map-address.exp,
1297         * testsuite/ld-scripts/phdrs.exp,
1298         * testsuite/ld-scripts/phdrs2.exp,
1299         * testsuite/ld-scripts/script.exp,
1300         * testsuite/ld-scripts/section-flags.exp,
1301         * testsuite/ld-scripts/sizeof.exp,
1302         * testsuite/ld-scripts/weak.exp,
1303         * testsuite/ld-selective/selective.exp,
1304         * testsuite/ld-sh/sh.exp,
1305         * testsuite/ld-shared/shared.exp,
1306         * testsuite/ld-srec/srec.exp,
1307         * testsuite/ld-tic6x/tic6x.exp,
1308         * testsuite/ld-undefined/undefined.exp,
1309         * testsuite/ld-undefined/weak-undef.exp,
1310         * testsuite/lib/ld-lib.exp: Don't use unresolved except after
1311         perror.  Instead report "unsupported" or "fail".
1313 2021-02-12  Nick Clifton  <nickc@redhat.com>
1315         * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
1316         following debug links.
1318 2021-02-11  Alan Modra  <amodra@gmail.com>
1320         * NEWS: Mention arm-symbianelf removal.
1322 2021-02-09  Alan Modra  <amodra@gmail.com>
1324         * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
1325         Don't include symbian dep file.
1326         * configure.tgt: Remove arm*-*-symbianelf* entry.
1327         * emulparams/armsymbian.sh: Delete.
1328         * ld.texi: Don't mention symbian.
1329         * scripttempl/armbpabi.sc: Delete.
1330         * testsuite/ld-arm/symbian-seg1.d: Delete.
1331         * testsuite/ld-arm/symbian-seg1.s: Delete.
1332         * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
1333         * Makefile.in: Regenerate.
1334         * po/BLD-POTFILES.in: Regenerate.
1336 2021-02-07  H.J. Lu  <hongjiu.lu@intel.com>
1338         PR ld/27358
1339         * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
1340         tests.
1341         * testsuite/ld-x86-64/x86-64.exp: Likewise.
1343 2021-01-26  Nick Alcock  <nick.alcock@oracle.com>
1345         * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
1346         when appropriate.
1348 2021-02-04  H.J. Lu  <hongjiu.lu@intel.com>
1350         PR ld/19609
1351         * testsuite/ld-x86-64/pr19609-2a.d: Updated.
1352         * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
1353         * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
1354         * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
1355         * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
1356         * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
1357         * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
1359 2021-02-04  H.J. Lu  <hongjiu.lu@intel.com>
1361         PR ld/15146
1362         * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
1363         * testsuite/ld-plugin/pr15146.d: Restored.
1364         * testsuite/ld-plugin/pr15146a.c: Likewise.
1365         * testsuite/ld-plugin/pr15146b.c: Likewise.
1366         * testsuite/ld-plugin/pr15146c.c: Likewise.
1367         * testsuite/ld-plugin/pr15146d.c: Likewise.
1369 2021-02-04  Alan Modra  <amodra@gmail.com>
1371         * testsuite/ld-plugin/pr27311d.c: New test.
1372         * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
1373         and link new test as pr27311-2.
1375 2021-02-03  Alan Modra  <amodra@gmail.com>
1377         * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
1378         Link with --as-needed.
1380 2021-02-02  Alan Modra  <amodra@gmail.com>
1382         * testsuite/ld-plugin/pr27311.d,
1383         * testsuite/ld-plugin/pr27311.ver,
1384         * testsuite/ld-plugin/pr27311a.c,
1385         * testsuite/ld-plugin/pr27311b.c,
1386         * testsuite/ld-plugin/pr27311c.c: New testcase.
1387         * testsuite/ld-plugin/lto.exp: Run it.  Correct PR14918 and
1388         PR12982 entries.
1390 2021-02-01  Emery Hemingway  <ehmry@posteo.net>
1392         * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1394 2021-02-01  Alan Modra  <amodra@gmail.com>
1396         * ldgram.y (defsym_expr): Use assignment rule.
1397         * ldlex.h (ldlex_defsym): Delete.
1398         * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
1400 2021-02-01  Alan Modra  <amodra@gmail.com>
1402         * ldgram.y (section): Call ldlex_backup.  Remove empty action.
1403         * ldlex.h (ldlex_backup): Declare.
1404         * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
1405         chars, use SYMBOLNAMECHAR.
1406         (ldlex_backup): New function.
1408 2021-02-01  Alan Modra  <amodra@gmail.com>
1410         * ldgram.y: Whitespace fixes.
1412 2021-02-01  Alan Modra  <amodra@gmail.com>
1414         * testsuite/ld-elf/pr27259.d: Correct sh_link match.
1416 2021-01-29  Alan Modra  <amodra@gmail.com>
1418         * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
1420 2021-01-28  H.J. Lu  <hongjiu.lu@intel.com>
1422         PR ld/27259
1423         * testsuite/ld-elf/pr27259.d: New file.
1424         * testsuite/ld-elf/pr27259.s: Likewise.
1426 2021-01-28  Alan Modra  <amodra@gmail.com>
1428         PR 27259
1429         * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
1430         prevent endless looping of linked-to sections.
1432 2021-01-26  H.J. Lu  <hongjiu.lu@intel.com>
1434         * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
1436 2021-01-26  Alan Modra  <amodra@gmail.com>
1438         PR 27226
1439         * emulparams/alphavms.sh: Don't set COMPILE_IN.
1440         * emulparams/elf64_ia64_vms.sh: Likewise.
1441         * emulparams/elf64mmix.sh: Likewise.
1442         * emulparams/elf_iamcu.sh: Likewise.
1443         * emulparams/elf_k1om.sh: Likewise.
1444         * emulparams/elf_l1om.sh: Likewise.
1445         * emulparams/mmo.sh: Likewise.
1446         * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
1447         * scripttempl/pdp11.sc: Use it.
1448         * emultempl/pdp11.em: Don't edit .xn script for separate_code,
1449         instead use .xe script.  Support scripts from file system.
1450         * emultempl/beos.em: Support scripts from file system.
1451         * emultempl/pe.em: Likewise.
1452         * emultempl/pep.em: Likewise.
1453         * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
1455 2021-01-25  Fangrui Song  <maskray@google.com>
1457         PR ld/27230
1458         * scripttempl/DWARF.sc: Add .debug_* sections.
1460 2021-01-25  Nick Clifton  <nickc@redhat.com>
1462         * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
1463         .debug_line_str and .debug_str_offsets.  Move .debug_macro and
1464         .debug_addr into DWARF-5 section.
1466 2021-01-21  Alan Modra  <amodra@gmail.com>
1468         * testsuite/ld-elf/pr26936.d: No longer xfail mips.
1470 2021-01-20  Alan Modra  <amodra@gmail.com>
1472         * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
1473         * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
1474         * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
1475         * testsuite/ld-powerpc/tlsget.wf: Likewise.
1476         * testsuite/ld-powerpc/tlsget2.d: Likewise.
1477         * testsuite/ld-powerpc/tlsget2.wf: Likewise.
1478         * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
1479         * testsuite/ld-powerpc/tlsexe32.r: Likewise.
1480         * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
1481         * testsuite/ld-powerpc/tlsexeno.r: Likewise.
1482         * testsuite/ld-powerpc/tlsexenors.r: Likewise.
1483         * testsuite/ld-powerpc/tlsexers.r: Likewise.
1484         * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
1485         * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
1486         * testsuite/ld-powerpc/tlsso.r: Likewise.
1487         * testsuite/ld-powerpc/tlsso32.r: Likewise.
1488         * testsuite/ld-powerpc/tlstocso.r: Likewise.
1490 2021-01-19  Nick Alcock  <nick.alcock@oracle.com>
1492         * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
1493         symbols by the optimizer.
1494         * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
1496 2021-01-19  Nelson Chu  <nelson.chu@sifive.com>
1498         * testsuite/ld-elf/elf.exp (riscv_little_endian): Added.  Return true
1499         if target is riscv little endian.  Otherwise, return false.
1500         * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
1501         targets by [riscv_little_endian].
1503 2021-01-18  Alan Modra  <amodra@gmail.com>
1505         PR 26378
1506         * ldlang.c (map_input_to_output_sections): Start with a read-only
1507         section for data statements.
1508         * testsuite/ld-elf/size-2.d: Adjust to suit.
1510 2021-01-17  H.J. Lu  <hongjiu.lu@intel.com>
1512         PR ld/27193
1513         * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
1514         * testsuite/ld-i386/pr27193.dd: New file.
1515         * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
1516         * testsuite/ld-i386/pr27193b.s: Likewise.
1518 2021-01-16  H.J. Lu  <hongjiu.lu@intel.com>
1520         PR binutils/23460
1521         * testsuite/ld-plugin/lto.exp: Increase the max number of open
1522         files to 20 for PR binutils/23460 test.
1524 2021-01-16  H.J. Lu  <hongjiu.lu@intel.com>
1526         PR ld/23169
1527         * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
1528         pr23169a.rd for pr23169c and pr23169f.  Remove pr23169e tests.
1529         * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
1530         address.
1532 2021-01-15  H.J. Lu  <hongjiu.lu@intel.com>
1534         * NEWS: Mention -z report-relative-reloc.
1535         * ld.texi: Document -z report-relative-reloc.
1536         * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
1537         * emulparams/elf_i386.sh: Likewse.
1538         * emulparams/elf_x86_64.sh: Likewse.
1539         * emulparams/x86-report-relative.sh: New file.
1540         * testsuite/ld-i386/report-reloc-1.d: Likewse.
1541         * testsuite/ld-i386/report-reloc-1.l: Likewse.
1542         * testsuite/ld-i386/report-reloc-1.s: Likewse.
1543         * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
1544         * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
1545         * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
1546         * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
1547         * testsuite/ld-i386/i386.exp: Run report-reloc-1.
1548         * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
1549         report-reloc-1-x32.
1551 2021-01-16  Alan Modra  <amodra@gmail.com>
1553         PR 26002
1554         * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
1555         unversioned symbols.
1556         * testsuite/ld-elfvers/vers16.dsym: Likewise.
1558 2021-01-15  Nelson Chu  <nelson.chu@sifive.com>
1560         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
1561         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
1562         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
1563         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
1564         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
1565         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
1567 2021-01-14  Nick Clifton  <nickc@redhat.com>
1569         * po/fr.po: Updated French translation.
1571 2021-01-14  Mike Frysinger  <vapier@gentoo.org>
1573         * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
1575 2021-01-14  Alan Modra  <amodra@gmail.com>
1577         PR 27160
1578         * ldelfgen.c (compare_link_order): Protect access of ELF section
1579         data.
1580         (add_link_order_input_section): Remove redundant NULL check.
1581         Use bfd_get_flavour.
1582         (ldelf_map_segments): Use bfd_get_flavour.
1584 2021-01-13  H.J. Lu  <hongjiu.lu@intel.com>
1586         * ldelfgen.c (add_link_order_input_section): Check for ELF input
1587         before accessing ELF section data.
1589 2021-01-13  Alan Modra  <amodra@gmail.com>
1591         * Makefile.in: Regenerate.
1593 2021-01-13  Alan Modra  <amodra@gmail.com>
1595         PR 27160
1596         * ldlang.h (lang_output_section_statement_type): Add data field.
1597         (lang_input_section_type, lang_section_bst_type): Add pattern field.
1598         (statement_list): Declare.
1599         (lang_add_section): Adjust prototype.
1600         * emultempl/aarch64elf.em: Adjust lang_add_section calls.
1601         * emultempl/armelf.em: Likewise.
1602         * emultempl/beos.em: Likewise.
1603         * emultempl/cskyelf.em: Likewise.
1604         * emultempl/hppaelf.em: Likewise.
1605         * emultempl/m68hc1xelf.em: Likewise.
1606         * emultempl/metagelf.em: Likewise.
1607         * emultempl/mipself.em: Likewise.
1608         * emultempl/mmo.em: Likewise.
1609         * emultempl/msp430.em: Likewise.
1610         * emultempl/nios2elf.em: Likewise.
1611         * emultempl/pe.em: Likewise.
1612         * emultempl/pep.em: Likewise.
1613         * emultempl/ppc64elf.em: Likewise.
1614         * emultempl/spuelf.em: Likewise.
1615         * emultempl/vms.em: Likewise.
1616         * ldelf.c: Likewise.
1617         * ldelfgen.c: Include ldctor.h.
1618         (struct os_sections): New.
1619         (add_link_order_input_section, link_order_scan): New functions.
1620         (compare_link_order, fixup_link_order): New functions.
1621         (ldelf_map_segments): Call link_order_scan and fixup_link_order.
1622         * ldlang.c (statement_list): Make global.
1623         (output_section_callback_fast): Save pattern in tree node.
1624         (lang_add_section): Add pattern parameter, save in lang_input_section.
1625         (output_section_callback_tree_to_list): Adjust lang_add_section calls.
1626         (lang_insert_orphan, output_section_callback): Likewise.
1627         (ldlang_place_orphan): Likewise.
1628         (gc_section_callback): Don't set section->pattern.
1629         * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
1630         * testsuite/ld-elf/pr26256-3b.d: Likewise.
1631         * testsuite/ld-elf/pr26256-2b.d: Likewise.  notarget xgate.
1633 2021-01-13  Alan Modra  <amodra@gmail.com>
1635         * ldlang.h (callback_t): Remove flag_info function parameter.
1636         * ldlang.c (walk_wild_consider_section): Adjust to suit.
1637         (walk_wild_section_general): Likewise.
1638         (output_section_callback_fast, output_section_callback): Likewise.
1639         (check_section_callback, gc_section_callback): Likewise.
1640         (find_relro_section_callback): Likewise.
1642 2021-01-12  H.J. Lu  <hongjiu.lu@intel.com>
1644         PR binutils/26792
1645         * configure.ac: Use GNU_MAKE_JOBSERVER.
1646         * aclocal.m4: Regenerated.
1647         * configure: Likewise.
1649 2021-01-12  H.J. Lu  <hongjiu.lu@intel.com>
1651         PR ld/27171
1652         * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
1653         * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1654         * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1655         * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
1657 2021-01-11  H.J. Lu  <hongjiu.lu@intel.com>
1659         PR ld/27173
1660         * configure: Regenerated.
1662 2021-01-11  Matt Jenkins  <matt@majenko.co.uk>
1664         PR ld/27167
1665         * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
1666         and mips64r5 to list of known mips targets.
1668 2021-01-11  Nick Clifton  <nickc@redhat.com>matt@majenko.co.uk
1670         * po/pt_BR.po: Updated Brazilian Portuguese translation.
1671 `       * po/uk.po: Updated Ukranian translation.
1673 2021-01-09  H.J. Lu  <hongjiu.lu@intel.com>
1675         * configure: Regenerated.
1677 2021-01-09  H.J. Lu  <hongjiu.lu@intel.com>
1679         PR ld/27166
1680         * testsuite/ld-x86-64/lam-u48.rd: New file.
1681         * testsuite/ld-x86-64/lam-u57.rd: Likewise.
1682         * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
1684 2021-01-09  Nick Clifton  <nickc@redhat.com>
1686         * configure: Regenerate.
1687         * po/ld.pot: Regenerate.
1689 2021-01-09  Nick Clifton  <nickc@redhat.com>
1691         * 2.36 release branch crated.
1693 2021-01-08  H.J. Lu  <hongjiu.lu@intel.com>
1695         * ld-x86-64/property-x86-lam-u48-4.d: Updated.
1696         * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
1698 2021-01-09  Alan Modra  <amodra@gmail.com>
1700         * configure: Regenerate.
1701         * Makefile.in: Regenerate.
1703 2021-01-07  Samuel Thibault  <samuel.thibault@gnu.org>
1705         * configure: Regenerate.
1707 2021-01-07  H.J. Lu  <hongjiu.lu@intel.com>
1709         PR 27109
1710         * testsuite/ld-elf/export-class.sd: Adjust the expected output.
1711         * testsuite/ld-elf/loadaddr3b.d: Likewise.
1712         * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1713         * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1714         * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1715         * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1716         * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1717         * testsuite/ld-i386/pr19636-1d.d: Likewise.
1718         * testsuite/ld-i386/pr19636-1l.d: Likewise.
1719         * testsuite/ld-i386/pr19636-2c.d: Likewise.
1720         * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1721         * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1722         * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1723         * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1724         * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1725         * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1726         * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1727         * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1728         * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1729         * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1730         * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1731         * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1732         * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1733         * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1734         * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1735         * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1736         * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1737         * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1738         * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1739         * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1740         * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1741         * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1742         * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1743         * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1744         * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1745         * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1746         * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
1747         * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
1748         * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
1749         * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
1750         * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
1751         * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
1752         * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1753         * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
1754         * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1755         * testsuite/ld-x86-64/pr21038b.d: Likewise.
1756         * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1757         * testsuite/ld-x86-64/pr21038c.d: Likewise.
1758         * testsuite/ld-x86-64/pr23854.d: Likewise.
1759         * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1760         * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1761         * testsuite/ld-i386/plt-pic.pd: Likewise.
1762         * testsuite/ld-i386/plt-pic2.dd: Likewise.
1763         * testsuite/ld-i386/plt.pd: Likewise.
1764         * testsuite/ld-i386/plt2.dd: Likewise.
1765         * testsuite/ld-i386/tlsbin.rd: Likewise.
1766         * testsuite/ld-i386/tlsbin2.rd: Likewise.
1767         * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1768         * testsuite/ld-i386/tlsdesc.rd: Likewise.
1769         * testsuite/ld-i386/tlsgdesc.rd: Likewise.
1770         * testsuite/ld-i386/tlsnopic.rd: Likewise.
1771         * testsuite/ld-i386/tlspic.rd: Likewise.
1772         * testsuite/ld-i386/tlspic2.rd: Likewise.
1773         * testsuite/ld-x86-64/mpx3.dd: Likewise.
1774         * testsuite/ld-x86-64/mpx3n.dd: Likewise.
1775         * testsuite/ld-x86-64/mpx4.dd: Likewise.
1776         * testsuite/ld-x86-64/mpx4n.dd: Likewise.
1777         * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
1778         * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1779         * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1780         * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1781         * testsuite/ld-x86-64/plt.pd: Likewise.
1782         * testsuite/ld-x86-64/plt2.dd: Likewise.
1783         * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1784         * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1785         * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1786         * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1787         * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
1788         * testsuite/ld-x86-64/tlspic.rd: Likewise.
1789         * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1790         * testsuite/ld-elf/sec64k.exp: Check
1791         is_elf_unused_section_symbols.
1793 2021-01-07  Alan Modra  <amodra@gmail.com>
1795         * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
1796         * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
1797         * testsuite/ld-scripts/segment-start.d: Likewise.
1799 2021-01-07  Alan Modra  <amodra@gmail.com>
1801         * testsuite/ld-elf/comm-data5.d: xfail targets that complain
1802         about dynamic relocations in read-only sections.
1803         * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1804         * testsuite/ld-elf/ehdr_start.d: Likewise.
1805         * testsuite/ld-scripts/pr22267.d: Likewise.
1806         * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
1807         pr20995 text.
1808         * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
1810 2021-01-07  Marcus Comstedt  <marcus@mc.pp.se>
1812         * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
1813         * testsuite/ld-scripts/empty-address-2b.d: Likewise.
1815 2021-01-07  Alan Modra  <amodra@gmail.com>
1817         * po/BLD-POTFILES.in: Regenerate.
1819 2021-01-07  Alan Modra  <amodra@gmail.com>
1821         * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
1822         complain about relocs in read-only sections.  Tidy ASFLAGS append.
1824 2021-01-06  Alan Modra  <amodra@gmail.com>
1826         * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
1827         base for some tests.
1828         * testsuite/ld-sparc/gotop32.dd: Match solaris output.
1829         * testsuite/ld-sparc/gotop32.sd: Likewise.
1830         * testsuite/ld-sparc/gotop32.td: Likewise.
1831         * testsuite/ld-sparc/gotop64.dd: Likewise.
1832         * testsuite/ld-sparc/gotop64.sd: Likewise.
1833         * testsuite/ld-sparc/gotop64.td: Likewise.
1834         * testsuite/ld-sparc/tlsg32.sd: Likewise.
1835         * testsuite/ld-sparc/tlsg64.sd: Likewise.
1836         * testsuite/ld-sparc/tlspie32.dd: Likewise.
1837         * testsuite/ld-sparc/tlspie64.dd: Likewise.
1838         * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
1839         * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
1840         * testsuite/ld-sparc/tlssunbin32.td: Likewise.
1841         * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
1842         * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
1843         * testsuite/ld-sparc/tlssunbin64.td: Likewise.
1844         * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
1845         * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
1846         * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
1847         * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
1848         * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
1849         * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
1850         * testsuite/ld-sparc/tlssunpic32.td: Likewise.
1851         * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
1852         * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
1853         * testsuite/ld-sparc/tlssunpic64.td: Likewise.
1854         * testsuite/ld-sparc/wdispcall.dd: Likewise.
1856 2021-01-06  Alan Modra  <amodra@gmail.com>
1858         * testsuite/ld-scripts/rgn-at10.d: xfail v850.
1859         * testsuite/ld-scripts/rgn-at11.d: Likewise.
1861 2021-01-06  Marcus Comstedt  <marcus@mc.pp.se>
1863         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
1864         riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
1865         * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
1866         riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
1867         * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1868         * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1869         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1870         * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
1871         * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
1872         * testsuite/ld-riscv-elf/c-lui.d: Likewise.
1873         * testsuite/ld-riscv-elf/call-relax.d: Likewise.
1874         * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
1875         * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
1876         * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
1877         to littleriscv.
1878         * testsuite/ld-riscv-elf/weakref64.d: Likewise.
1880 2021-01-06  Marcus Comstedt  <marcus@mc.pp.se>
1882         * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
1883         riscv32be*-*-linux*, and riscv64be*-*-linux*.
1884         * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
1885         eelf32briscv_ilp32.c.
1886         * Makefile.in: Regenerate.
1887         * emulparams/elf32briscv.sh: Added.
1888         * emulparams/elf32briscv_ilp32.sh: Likewise.
1889         * emulparams/elf32briscv_ilp32f.sh: Likewise.
1890         * emulparams/elf64briscv.sh: Likewise.
1891         * emulparams/elf64briscv_lp64.sh: Likewise.
1892         * emulparams/elf64briscv_lp64f.sh: Likewise.
1894 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
1896         * testsuite/ld-ctf/enum-forward.c: New test.
1897         * testsuite/ld-ctf/enum-forward.c: New results.
1899 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
1901         * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1902         * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1903         * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1904         * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1905         * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1906         * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1907         * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1908         * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1909         * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1910         * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1911         * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1912         * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1913         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1914         * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1915         * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1916         * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1917         * testsuite/ld-ctf/cycle-1.d: Likewise.
1918         * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1919         * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1920         * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1921         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1922         * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1923         * testsuite/ld-ctf/diag-cuname.d: Likewise.
1924         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1925         * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1926         * testsuite/ld-ctf/forward.d: Likewise.
1927         * testsuite/ld-ctf/function.d: Likewise.
1928         * testsuite/ld-ctf/slice.d: Likewise.
1929         * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1930         * testsuite/ld-ctf/enums.c: New test.
1931         * testsuite/ld-ctf/enums.d: New test.
1933 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
1935         * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
1936         changes.
1937         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1938         * testsuite/ld-ctf/forward.c: New test...
1939         * testsuite/ld-ctf/forward.d: ... and results.
1941 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
1943         * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1944         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1945         * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1946         * testsuite/ld-ctf/diag-cuname.d: Likewise.
1947         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1948         * testsuite/ld-ctf/function.d: Likewise.
1949         * testsuite/ld-ctf/slice.d: Likewise.
1951 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
1953         * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1954         * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1955         * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1956         * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1957         * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1958         * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1959         * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1960         * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1961         * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1962         * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1963         * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1964         * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1965         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1966         * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1967         * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1968         * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1969         * testsuite/ld-ctf/cycle-1.d: Likewise.
1970         * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1971         * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1972         * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1973         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1974         * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1975         * testsuite/ld-ctf/diag-cuname.d: Likewise.
1976         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1977         * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1978         * testsuite/ld-ctf/function.d: Likewise.
1979         * testsuite/ld-ctf/slice.d: Likewise.
1980         * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1982 2021-01-05  Alan Modra  <amodra@gmail.com>
1984         * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
1986 2021-01-05  Alan Modra  <amodra@gmail.com>
1988         PR ld/26256
1989         * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
1990         * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
1992 2021-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1994         PR ld/26256
1995         * ldlang.c (gc_section_callback): Set pattern.
1996         * testsuite/ld-elf/pr26256-1.s: New file.
1997         * testsuite/ld-elf/pr26256-1.t: Likewise.
1998         * testsuite/ld-elf/pr26256-1a.d: Likewise.
1999         * testsuite/ld-elf/pr26256-1b.d: Likewise.
2000         * testsuite/ld-elf/pr26256-2.s: Likewise.
2001         * testsuite/ld-elf/pr26256-2.t: Likewise.
2002         * testsuite/ld-elf/pr26256-2a.d: Likewise.
2003         * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
2004         * testsuite/ld-elf/pr26256-2b.d: Likewise.
2005         * testsuite/ld-elf/pr26256-3.s: Likewise.
2006         * testsuite/ld-elf/pr26256-3a.d: Likewise.
2007         * testsuite/ld-elf/pr26256-3a.t: Likewise.
2008         * testsuite/ld-elf/pr26256-3b.d: Likewise.
2009         * testsuite/ld-elf/pr26256-3b.t: Likewise.
2011 2021-01-04  Alan Modra  <amodra@gmail.com>
2013         PR 26822
2014         * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
2015         * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
2016         * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
2017         * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
2018         * testsuite/ld-i386/tlsbin.rd: Likewise.
2019         * testsuite/ld-i386/tlsbin2.rd: Likewise.
2020         * testsuite/ld-i386/tlsbindesc.rd: Likewise.
2021         * testsuite/ld-i386/tlsdesc.rd: Likewise.
2022         * testsuite/ld-i386/tlsnopic.rd: Likewise.
2023         * testsuite/ld-i386/tlspic.rd: Likewise.
2024         * testsuite/ld-i386/tlspic2.rd: Likewise.
2025         * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
2026         * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
2027         * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
2028         * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
2029         * testsuite/ld-plugin/pr17973.d: Likewise.
2030         * testsuite/ld-tic6x/shlib-1.rd: Likewise.
2031         * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
2032         * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
2033         * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
2034         * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
2035         * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
2036         * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
2037         * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
2038         * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
2039         * testsuite/ld-tic6x/static-app-1.rd: Likewise.
2040         * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
2041         * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
2042         * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
2043         * testsuite/ld-x86-64/tlsbin.rd: Likewise.
2044         * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
2045         * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
2046         * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
2047         * testsuite/ld-x86-64/tlspic.rd: Likewise.
2048         * testsuite/ld-x86-64/tlspic2.rd: Likewise.
2049         * testsuite/ld-xtensa/tlsbin.rd: Likewise.
2050         * testsuite/ld-xtensa/tlspic.rd: Likewise.
2052 2021-01-01  Nicolas Boulenguez  <nicolas@debian.org>
2054         * configure.tgt: Correct comment grammar.
2055         * emultempl/m68hc1xelf.em: Likewise.
2056         * ld.texi: Correct grammar.
2058 2021-01-01  Alan Modra  <amodra@gmail.com>
2060         Update year range in copyright notice of all files.
2062 For older changes see ChangeLog-2020
2064 Copyright (C) 2021-2023 Free Software Foundation, Inc.
2066 Copying and distribution of this file, with or without modification,
2067 are permitted in any medium without royalty provided the copyright
2068 notice and this notice are preserved.
2070 Local Variables:
2071 mode: change-log
2072 left-margin: 8
2073 fill-column: 74
2074 version-control: never
2075 End: