V850 Linker: do not complain about RWX segments.
[binutils-gdb.git] / ld / ChangeLog
blob8f0528ffb3cff6175dc55d745f7e7ad4f10c9b56
1 2022-11-03  Nick Clifton  <nickc@redhat.com>
3         PR 29748
4         * configure.tgt (ac_default_ld_warn_rwx_segments): Set to 0 for
5         the V850.
7 2022-11-03  Nick Clifton  <nickc@redhat.com>
9         PR 29741
10         * scripttempl/avr.sc (__DATA_REGION_ORIGIN__): Define.  If a value
11         has not been provided on the command line then use DATA_ORIGIN.
12         (MEMORY): Use __DATA_REGION_ORIGIN__ as the start of the data region.
14 2022-10-21  Nick Clifton  <nickc@redhat.com>
16         PR 29654
17         * ld.h (struct ld_config_type): Add no_warnings field.
18         * ldlex.h (enum option_values): Add OPTION_NO_WARNINGS.
19         * lexsup.c (ld_options): Add --no-warnings.
20         (parse_args): Add support for -w and --no-warnings.
21         * ldmisc.c (vfinfo): Return early if the message is a warning and
22         -w has been enabled.
23         * ld.texi (options): Document new command line option.
24         * NEWS: Mention the new feature.
26 2022-08-30  Nick Clifton  <nickc@redhat.com>
28         PR 29529
29         * testsuite/ld-x86-64/pr27587.err: Update expected output.
31 2022-08-18  Ralf Habacker  <ralf.habacker@freenet.de>
33         PR 28362
34         * testsuite/ld-pe/pe-run2-def.exp: New file.
36 2022-08-03  Alan Modra  <amodra@gmail.com>
38         PR 29389
39         * ldlang.h (lang_input_statement_struct): Add sort_key field.
40         * emultempl/pe.em (after_open): If multiple import libraries refer
41         to the same bfd, store their names in the sort_key field.
42         * emultempl/pep.em (after_open): Likewise.
43         * ldlang.c (sort_filename): New function.  Returns the filename to
44         be used when sorting input files.
45         (wild_sort): Use the sort_filename function.
47 2022-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
49         PR ld/29411
50         * configure.tgt (ac_default_ld_warn_rwx_segments): Extend to all
51         sparc targets.  Expand comment.
53 2022-07-26  Nick Clifton  <nickc@redhat.com>
55         PR 29411
56         * configure.tgt (ac_default_ld_warn_rwx_segments): Disable for
57         sparc-solaris configurations.
59 2022-07-08  Nick Clifton  <nickc@redhat.com>
61         * 2.39 branch created.
63 2022-06-27  Nick Clifton  <nickc@redhat.com>
65         PR 29263
66         * configure.ac: Move HPPA specific code from here...
67         * configure.tgt: ... to here.  Add similar code for MIPS.
68         Move code for CRIS, MIPS and HPPA to block at start of file.
69         * configure: Regenerate.
71 2022-06-21  Nick Clifton  <nickc@redhat.com>
73         PR 29263
74         * configure.ac (ac_default_ld_warn_execstack): Default to 'no' for
75         HPPA targets.
76         (ac_default_ld_warn_rwx_segments): Likewise.
77         * configure: Regenerate.
78         * testsuite/ld-elf/elf.exp: Add the --warn-execstack command line
79         option to the command line when running execstack tests for the
80         HPPA target.
82 2022-05-12  Alan Modra  <amodra@gmail.com>
84         PR 29006
85         * pe-dll.c (dll_name): Delete, replacing with..
86         (dll_filename): ..this, moved earlier in file.
87         (generate_edata): Delete parameters.  Don't set up dll_name here..
88         (pe_process_import_defs): ..instead set up dll_filename and
89         dll_symname here before returning.
90         (dll_symname_len): Delete write-only variable.
91         (pe_dll_generate_implib): Don't set up dll_symname here.
93 2022-05-03  Nick Clifton  <nickc@redhat.com>
95         PR 29101
96         * libdep_plugin.c (get_libdeps): Check for overflow when computing
97         amount of memory to allocate.
99 2022-04-27  Nick Clifton  <nickc@redhat.com>
101         PR 29006
102         * pe-dll.c (make_head): Use asprintf to allocate and populate a
103         buffer containing the temporary name.
104         (make_tail, make_one, make_singleton_name_thunk): Likewise.
105         (make_import_fixup_mark, make_import_fixup_entry): Likewise.
106         (make_runtime_pseudo_reloc): Likewise.
107         (pe_create_runtime_relocator_reference): Likewise.
109 2022-04-25  Nick Clifton  <nickc@redhat.com>
111         PR 29072
112         * testsuite/ld-elf/pr29072.b.warn: Update to include the note
113         about the linker's behaviour being depreccated.
115 2022-04-20  Clément Chigot  <clement.chigot@atos.net>
117         * emultempl/aix.em (params): New variable.
118         (stub_file): New variable.
119         (xcoff_add_stub_section): New function.
120         (xcoff_layout_sections_again): New function
121         (hook_in_stub): New function.
122         (_after_allocation): Add stub creation.
123         (_create_output_section_statements): Allocate stub file and
124         pass params to backend.
126 2022-04-20  Clément Chigot  <clement.chigot@atos.net>
128         * emultempl/aix.em (_after_allocation): New function.
130 2022-04-07  Mark Harmstone  <mark@harmstone.com>
132         * testsuite/ld-pe/secidx1.s: New test source file.
133         * testsuite/ld-pe/secidx2.s: New test source file.
134         * testsuite/ld-pe/secidx.d: New test driver file.
135         * testsuite/ld-pe/secidx_64.d: New test driver file.
136         * testsuite/ld-pe/pe.exp: Add new tests.
138 2022-03-01  Nick Clifton  <nickc@redhat.com>
140         PR 21964
141         * testsuite/ld-elf/pr21964-1a.c: Fix array comparisons.
142         * testsuite/ld-elf/pr21964-1b.c: Likewise.
143         * testsuite/ld-elf/pr21964-1c.c: Likewise.
144         * testsuite/ld-elf/pr21964-2a.c: Likewise.
145         * testsuite/ld-elf/pr21964-2b.c: Likewise.
146         * testsuite/ld-elf/pr21964-3a.c: Likewise.
148 2022-02-17  Roland McGrath  <mcgrathr@google.com>
150         * ld.texi (Output Section Type): Fix typo in @code syntax.
152 2022-02-17  Nick Clifton  <nickc@redhat.com>
154         * po/sr.po: Updated Serbian translation.
156 2022-02-16  Fangrui Song  <maskray@google.com>
157             Nick Clifton  <nickc@redhat.com>
159         PR ld/28841
160         * ld.texi: Document new output section type.
161         * ldlex.l: Add new token TYPE.
162         * ldgram.y: Handle TYPE=exp and READONLY (TYPE=exp).
163         * ldlang.h: Add type_section to list of section types.
164         * ldlang.c (lang_add_section): Handle type_section.
165         (map_input_to_output_sections): Handle type_section.
166         * testsuite/ld-scripts/output-section-types.t: Add tests.
167         * testsuite/ld-scripts/output-section-types.d: Update.
169 2022-02-02  Nick Clifton  <nickc@redhat.com>
171         * po/fr.po: Updated French translation.
173 2022-01-24  Nick Clifton  <nickc@redhat.com>
175         * po/bg.po: Updated Bulgarian translation.
176         * po/uk.po: Updated Ukranian translation.
178 2022-01-22  Alexander von Gluck IV  <kallisti5@unixzen.com>
180         * configure.tgt (arm-haiku): Fix typo.
181         * emulparams/armelf_haiku.su (MAXPAGESIZE): Use the default value.
182         (COMMONPAGESIZE): Likewise.
184 2022-01-22  Nick Clifton  <nickc@redhat.com>
186         * configure: Regenerate.
187         * po/ld.pot: Regenerate.
189 2022-01-22  Nick Clifton  <nickc@redhat.com>
191         * 2.38 release branch created.
193 2022-01-21  Nick Clifton  <nickc@redhat.com>
195         * po/sr.po: Updated Serbian translation.
197 2022-01-17  Nick Clifton  <nickc@redhat.com>
199         * Makefile.in: Regenerate.
200         * po/ld.pot: Regenerate.
202 2022-01-11  Martin Storsjö  <martin@martin.st>
204         * pe-dll.c (make_head): Prefix the symbol name with the dll name.
205         (make_tail, make_one, make_singleton_name_thunk): Likewise.
206         (make_import_fixup_entry, make_runtime_pseudo_reloc): Likewise.
207         (pe_create_runtime_relocator_reference): Likewise.
208         (pe_dll_generate_implib): Set dll_symname_len.
209         (pe_process_import_defs): Likewise.
211 2021-12-16  Nick Clifton  <nickc@redhat.com>
213         PR 28686
214         * testsuite/ld-avr/avr-prop-7.d: Adjust expected output.
215         * testsuite/ld-avr/avr-prop-8.d: Likewise.
216         * testsuite/ld-avr/pr13402.d: Likewise.
218 2021-11-30  Nick Clifton  <nickc@redhat.com>
220         * scripttempl/pru.sc (.pru_irq_map): Define output section.
221         * testsuite/ld-pru/pru_irq_map-1.d: New test.
222         * testsuite/ld-pru/pru_irq_map-2.d: New test.
223         * testsuite/ld-pru/pru_irq_map.s: New test.
225 2021-11-17  Jeremy Drake  <cygwin@jdrake.com>
227         * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Set to 0 for
228         Cygwin targets.
229         * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Likewise.
231 2021-11-17  Nick Clifton  <nickc@redhat.com>
233         PR 28452
234         * ldgram.y: Add support for PT_GNU_RELRO and PT_GNU_PROPERTY.
235         * ldgram.c: Regenerate.
237 2021-11-15  Roland McGrath  <mcgrathr@google.com>
239         * testsuite/ld-aarch64/dt_textrel.d: Pass explicit -z notext in
240         case ld was configured with --enable-textrel-check=error.
241         * testsuite/ld-aarch64/pr22764.d: Likewise.
242         * testsuite/ld-aarch64/pr20402.d: Likewise.
244 2021-10-25  Nick Alcock  <nick.alcock@oracle.com>
246         * testsuite/ld-ctf/nonrepresentable-member.*: New test.
248 2021-10-25  Nick Alcock  <nick.alcock@oracle.com>
250         * testsuite/ld-ctf/array.d: Change --ctf=.ctf to --ctf.
251         * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
252         * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
253         * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
254         * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
255         * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
256         * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
257         * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
258         * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
259         * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
260         * testsuite/ld-ctf/conflicting-enums.d: Likewise.
261         * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
262         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
263         * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
264         * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
265         * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
266         * testsuite/ld-ctf/cycle-1.d: Likewise.
267         * testsuite/ld-ctf/cycle-2.A.d: Likewise.
268         * testsuite/ld-ctf/cycle-2.B.d: Likewise.
269         * testsuite/ld-ctf/cycle-2.C.d: Likewise.
270         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
271         * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
272         * testsuite/ld-ctf/diag-cuname.d: Likewise.
273         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
274         * testsuite/ld-ctf/enum-forward.d: Likewise.
275         * testsuite/ld-ctf/enums.d: Likewise.
276         * testsuite/ld-ctf/forward.d: Likewise.
277         * testsuite/ld-ctf/function.d: Likewise.
278         * testsuite/ld-ctf/nonrepresentable.d: Likewise.
279         * testsuite/ld-ctf/slice.d: Likewise.
280         * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
282 2021-09-30  Dimitar Dimitrov  <dimitar@dinux.eu>
284         * scripttempl/pru.sc (.resource_table): Align the output
285         section, not the first symbol.
287 2021-09-27  Nick Alcock  <nick.alcock@oracle.com>
289         * configure: Regenerate.
291 2021-09-21  Nick Clifton  <nickc@redhat.com>
293         * ldlang.c (lang_end): When computing the entry point, only
294         try the start address of the entry section when creating an
295         executable.
296         * ld.texi (Entry point): Update description of heuristic used to
297         choose the entry point.
298         testsuite/ld-alpha/tlspic.rd: Update expected entry point address.
299         testsuite/ld-arm/tls-gdesc-got.d: Likewise.
300         testsuite/ld-i386/tlsnopic.rd: Likewise.
301         testsuite/ld-ia64/tlspic.rd: Likewise.
302         testsuite/ld-sparc/gotop32.rd: Likewise.
303         testsuite/ld-sparc/gotop64.rd: Likewise.
304         testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
305         testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
306         testsuite/ld-sparc/tlssunpic32.rd: Likewise.
307         testsuite/ld-sparc/tlssunpic64.rd: Likewise.
308         testsuite/ld-tic6x/shlib-1.rd: Likewise.
309         testsuite/ld-tic6x/shlib-1b.rd: Likewise.
310         testsuite/ld-tic6x/shlib-1r.rd: Likewise.
311         testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
312         testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
313         testsuite/ld-x86-64/pr14207.d: Likewise.
314         testsuite/ld-x86-64/tlsdesc.rd: Likewise.
315         testsuite/ld-x86-64/tlspic.rd: Likewise.
316         testsuite/ld-x86-64/tlspic2.rd: Likewise.
318 2021-09-15  Claudiu Zissulescu  <claziss@synopsys.com>
320         * testsuite/ld-arc/got-weak.d: Update file.
322 2021-09-14  Claudiu Zissulescu  <claziss@synopsys.com>
324         * ld-arc/got-weak.d: New file.
325         * ld-arc/got-weak.s: Likewise.
327 2021-07-26  Roland McGrath  <mcgrathr@google.com>
329         * testsuite/ld-x86-64/x86-64.exp (Build textrel-1): Use --warn-textrel.
331 2021-07-06  Michael Matz  <matz@suse.de>
333         PR ld/28021
334         * testsuite/ld-riscv-elf/relax-twice.ver: New.
335         * testsuite/ld-riscv-elf/relax-twice-1.s: New.
336         * testsuite/ld-riscv-elf/relax-twice-2.s: New.
337         * testsuite/ld-riscv-elf/ld-riscv-elf.exp
338         (run_relax_twice_test): New, and call it.
340 2021-07-03  Nick Clifton  <nickc@redhat.com>
342         * configure: Regenerate.
343         * po/ld.pot: Regenerate.
345 2021-07-03  Nick Clifton  <nickc@redhat.com>
347         * 2.37 release branch created.
349 2021-06-22  Nelson Chu  <nelson.chu@sifive.com>
351         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
352         * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.d: New testcase.
353         * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.s: Likewise.
354         * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.d: New testcase.
355         Should report error since the %pcrel_lo with addend refers to
356         %got_pcrel_hi.
357         * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.s: Likewise.
358         * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.d: New testcase.
359         Should report error since the %got_pcrel_hi with addend.
360         * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.s: Likewise.
361         * testsuite/ld-riscv-elf/pcrel-lo-addend-3.ld: Likewise.
363 2021-06-19  H.J. Lu  <hongjiu.lu@intel.com>
365         PR ld/27998
366         * testsuite/ld-i386/i386.exp: Run PR ld/27998 tests.
367         * testsuite/ld-i386/pr27998a.d: New file.
368         * testsuite/ld-i386/pr27998a.s: Likewise.
369         * testsuite/ld-i386/pr27998b.d: Likewise.
370         * testsuite/ld-i386/pr27998b.s: Likewise.
372 2021-06-19  H.J. Lu  <hongjiu.lu@intel.com>
374         * testsuite/ld-x86-64/textrel-1.err: New file.
375         * testsuite/ld-x86-64/textrel-1a.s: Likewise.
376         * testsuite/ld-x86-64/textrel-1b.s: Likewise.
377         * testsuite/ld-x86-64/x86-64.exp: Run textrel-1 tests.
379 2021-06-18  H.J. Lu  <hongjiu.lu@intel.com>
381         * testsuite/ld-elf/property-and-1.d: Skip am33_2.0, hppa-hpux
382         and mn10300.
383         Pass --generate-missing-build-notes=no to assembler.  Allow
384         other note sections for xtensa.
385         * testsuite/ld-elf/property-and-2.d: Likewise.
386         * testsuite/ld-elf/property-and-3.d: Likewise.
387         * testsuite/ld-elf/property-and-4.d: Likewise.
388         * testsuite/ld-elf/property-or-1.d: Likewise.
389         * testsuite/ld-elf/property-or-2.d: Likewise.
390         * testsuite/ld-elf/property-or-3.d: Likewise.
391         * testsuite/ld-elf/property-or-4.d: Likewise.
393 2021-06-18  H.J. Lu  <hongjiu.lu@intel.com>
395         * ld.texi: Move -z unique-symbol after -z undefs.
397 2021-06-18  H.J. Lu  <hongjiu.lu@intel.com>
399         * testsuite/ld-elf/property-and-1.d: New file.
400         * testsuite/ld-elf/property-and-1.s: Likewise.
401         * testsuite/ld-elf/property-and-2.d: Likewise.
402         * testsuite/ld-elf/property-and-2.s: Likewise.
403         * testsuite/ld-elf/property-and-3.d: Likewise.
404         * testsuite/ld-elf/property-and-3.s: Likewise.
405         * testsuite/ld-elf/property-and-4.d: Likewise.
406         * testsuite/ld-elf/property-and-empty.s: Likewise.
407         * testsuite/ld-elf/property-or-1.d: Likewise.
408         * testsuite/ld-elf/property-or-1.s: Likewise.
409         * testsuite/ld-elf/property-or-2.d: Likewise.
410         * testsuite/ld-elf/property-or-2.s: Likewise.
411         * testsuite/ld-elf/property-or-3.d: Likewise.
412         * testsuite/ld-elf/property-or-3.s: Likewise.
413         * testsuite/ld-elf/property-or-4.d: Likewise.
414         * testsuite/ld-elf/property-or-empty.s: Likewise.
416 2021-06-17  H.J. Lu  <hongjiu.lu@intel.com>
418         PR ld/27973
419         * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and
420         $NOPIE_CFLAGS to protected-func-1 without PIE.
422 2021-06-17  H.J. Lu  <hongjiu.lu@intel.com>
424         PR ld/27973
425         * testsuite/ld-x86-64/x86-64.exp: Run protected function tests.
426         * testsuite/ld-x86-64/protected-func-1.h: New file.
427         * testsuite/ld-x86-64/protected-func-1a.s: Likewise.
428         * testsuite/ld-x86-64/protected-func-1b.c: Likewise.
430 2021-06-17  Fangrui Song  <maskray@google.com>
432         * ldlex.h (enum option_values): Add OPTION_NO_PIE.
433         * lexsup.c (struct ld_options): Add -no-pie.
434         (parse_args): Handle -no-pie.
435         * ld.texi: Document -no-pie.
437 2021-06-15  Alan Modra  <amodra@gmail.com>
439         * testsuite/ld-pie/vaddr-0.d: Update expected output.
441 2021-06-11  Alan Modra  <amodra@gmail.com>
443         PR 27952
444         * ldelf.c (ldelf_after_open): Error on input PIEs too.
446 2021-06-09  Nick Clifton  <nickc@redhat.com>
448         PR 27666
449         * testsuite/ld-sparc/sparc.exp: Do not run the sparctests or
450         sparc64tests for Solaris2 targets.
452 2021-06-03  Alan Modra  <amodra@gmail.com>
454         PR 2589
455         * ld.texi (link-time runtime library search path): Mention
456         plugin library path.  Correct order of search.
458 2021-05-31  Nelson Chu  <nelson.chu@sifive.com>
459             Lifang Xia  <lifang_xia@c-sky.com>
461         PR 27566
462         * emultempl/riscvelf.em (after_allocation): Call
463         riscv_set_data_segment_info to set data segment phase before relaxing.
464         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
465         * testsuite/ld-riscv-elf/relro-relax-lui.d: New testcase.
466         * testsuite/ld-riscv-elf/relro-relax-lui.s: Likewise.
467         * testsuite/ld-riscv-elf/relro-relax-pcrel.d: Likewise.
468         * testsuite/ld-riscv-elf/relro-relax-pcrel.s: Likewise.
470 2021-05-28  H.J. Lu  <hongjiu.lu@intel.com>
472         PR ld/27905
473         * testsuite/ld-i386/pcrel16-2.d: xfail.
474         * testsuite/ld-x86-64/pcrel16-2.d: Likewise.
476 2021-05-26  H.J. Lu  <hongjiu.lu@intel.com>
478         PR ld/27905
479         * testsuite/ld-i386/code16.d: New file.
480         * testsuite/ld-i386/code16.t: Likewise.
481         * testsuite/ld-x86-64/code16.d: Likewise.
482         * testsuite/ld-x86-64/code16.t: Likewise.
483         * testsuite/ld-i386/i386.exp: Run code16.
484         * testsuite/ld-x86-64/x86-64.exp: Likewise.
486 2021-05-26  H.J. Lu  <hongjiu.lu@intel.com>
488         * testsuite/ld-x86-64/ilp32-12.d: New file.
489         * testsuite/ld-x86-64/ilp32-12.s: Likewise.
490         * testsuite/ld-x86-64/x86-64.exp: Run ilp32-12.
492 2021-05-14  Nelson Chu  <nelson.chu@sifive.com>
494         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
495         * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d: Renamed from
496         pcrel-lo-addend-2.
497         * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.s: Likewise.
498         * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.d: New testcase.
499         * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.s: Likewise.
501 2021-05-13  Fangrui Song  <maskray@google.com>
503         PR 27834
504         * ldlex.h (enum option_values): Add OPTION_NO_SYMBOLIC.
505         * lexsup.c (ld_options): Add -Bno-symbolic.
506         (parse_args): Handle -Bno-symbolic.
507         * ld.texi: Document -Bno-symbolic.
508         * NEWS: Mention -Bno-symbolic.
509         * testsuite/ld-elf/shared.exp: Add a test.
511 2021-05-12  Richard Earnshaw  <rearnsha@arm.com>
513         * testsuite/ld-arm/arm-elf.exp (farcall test for v8-m.mainline):
514         Correct expected output.
516 2021-05-11  Roland McGrath  <mcgrathr@google.com>
518         * testsuite/ld-x86-64/rela.d: Fix regexp not to presume a specific
519         address layout, so it works for e.g. --target=x86-64-elf.
521 2021-05-11  Nick Clifton  <nickc@redhat.com>
523         PR 27113
524         * Makefile.am (install-data-local): Also delete libdep.dll.a if it
525         is present.
526         * Makefile.in: Regenerate.
528 2021-05-10  Dimitar Dimitrov  <dimitar@dinux.eu>
530         * testsuite/ld-elf/group8a.d: Remove pru from XFAIL list.
531         * testsuite/ld-elf/group8b.d: Ditto.
532         * testsuite/ld-elf/group9a.d: Ditto.
533         * testsuite/ld-elf/group9b.d: Ditto.
534         * testsuite/ld-elf/pr12851.d: Ditto.
535         * testsuite/ld-elf/pr22677.d: Ditto.
536         * testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove
537         pru from list.
539 2021-05-10  Dimitar Dimitrov  <dimitar@dinux.eu>
541         * scripttempl/pru.sc (.resource_table): Add ALIGN directive.
542         Use symbols for memory sizes.
544 2021-05-08  Mike Frysinger  <vapier@gentoo.org>
546         * Makefile.am (html-local, doc/ld/index.html): New targets.
547         * Makefile.in: Regenerate.
549 2021-05-08  Mike Frysinger  <vapier@gentoo.org>
551         * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
552         * Makefile.in: Regenerate.
554 2021-05-07  Jan Beulich  <jbeulich@suse.com>
556         * testsuite/ld-x86-64/rela.d: New.
557         * testsuite/ld-x86-64/x86-64.exp: Run new test.
559 2021-05-07  Nick Clifton  <nickc@redhat.com>
561         * ldelfgen.c (compare_link_order): Ignore section size when
562         performing a relocateable link.
564 2021-05-07  Alan Modra  <amodra@gmail.com>
566         * ldexp.c (update_definedness): Don't return false for absolute
567         symbols.
568         * ldmain.c (multiple_definition): Print "warning: " in message
569         when not a hard error.
571 2021-05-07  Alan Modra  <amodra@gmail.com>
573         * testsuite/ld-elf/pr27825-1.d: Correct xfail.
574         * testsuite/ld-elf/pr27825-2.d: Likewise.
576 2021-05-06  Stafford Horne  <shorne@gmail.com>
578         PR 27746
579         testsuite/ld-or1k/or1k.exp (or1kplttests): Add tests for linking
580         along with gotha() relocations.
581         testsuite/ld-or1k/gotha1.dd: New file.
582         testsuite/ld-or1k/gotha1.s: New file.
583         testsuite/ld-or1k/gotha2.dd: New file.
584         testsuite/ld-or1k/gotha2.s: New file
585         testsuite/ld-or1k/pltlib.s (x): Define size to avoid link
586         failure.
588 2021-05-06  Nick Alcock  <nick.alcock@oracle.com>
590         * testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt.
591         * testsuite/lib/ld-lib.exp: Likewise.
592         * testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types.
593         * testsuite/ld-ctf/nonrepresentable-2.c: Likewise.
594         * testsuite/ld-ctf/nonrepresentable.d: Likewise.
595         * testsuite/ld-ctf/array.d: Larger type section.
596         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
597         * testsuite/ld-ctf/enums.d: Likewise.
598         * testsuite/ld-ctf/conflicting-enums.d: Don't compare types.
599         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order.
600         * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
601         * testsuite/ld-ctf/slice.d: Adjust for improved slice emission.
603 2021-05-05  H.J. Lu  <hongjiu.lu@intel.com>
605         PR ld/27825
606         * testsuite/ld-elf/pr27825-1.d: New file.
607         * testsuite/ld-elf/pr27825-1a.s: Likewise.
608         * testsuite/ld-elf/pr27825-1b.s: Likewise.
609         * testsuite/ld-elf/pr27825-2.d: Likewise.
610         * testsuite/ld-elf/pr27825-2a.s: Likewise.
611         * testsuite/ld-elf/pr27825-2b.s: Likewise.
613 2021-05-05  Alan Modra  <amodra@gmail.com>
615         * testsuite/ld-powerpc/empty.s: New file.
616         * testsuite/ld-powerpc/undefweak.d,
617         * testsuite/ld-powerpc/undefweak.s: New testcase.
618         * testsuite/ld-powerpc/powerpc.exp: Run it.
620 2021-05-03  Alan Modra  <amodra@gmail.com>
622         * testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
623         named section symbols.
625 2021-04-28  Nick Clifton  <nickc@redhat.com>
627         * testsuite/ld-elf/anno-sym.s: New test source file.
628         * testsuite/ld-elf/anno-sym.d: New test driver.
629         * testsuite/ld-elf/anno-sym.l: New test error output.
631 2021-04-26  Jan Beulich  <jbeulich@suse.com>
633         * testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d,
634         testsuite/ld-x86-64/pcrel16-2.d: New.
635         * testsuite/ld-i386/i386.exp: Run new test.
636         * testsuite/ld-x86-64/x86-64.exp: Likewise.
638 2021-04-23  H.J. Lu  <hongjiu.lu@intel.com>
640         PR ld/27771
641         * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
642         to tmpdir/ldscripts only if it doesn't exist.
644 2021-04-22  Jan Beulich  <jbeulich@suse.com>
646         PR ld/26659
647         * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
649 2021-04-21  Nick Clifton  <nickc@redhat.com>
651         * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
652         to allow for named section symbols.
653         * testsuite/ld-aarch64/variant_pcs-r.d: Likewise.
654         * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
655         * testsuite/ld-alpha/tlsbin.rd: Likewise.
656         * testsuite/ld-alpha/tlsbinr.rd: Likewise.
657         * testsuite/ld-alpha/tlspic.rd: Likewise.
658         * testsuite/ld-arm/rodata-merge-map.sym: Likewise.
659         * testsuite/ld-arm/script-type.sym: Likewise.
660         * testsuite/ld-cris/libdso-2.d: Likewise.
661         * testsuite/ld-cris/pr16044.d: Likewise.
662         * testsuite/ld-elf/sec64k.exp: Likewise.
663         * testsuite/ld-ia64/tlsbin.rd: Likewise.
664         * testsuite/ld-ia64/tlspic.rd: Likewise.
665         * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
666         * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
667         * testsuite/ld-mmix/bspec1.d: Likewise.
668         * testsuite/ld-mmix/bspec2.d: Likewise.
669         * testsuite/ld-mmix/local1.d: Likewise.
670         * testsuite/ld-mmix/local3.d: Likewise.
671         * testsuite/ld-mmix/local5.d: Likewise.
672         * testsuite/ld-mmix/local7.d: Likewise.
673         * testsuite/ld-mmix/undef-3.d: Likewise.
674         * testsuite/ld-powerpc/tlsso.r: Likewise.
675         * testsuite/ld-powerpc/tlsso32.r: Likewise.
676         * testsuite/ld-powerpc/tlstocso.r: Likewise.
677         * testsuite/ld-s390/tlsbin.rd: Likewise.
678         * testsuite/ld-s390/tlsbin_64.rd: Likewise.
679         * testsuite/ld-s390/tlspic.rd: Likewise.
680         * testsuite/ld-s390/tlspic_64.rd: Likewise.
681         * testsuite/ld-sparc/gotop32.rd: Likewise.
682         * testsuite/ld-sparc/gotop64.rd: Likewise.
683         * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
684         * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
685         * testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
686         * testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
687         * testsuite/ld-sparc/tlssunpic32.rd: Likewise.
688         * testsuite/ld-sparc/tlssunpic64.rd: Likewise.
689         * testsuite/ld-tic6x/common.d: Likewise.
690         * testsuite/ld-tic6x/shlib-1.rd: Likewise.
691         * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
692         * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
693         * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
694         * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
695         * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
696         * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
697         * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
698         * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
699         * testsuite/ld-tic6x/static-app-1.rd: Likewise.
700         * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
701         * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
702         * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
704 2021-04-20  Clément Chigot  <clement.chigot@atos.net>
706         PR binutils/21700
707         * testsuite/ld-powerpc/aix52.exp: Add new test.
708         * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
709         * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
710         * testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
711         * testsuite/ld-powerpc/aix-neg-reloc.s: New test.
713 2021-04-13  Nick Clifton  <nickc@redhat.com>
715         * ld.texi (Options): Add note about the effect of --as-needed on
716         the --rpath and --rpath-link options on Linux based systems.
718 2021-04-13  Alan Modra  <amodra@gmail.com>
720         PR 27722
721         * libdep_plugin.c (str2vec): Don't pass a potentially signed char
722         to isspace.
724 2021-04-12  Alan Modra  <amodra@gmail.com>
726         * configure.ac (--enable-checking): Add support.
727         * config.in: Regenerate.
728         * configure: Regenerate.
730 2021-04-12  Alan Modra  <amodra@gmail.com>
732         * emultempl/mipself.em (mips_create_output_section_statements):
733         Pass base type of hash table to is_elf_hash_table.
734         * ldelf.c (ldelf_after_open): Likewise.
736 2021-04-12  Alan Modra  <amodra@gmail.com>
738         PR 27719
739         * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
740         the symbol hash table is the correct type before accessing
741         elf_link_hash_entry symbols.
742         * plugin.c (is_visible_from_outside): Likewise.
743         * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
744         * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
746 2021-04-09  Alan Modra  <amodra@gmail.com>
748         * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
749         * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
750         * testsuite/ld-powerpc/notoc2.d: Likewise.
751         * testsuite/ld-powerpc/notoc3.d: Likewise.
752         * testsuite/ld-powerpc/pcrelopt.d: Likewise.
753         * testsuite/ld-powerpc/startstop.d: Likewise.
754         * testsuite/ld-powerpc/tlsget.d: Likewise.
755         * testsuite/ld-powerpc/tlsget2.d: Likewise.
756         * testsuite/ld-powerpc/tlsld.d: Likewise.
757         * testsuite/ld-powerpc/weak1.d: Likewise.
758         * testsuite/ld-powerpc/weak1so.d: Likewise.
760 2021-04-06  Jan Beulich  <jbeulich@suse.com>
762         * pe-dll.c (generate_reloc): Bail immediately when .reloc is
763         being discarded. Warn when relocated entry is above .reloc.
765 2021-04-05  Alan Modra  <amodra@gmail.com>
767         * configure.ac: Move initfini-array arg handling earlier.  Don't
768         check for string.h, strings.h, stdlib.h, or locale.h.  Do check
769         for inttypes.h, stdint.h, sys/types.h.  Don't check for
770         setlocale, free, getev or strstr.
771         (AC_ISC_POSIX): Don't invoke.
772         * sysdep.h: Include string.h and stdlib.h unconditionally.  Test
773         HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H.  Remove strstr, free and
774         getenv fallback declarations.
775         * ld.h: Don't test HAVE_LOCALE_H.
776         * ldmain.c: Don't test HAVE_SETLOCALE.
777         * config.in: Regenerate.
778         * configure: Regenerate.
780 2021-04-01  Tamar Christina  <tamar.christina@arm.com>
782         PR ld/26659
783         * testsuite/ld-pe/pe.exp: Add test.
784         * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
785         * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
787 2021-04-01  Martin Liska  <mliska@suse.cz>
789         * ldbuildid.c (strneq): Remove strneq and use startswith.
790         (validate_build_id_style): Likewise.
791         (compute_build_id_size): Likewise.
793 2021-03-31  Alan Modra  <amodra@gmail.com>
795         * sysdep.h (POISON_BFD_BOOLEAN): Define.
796         * configure.ac (elf_list_options, elf_shlib_list_options=false),
797         (elf_plt_unwind_list_options=false): Replace FALSE with false,
798         and TRUE with true.
799         * emulparams/call_nop.sh, * emulparams/cet.sh,
800         * emulparams/dynamic_undefined_weak.sh,
801         * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
802         * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
803         * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
804         * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
805         * emulparams/reloc_overflow.sh, * emulparams/static.sh,
806         * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
807         * emultempl/aix.em, * emultempl/alphaelf.em,
808         * emultempl/armcoff.em, * emultempl/armelf.em,
809         * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
810         * emultempl/cr16elf.em, * emultempl/crxelf.em,
811         * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
812         * emultempl/hppaelf.em, * emultempl/linux.em,
813         * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
814         * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
815         * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
816         * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
817         * emultempl/pep.em, * emultempl/ppc32elf.em,
818         * emultempl/ppc64elf.em, * emultempl/rxelf.em,
819         * emultempl/rxlinux.em, * emultempl/scoreelf.em,
820         * emultempl/solaris2.em, * emultempl/spuelf.em,
821         * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
822         * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
823         * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
824         * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
825         * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
826         * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
827         * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
828         * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
829         * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
830         bfd_boolean with bool, FALSE with false, and TRUE with true.
831         * configure: Regenerate.
833 2021-03-31  Alan Modra  <amodra@gmail.com>
835         * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
836         * emultempl/nds32elf.em: Likewise.
837         * testsuite/ld-elf/mbind2b.c: Likewise.
838         * testsuite/ld-elf/pr18718.c: Likewise.
839         * testsuite/ld-elf/pr18720a.c: Likewise.
840         * testsuite/ld-elf/pr25749-1.c: Likewise.
841         * testsuite/ld-elf/pr25749-1a.c: Likewise.
842         * testsuite/ld-elf/pr25749-1b.c: Likewise.
843         * testsuite/ld-elf/pr25749-1c.c: Likewise.
844         * testsuite/ld-elf/pr25749-1d.c: Likewise.
845         * testsuite/ld-elf/pr25749-2.c: Likewise.
846         * testsuite/ld-elf/pr25754-1a.c: Likewise.
847         * testsuite/ld-elf/pr25754-2a.c: Likewise.
848         * testsuite/ld-elf/pr25754-3a.c: Likewise.
849         * testsuite/ld-elf/pr25754-4a.c: Likewise.
850         * testsuite/ld-elf/pr25754-5a.c: Likewise.
851         * testsuite/ld-elf/pr25754-6a.c: Likewise.
853 2021-03-29  Alan Modra  <amodra@gmail.com>
855         * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
856         boolean expression.
857         * lexsup.c (parse_args): Likewise.
858         * pe-dll.c (pe_dll_id_target): Likewise.
860 2021-03-25  Nick Alcock  <nick.alcock@oracle.com>
862         * testsuite/ld-ctf/array.d: Only check that the data object
863         section is nonempty: do not check its exact size.
864         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
865         * testsuite/ld-ctf/slice.d: Likewise.
866         * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
867         func info section too.
868         * testsuite/ld-ctf/function.d: Likewise, for the func info section.
870 2021-03-22  Martin Liska  <mliska@suse.cz>
872         * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
873         * emultempl/beos.em: Likewise.
874         * emultempl/elf.em: Likewise.
875         * emultempl/pe.em: Likewise.
876         * emultempl/pep.em: Likewise.
877         * emultempl/xtensaelf.em: Likewise.
878         * ldctor.c (ctor_prio): Likewise.
879         * ldelf.c (ldelf_try_needed): Likewise.
880         (ldelf_parse_ld_so_conf): Likewise.
881         (ldelf_after_open): Likewise.
882         (output_rel_find): Likewise.
883         (ldelf_place_orphan): Likewise.
884         * ldfile.c (ldfile_add_library_path): Likewise.
885         * ldlang.c (lang_add_input_file): Likewise.
886         * ldmain.c (get_sysroot): Likewise.
887         (get_emulation): Likewise.
888         (add_archive_element): Likewise.
889         * ldwrite.c (unsplittable_name): Likewise.
890         (clone_section): Likewise.
891         * lexsup.c (parse_args): Likewise.
892         * pe-dll.c (is_import): Likewise.
893         (pe_implied_import_dll): Likewise.
895 2021-03-19  H.J. Lu  <hongjiu.lu@intel.com>
897         PR ld/27590
898         * testsuite/ld-x86-64/pr27590.rd: New file.
899         * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
900         * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
901         * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
903 2021-03-20  Alan Modra  <amodra@gmail.com>
905         PR 27590
906         * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
907         for all sections except .stabstr.
909 2021-03-19  Alan Modra  <amodra@gmail.com>
911         PR 27590
912         * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
913         R_MIPS_NONE.
914         * testsuite/ld-elf/pr27590b.d: Likewise.
916 2021-03-18  H.J. Lu  <hongjiu.lu@intel.com>
918         PR ld/27590
919         * testsuite/ld-elf/pr27590.s: New file.
920         * testsuite/ld-elf/pr27590a.d: Likewise.
921         * testsuite/ld-elf/pr27590b.d: Likewise.
922         * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
923         --reduce-memory-overheads.
925 2021-03-18  H.J. Lu  <hongjiu.lu@intel.com>
927         PR ld/27587
928         * testsuite/ld-x86-64/pr27587.err: New file.
929         * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
930         * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
931         * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
933 2021-03-18  Nick Alcock  <nick.alcock@oracle.com>
935         * testsuite/ld-ctf/slice.c: Check slices of enums too.
936         * testsuite/ld-ctf/slice.d: Results adjusted.
938 2021-03-16  Nick Clifton  <nickc@redhat.com>
940         * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
941         lname string.
943 2021-03-15  Jan Beulich  <jbeulich@suse.com>
945         * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
947 2021-03-12  Alan Modra  <amodra@gmail.com>
949         * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
950         (ALL_64_EMULATION_SOURCES): ..here.
951         * Makefile.in: Regenerate.
953 2021-03-12  Clément Chigot  <clement.chigot@atos.net>
955         * emultempl/aix.em: Ensure .tdata section is removed
956         if empty, even with -r flag.
957         * scripttempl/aix.sc: Handle TLS sections.
958         * testsuite/ld-powerpc/aix52.exp: Add new tests.
959         * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
960         * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
961         * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
962         * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
963         * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
964         * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
965         * testsuite/ld-powerpc/aix-tls-section.ex: New test.
966         * testsuite/ld-powerpc/aix-tls-section.s: New test.
968 2021-03-12  Clément Chigot  <clement.chigot@atos.net>
970         * scripttempl/aix.sc: Add .te to .data section.
971         * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
972         Add aix-largetoc-1 test.
973         * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
974         * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
975         * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
976         * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
978 2021-03-12  Alan Modra  <amodra@gmail.com>
980         * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
981         arrange to define __main for some run_dump_test tests.
982         * testsuite/ld-gc/pr13683.d: Accept more symbols.
983         * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
984         * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
985         * testsuite/ld-srec/srec.exp: Likewise.
986         * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
988 2021-03-11  Nelson Chu  <nelson.chu@sifive.com>
990         * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
991         many times if riscv_restart_relax_sections returns TRUE.
992         * testsuite/ld-riscv-elf/restart-relax.d: New testcase.  Before
993         applying this patch, the call won't be relaxed to jal; But now we
994         have more chances to do relaxations.
995         * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
996         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
998 2021-03-10  Jan Beulich  <jbeulich@suse.com>
1000         * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
1001         than 32 set bits.
1002         * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
1003         comment.
1004         * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
1006 2021-03-09  Jan Beulich  <jbeulich@suse.com>
1008         * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
1009         alignment to 4k.
1010         * testsuite/ld-pe/reloc.d: xfail for mcore.
1012 2021-03-09  Jan Beulich  <jbeulich@suse.com>
1014         * testsuite/ld-scripts/alignof.exp,
1015         testsuite/ld-scripts/data.exp,
1016         testsuite/ld-scripts/default-script.exp,
1017         testsuite/ld-scripts/log2.exp,
1018         testsuite/ld-scripts/print-memory-usage.exp,
1019         testsuite/ld-scripts/sizeof.exp,
1020         testsuite/ld-undefined/weak-undef.exp: Set image base to zero
1021         for PE/COFF.
1022         * testsuite/ld-scripts/default-script1.d,
1023         testsuite/ld-scripts/default-script2.d,
1024         testsuite/ld-scripts/default-script3.d,
1025         testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
1027 2021-03-05  H.J. Lu  <hongjiu.lu@intel.com>
1029         PR ld/27425
1030         PR ld/27432
1031         * ldelf.c (ldelf_set_output_arch): New function.
1032         * ldelf.h (ldelf_set_output_arch): New prototype.
1033         * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
1034         ldelf_set_output_arch.
1035         * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
1036         * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1037         * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1038         * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1039         * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1040         * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1041         * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
1042         * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
1043         * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
1045 2021-03-04  Jan Beulich  <jbeulich@suse.com>
1047         * testsuite/ld-scripts/map-address.exp: Set image base to zero
1048         for PE/COFF.
1049         * testsuite/ld-scripts/map-address.t: Place .text.
1051 2021-03-04  Jan Beulich  <jbeulich@suse.com>
1053         * ldexp.c (ldexp_is_final_sym_absolute): New.
1054         * ldexp.h (ldexp_is_final_sym_absolute): Declare.
1055         * pe-dll.c (generate_reloc): Skip absolute symbols.
1056         * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
1057         * testsuite/ld-pe/pe.exp: Run new test.
1059 2021-03-03  Alan Modra  <amodra@gmail.com>
1061         PR 27500
1062         * ldlang.c (insert_undefined): Don't mark symbols here.
1063         (lang_mark_undefineds): Do so here instead, new function.
1064         (lang_process): Call lang_mark_undefineds.
1065         * testsuite/ld-gc/start3.d,
1066         * testsuite/ld-gc/start3.s: New test.
1067         * testsuite/ld-gc/start4.d,
1068         * testsuite/ld-gc/start4.s: New test.
1069         * testsuite/ld-gc/gc.exp: Run them.
1071 2021-03-03  Alan Modra  <amodra@gmail.com>
1073         * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
1074         Move tests with ELF section directives to is_elf_format block.
1075         * testsuite/ld-gc/abi-note.d: Run on more targets.
1076         * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
1077         * testsuite/ld-gc/start.d: Likewise.
1078         * testsuite/ld-gc/start2.d: Likewise.
1079         * testsuite/ld-gc/stop.d: Likewise.
1080         * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
1081         * testsuite/ld-gc/start.s: Likewise.
1082         * testsuite/ld-gc/start2.s: Likewise.
1084 2021-03-02  Nick Alcock  <nick.alcock@oracle.com>
1086         * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
1088 2021-03-02  Alan Modra  <amodra@gmail.com>
1090         * testsuite/ld-powerpc/startstop.d,
1091         * testsuite/ld-powerpc/startstop.r,
1092         * testsuite/ld-powerpc/startstop.s: New test.
1093         * testsuite/ld-powerpc/powerpc.exp: Run it.
1095 2021-03-02  Alan Modra  <amodra@gmail.com>
1097         * testsuite/ld-powerpc/weak1.d,
1098         * testsuite/ld-powerpc/weak1.r,
1099         * testsuite/ld-powerpc/weak1.s,
1100         * testsuite/ld-powerpc/weak1so.d,
1101         * testsuite/ld-powerpc/weak1so.r: New tests.
1102         * testsuite/ld-powerpc/powerpc.exp: Run them.
1104 2021-03-01  Hannes Domani  <ssbssa@sourceware.org>
1105             Nick Clifton  <nickc@redhat.com>
1107         PR 27268
1108         * scripttempl/pe.sc: Add DWARF-5 section names.
1109         * scripttempl/pep.sc: Likewise.
1111 2021-03-01  Alan Modra  <amodra@gmail.com>
1112             Fangrui Song <maskray@google.com>
1114         * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
1115         * lexsup.c (elf_static_list_options): Display help for them.  Move
1116         help for -z stack-size to here from elf_shlib_list_options. Add
1117         help for -z start-stop-visibility and -z undefs.
1118         * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
1119         * NEWS: Mention -z start-stop-gc.
1120         * testsuite/ld-gc/start2.s,
1121         * testsuite/ld-gc/start2.d: New test.
1122         * testsuite/ld-gc/gc.exp: Run it.
1124 2021-03-01  Alan Modra  <amodra@gmail.com>
1126         * ldlang.c (undef_start_stop): For ELF make undefined start/stop
1127         symbols undefweak if that was how they were referenced.  Undo
1128         dynamic state too.
1130 2021-03-01  Alan Modra  <amodra@gmail.com>
1132         * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
1133         * testsuite/ld-elf/pr27128a.d: Likewise.
1134         * testsuite/ld-elf/pr27128b.d: Likewise.
1135         * testsuite/ld-elf/pr27128c.d: Likewise.
1136         * testsuite/ld-elf/pr27128d.d: Likewise.
1137         * testsuite/ld-elf/pr27128e.d: Likewise.
1139 2021-02-26  Alan Modra  <amodra@gmail.com>
1141         PR 27441
1142         * testsuite/ld-plugin/pr27441a.c,
1143         * testsuite/ld-plugin/pr27441b.c,
1144         * testsuite/ld-plugin/pr27441c.c,
1145         * testsuite/ld-plugin/pr27441c.d: New test.
1146         * testsuite/ld-plugin/lto.exp: Run it.
1148 2021-02-25  Jan Beulich  <jbeulich@suse.com>
1150         * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
1152 2021-02-21  Alan Modra  <amodra@gmail.com>
1154         * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
1155         defined in an object file.
1156         * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
1157         * testsuite/ld-scripts/defined5.d: Expect a warning.
1159 2021-02-19  Alan Modra  <amodra@gmail.com>
1161         * testsuite/lib/ld-lib.exp: Whitespace.
1162         (load_common_lib): Expand single use and delete this proc.
1163         (run_host_cmd): Use -fno-lto when getting gcc's ld version.
1164         Use -B for clang too.
1166 2021-02-18  Andrew Burgess  <andrew.burgess@embecosm.com>
1168         * testplugin.c (record_read_length): Remove debug fprintf.
1170 2021-02-14  Alan Modra  <amodra@gmail.com>
1172         * testsuite/ld-cdtest/cdtest.exp,
1173         * testsuite/ld-checks/checks.exp,
1174         * testsuite/ld-elf/binutils.exp,
1175         * testsuite/ld-elf/compress.exp,
1176         * testsuite/ld-elf/dwarf.exp,
1177         * testsuite/ld-elf/exclude.exp,
1178         * testsuite/ld-elf/frame.exp,
1179         * testsuite/ld-elf/indirect.exp,
1180         * testsuite/ld-elf/linux-x86.exp,
1181         * testsuite/ld-elf/sec-to-seg.exp,
1182         * testsuite/ld-elf/tls_common.exp,
1183         * testsuite/ld-elfcomm/elfcomm.exp,
1184         * testsuite/ld-elfvers/vers.exp,
1185         * testsuite/ld-elfvsb/elfvsb.exp,
1186         * testsuite/ld-elfweak/elfweak.exp,
1187         * testsuite/ld-ifunc/binutils.exp,
1188         * testsuite/ld-mips-elf/mips-elf-flags.exp,
1189         * testsuite/ld-misc/defsym.exp,
1190         * testsuite/ld-mn10300/mn10300.exp,
1191         * testsuite/ld-plugin/lto.exp,
1192         * testsuite/ld-plugin/plugin.exp,
1193         * testsuite/ld-scripts/align.exp,
1194         * testsuite/ld-scripts/assert.exp,
1195         * testsuite/ld-scripts/crossref.exp,
1196         * testsuite/ld-scripts/defined.exp,
1197         * testsuite/ld-scripts/extern.exp,
1198         * testsuite/ld-scripts/log2.exp,
1199         * testsuite/ld-scripts/map-address.exp,
1200         * testsuite/ld-scripts/phdrs.exp,
1201         * testsuite/ld-scripts/phdrs2.exp,
1202         * testsuite/ld-scripts/script.exp,
1203         * testsuite/ld-scripts/section-flags.exp,
1204         * testsuite/ld-scripts/sizeof.exp,
1205         * testsuite/ld-scripts/weak.exp,
1206         * testsuite/ld-selective/selective.exp,
1207         * testsuite/ld-sh/sh.exp,
1208         * testsuite/ld-shared/shared.exp,
1209         * testsuite/ld-srec/srec.exp,
1210         * testsuite/ld-tic6x/tic6x.exp,
1211         * testsuite/ld-undefined/undefined.exp,
1212         * testsuite/ld-undefined/weak-undef.exp,
1213         * testsuite/lib/ld-lib.exp: Don't use unresolved except after
1214         perror.  Instead report "unsupported" or "fail".
1216 2021-02-12  Nick Clifton  <nickc@redhat.com>
1218         * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
1219         following debug links.
1221 2021-02-11  Alan Modra  <amodra@gmail.com>
1223         * NEWS: Mention arm-symbianelf removal.
1225 2021-02-09  Alan Modra  <amodra@gmail.com>
1227         * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
1228         Don't include symbian dep file.
1229         * configure.tgt: Remove arm*-*-symbianelf* entry.
1230         * emulparams/armsymbian.sh: Delete.
1231         * ld.texi: Don't mention symbian.
1232         * scripttempl/armbpabi.sc: Delete.
1233         * testsuite/ld-arm/symbian-seg1.d: Delete.
1234         * testsuite/ld-arm/symbian-seg1.s: Delete.
1235         * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
1236         * Makefile.in: Regenerate.
1237         * po/BLD-POTFILES.in: Regenerate.
1239 2021-02-07  H.J. Lu  <hongjiu.lu@intel.com>
1241         PR ld/27358
1242         * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
1243         tests.
1244         * testsuite/ld-x86-64/x86-64.exp: Likewise.
1246 2021-01-26  Nick Alcock  <nick.alcock@oracle.com>
1248         * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
1249         when appropriate.
1251 2021-02-04  H.J. Lu  <hongjiu.lu@intel.com>
1253         PR ld/19609
1254         * testsuite/ld-x86-64/pr19609-2a.d: Updated.
1255         * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
1256         * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
1257         * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
1258         * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
1259         * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
1260         * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
1262 2021-02-04  H.J. Lu  <hongjiu.lu@intel.com>
1264         PR ld/15146
1265         * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
1266         * testsuite/ld-plugin/pr15146.d: Restored.
1267         * testsuite/ld-plugin/pr15146a.c: Likewise.
1268         * testsuite/ld-plugin/pr15146b.c: Likewise.
1269         * testsuite/ld-plugin/pr15146c.c: Likewise.
1270         * testsuite/ld-plugin/pr15146d.c: Likewise.
1272 2021-02-04  Alan Modra  <amodra@gmail.com>
1274         * testsuite/ld-plugin/pr27311d.c: New test.
1275         * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
1276         and link new test as pr27311-2.
1278 2021-02-03  Alan Modra  <amodra@gmail.com>
1280         * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
1281         Link with --as-needed.
1283 2021-02-02  Alan Modra  <amodra@gmail.com>
1285         * testsuite/ld-plugin/pr27311.d,
1286         * testsuite/ld-plugin/pr27311.ver,
1287         * testsuite/ld-plugin/pr27311a.c,
1288         * testsuite/ld-plugin/pr27311b.c,
1289         * testsuite/ld-plugin/pr27311c.c: New testcase.
1290         * testsuite/ld-plugin/lto.exp: Run it.  Correct PR14918 and
1291         PR12982 entries.
1293 2021-02-01  Emery Hemingway  <ehmry@posteo.net>
1295         * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1297 2021-02-01  Alan Modra  <amodra@gmail.com>
1299         * ldgram.y (defsym_expr): Use assignment rule.
1300         * ldlex.h (ldlex_defsym): Delete.
1301         * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
1303 2021-02-01  Alan Modra  <amodra@gmail.com>
1305         * ldgram.y (section): Call ldlex_backup.  Remove empty action.
1306         * ldlex.h (ldlex_backup): Declare.
1307         * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
1308         chars, use SYMBOLNAMECHAR.
1309         (ldlex_backup): New function.
1311 2021-02-01  Alan Modra  <amodra@gmail.com>
1313         * ldgram.y: Whitespace fixes.
1315 2021-02-01  Alan Modra  <amodra@gmail.com>
1317         * testsuite/ld-elf/pr27259.d: Correct sh_link match.
1319 2021-01-29  Alan Modra  <amodra@gmail.com>
1321         * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
1323 2021-01-28  H.J. Lu  <hongjiu.lu@intel.com>
1325         PR ld/27259
1326         * testsuite/ld-elf/pr27259.d: New file.
1327         * testsuite/ld-elf/pr27259.s: Likewise.
1329 2021-01-28  Alan Modra  <amodra@gmail.com>
1331         PR 27259
1332         * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
1333         prevent endless looping of linked-to sections.
1335 2021-01-26  H.J. Lu  <hongjiu.lu@intel.com>
1337         * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
1339 2021-01-26  Alan Modra  <amodra@gmail.com>
1341         PR 27226
1342         * emulparams/alphavms.sh: Don't set COMPILE_IN.
1343         * emulparams/elf64_ia64_vms.sh: Likewise.
1344         * emulparams/elf64mmix.sh: Likewise.
1345         * emulparams/elf_iamcu.sh: Likewise.
1346         * emulparams/elf_k1om.sh: Likewise.
1347         * emulparams/elf_l1om.sh: Likewise.
1348         * emulparams/mmo.sh: Likewise.
1349         * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
1350         * scripttempl/pdp11.sc: Use it.
1351         * emultempl/pdp11.em: Don't edit .xn script for separate_code,
1352         instead use .xe script.  Support scripts from file system.
1353         * emultempl/beos.em: Support scripts from file system.
1354         * emultempl/pe.em: Likewise.
1355         * emultempl/pep.em: Likewise.
1356         * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
1358 2021-01-25  Fangrui Song  <maskray@google.com>
1360         PR ld/27230
1361         * scripttempl/DWARF.sc: Add .debug_* sections.
1363 2021-01-25  Nick Clifton  <nickc@redhat.com>
1365         * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
1366         .debug_line_str and .debug_str_offsets.  Move .debug_macro and
1367         .debug_addr into DWARF-5 section.
1369 2021-01-21  Alan Modra  <amodra@gmail.com>
1371         * testsuite/ld-elf/pr26936.d: No longer xfail mips.
1373 2021-01-20  Alan Modra  <amodra@gmail.com>
1375         * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
1376         * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
1377         * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
1378         * testsuite/ld-powerpc/tlsget.wf: Likewise.
1379         * testsuite/ld-powerpc/tlsget2.d: Likewise.
1380         * testsuite/ld-powerpc/tlsget2.wf: Likewise.
1381         * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
1382         * testsuite/ld-powerpc/tlsexe32.r: Likewise.
1383         * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
1384         * testsuite/ld-powerpc/tlsexeno.r: Likewise.
1385         * testsuite/ld-powerpc/tlsexenors.r: Likewise.
1386         * testsuite/ld-powerpc/tlsexers.r: Likewise.
1387         * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
1388         * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
1389         * testsuite/ld-powerpc/tlsso.r: Likewise.
1390         * testsuite/ld-powerpc/tlsso32.r: Likewise.
1391         * testsuite/ld-powerpc/tlstocso.r: Likewise.
1393 2021-01-19  Nick Alcock  <nick.alcock@oracle.com>
1395         * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
1396         symbols by the optimizer.
1397         * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
1399 2021-01-19  Nelson Chu  <nelson.chu@sifive.com>
1401         * testsuite/ld-elf/elf.exp (riscv_little_endian): Added.  Return true
1402         if target is riscv little endian.  Otherwise, return false.
1403         * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
1404         targets by [riscv_little_endian].
1406 2021-01-18  Alan Modra  <amodra@gmail.com>
1408         PR 26378
1409         * ldlang.c (map_input_to_output_sections): Start with a read-only
1410         section for data statements.
1411         * testsuite/ld-elf/size-2.d: Adjust to suit.
1413 2021-01-17  H.J. Lu  <hongjiu.lu@intel.com>
1415         PR ld/27193
1416         * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
1417         * testsuite/ld-i386/pr27193.dd: New file.
1418         * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
1419         * testsuite/ld-i386/pr27193b.s: Likewise.
1421 2021-01-16  H.J. Lu  <hongjiu.lu@intel.com>
1423         PR binutils/23460
1424         * testsuite/ld-plugin/lto.exp: Increase the max number of open
1425         files to 20 for PR binutils/23460 test.
1427 2021-01-16  H.J. Lu  <hongjiu.lu@intel.com>
1429         PR ld/23169
1430         * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
1431         pr23169a.rd for pr23169c and pr23169f.  Remove pr23169e tests.
1432         * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
1433         address.
1435 2021-01-15  H.J. Lu  <hongjiu.lu@intel.com>
1437         * NEWS: Mention -z report-relative-reloc.
1438         * ld.texi: Document -z report-relative-reloc.
1439         * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
1440         * emulparams/elf_i386.sh: Likewse.
1441         * emulparams/elf_x86_64.sh: Likewse.
1442         * emulparams/x86-report-relative.sh: New file.
1443         * testsuite/ld-i386/report-reloc-1.d: Likewse.
1444         * testsuite/ld-i386/report-reloc-1.l: Likewse.
1445         * testsuite/ld-i386/report-reloc-1.s: Likewse.
1446         * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
1447         * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
1448         * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
1449         * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
1450         * testsuite/ld-i386/i386.exp: Run report-reloc-1.
1451         * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
1452         report-reloc-1-x32.
1454 2021-01-16  Alan Modra  <amodra@gmail.com>
1456         PR 26002
1457         * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
1458         unversioned symbols.
1459         * testsuite/ld-elfvers/vers16.dsym: Likewise.
1461 2021-01-15  Nelson Chu  <nelson.chu@sifive.com>
1463         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
1464         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
1465         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
1466         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
1467         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
1468         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
1470 2021-01-14  Nick Clifton  <nickc@redhat.com>
1472         * po/fr.po: Updated French translation.
1474 2021-01-14  Mike Frysinger  <vapier@gentoo.org>
1476         * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
1478 2021-01-14  Alan Modra  <amodra@gmail.com>
1480         PR 27160
1481         * ldelfgen.c (compare_link_order): Protect access of ELF section
1482         data.
1483         (add_link_order_input_section): Remove redundant NULL check.
1484         Use bfd_get_flavour.
1485         (ldelf_map_segments): Use bfd_get_flavour.
1487 2021-01-13  H.J. Lu  <hongjiu.lu@intel.com>
1489         * ldelfgen.c (add_link_order_input_section): Check for ELF input
1490         before accessing ELF section data.
1492 2021-01-13  Alan Modra  <amodra@gmail.com>
1494         * Makefile.in: Regenerate.
1496 2021-01-13  Alan Modra  <amodra@gmail.com>
1498         PR 27160
1499         * ldlang.h (lang_output_section_statement_type): Add data field.
1500         (lang_input_section_type, lang_section_bst_type): Add pattern field.
1501         (statement_list): Declare.
1502         (lang_add_section): Adjust prototype.
1503         * emultempl/aarch64elf.em: Adjust lang_add_section calls.
1504         * emultempl/armelf.em: Likewise.
1505         * emultempl/beos.em: Likewise.
1506         * emultempl/cskyelf.em: Likewise.
1507         * emultempl/hppaelf.em: Likewise.
1508         * emultempl/m68hc1xelf.em: Likewise.
1509         * emultempl/metagelf.em: Likewise.
1510         * emultempl/mipself.em: Likewise.
1511         * emultempl/mmo.em: Likewise.
1512         * emultempl/msp430.em: Likewise.
1513         * emultempl/nios2elf.em: Likewise.
1514         * emultempl/pe.em: Likewise.
1515         * emultempl/pep.em: Likewise.
1516         * emultempl/ppc64elf.em: Likewise.
1517         * emultempl/spuelf.em: Likewise.
1518         * emultempl/vms.em: Likewise.
1519         * ldelf.c: Likewise.
1520         * ldelfgen.c: Include ldctor.h.
1521         (struct os_sections): New.
1522         (add_link_order_input_section, link_order_scan): New functions.
1523         (compare_link_order, fixup_link_order): New functions.
1524         (ldelf_map_segments): Call link_order_scan and fixup_link_order.
1525         * ldlang.c (statement_list): Make global.
1526         (output_section_callback_fast): Save pattern in tree node.
1527         (lang_add_section): Add pattern parameter, save in lang_input_section.
1528         (output_section_callback_tree_to_list): Adjust lang_add_section calls.
1529         (lang_insert_orphan, output_section_callback): Likewise.
1530         (ldlang_place_orphan): Likewise.
1531         (gc_section_callback): Don't set section->pattern.
1532         * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
1533         * testsuite/ld-elf/pr26256-3b.d: Likewise.
1534         * testsuite/ld-elf/pr26256-2b.d: Likewise.  notarget xgate.
1536 2021-01-13  Alan Modra  <amodra@gmail.com>
1538         * ldlang.h (callback_t): Remove flag_info function parameter.
1539         * ldlang.c (walk_wild_consider_section): Adjust to suit.
1540         (walk_wild_section_general): Likewise.
1541         (output_section_callback_fast, output_section_callback): Likewise.
1542         (check_section_callback, gc_section_callback): Likewise.
1543         (find_relro_section_callback): Likewise.
1545 2021-01-12  H.J. Lu  <hongjiu.lu@intel.com>
1547         PR binutils/26792
1548         * configure.ac: Use GNU_MAKE_JOBSERVER.
1549         * aclocal.m4: Regenerated.
1550         * configure: Likewise.
1552 2021-01-12  H.J. Lu  <hongjiu.lu@intel.com>
1554         PR ld/27171
1555         * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
1556         * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1557         * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1558         * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
1560 2021-01-11  H.J. Lu  <hongjiu.lu@intel.com>
1562         PR ld/27173
1563         * configure: Regenerated.
1565 2021-01-11  Matt Jenkins  <matt@majenko.co.uk>
1567         PR ld/27167
1568         * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
1569         and mips64r5 to list of known mips targets.
1571 2021-01-11  Nick Clifton  <nickc@redhat.com>matt@majenko.co.uk
1573         * po/pt_BR.po: Updated Brazilian Portuguese translation.
1574 `       * po/uk.po: Updated Ukranian translation.
1576 2021-01-09  H.J. Lu  <hongjiu.lu@intel.com>
1578         * configure: Regenerated.
1580 2021-01-09  H.J. Lu  <hongjiu.lu@intel.com>
1582         PR ld/27166
1583         * testsuite/ld-x86-64/lam-u48.rd: New file.
1584         * testsuite/ld-x86-64/lam-u57.rd: Likewise.
1585         * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
1587 2021-01-09  Nick Clifton  <nickc@redhat.com>
1589         * configure: Regenerate.
1590         * po/ld.pot: Regenerate.
1592 2021-01-09  Nick Clifton  <nickc@redhat.com>
1594         * 2.36 release branch crated.
1596 2021-01-08  H.J. Lu  <hongjiu.lu@intel.com>
1598         * ld-x86-64/property-x86-lam-u48-4.d: Updated.
1599         * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
1601 2021-01-09  Alan Modra  <amodra@gmail.com>
1603         * configure: Regenerate.
1604         * Makefile.in: Regenerate.
1606 2021-01-07  Samuel Thibault  <samuel.thibault@gnu.org>
1608         * configure: Regenerate.
1610 2021-01-07  H.J. Lu  <hongjiu.lu@intel.com>
1612         PR 27109
1613         * testsuite/ld-elf/export-class.sd: Adjust the expected output.
1614         * testsuite/ld-elf/loadaddr3b.d: Likewise.
1615         * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1616         * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1617         * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1618         * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1619         * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1620         * testsuite/ld-i386/pr19636-1d.d: Likewise.
1621         * testsuite/ld-i386/pr19636-1l.d: Likewise.
1622         * testsuite/ld-i386/pr19636-2c.d: Likewise.
1623         * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1624         * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1625         * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1626         * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1627         * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1628         * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1629         * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1630         * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1631         * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1632         * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1633         * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1634         * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1635         * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1636         * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1637         * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1638         * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1639         * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1640         * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1641         * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1642         * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1643         * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1644         * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1645         * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1646         * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1647         * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1648         * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1649         * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
1650         * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
1651         * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
1652         * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
1653         * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
1654         * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
1655         * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1656         * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
1657         * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1658         * testsuite/ld-x86-64/pr21038b.d: Likewise.
1659         * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1660         * testsuite/ld-x86-64/pr21038c.d: Likewise.
1661         * testsuite/ld-x86-64/pr23854.d: Likewise.
1662         * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1663         * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1664         * testsuite/ld-i386/plt-pic.pd: Likewise.
1665         * testsuite/ld-i386/plt-pic2.dd: Likewise.
1666         * testsuite/ld-i386/plt.pd: Likewise.
1667         * testsuite/ld-i386/plt2.dd: Likewise.
1668         * testsuite/ld-i386/tlsbin.rd: Likewise.
1669         * testsuite/ld-i386/tlsbin2.rd: Likewise.
1670         * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1671         * testsuite/ld-i386/tlsdesc.rd: Likewise.
1672         * testsuite/ld-i386/tlsgdesc.rd: Likewise.
1673         * testsuite/ld-i386/tlsnopic.rd: Likewise.
1674         * testsuite/ld-i386/tlspic.rd: Likewise.
1675         * testsuite/ld-i386/tlspic2.rd: Likewise.
1676         * testsuite/ld-x86-64/mpx3.dd: Likewise.
1677         * testsuite/ld-x86-64/mpx3n.dd: Likewise.
1678         * testsuite/ld-x86-64/mpx4.dd: Likewise.
1679         * testsuite/ld-x86-64/mpx4n.dd: Likewise.
1680         * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
1681         * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1682         * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1683         * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1684         * testsuite/ld-x86-64/plt.pd: Likewise.
1685         * testsuite/ld-x86-64/plt2.dd: Likewise.
1686         * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1687         * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1688         * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1689         * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1690         * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
1691         * testsuite/ld-x86-64/tlspic.rd: Likewise.
1692         * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1693         * testsuite/ld-elf/sec64k.exp: Check
1694         is_elf_unused_section_symbols.
1696 2021-01-07  Alan Modra  <amodra@gmail.com>
1698         * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
1699         * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
1700         * testsuite/ld-scripts/segment-start.d: Likewise.
1702 2021-01-07  Alan Modra  <amodra@gmail.com>
1704         * testsuite/ld-elf/comm-data5.d: xfail targets that complain
1705         about dynamic relocations in read-only sections.
1706         * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1707         * testsuite/ld-elf/ehdr_start.d: Likewise.
1708         * testsuite/ld-scripts/pr22267.d: Likewise.
1709         * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
1710         pr20995 text.
1711         * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
1713 2021-01-07  Marcus Comstedt  <marcus@mc.pp.se>
1715         * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
1716         * testsuite/ld-scripts/empty-address-2b.d: Likewise.
1718 2021-01-07  Alan Modra  <amodra@gmail.com>
1720         * po/BLD-POTFILES.in: Regenerate.
1722 2021-01-07  Alan Modra  <amodra@gmail.com>
1724         * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
1725         complain about relocs in read-only sections.  Tidy ASFLAGS append.
1727 2021-01-06  Alan Modra  <amodra@gmail.com>
1729         * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
1730         base for some tests.
1731         * testsuite/ld-sparc/gotop32.dd: Match solaris output.
1732         * testsuite/ld-sparc/gotop32.sd: Likewise.
1733         * testsuite/ld-sparc/gotop32.td: Likewise.
1734         * testsuite/ld-sparc/gotop64.dd: Likewise.
1735         * testsuite/ld-sparc/gotop64.sd: Likewise.
1736         * testsuite/ld-sparc/gotop64.td: Likewise.
1737         * testsuite/ld-sparc/tlsg32.sd: Likewise.
1738         * testsuite/ld-sparc/tlsg64.sd: Likewise.
1739         * testsuite/ld-sparc/tlspie32.dd: Likewise.
1740         * testsuite/ld-sparc/tlspie64.dd: Likewise.
1741         * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
1742         * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
1743         * testsuite/ld-sparc/tlssunbin32.td: Likewise.
1744         * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
1745         * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
1746         * testsuite/ld-sparc/tlssunbin64.td: Likewise.
1747         * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
1748         * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
1749         * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
1750         * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
1751         * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
1752         * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
1753         * testsuite/ld-sparc/tlssunpic32.td: Likewise.
1754         * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
1755         * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
1756         * testsuite/ld-sparc/tlssunpic64.td: Likewise.
1757         * testsuite/ld-sparc/wdispcall.dd: Likewise.
1759 2021-01-06  Alan Modra  <amodra@gmail.com>
1761         * testsuite/ld-scripts/rgn-at10.d: xfail v850.
1762         * testsuite/ld-scripts/rgn-at11.d: Likewise.
1764 2021-01-06  Marcus Comstedt  <marcus@mc.pp.se>
1766         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
1767         riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
1768         * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
1769         riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
1770         * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1771         * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1772         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1773         * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
1774         * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
1775         * testsuite/ld-riscv-elf/c-lui.d: Likewise.
1776         * testsuite/ld-riscv-elf/call-relax.d: Likewise.
1777         * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
1778         * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
1779         * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
1780         to littleriscv.
1781         * testsuite/ld-riscv-elf/weakref64.d: Likewise.
1783 2021-01-06  Marcus Comstedt  <marcus@mc.pp.se>
1785         * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
1786         riscv32be*-*-linux*, and riscv64be*-*-linux*.
1787         * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
1788         eelf32briscv_ilp32.c.
1789         * Makefile.in: Regenerate.
1790         * emulparams/elf32briscv.sh: Added.
1791         * emulparams/elf32briscv_ilp32.sh: Likewise.
1792         * emulparams/elf32briscv_ilp32f.sh: Likewise.
1793         * emulparams/elf64briscv.sh: Likewise.
1794         * emulparams/elf64briscv_lp64.sh: Likewise.
1795         * emulparams/elf64briscv_lp64f.sh: Likewise.
1797 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
1799         * testsuite/ld-ctf/enum-forward.c: New test.
1800         * testsuite/ld-ctf/enum-forward.c: New results.
1802 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
1804         * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1805         * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1806         * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1807         * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1808         * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1809         * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1810         * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1811         * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1812         * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1813         * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1814         * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1815         * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1816         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1817         * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1818         * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1819         * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1820         * testsuite/ld-ctf/cycle-1.d: Likewise.
1821         * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1822         * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1823         * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1824         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1825         * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1826         * testsuite/ld-ctf/diag-cuname.d: Likewise.
1827         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1828         * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1829         * testsuite/ld-ctf/forward.d: Likewise.
1830         * testsuite/ld-ctf/function.d: Likewise.
1831         * testsuite/ld-ctf/slice.d: Likewise.
1832         * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1833         * testsuite/ld-ctf/enums.c: New test.
1834         * testsuite/ld-ctf/enums.d: New test.
1836 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
1838         * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
1839         changes.
1840         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1841         * testsuite/ld-ctf/forward.c: New test...
1842         * testsuite/ld-ctf/forward.d: ... and results.
1844 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
1846         * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1847         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1848         * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1849         * testsuite/ld-ctf/diag-cuname.d: Likewise.
1850         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1851         * testsuite/ld-ctf/function.d: Likewise.
1852         * testsuite/ld-ctf/slice.d: Likewise.
1854 2021-01-05  Nick Alcock  <nick.alcock@oracle.com>
1856         * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1857         * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1858         * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1859         * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1860         * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1861         * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1862         * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1863         * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1864         * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1865         * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1866         * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1867         * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1868         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1869         * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1870         * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1871         * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1872         * testsuite/ld-ctf/cycle-1.d: Likewise.
1873         * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1874         * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1875         * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1876         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1877         * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1878         * testsuite/ld-ctf/diag-cuname.d: Likewise.
1879         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1880         * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1881         * testsuite/ld-ctf/function.d: Likewise.
1882         * testsuite/ld-ctf/slice.d: Likewise.
1883         * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1885 2021-01-05  Alan Modra  <amodra@gmail.com>
1887         * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
1889 2021-01-05  Alan Modra  <amodra@gmail.com>
1891         PR ld/26256
1892         * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
1893         * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
1895 2021-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1897         PR ld/26256
1898         * ldlang.c (gc_section_callback): Set pattern.
1899         * testsuite/ld-elf/pr26256-1.s: New file.
1900         * testsuite/ld-elf/pr26256-1.t: Likewise.
1901         * testsuite/ld-elf/pr26256-1a.d: Likewise.
1902         * testsuite/ld-elf/pr26256-1b.d: Likewise.
1903         * testsuite/ld-elf/pr26256-2.s: Likewise.
1904         * testsuite/ld-elf/pr26256-2.t: Likewise.
1905         * testsuite/ld-elf/pr26256-2a.d: Likewise.
1906         * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
1907         * testsuite/ld-elf/pr26256-2b.d: Likewise.
1908         * testsuite/ld-elf/pr26256-3.s: Likewise.
1909         * testsuite/ld-elf/pr26256-3a.d: Likewise.
1910         * testsuite/ld-elf/pr26256-3a.t: Likewise.
1911         * testsuite/ld-elf/pr26256-3b.d: Likewise.
1912         * testsuite/ld-elf/pr26256-3b.t: Likewise.
1914 2021-01-04  Alan Modra  <amodra@gmail.com>
1916         PR 26822
1917         * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
1918         * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
1919         * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
1920         * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
1921         * testsuite/ld-i386/tlsbin.rd: Likewise.
1922         * testsuite/ld-i386/tlsbin2.rd: Likewise.
1923         * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1924         * testsuite/ld-i386/tlsdesc.rd: Likewise.
1925         * testsuite/ld-i386/tlsnopic.rd: Likewise.
1926         * testsuite/ld-i386/tlspic.rd: Likewise.
1927         * testsuite/ld-i386/tlspic2.rd: Likewise.
1928         * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
1929         * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
1930         * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
1931         * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
1932         * testsuite/ld-plugin/pr17973.d: Likewise.
1933         * testsuite/ld-tic6x/shlib-1.rd: Likewise.
1934         * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
1935         * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
1936         * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
1937         * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
1938         * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
1939         * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
1940         * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
1941         * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
1942         * testsuite/ld-tic6x/static-app-1.rd: Likewise.
1943         * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
1944         * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
1945         * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
1946         * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1947         * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1948         * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1949         * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1950         * testsuite/ld-x86-64/tlspic.rd: Likewise.
1951         * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1952         * testsuite/ld-xtensa/tlsbin.rd: Likewise.
1953         * testsuite/ld-xtensa/tlspic.rd: Likewise.
1955 2021-01-01  Nicolas Boulenguez  <nicolas@debian.org>
1957         * configure.tgt: Correct comment grammar.
1958         * emultempl/m68hc1xelf.em: Likewise.
1959         * ld.texi: Correct grammar.
1961 2021-01-01  Alan Modra  <amodra@gmail.com>
1963         Update year range in copyright notice of all files.
1965 For older changes see ChangeLog-2020
1967 Copyright (C) 2021-2022 Free Software Foundation, Inc.
1969 Copying and distribution of this file, with or without modification,
1970 are permitted in any medium without royalty provided the copyright
1971 notice and this notice are preserved.
1973 Local Variables:
1974 mode: change-log
1975 left-margin: 8
1976 fill-column: 74
1977 version-control: never
1978 End: