Automatic date update in version.in
[binutils-gdb.git] / ld / ChangeLog-2020
blob03b4b224b7be052564df6b38493d37d9e9a43a40
1 2020-12-31  H.J. Lu  <hongjiu.lu@intel.com>
2             Alan Modra  <amodra@gmail.com>
4         PR 27128
5         * testsuite/ld-elf/pr27128.s: New file.
6         * testsuite/ld-elf/pr27128.t: Likewise.
7         * testsuite/ld-elf/pr27128a.d: Likewise.
8         * testsuite/ld-elf/pr27128b.d: Likewise.
9         * testsuite/ld-elf/pr27128c.d: Likewise.
10         * testsuite/ld-elf/pr27128d.d: Likewise.
11         * testsuite/ld-elf/pr27128e.d: Likewise.
13 2020-12-24  Alan Modra  <amodra@gmail.com>
15         * testsuite/ld-elf/retain7a.d: Don't run on hppa-linux.
16         * testsuite/ld-elf/retain7b.d: Correct name.  Don't run on tic6x.
17         Allow OSABI FreeBSD.
19 2020-12-24  Alan Modra  <amodra@gmail.com>
21         PR 27100
22         * ldlang.h (lang_output_section_statement_type): Add dup_output.
23         * ldlang.c (lang_output_section_statement_lookup): Set dup_output.
24         (init_os): Test dup_output rather than constraint.
25         * testsuite/ld-scripts/pr27100.d,
26         * testsuite/ld-scripts/pr27100.s,
27         * testsuite/ld-scripts/pr27100.t: New test.
28         * testsuite/ld-scripts/data.exp: Run it.  Don't exclude aout here.
29         * testsuite/ld-scripts/data.d: Do so here instead.
30         * testsuite/ld-scripts/fill.d: Likewise.
31         * testsuite/ld-scripts/fill16.d: Likewise.
33 2020-12-23  H.J. Lu  <hongjiu.lu@intel.com>
35         * NEWS: Mention LAM_U48 and LAM_U57 support.
36         * ld.texi: Document LAM_U48 and LAM_U57 support.
37         * emulparams/cet.sh: Updated.
38         * emulparams/elf_x86_64.sh: Source x86-64-lam.sh.
39         * emulparams/x86-64-lam.sh: New file.
40         * testsuite/ld-x86-64/property-x86-lam-u48-1a.d: Likewise.
41         * testsuite/ld-x86-64/property-x86-lam-u48-1b.d: Likewise.
42         * testsuite/ld-x86-64/property-x86-lam-u48-2.d: Likewise.
43         * testsuite/ld-x86-64/property-x86-lam-u48-3a.d: Likewise.
44         * testsuite/ld-x86-64/property-x86-lam-u48-3b.d: Likewise.
45         * testsuite/ld-x86-64/property-x86-lam-u48-4.d: Likewise.
46         * testsuite/ld-x86-64/property-x86-lam-u48-5.d: Likewise.
47         * testsuite/ld-x86-64/property-x86-lam-u48.s: Likewise.
48         * testsuite/ld-x86-64/property-x86-lam-u57-1a.d: Likewise.
49         * testsuite/ld-x86-64/property-x86-lam-u57-1b.d: Likewise.
50         * testsuite/ld-x86-64/property-x86-lam-u57-2.d: Likewise.
51         * testsuite/ld-x86-64/property-x86-lam-u57-3a.d: Likewise.
52         * testsuite/ld-x86-64/property-x86-lam-u57-3b.d: Likewise.
53         * testsuite/ld-x86-64/property-x86-lam-u57-4.d: Likewise.
54         * testsuite/ld-x86-64/property-x86-lam-u57-5.d: Likewise.
55         * testsuite/ld-x86-64/property-x86-lam-u57.s: Likewise.
56         * testsuite/ld-x86-64/x86-64.exp: Run LAM tests.
58 2020-12-18  H.J. Lu  <hongjiu.lu@intel.com>
60         PR ld/27082
61         * Makefile.am
62         (libdep_la_LDFLAGS): Add -module -avoid-version.
63         (libdep_la_LINK): New.
64         (install-data-local): Depend on $(install-bfdpluginLTLIBRARIES)
65         and remove libdep.la.
67 2020-12-18  H.J. Lu  <hongjiu.lu@intel.com>
69         PR ld/27091
70         * testsuite/ld-elf/retain7.s: New file.
71         * testsuite/ld-elf/retain7a.d: Likewise.
72         * testsuite/ld-elf/retain7b.d: Likewise.
74 2020-12-16  Howard Chu <hyc@symas.com>
75             H.J. Lu  <hongjiu.lu@intel.com>
77         PR ld/27081
78         * libdep_plugin.c (onload): Skip if not all required plugin hooks
79         are available.
80         * testsuite/config/default.exp (dep_plug_opt): New.
81         * testsuite/ld-elf/elf.exp: Pass $dep_plug_opt to nm.
82         * testsuite/ld-elf/pr26391.fd: New file.
84 2020-12-16  Alan Modra  <amodra@gmail.com>
86         * ld.h (ld_config_type): Delete maxpagesize and commonpagesize.
87         * emultempl/elf.em: Use link_info rather than config
88         for maxpagesize and commonpagesize.
89         * emultempl/ppc32elf.em: Likewise.
90         * ldexp.c (fold_binary, fold_name): Likewise.
91         * ldemul.c (after_parse_default): Likewise.
92         (set_output_arch_default): Don't call bfd_emul_set_maxpagesize
93         or bfd_emul_set_commonpagesize.
95 2020-12-15  Vivek Das Mohapatra  <vivek@collabora.com>
97         * emultempl/elf.em (gld${EMULATION_NAME}_handle_option):
98         Parse -z unique / -z nounique options.
99         * ld.texi (Options): Document -z unique and -z nounique.
100         * lexsup.c (elf_shlib_list_options): Likewise.
102 2020-12-14  Howard Chu  <hyc@symas.com>
104         * libdep_plugin.c: New file: Processes archives that contain a
105         special library dependencies element.
106         * Makefile.am: Add build rules for libdep_plugin.
107         * Makefile.in: Regenerate.
108         * NEWS: Mention the new plugin.
109         * ld.texi: Document the new plugin.
111 2020-12-14  Alan Modra  <amodra@gmail.com>
113         PR 26836
114         * lexsup.c (parse_args): Free really_longopts, longopts and
115         shortopts.
117 2020-12-14  Nick Clifton  <nickc@redhat.com>
119         PR 27050
120         * lexsup.c (parse_args): Ensure that the longind local variable is
121         set.
123 2020-12-14  Alan Modra  <amodra@gmail.com>
125         PR 27064
126         * deffilep.y (SHARED_K): Rename from SHARED.  Update uses.
128 2020-12-05  Maciej W. Rozycki  <macro@linux-mips.org>
130         * testsuite/ld-vax-elf/got-local-exe-off-hidden.dd: New test
131         dump.
132         * testsuite/ld-vax-elf/got-local-exe-off-visible.dd: New test
133         dump.
134         * testsuite/ld-vax-elf/got-local-lib-off-hidden.dd: New test
135         dump.
136         * testsuite/ld-vax-elf/got-local-lib-off-visible.ed: New test
137         dump.
138         * testsuite/ld-vax-elf/got-local-off-external.ed: New test dump.
139         * testsuite/ld-vax-elf/got-local-exe-off.xd: New test dump.
140         * testsuite/ld-vax-elf/got-local-lib-off.xd: New test dump.
141         * testsuite/ld-vax-elf/got-local.ld: New test linker script.
142         * testsuite/ld-vax-elf/got-local-aux-off.s: New test source.
143         * testsuite/ld-vax-elf/got-local-def-off.s: New test source.
144         * testsuite/ld-vax-elf/got-local-ref-off-external.s: New test
145         source.
146         * testsuite/ld-vax-elf/got-local-ref-off-hidden.s: New test
147         source.
148         * testsuite/ld-vax-elf/got-local-ref-off-visible.s: New test
149         source.
150         * testsuite/ld-vax-elf/vax-elf.exp: Run the new tests.
152 2020-12-04  H.J. Lu  <hongjiu.lu@intel.com>
154         PR ld/27016
155         * testsuite/ld-x86-64/x86-64.exp: Run pr27016a and pr27016b.
156         * testsuite/ld-x86-64/pr27016a.d: New file.
157         * testsuite/ld-x86-64/pr27016a.s: Likewise.
158         * testsuite/ld-x86-64/pr27016b.d: Likewise.
159         * testsuite/ld-x86-64/pr27016b.s: Likewise.
161 2020-12-04  Alan Modra  <amodra@gmail.com>
163         * testsuite/ld-elf/pr26978a.d,
164         * testsuite/ld-elf/pr26978a.s,
165         * testsuite/ld-elf/pr26978b.d,
166         * testsuite/ld-elf/pr26978b.s: New tests.
168 2020-12-03  Andreas Krebbel  <krebbel@linux.ibm.com>
170         * testsuite/ld-s390/tlsbin_64.dd: The newly added jgnop mnemonic
171         replaces long relative branches with empty condition code masks.
173 2020-12-03  Maciej W. Rozycki  <macro@linux-mips.org>
175         * testsuite/ld-vax-elf/vax-elf.exp: Wrap excessively long lines
176         throughout.
178 2020-12-02  Hans-Peter Nilsson  <hp@axis.com>
180         * testsuite/ld-elf/pr26936.d: Pass -W.
182 2020-12-01  H.J. Lu  <hongjiu.lu@intel.com>
184         PR ld/26970
185         * scripttempl/elfarc.sc (TEXT_START_ADDR): New.  Add SEGMENT_START.
186         (SHLIB_TEXT_START_ADDR): Likewise.
188 2020-12-01  Alan Modra  <amodra@gmail.com>
190         * testsuite/ld-elf/elf.exp: Set ASFLAGS for tic6x.
191         * testsuite/ld-elf/reloc-discard.d: Remove tic6x xfail.
193 2020-12-01  Alan Modra  <amodra@gmail.com>
195         * testsuite/ld-elf/pr26979a.s,
196         * testsuite/ld-elf/pr26979b.s,
197         * testsuite/ld-elf/pr26979c.s,
198         * testsuite/ld-elf/pr26979.ver,
199         * testsuite/ld-elf/pr26979a.d,
200         * testsuite/ld-elf/pr26979b.d: New tests.
202 2020-11-29  H.J. Lu  <hongjiu.lu@intel.com>
204         PR ld/26936
205         * testsuite/ld-elf/pr26936.d: Xfail targets which don't support
206         mixing linkonce and comdat sections.
208 2020-11-28  Alan Modra  <amodra@gmail.com>
210         * testsuite/ld-elf/pr26907.ld,
211         * testsuite/ld-elf/pr26907.s,
212         * testsuite/ld-elf/pr26907.d: New test.
214 2020-11-27  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
216         * emulparams/armelf.sh (OTHER_SECTIONS): Remove .noinit section
217         definition.
218         Define HAVE_{NOINIT,PERSISTENT}=yes.
219         * scripttempl/avr.sc (.noinit): Add .noinit.* and .gnu.linkonce.n.*
220         input section wildcard patterns.
221         * scripttempl/elf.sc: Define .noinit and .persistent sections when
222         HAVE_NOINIT or HAVE_PERSISTENT are defined to "yes".
223         * scripttempl/elf32msp430.sc (.noinit): Add .noinit.* and
224         .gnu.linkonce.n.*. input section wildcard patterns.
225         (.persistent): Add .persistent.* and
226         .gnu.linkonce.p.*. input section wildcard patterns.
227         * scripttempl/elfarcv2.sc (.noinit): Add .noinit.* and
228         .gnu.linkonce.n.*. input section wildcard patterns.
229         * scripttempl/pru.sc: Likewise.
230         * testsuite/ld-elf/noinit-sections-1.d: New test.
231         * testsuite/ld-elf/noinit-sections-2.d: New test.
232         * testsuite/ld-elf/noinit-sections-2.l: New test.
233         * testsuite/ld-elf/noinit-sections.s: New test.
234         * testsuite/ld-elf/persistent-sections-1.d: New test.
235         * testsuite/ld-elf/persistent-sections-2.d: New test.
236         * testsuite/ld-elf/persistent-sections-2.l: New test.
237         * testsuite/ld-elf/persistent-sections.s: New test.
239 2020-11-26  Alan Modra  <amodra@gmail.com>
241         PR 26936
242         * testsuite/ld-elf/pr26936.d: Pass --gen-debug to gas rather than -g.
243         Only run when -shared -z options are supported.
244         * testsuite/ld-elf/pr26936b.s: Define more entry symbols.
246 2020-11-25  H.J. Lu  <hongjiu.lu@intel.com>
248         PR ld/26936
249         * testsuite/ld-elf/pr26936.d: New file.
250         * testsuite/ld-elf/pr26936a.s: Likewise.
251         * testsuite/ld-elf/pr26936b.s: Likewise.
252         * testsuite/ld-elf/pr26936c.s: Likewise.
254 2020-11-25  Alan Modra  <amodra@gmail.com>
256         * ldlang.c (lang_output_section_statement_lookup): Change "create"
257         parameter to a tristate, if 2 then always create a new output
258         section statement.  Update all callers, with
259         lang_enter_output_section_statement using "2".
260         (map_input_to_output_sections): Don't ignore SPECIAL constraint
261         here.
262         * ldlang.h (lang_output_section_statement_type): Update prototype.
263         (lang_output_section_find): Update.
265 2020-11-24  H.J. Lu  <hongjiu.lu@intel.com>
267         PR gold/26939
268         * testsuite/ld-x86-64/pr26939-x32.d: New file.
269         * testsuite/ld-x86-64/pr26939.d: Likewise.
270         * testsuite/ld-x86-64/pr26939.s: Likewise.
271         * testsuite/ld-x86-64/x86-64.exp: Run PR gold/26939 tests.
273 2020-11-23  H.J. Lu  <hongjiu.lu@intel.com>
275         PR ld/26918
276         * testsuite/ld-s390/pr26918-1.d: New file.
277         * testsuite/ld-s390/pr26918-1.s: Likewise.
278         * testsuite/ld-s390/s390.exp: Run all *.d tests.
280 2020-11-23  Shahab Vahedi  <shahab@synopsys.org>
282         * testsuite/ld-arc/tls_ie-01.d: Use a more general pattern.
284 2020-11-21  Nelson Chu  <nelson.chu@sifive.com>
286         * emultempl/riscvelf.em (riscv_elf_before_allocation): Change
287         link_info.relax_pass from 3 to 4.
288         * testsuite/ld-riscv-elf/pcgp-relax.d: New testcase.
289         * testsuite/ld-riscv-elf/pcgp-relax.s: Likewise.
290         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
292 2020-11-20  Nick Alcock  <nick.alcock@oracle.com>
294         * testsuite/ld-ctf/data-func-conflicted.d: Shrink the expected
295         size of the type section now that function types are being
296         deduplicated properly.
298 2020-11-20  Nick Alcock  <nick.alcock@oracle.com>
300         * testsuite/ld-ctf/array.d: Adjust for nonzero flags word and
301         public symbols in the data section rather than variables: use
302         sysv hash style to keep test results the same on non-GNU targets.
303         * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
304         * testsuite/ld-ctf/diag-cuname.d: Likewise.
305         * testsuite/ld-ctf/diag-parlabel.d: Likewise.
306         * testsuite/ld-ctf/slice.d: Likewise.
307         * testsuite/ld-ctf/function.d: Likewise, but in the function section.
308         * testsuite/ld-ctf/conflicting-cycle-1.B-1.d:  Adjust for nonzero
309         flags word.
310         * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
311         * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
312         * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
313         * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
314         * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
315         * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
316         * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
317         * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
318         * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
319         * testsuite/ld-ctf/cycle-1.d: Likewise.
320         * testsuite/ld-ctf/cycle-2.A.d: Likewise.
321         * testsuite/ld-ctf/cycle-2.B.d: Likewise.
322         * testsuite/ld-ctf/cycle-2.C.d: Likewise.
323         * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d:  Likewise.
324         * testsuite/ld-ctf/super-sub-cycles.d:  Likewise.
325         * testsuite/ld-ctf/data-func-1.c: New test.
326         * testsuite/ld-ctf/data-func-2.c: Likewise.
327         * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
329 2020-11-20  Nick Alcock  <nick.alcock@oracle.com>
331         * ldelfgen.c (struct ctf_strsym_iter_cb_arg): Rename to...
332         (struct ctf_strtab_iter_cb_arg): ... this, changing fields:
333         <syms>: Remove.
334         <symcount>: Remove.
335         <symstrtab>: Rename to...
336         <strtab>: ... this.
337         (ldelf_ctf_strtab_iter_cb): Adjust.
338         (ldelf_ctf_symbols_iter_cb): Remove.
339         (ldelf_new_dynsym_for_ctf): New, tell libctf about a single
340         symbol.
341         (ldelf_examine_strtab_for_ctf): Rename to...
342         (ldelf_acquire_strings_for_ctf): ... this, only doing the strtab
343         portion and not symbols.
344         * ldelfgen.h: Adjust declarations accordingly.
345         * ldemul.c (ldemul_examine_strtab_for_ctf): Rename to...
346         (ldemul_acquire_strings_for_ctf): ... this.
347         (ldemul_new_dynsym_for_ctf): New.
348         * ldemul.h: Adjust declarations accordingly.
349         * ldlang.c (ldlang_ctf_apply_strsym): Rename to...
350         (ldlang_ctf_acquire_strings): ... this.
351         (ldlang_ctf_new_dynsym): New.
352         (lang_write_ctf): Call ldemul_new_dynsym_for_ctf with NULL to do
353         the actual symbol shuffle.
354         * ldlang.h (struct elf_strtab_hash): Adjust accordingly.
355         * ldmain.c (bfd_link_callbacks): Wire up new/renamed callbacks.
357         * emultempl/aix.em: Adjust for emulation changes:
358         ldemul_examine_strtab_for_ctf renamed to
359         ldemul_acquire_strings_for_ctf, new ldemul_new_dynsym_for_ctf.
360         * emultempl/armcoff.em: Likewise.
361         * emultempl/beos.em: Likewise.
362         * emultempl/elf.em: Likewise.
363         * emultempl/elf-generic.em: Likewise.
364         * emultempl/linux.em: Likewise.
365         * emultempl/msp430.em: Likewise.
366         * emultempl/pe.em: Likewise.
367         * emultempl/pep.em: Likewise.
368         * emultempl/ticoff.em: Likewise.
369         * emultempl/vanilla.em: Likewise.
371 2020-11-20  Nick Alcock  <nick.alcock@oracle.com>
373         * ldlang.c (ctf_output): This is a ctf_dict_t now.
374         (lang_ctf_errs_warnings): Rename ctf_file_t to ctf_dict_t.
375         (ldlang_open_ctf): Adjust comment.
376         (lang_merge_ctf): Use ctf_dict_close, not ctf_file_close.
377         * ldelfgen.h (ldelf_examine_strtab_for_ctf): Rename ctf_file_t to
378         ctf_dict_t.  Change opaque declaration accordingly.
379         * ldelfgen.c (ldelf_examine_strtab_for_ctf): Adjust.
380         * ldemul.h (examine_strtab_for_ctf): Likewise.
381         (ldemul_examine_strtab_for_ctf): Likewise.
382         * ldeuml.c (ldemul_examine_strtab_for_ctf): Likewise.
384 2020-11-20  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
386         * testsuite/ld-elf/retain3.s: Move symbolic reference into writeable
387         .data section from read-only .text section.
388         * testsuite/ld-elf/retain5.d: Don't pass --print-gc-sections for test
389         that doesn't require it.
390         * testsuite/ld-elf/retain6a.d: Adjust test.
391         * testsuite/ld-elf/retain6main.s: Move symbolic reference into writeable
392         .data section from read-only .text section.
394 2020-11-18  Alan Modra  <amodra@gmail.com>
396         * testsuite/ld-powerpc/group1.d,
397         * testsuite/ld-powerpc/group1.s,
398         * testsuite/ld-powerpc/group1.sym,
399         * testsuite/ld-powerpc/group2.d,
400         * testsuite/ld-powerpc/group2.s,
401         * testsuite/ld-powerpc/group2.sym,
402         * testsuite/ld-powerpc/group3.s,
403         * testsuite/ld-powerpc/group3.sym: New test files.
404         * testsuite/ld-powerpc/powerpc.exp: Run new tests.
406 2020-11-18  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
408         * NEWS: Announce support for SHF_GNU_RETAIN.
409         * ld.texi (garbage collection): Document SHF_GNU_RETAIN.
410         (Output Section Discarding): Likewise.
411         * testsuite/ld-elf/elf.exp: Run new tests.
412         * testsuite/ld-elf/retain1.s: New test.
413         * testsuite/ld-elf/retain1a.d: New test.
414         * testsuite/ld-elf/retain1b.d: New test.
415         * testsuite/ld-elf/retain2.d: New test.
416         * testsuite/ld-elf/retain2.ld: New test.
417         * testsuite/ld-elf/retain2.map: New test.
418         * testsuite/ld-elf/retain3.d: New test.
419         * testsuite/ld-elf/retain3.s: New test.
420         * testsuite/ld-elf/retain4.d: New test.
421         * testsuite/ld-elf/retain4.s: New test.
422         * testsuite/ld-elf/retain5.d: New test.
423         * testsuite/ld-elf/retain5.map: New test.
424         * testsuite/ld-elf/retain5lib.s: New test.
425         * testsuite/ld-elf/retain5main.s: New test.
426         * testsuite/ld-elf/retain6a.d: New test.
427         * testsuite/ld-elf/retain6b.d: New test.
428         * testsuite/ld-elf/retain6lib.s: New test.
429         * testsuite/ld-elf/retain6main.s: New test.
431 2020-11-17  Alan Modra  <amodra@gmail.com>
433         PR 26882
434         * testsuite/ld-powerpc/dotsym3.d: Add "-z notext" to ld options.
435         * testsuite/ld-powerpc/dotsym4.d: Likewise.
436         * testsuite/ld-powerpc/ppc476-shared.d: Likewise.
437         * testsuite/ld-powerpc/ppc476-shared2.d: Likewise.
438         * testsuite/ld-powerpc/powerpc.exp: Likewise for various tests.
439         * testsuite/ld-undefined/weak-fundef.s: Add BLPLT variant.
440         * testsuite/ld-undefined/weak-undef.exp: Define BLPLT for ppc32.
442 2020-11-16  Nick Clifton  <nickc@redhat.com>
444         * po/es.po: Updated Spanish translation.
446 2020-11-16  Shahab Vahedi  <shahab@synopsys.org>
448         * testsuite/ld-arc/tls_ie-01.d: Update the dump command.
450 2020-11-14  Borislav Petkov  <bp@suse.de>
452         * testsuite/ld-x86-64/pe-x86-64-4.od: Adjust regexes.
453         * testsuite/ld-x86-64/tlsld3.dd: Likewise.
454         * testsuite/ld-x86-64/tlsld4.dd: Likewise.
456 2020-11-13  H.J. Lu  <hongjiu.lu@intel.com>
458         PR ld/26869
459         * ldelf.c (ldelf_before_allocation): Set rel_from_abs to 1 for
460         __ehdr_start.
461         * testsuite/ld-i386/i386.exp: Run pr26869.
462         * testsuite/ld-i386/pr26869.d: New file.
463         * testsuite/ld-i386/pr26869.s: Likewise.
465 2020-11-09  Andreas Schwab  <schwab@linux-m68k.org>
467         * Makefile.am (development.exp): Fix regexp.
468         * Makefile.in: Regenerate.
470 2020-11-06  Nick Clifton  <nickc@redhat.com>
472         * lexsup.c (parse_args): Add more checks of the mapfile.  If it is
473         a directory use the basename of the output file as the file
474         component.  If the % character is present, replace it with the
475         full output filepath.
476         * testsuite/ld-scripts/map-address.exp: Add test of %
477         functionality.
478         * ld.texi: Document the new behaviour.
480 2020-11-06  Nick Clifton  <nickc@redhat.com>
482         * po/sr.po: Updated Serbian translation.
484 2020-11-03  Nick Clifton  <nickc@redhat.com>
486         * emulparams/x86-64-level.sh
487         (PARSE_AND_LIST_ARGS_CASE_Z_X86_64_LEVEL): Fix indentation.
489 2020-11-02  Alan Modra  <amodra@gmail.com>
491         PR 26806
492         * testsuite/ld-plugin/lto-19.h,
493         * testsuite/ld-plugin/lto-19a.c,
494         * testsuite/ld-plugin/lto-19b.c,
495         * testsuite/ld-plugin/lto-19c.c: New test.
496         * testsuite/ld-plugin/pr26806.c,
497         * testsuite/ld-plugin/pr26806.d: New test.
498         * testsuite/ld-plugin/lto.exp: Run them.
500 2020-10-30  H.J. Lu  <hongjiu.lu@intel.com>
502         PR gas/26703
503         * NEWS: Mention -z x86-64-baseline.
504         * ld.texi: Document -z x86-64-baseline.
505         * emulparams/x86-64-level.sh: Handle -z x86-64-baseline.
506         * testsuite/ld-elf/x86-feature-1a.rd: Update.
507         * testsuite/ld-elf/x86-feature-1b.rd: Likewise.
508         * testsuite/ld-elf/x86-feature-1c.rd: Likewise.
509         * testsuite/ld-elf/x86-feature-1d.rd: Likewise.
510         * testsuite/ld-elf/x86-feature-1e.rd: Likewise.
511         * testsuite/ld-i386/pr23372c.d: Likewise.
512         * testsuite/ld-i386/pr23486c.d: Likewise.
513         * testsuite/ld-i386/pr23486d.d: Likewise.
514         * testsuite/ld-i386/pr24322a.d: Likewise.
515         * testsuite/ld-i386/pr24322b.d: Likewise.
516         * testsuite/ld-i386/property-1a.r: Likewise.
517         * testsuite/ld-i386/property-2a.r: Likewise.
518         * testsuite/ld-i386/property-3.r: Likewise.
519         * testsuite/ld-i386/property-3a.r: Likewise.
520         * testsuite/ld-i386/property-4.r: Likewise.
521         * testsuite/ld-i386/property-4a.r: Likewise.
522         * testsuite/ld-i386/property-5.r: Likewise.
523         * testsuite/ld-i386/property-5a.r: Likewise.
524         * testsuite/ld-i386/property-7a.r: Likewise.
525         * testsuite/ld-i386/property-x86-3.d: Likewise.
526         * testsuite/ld-i386/property-x86-4a.d: Likewise.
527         * testsuite/ld-i386/property-x86-5.d: Likewise.
528         * testsuite/ld-i386/property-x86-cet1.d: Likewise.
529         * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
530         * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
531         * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
532         * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
533         * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
534         * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
535         * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
536         * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
537         * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
538         * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
539         * testsuite/ld-i386/property-x86-isa1.d: Likewise.
540         * testsuite/ld-i386/property-x86-isa2.d: Likewise.
541         * testsuite/ld-i386/property-x86-isa3.d: Likewise.
542         * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
543         * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
544         * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
545         * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
546         * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
547         * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
548         * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
549         * testsuite/ld-x86-64/pr23372c-x32.d: Likewise.
550         * testsuite/ld-x86-64/pr23372c.d: Likewise.
551         * testsuite/ld-x86-64/pr23486c-x32.d: Likewise.
552         * testsuite/ld-x86-64/pr23486c.d: Likewise.
553         * testsuite/ld-x86-64/pr23486d-x32.d: Likewise.
554         * testsuite/ld-x86-64/pr23486d.d: Likewise.
555         * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
556         * testsuite/ld-x86-64/pr24322a.d: Likewise.
557         * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
558         * testsuite/ld-x86-64/pr24322b.d: Likewise.
559         * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
560         * testsuite/ld-x86-64/pr24458a.d: Likewise.
561         * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
562         * testsuite/ld-x86-64/pr24458b.d: Likewise.
563         * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
564         * testsuite/ld-x86-64/pr24458c.d: Likewise.
565         * testsuite/ld-x86-64/property-1a.r: Likewise.
566         * testsuite/ld-x86-64/property-2a.r: Likewise.
567         * testsuite/ld-x86-64/property-3.r: Likewise.
568         * testsuite/ld-x86-64/property-3a.r: Likewise.
569         * testsuite/ld-x86-64/property-4.r: Likewise.
570         * testsuite/ld-x86-64/property-4a.r: Likewise.
571         * testsuite/ld-x86-64/property-5.r: Likewise.
572         * testsuite/ld-x86-64/property-5a.r: Likewise.
573         * testsuite/ld-x86-64/property-7a.r: Likewise.
574         * testsuite/ld-x86-64/property-x86-3-x32.d: Likewise.
575         * testsuite/ld-x86-64/property-x86-3.d: Likewise.
576         * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
577         * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
578         * testsuite/ld-x86-64/property-x86-5-x32.d: Likewise.
579         * testsuite/ld-x86-64/property-x86-5.d: Likewise.
580         * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
581         * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
582         * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
583         * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
584         * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
585         * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
586         * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
587         * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
588         * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
589         * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
590         * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
591         * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
592         * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
593         * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
594         * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
595         * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
596         * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
597         * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
598         * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
599         * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
600         * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
601         * testsuite/ld-x86-64/property-x86-isa1-x32.d: Likewise.
602         * testsuite/ld-x86-64/property-x86-isa1.d: Likewise.
603         * testsuite/ld-x86-64/property-x86-isa2-x32.d: Likewise.
604         * testsuite/ld-x86-64/property-x86-isa2.d: Likewise.
605         * testsuite/ld-x86-64/property-x86-isa3-x32.d: Likewise.
606         * testsuite/ld-x86-64/property-x86-isa3.d: Likewise.
607         * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
608         * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
609         * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
610         * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
611         * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
612         * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
613         * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
614         * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
615         * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
616         * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
617         * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
618         * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
619         * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
620         * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
621         * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
622         * testsuite/ld-i386/i386.exp: Run property-x86-isa4.
623         * testsuite/ld-i386/property-x86-isa4.d: New file.
624         * testsuite/ld-x86-64/property-x86-isa4-x32.d: Likewise.
625         * testsuite/ld-x86-64/property-x86-isa4.d: Likewise.
626         * ld/testsuite/ld-x86-64/x86-64.exp: Run property-x86-isa4
627         and property-x86-isa4-x32.
629 2020-10-26  H.J. Lu  <hongjiu.lu@intel.com>
631         * testsuite/ld-elfweak/elfweak.exp: Pass $NOLTO_CFLAGS to CC.
633 2020-10-26  Nick Clifton  <nickc@redhat.com>
635         PR 26626
636         * ldmain.c (undefined_symbol): Use the keyword undefined-symbol
637         when invoking the error handling script for undefined symbols.
638         * ld.texi: Update documentation.
640 2020-10-26  Cooper Qu <cooper.qu@linux.alibaba.com>
642         * emulparams/cskyelf.sh (TEXT_START_ADDR): Change to 0x60000000.
643         (DATA_ADDR) : Define.
644         (OTHER_SYMBOLS) : Define.
645         (OTHER_BSS_SYMBOLS) : Set symbol __sbss__.
646         (OTHER_BSS_END_SYMBOLS) : Set symbol __ebss__.
647         * ld/emulparams/cskyelf_linux.sh : Don't include cskyelf.sh.
648         * testsuite/ld-csky/data.d : Fix '/s*' to match spaces.
649         * testsuite/ld-csky/hilo16.d : Likewise.
651 2020-10-23  H.J. Lu  <hongjiu.lu@intel.com>
653         * testsuite/config/default.exp (plug_opt): Set only if compiler
654         is available.
656 2020-10-22  H.J. Lu  <hongjiu.lu@intel.com>
658         * testsuite/ld-plugin/lto.exp (plug_opt): Moved to ...
659         * testsuite/config/default.exp (plug_opt): Here.  New.
660         * testsuite/ld-bootstrap/bootstrap.exp: Skip when linker is
661         compiled with -fprofile-generate=.
663 2020-10-22  H.J. Lu  <hongjiu.lu@intel.com>
665         * testsuite/config/default.exp (NOLTO_CFLAGS): New.
666         * ld/testsuite/ld-elfcomm/elfcomm.exp: Add $NOLTO_CFLAGS to CC.
667         * testsuite/ld-elfvers/vers.exp: Likewise.
668         * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
669         * testsuite/ld-gc/gc.exp: Likewise.
670         * testsuite/ld-plugin/plugin.exp: Likewise.
671         * testsuite/ld-scripts/crossref.exp: Likewise.
672         * testsuite/ld-selective/selective.exp: Likewise.
673         * testsuite/ld-undefined/undefined.exp: Likewise.
674         * testsuite/ld-srec/srec.exp: Add $NOLTO_CFLAGS to CC.  Override
675         CXXFLAGS.
676         * testsuite/lib/ld-lib.exp (run_ld_link_tests): Prepend -fno-lto
677         to cflags.
679 2020-10-19  Alan Modra  <amodra@gmail.com>
681         * testsuite/config/default.exp: Provide dummy libraries for
682         alpha-dec-vms.
683         (compiler_supports): New proc.  Use it for compiler tests.
684         * testsuite/lib/ld-lib.exp (default_ld_assemble): Don't die if
685         subdir not set.
686         (run_ld_link_tests): Pass LDFLAGS to ld.
687         * testsuite/ld-checks/checks.exp (section_check): Likewise.
688         * testsuite/ld-scripts/assert.exp: Likewise.
689         * testsuite/ld-scripts/extern.exp: Likewise.
690         * testsuite/ld-scripts/log2.exp: Likewise.
691         * testsuite/ld-scripts/map-address.exp: Likewise.
692         * testsuite/ld-scripts/script.exp: Likewise.
693         * testsuite/ld-scripts/sizeof.exp: Likewise.
695 2020-10-16  Andrew Burgess  <andrew.burgess@embecosm.com>
697         * ldlang.c (lang_process): Add extra call to
698         lang_do_memory_regions, and pass parameter.
699         (lang_do_memory_regions): Add parameter, only define origin and
700         length when requested.  Reindent.
701         * testsuite/ld-scripts/provide-10.d: New file.
702         * testsuite/ld-scripts/provide-10.map: New file.
703         * testsuite/ld-scripts/provide-11.d: New file.
704         * testsuite/ld-scripts/provide-11.map: New file.
705         * testsuite/ld-scripts/provide-12.d: New file.
706         * testsuite/ld-scripts/provide-12.map: New file.
707         * testsuite/ld-scripts/provide-9.d: New file.
708         * testsuite/ld-scripts/provide-9.map: New file.
709         * testsuite/ld-scripts/provide-9.t: New file.
711 2020-10-16  Andrew Burgess  <andrew.burgess@embecosm.com>
713         * ld.texi (Options): Extend the description of --defsym.
715 2020-10-16  Nick Clifton  <nickc@redhat.com>
717         PR 26626
718         * ldmain.c (undefined_symbol): If an error handlign script is
719         available, call it.
720         * ldfile.c  (error_handling_script): Declare.
721         (ldfile_open_file): If a library cannot be found and an error
722         handling script is available, call it.
723         * ldmain.h  (error_handling_script): Prototype.
724         * ldlex.h (OPTION_ERROR_HANDLING_SCRIPT): Define.
725         * lexsup.c (ld_options): Add --error-handling-script.
726         (parse_args): Add support for --errror-handling-script.
727         * ld.texi: Document the new feature.
728         * configure.ac: Add --error-handling-script option to disable
729         support for the new feature.
730         * NEWS: Mention the new feature.
731         * config.in: Regenerate.
732         * configure: Regenerate.
734 2020-10-16  Nelson Chu  <nelson.chu@sifive.com>
736         * testsuite/ld-riscv-elf/ifunc-plt-got-overwrite.s: New testcase.
737         * testsuite/ld-riscv-elf/ifunc-plt-got-overwrite.d: Likewise.
738         * testsuite/ld-riscv-elf/ifunc-plt-got-overwrite-exe.rd: Likewise.
739         * testsuite/ld-riscv-elf/ifunc-plt-got-overwrite-pic.rd: Likewise.
740         * testsuite/ld-riscv-elf/ifunc-plt-got-overwrite-pie.rd: Likewise.
741         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
743 2020-10-16  Nelson Chu  <nelson.chu@sifive.com>
745         * emulparams/elf32lriscv-defs.sh: Add IREL_IN_PLT.
746         * testsuite/ld-ifunc/ifunc.exp: Enable ifunc tests for RISC-V.
747         * testsuite/ld-riscv-elf/ld-riscv-elf.exp (run_dump_test_ifunc):
748         New dump test for ifunc.  There are two arguments, 'target` and
749         `output`.  The `target` is rv32 or rv64, and the `output` is used
750         to choose which output you want to test (exe, pie or .so).
751         * testsuite/ld-riscv-elf/ifunc-reloc-call-01.s: New testcase.
752         * testsuite/ld-riscv-elf/ifunc-reloc-call-01.d: Likewise.
753         * testsuite/ld-riscv-elf/ifunc-reloc-call-01-exe.rd: Likewise.
754         * testsuite/ld-riscv-elf/ifunc-reloc-call-01-pic.rd: Likewise.
755         * testsuite/ld-riscv-elf/ifunc-reloc-call-01-pie.rd: Likewise.
756         * testsuite/ld-riscv-elf/ifunc-reloc-call-02.s: Likewise.
757         * testsuite/ld-riscv-elf/ifunc-reloc-call-02.d: Likewise.
758         * testsuite/ld-riscv-elf/ifunc-reloc-call-02-exe.rd: Likewise.
759         * testsuite/ld-riscv-elf/ifunc-reloc-call-02-pic.rd: Likewise.
760         * testsuite/ld-riscv-elf/ifunc-reloc-call-02-pie.rd: Likewise.
761         * testsuite/ld-riscv-elf/ifunc-reloc-data.s: Likewise.
762         * testsuite/ld-riscv-elf/ifunc-reloc-data.d: Likewise.
763         * testsuite/ld-riscv-elf/ifunc-reloc-data-exe.rd: Likewise.
764         * testsuite/ld-riscv-elf/ifunc-reloc-data-pic.rd: Likewise.
765         * testsuite/ld-riscv-elf/ifunc-reloc-data-pie.rd: Likewise.
766         * testsuite/ld-riscv-elf/ifunc-reloc-got.s: Likewise.
767         * testsuite/ld-riscv-elf/ifunc-reloc-got.d: Likewise.
768         * testsuite/ld-riscv-elf/ifunc-reloc-got-exe.rd: Likewise.
769         * testsuite/ld-riscv-elf/ifunc-reloc-got-pic.rd: Likewise.
770         * testsuite/ld-riscv-elf/ifunc-reloc-got-pie.rd: Likewise.
771         * testsuite/ld-riscv-elf/ifunc-reloc-pcrel.s: Likewise.
772         * testsuite/ld-riscv-elf/ifunc-reloc-pcrel.d: Likewise.
773         * testsuite/ld-riscv-elf/ifunc-reloc-pcrel-exe.rd: Likewise.
774         * testsuite/ld-riscv-elf/ifunc-reloc-pcrel-pic.rd: Likewise.
775         * testsuite/ld-riscv-elf/ifunc-reloc-pcrel-pie.rd: Likewise.
776         * testsuite/ld-riscv-elf/ifunc-nonplt.s: Likewise.
777         * testsuite/ld-riscv-elf/ifunc-nonplt.d: Likewise.
778         * testsuite/ld-riscv-elf/ifunc-nonplt-exe.rd: Likewise.
779         * testsuite/ld-riscv-elf/ifunc-nonplt-pic.rd: Likewise.
780         * testsuite/ld-riscv-elf/ifunc-nonplt-pie.rd: Likewise.
781         * testsuite/ld-riscv-elf/ifunc-plt-01.s: Likewise.
782         * testsuite/ld-riscv-elf/ifunc-plt-01.d: Likewise.
783         * testsuite/ld-riscv-elf/ifunc-plt-01-exe.rd: Likewise.
784         * testsuite/ld-riscv-elf/ifunc-plt-01-pic.rd: Likewise.
785         * testsuite/ld-riscv-elf/ifunc-plt-01-pie.rd: Likewise.
786         * testsuite/ld-riscv-elf/ifunc-plt-02.s: Likewise.
787         * testsuite/ld-riscv-elf/ifunc-plt-02.d: Likewise.
788         * testsuite/ld-riscv-elf/ifunc-plt-02-exe.rd: Likewise.
789         * testsuite/ld-riscv-elf/ifunc-plt-02-pic.rd: Likewise.
790         * testsuite/ld-riscv-elf/ifunc-plt-02-pie.rd: Likewise.
791         * testsuite/ld-riscv-elf/ifunc-seperate-resolver.s: Likewise.
792         * testsuite/ld-riscv-elf/ifunc-seperate-caller.s: Likewise.
793         * testsuite/ld-riscv-elf/ifunc-seperate-exe.d: Likewise.
794         * testsuite/ld-riscv-elf/ifunc-seperate-pic.d: Likewise.
795         * testsuite/ld-riscv-elf/ifunc-seperate-pie.d: Likewise.
796         * testsuite/ld-riscv-elf/ifunc-seperate-caller-pcrel.s: Likewise.
797         * testsuite/ld-riscv-elf/ifunc-seperate-pcrel-pic.d: Likewise.
798         * testsuite/ld-riscv-elf/ifunc-seperate-pcrel-pie.d: Likewise.
800 2020-10-09  H.J. Lu  <hongjiu.lu@intel.com>
802         PR gas/26703
803         * NEWS: Mention -z x86-64-v[234].
804         * ld.texi: Document -z x86-64-v[234].
805         * emulparams/elf32_x86_64.sh: Use x86-64-level.sh.
806         * emulparams/elf_i386.sh: Likewise.
807         * emulparams/elf_x86_64.sh: Likewise.
808         * emulparams/x86-64-level.sh: New file.
809         * testsuite/ld-elf/x86-feature-1a.rd: Update.
810         * testsuite/ld-elf/x86-feature-1b.rd: Likewise.
811         * testsuite/ld-elf/x86-feature-1c.rd: Likewise.
812         * testsuite/ld-elf/x86-feature-1d.rd: Likewise.
813         * testsuite/ld-elf/x86-feature-1e.rd: Likewise.
814         * testsuite/ld-i386/pr23372c.d: Likewise.
815         * testsuite/ld-i386/pr23486c.d: Likewise.
816         * testsuite/ld-i386/pr23486d.d: Likewise.
817         * testsuite/ld-i386/pr24322a.d: Likewise.
818         * testsuite/ld-i386/pr24322b.d: Likewise.
819         * testsuite/ld-i386/property-1a.r: Likewise.
820         * testsuite/ld-i386/property-2a.r: Likewise.
821         * testsuite/ld-i386/property-3.r: Likewise.
822         * testsuite/ld-i386/property-3a.r: Likewise.
823         * testsuite/ld-i386/property-4.r: Likewise.
824         * testsuite/ld-i386/property-4a.r: Likewise.
825         * testsuite/ld-i386/property-5.r: Likewise.
826         * testsuite/ld-i386/property-5a.r: Likewise.
827         * testsuite/ld-i386/property-7a.r: Likewise.
828         * testsuite/ld-i386/property-x86-3.d: Likewise.
829         * testsuite/ld-i386/property-x86-4a.d: Likewise.
830         * testsuite/ld-i386/property-x86-5.d: Likewise.
831         * testsuite/ld-i386/property-x86-cet1.d: Likewise.
832         * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
833         * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
834         * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
835         * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
836         * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
837         * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
838         * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
839         * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
840         * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
841         * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
842         * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
843         * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
844         * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
845         * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
846         * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
847         * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
848         * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
849         * testsuite/ld-x86-64/pr23372c-x32.d: Likewise.
850         * testsuite/ld-x86-64/pr23372c.d: Likewise.
851         * testsuite/ld-x86-64/pr23486c.d: Likewise.
852         * testsuite/ld-x86-64/pr23486d-x32.d: Likewise.
853         * testsuite/ld-x86-64/pr23486d.d: Likewise.
854         * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
855         * testsuite/ld-x86-64/pr24322a.d: Likewise.
856         * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
857         * testsuite/ld-x86-64/pr24322b.d: Likewise.
858         * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
859         * testsuite/ld-x86-64/pr24458a.d: Likewise.
860         * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
861         * testsuite/ld-x86-64/pr24458b.d: Likewise.
862         * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
863         * testsuite/ld-x86-64/pr24458c.d: Likewise.
864         * testsuite/ld-x86-64/property-1a.r: Likewise.
865         * testsuite/ld-x86-64/property-2a.r: Likewise.
866         * testsuite/ld-x86-64/property-3.r: Likewise.
867         * testsuite/ld-x86-64/property-3a.r: Likewise.
868         * testsuite/ld-x86-64/property-4.r: Likewise.
869         * testsuite/ld-x86-64/property-4a.r: Likewise.
870         * testsuite/ld-x86-64/property-5.r: Likewise.
871         * testsuite/ld-x86-64/property-5a.r: Likewise.
872         * testsuite/ld-x86-64/property-7a.r: Likewise.
873         * testsuite/ld-x86-64/property-x86-3-x32.d: Likewise.
874         * testsuite/ld-x86-64/property-x86-3.d: Likewise.
875         * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
876         * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
877         * testsuite/ld-x86-64/property-x86-5-x32.d: Likewise.
878         * testsuite/ld-x86-64/property-x86-5.d: Likewise.
879         * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
880         * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
881         * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
882         * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
883         * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
884         * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
885         * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
886         * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
887         * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
888         * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
889         * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
890         * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
891         * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
892         * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
893         * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
894         * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
895         * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
896         * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
897         * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
898         * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
899         * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
900         * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
901         * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
902         * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
903         * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
904         * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
905         * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
906         * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
907         * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
908         * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
909         * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
910         * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
911         * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
912         * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
913         * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
914         * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
915         * testsuite/ld-i386/i386.exp: Run property-x86-6,
916         property-x86-isa1, property-x86-isa2 and property-x86-isa3.
917         * testsuite/ld-i386/property-x86-1.S: Updated to the current
918         GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED
919         values.
920         * testsuite/ld-i386/property-x86-2.S: Likewise.
921         * testsuite/ld-i386/property-x86-3.s: Likewise.
922         * testsuite/ld-x86-64/pr23372d.s: Likewise.
923         * testsuite/ld-x86-64/pr23372e.s: Likewise.
924         * testsuite/ld-x86-64/pr23372f.s: Likewise.
925         * testsuite/ld-x86-64/pr23486c.s: Likewise.
926         * testsuite/ld-x86-64/pr23486d.s: Likewise.
927         * testsuite/ld-x86-64/property-x86-1.S: Likewise.
928         * testsuite/ld-x86-64/property-x86-2.S: Likewise.
929         * testsuite/ld-x86-64/property-x86-3.s: Likewise.
930         * testsuite/ld-x86-64/property-x86-5a.s: Likewise.
931         * testsuite/ld-x86-64/property-x86-5b.s: Likewise.
932         * testsuite/ld-i386/property-x86-6.d: New file.
933         * testsuite/ld-i386/property-x86-isa1.d: Likewise.
934         * testsuite/ld-i386/property-x86-isa2.d: Likewise.
935         * testsuite/ld-i386/property-x86-isa3.d: Likewise.
936         * testsuite/ld-x86-64/property-x86-6-x32.d: Likewise.
937         * testsuite/ld-x86-64/property-x86-6.d: Likewise.
938         * testsuite/ld-x86-64/property-x86-6.s: Likewise.
939         * testsuite/ld-x86-64/property-x86-isa1-x32.d: Likewise.
940         * testsuite/ld-x86-64/property-x86-isa1.d: Likewise.
941         * testsuite/ld-x86-64/property-x86-isa1.s: Likewise.
942         * testsuite/ld-x86-64/property-x86-isa2-x32.d: Likewise.
943         * testsuite/ld-x86-64/property-x86-isa2.d: Likewise.
944         * testsuite/ld-x86-64/property-x86-isa3-x32.d: Likewise.
945         * testsuite/ld-x86-64/property-x86-isa3.d: Likewise.
946         * testsuite/ld-x86-64/simple.s: Likewise.
947         * ld/testsuite/ld-x86-64/x86-64.exp: Run property-x86-6,
948         property-x86-6-x32, property-x86-isa1, property-x86-isa1-x32,
949         property-x86-isa2, property-x86-isa2-x32, property-x86-isa3-x32
950         and property-x86-isa3.
952 2020-10-06  H.J. Lu  <hongjiu.lu@intel.com>
954         * testsuite/ld-i386/property-3.r: Updated for Fedora binary
955         annotation plugin for GCC.
956         * testsuite/ld-i386/property-4.r: Likewise.
957         * testsuite/ld-i386/property-5.r: Likewise.
958         * testsuite/ld-x86-64/property-3.r: Likewise.
959         * testsuite/ld-x86-64/property-4.r: Likewise.
960         * testsuite/ld-x86-64/property-5.r: Likewise.
962 2020-10-06  H.J. Lu  <hongjiu.lu@intel.com>
964         PR ld/26711
965         * testsuite/ld-i386/i386.exp: Run ld/26711 tests.
966         * testsuite/ld-x86-64/x86-64.exp: Likewise.
967         * testsuite/ld-i386/pr26711-1.d: Likewise.
968         * testsuite/ld-i386/pr26711-2.d: Likewise.
969         * testsuite/ld-i386/pr26711-3.d: Likewise.
970         * testsuite/ld-x86-64/pr26711-1-x32.d: Likewise.
971         * testsuite/ld-x86-64/pr26711-1.d: Likewise.
972         * testsuite/ld-x86-64/pr26711-2-x32.d: Likewise.
973         * testsuite/ld-x86-64/pr26711-2.d: Likewise.
974         * testsuite/ld-x86-64/pr26711-3-x32.d: Likewise.
975         * testsuite/ld-x86-64/pr26711-3.d: Likewise.
976         * testsuite/ld-x86-64/pr26711.s: Likewise.
978 2020-10-06  Brandon Bergren  <bdragon@FreeBSD.org>
980         * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64lppc_fbsd.c.
981         Include $(DEPDIR)/eelf64lppc_fbsd.Pc.
982         * configure.tgt: Add powerpc64le-*-freebsd*.
983         * emulparams/elf64lppc_fbsd.sh: New file.
984         * Makefile.in: Regenerate.
985         * po/BLD-POTFILES.in: Regenerate.
987 2020-10-05  T.K. Chia  <u1049321969@caramail.com>
989         PR gas/26694
990         * testsuite/ld-i386/ljmp.s,
991         * testsuite/ld-i386/ljmp1.d,
992         * testsuite/ld-i386/ljmp1.s,
993         * testsuite/ld-i386/ljmp2.d,
994         * testsuite/ld-i386/ljmp2.s,
995         * testsuite/ld-x86-64/ljmp1.d,
996         * testsuite/ld-x86-64/ljmp2.d: New testcases.
997         * testsuite/ld-i386/i386.exp,
998         * testsuite/ld-x86-64/x86-64.exp: Run them.
1000 2020-10-05  Nick Clifton  <nickc@redhat.com>
1002         * lexsup.c (parse_args): Generate an error or warning message when
1003         multiple short options are used together.
1005 2020-10-01  H.J. Lu  <hongjiu.lu@intel.com>
1007         PR 26681
1008         * testsuite/ld-elf/pr26681.s: New test.
1009         * testsuite/ld-elf/pr26681.d: New test driver.
1010         * testsuite/ld-elf/pr26681.l: New test output.
1012 2020-09-30  H.J. Lu  <hongjiu.lu@intel.com>
1014         PR ld/26675
1015         * plugin.c (plugin_notice): Override the IR definition before
1016         all LTO symbols have been read for non-ELF targets.
1018 2020-09-30  Jeremy Drake  <sourceware-bugzilla@jdrake.com>
1020         PR 26588
1021         * emultempl/pe.em (_finish): Generate an import library for DLLs,
1022         even if they have no exports.
1023         * emultempl/pep.em (_finish): Likewise.
1025 2020-09-28  Alan Modra  <amodra@gmail.com>
1027         * testsuite/ld-powerpc/tlsget.d,
1028         * testsuite/ld-powerpc/tlsget.s,
1029         * testsuite/ld-powerpc/tlsget.wf,
1030         * testsuite/ld-powerpc/tlsget2.d.
1031         * testsuite/ld-powerpc/tlsget2.wf: New testcases.
1032         * testsuite/ld-powerpc/powerpc.exp: Run them.
1034 2020-09-26  Alan Modra  <amodra@gmail.com>
1036         * testsuite/ld-powerpc/elfv2so.d,
1037         * testsuite/ld-powerpc/notoc2.d,
1038         * testsuite/ld-powerpc/tlsdesc.wf,
1039         * testsuite/ld-powerpc/tlsdesc2.d,
1040         * testsuite/ld-powerpc/tlsdesc2.wf,
1041         * testsuite/ld-powerpc/tlsopt5.d,
1042         * testsuite/ld-powerpc/tlsopt5.wf,
1043         * testsuite/ld-powerpc/tlsopt6.d,
1044         * testsuite/ld-powerpc/tlsopt6.wf: Update __glink_PLTresolve.
1046 2020-09-24  Alan Modra  <amodra@gmail.com>
1048         PR 26655
1049         * emultempl/ppc64elf.em (params): Add ppc_edit.
1050         (ppc_before_allocation): Split off some edit functions to..
1051         (ppc_edit): ..this, new function.
1053 2020-09-22  Frediano Ziglio  <fziglio@redhat.com>
1055         * emultempl/pe.em (set_entry_point): Only use the DLL entry point
1056         for DLLs.
1057         * emultempl/pep.em (set_entry_point): Likewise.
1059 2020-09-16  Mikael Pettersson  <mikpelinux@gmail.com>
1061         * testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIE on sparc.
1062         * testsuite/ld-elf/tls.exp: Add -Av9 to AFLAGS_PIC on sparc.
1064 2020-09-16  H.J. Lu  <hongjiu.lu@intel.com>
1066         PR ld/26583
1067         * testsuite/ld-x86-64/pe-x86-64-1.od: New file.
1068         * testsuite/ld-x86-64/pe-x86-64-1a.obj.bz2: Likewise.
1069         * testsuite/ld-x86-64/pe-x86-64-1b.obj.bz2: Likewise.
1070         * testsuite/ld-x86-64/pe-x86-64-1c.obj.bz2: Likewise.
1071         * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1072         * testsuite/ld-x86-64/pe-x86-64-2a.obj.bz2: Likewise.
1073         * testsuite/ld-x86-64/pe-x86-64-2b.obj.bz2: Likewise.
1074         * testsuite/ld-x86-64/pe-x86-64-2c.obj.bz2: Likewise.
1075         * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1076         * testsuite/ld-x86-64/pe-x86-64-3a.obj.bz2: Likewise.
1077         * testsuite/ld-x86-64/pe-x86-64-3b.obj.bz2: Likewise.
1078         * testsuite/ld-x86-64/pe-x86-64-3c.obj.bz2: Likewise.
1079         * testsuite/ld-x86-64/pe-x86-64-3d.obj.bz2: Likewise.
1080         * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1081         * testsuite/ld-x86-64/pe-x86-64-4a.obj.bz2: Likewise.
1082         * testsuite/ld-x86-64/pe-x86-64-4b.obj.bz2: Likewise.
1083         * testsuite/ld-x86-64/pe-x86-64-4c.obj.bz2: Likewise.
1084         * testsuite/ld-x86-64/pe-x86-64-4d.obj.bz2: Likewise.
1085         * testsuite/ld-x86-64/pe-x86-64.exp: Likewise.
1086         * testsuite/lib/ld-lib.exp (run_ld_link_tests): Handle bz2 binary
1087         inputs.
1089 2020-09-16  Alan Modra  <amodra@gmail.com>
1091         * plugin.c (asymbol_from_plugin_symbol): Adjust elf_symbol_from
1092         invocation.
1094 2020-09-15  H.J. Lu  <hongjiu.lu@intel.com>
1096         * ldelf.c (ldelf_after_open): Check bfd_target_elf_flavour first.
1098 2020-09-15  Hans-Peter Nilsson  <hp@axis.com>
1100         PR ld/26589
1101         * testsuite/ld-elf/pr26589.d, testsuite/ld-elf/locref3.s: New test.
1103 2020-09-13  Alan Modra  <amodra@gmail.com>
1105         PR 26391
1106         * testsuite/ld-elf/pr26391.nd: Adjust to match powerpc64 function
1107         descriptors.
1109 2020-09-12  H.J. Lu  <hongjiu.lu@intel.com>
1111         PR ld/26391
1112         * NEWS: Mention "-z unique-symbol".
1113         * emultempl/elf.em (gld${EMULATION_NAME}_handle_option): Handle
1114         "-z unique-symbol" and "-z nounique-symbol".
1115         * ld.texi: Document "-z unique-symbol" and "-z nounique-symbol".
1116         * lexsup.c (elf_static_list_options): Add "-z unique-symbol" and
1117         "-z nounique-symbol".
1118         * testsuite/ld-elf/elf.exp: Add PR ld/26391 tests.
1119         * testsuite/ld-elf/pr26391.nd: New file.
1120         * testsuite/ld-elf/pr26391.out: Likewise.
1121         * testsuite/ld-elf/pr26391a.c: Likewise.
1122         * testsuite/ld-elf/pr26391b.c: Likewise.
1123         * testsuite/ld-elf/pr26391c.c: Likewise.
1124         * testsuite/ld-elf/pr26391d.c: Likewise.
1126 2020-09-11  Jeremy Drake  <sourceware-bugzilla@jdrake.com>
1128         PR 26588
1129         * emultempl/pe.em (_finish): Only generate a import library if not
1130         exporting relocs.
1131         * emultempl/pep.em: Likewise.
1133 2020-09-10  Siddhesh Poyarekar  <siddesh.poyarekar@arm.com>
1135         * testsuite/ld-aarch64/emit-relocs-560.d: Expect error instead
1136         of valid output.
1138 2020-09-10  H.J. Lu  <hongjiu.lu@intel.com>
1140         PR ld/26590
1141         * testsuite/ld-elf/pr26590.err: New file.
1142         * testsuite/ld-elf/pr26590a.c: Likewise.
1143         * testsuite/ld-elf/pr26590b.c: Likewise.
1144         * testsuite/ld-elf/pr26590c.c: Likewise.
1145         * testsuite/ld-elf/pr26590d.c: Likewise.
1146         * testsuite/ld-elf/shared.exp: Run ld/26590 tests.
1148 2020-09-10  Alan Modra  <amodra@gmail.com>
1150         * testsuite/ld-elf/pr26580-2.sd: Accept undefined symbol.
1152 2020-09-10  Alan Modra  <amodra@gmail.com>
1154         * testsuite/ld-plugin/lto-18b.c (select): Remove.
1155         * testsuite/ld-plugin/lto-18c.c (select): Remove.
1156         * testsuite/ld-plugin/lto.exp: Build archives for lto-18 too,
1157         and run static versions of the test.
1159 2020-09-09  Alan Modra  <amodra@gmail.com>
1161         * testsuite/ld-plugin/lto-18a.c,
1162         * testsuite/ld-plugin/lto-18b.c,
1163         * testsuite/ld-plugin/lto-18c.c,
1164         * testsuite/ld-plugin/lto-18d.c,
1165         * testsuite/ld-plugin/lto-18.out: New test.
1166         * testsuite/ld-plugin/lto.exp: Run it.
1168 2020-09-08  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
1170         * testsuite/ld-msp430-elf/msp430-elf.exp: Run new tests.
1171         * testsuite/ld-msp430-elf/uleb128.s: New test.
1172         * testsuite/ld-msp430-elf/uleb128_430.d: New test.
1173         * testsuite/ld-msp430-elf/uleb128_430x.d: New test.
1175 2020-09-08  Alan Modra  <amodra@gmail.com>
1177         * testsuite/ld-elf/pr26580-a.s,
1178         * testsuite/ld-elf/pr26580-b.s,
1179         * testsuite/ld-elf/pr26580-1.sd,
1180         * testsuite/ld-elf/pr26580-2.sd: New tests
1181         * testsuite/ld-elf/comm-data.exp: Run new tests.
1182         * testsuite/ld-elf/pr26580-a.c,
1183         * testsuite/ld-elf/pr26580-b.c,
1184         * testsuite/ld-elf/pr26580-3.out,
1185         * testsuite/ld-elf/pr26580-4.out: New tests.
1186         * testsuite/ld-elf/shared.exp: Run new tests.
1188 2020-09-04  Alan Modra  <amodra@gmail.com>
1190         * testsuite/ld-plugin/lto.exp: Don't run pr15146 tests.
1191         * testsuite/ld-plugin/pr15146.d: Delete.
1192         * testsuite/ld-plugin/pr15146a.c: Delete.
1193         * testsuite/ld-plugin/pr15146b.c: Delete.
1194         * testsuite/ld-plugin/pr15146c.c: Delete.
1195         * testsuite/ld-plugin/pr15146d.c: Delete.
1197 2020-09-03  H.J. Lu  <hongjiu.lu@intel.com>
1199         * testsuite/config/default.exp: Change NOSANTIZE_CFLAGS to
1200         NOSANITIZE_CFLAGS.
1201         * testsuite/ld-elf/dwarf.exp: Likewise.
1202         * testsuite/ld-elf/indirect.exp: Likewise.
1203         * testsuite/ld-elf/linux-x86.exp: Likewise.
1204         * testsuite/ld-elf/shared.exp: Likewise.
1205         * testsuite/ld-elf/tls.exp: Likewise.
1206         * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
1207         * testsuite/ld-elfvers/vers.exp: Likewise.
1208         * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
1209         * testsuite/ld-elfweak/elfweak.exp: Likewise.
1210         * testsuite/ld-gc/gc.exp: Likewise.
1211         * testsuite/ld-plugin/lto.exp: Likewise.
1212         * testsuite/ld-plugin/plugin.exp: Likewise.
1213         * testsuite/ld-scripts/crossref.exp: Likewise.
1214         * testsuite/ld-selective/selective.exp: Likewise.
1215         * testsuite/ld-shared/shared.exp: Likewise.
1216         * testsuite/ld-size/size.exp: Likewise.
1217         * testsuite/ld-srec/srec.exp: Likewise.
1218         * testsuite/ld-x86-64/x86-64.exp: Likewise.
1220 2020-09-03  Nelson Chu  <nelson.chu@sifive.com>
1222         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Remove
1223         the useless `warnings` keywords.
1224         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
1225         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
1226         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
1227         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
1228         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
1230 2020-09-03  Nelson Chu  <nelson.chu@sifive.com>
1232         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Update the
1233         message from error to warning.
1234         * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: New testcases.
1235         * testsuite/ld-riscv-elf/attr-merge-arch-failed-02a.s: Likewise.
1236         * testsuite/ld-riscv-elf/attr-merge-arch-failed-02b.s: Likewise.
1237         * testsuite/ld-riscv-elf/attr-merge-arch-failed-02c.s: Likewise.
1238         * testsuite/ld-riscv-elf/attr-merge-arch-failed-02d.s: Likewise.
1239         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
1241 2020-09-03  Kito Cheng  <kito.cheng@sifive.com>
1243         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Updated.
1244         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01a.s: Likewise.
1245         * testsuite/ld-riscv-elf/attr-merge-arch-failed-01b.s: Likewise.
1247 2020-09-03  Alan Modra  <amodra@gmail.com>
1249         * testsuite/ld-scripts/sysroot-prefix.exp (single_sysroot_prefix_test):
1250         Log $scriptname.
1252 2020-08-30  H.J. Lu  <hongjiu.lu@intel.com>
1254         * testsuite/ld-elf/dwarf.exp: Append $NOSANTIZE_CFLAGS to CFLAGS.
1255         * testsuite/ld-elf/shared.exp: Likewise.
1256         * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
1257         * testsuite/ld-shared/shared.exp: Likewise.
1258         * testsuite/ld-size/size.exp: Likewise.
1260 2020-08-28  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
1262         * emultempl/msp430.em (input_section_exists): New.
1263         (check_array_section_alignment): New.
1264         (gld${EMULATION_NAME}_finish): New.
1265         * scripttempl/elf32msp430.sc: Add ALIGN directives before the
1266         definition of __*_array_start symbols.
1267         * testsuite/ld-msp430-elf/finiarray-warn.ld: New test.
1268         * testsuite/ld-msp430-elf/finiarray-warn.r: New test.
1269         * testsuite/ld-msp430-elf/initarray-nowarn.ld: New test.
1270         * testsuite/ld-msp430-elf/initarray-warn.ld: New test.
1271         * testsuite/ld-msp430-elf/initarray-warn.r: New test.
1272         * testsuite/ld-msp430-elf/initarray.s: New test.
1273         * testsuite/ld-msp430-elf/msp430-elf.exp: Run new tests.
1274         * testsuite/ld-msp430-elf/preinitarray-warn.ld: New test.
1275         * testsuite/ld-msp430-elf/preinitarray-warn.r: New test.
1277 2020-08-28  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
1279         * ldmisc.c (vfinfo): Support new "%pU" format specifier.
1281 2020-08-28  Cooper Qu  <cooper.qu@linux.alibaba.com>
1283         * emulparams/cskyelf.sh: Support attribute section.
1284         * testsuite/ld-csky/tls-le-v1.d: Match .csky.attributes section.
1285         * ld/testsuite/ld-csky/tls-le.d: Likewise.
1286         * testsuite/ld-elf/non-contiguous.ld: Ignore .csky.attributes
1287         section.
1289 2020-08-28  Nick Clifton  <nickc@redhat.com>
1291         PR 19011
1292         * testsuite/lib/ld-lib.exp (ld_link_defsyms): For PE based targets
1293         define the __main and ___main symbols in terms of the main symbol.
1295 2020-08-28  Alan Modra  <amodra@gmail.com>
1297         PR 19011
1298         * testsuite/ld-plugin/plugin.exp: Use modified CFLAGS throughout
1299         file.  Add --image-base for pecoff.
1301 2020-08-28  Nelson Chu  <nelson.chu@sifive.com>
1303         testsuite/ld-riscv-elf/lib-nopic-01a.s: Use R_RISCV_JAL rather
1304         than R_RISCV_CALL.
1305         testsuite/ld-riscv-elf/lib-nopic-01b.d: Likewise.
1306         testsuite/ld-riscv-elf/lib-nopic-01b.s: Likewise.
1308 2020-08-27  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
1310         * emultempl/msp430.em: Remove unused variable "buf".
1312 2020-08-27  Nick Alcock  <nick.alcock@oracle.com>
1314         * ldlang.c (dump_ctf_errs): Unquote CTF error messages.
1315         (ldlang_open_ctf): Likewise.
1316         (lang_merge_ctf): Likewise.
1317         (lang_write_ctf): Likewise.
1318         * testsuite/ld-ctf/diag-ctf-version-f.d: Adjust.
1319         * testsuite/ld-ctf/diag-cttname-invalid.d: Adjust.
1320         * testsuite/ld-ctf/diag-decompression-failure.d: Adjust.
1321         * testsuite/ld-ctf/diag-parname.d: Adjust.
1322         * testsuite/ld-ctf/diag-unsupported-flag.d: Adjust.
1323         * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Adjust.
1324         * testsuite/ld-ctf/diag-wrong-magic-number.d: Adjust.
1326 2020-08-27  Nick Alcock  <nick.alcock@oracle.com>
1328         * ldlang.c (lang_ctf_errs_warnings): Support calls with NULL fp.
1329         Adjust for new err parameter to ctf_errwarning_next.  Only
1330         check for assertion failures when fp is non-NULL.
1331         (ldlang_open_ctf): Call it on open errors.
1332         * testsuite/ld-ctf/ctf.exp: Always use the C locale to avoid
1333         breaking the diags tests.
1335 2020-08-27  Jeremy Drake  <sourceware-bugzilla@jdrake.com>
1337         PR 19011
1338         * emultempl/pe.em (DEFAULT_DLL_CHARACTERISTICS): Define.
1339         (pe_dll_characteristics): Initialise to DEFAULT_DLL_CHARACTERISTICS.
1340         (add_options): Add options to disable DLL characteristics.
1341         (list_options): List the new options.
1342         (handle_options): Handle the new options.
1343         * emultempl/pep.em: Similar changes to above.
1344         (NT_EXE_IMAGE_BASE): Default to an address above 4G.
1345         (NT_DLL_IMAGE_BASE, NT_DLL_AUTO_IMAGE_BASE,
1346         (NT_DLL_AUTO_IMAGE_MASK): Likewise.
1347         * ld.texi: Document the new options.
1348         * pe-dll.c (pe_dll_enable_reloc_section): Change to default to
1349         true.
1350         (generate_reloc): Do nothing if there is no reloc section.
1351         (pe_exe_fill_sections): Only assign the reloc section contents if
1352         the section exists.
1353         * testsuite/ld-pe/pe.exp: Add the --disable-reloc-section flag to
1354         the .secrel32 tests.
1355         * testsuite/ld-scripts/provide-8.d: Expect for fail on PE targets.
1356         * NEWS: Mention the change in DLL generation.
1358 2020-08-26  H.J. Lu  <hongjiu.lu@intel.com>
1360         * testsuite/ld-elf/indirect.exp: Append $NOSANTIZE_CFLAGS to CC.
1361         * testsuite/ld-elf/shared.exp: Likewise.
1362         * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
1363         * testsuite/ld-elfvers/vers.exp: Likewise.
1364         * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
1365         * testsuite/ld-elfweak/elfweak.exp: Likewise.
1366         * testsuite/ld-plugin/lto.exp: Likewise.
1367         * testsuite/ld-plugin/plugin.exp: Likewise.
1368         * testsuite/ld-scripts/crossref.exp: Likewise.
1370 2020-08-26  Alan Modra  <amodra@gmail.com>
1372         PR 26499
1373         * emultempl/spuelf.em (spu_elf_relink): Check for NULL tmp_file_list.
1375 2020-08-26  Alan Modra  <amodra@gmail.com>
1377         PR 26431
1378         * pe-dll.c (auto_export): Don't call bsearch with zero count.
1380 2020-08-25  Alan Modra  <amodra@gmail.com>
1382         * testsuite/ld-libs/libs.exp: Don't run on sh-pe, tic30 or tic54x.
1383         * testsuite/ld-scripts/data.d: xfail tic4x and tic54x.
1384         * testsuite/ld-scripts/empty-address-2a.d: xfail tic54x.
1385         * testsuite/ld-scripts/empty-address-2b.d: Likewise.
1386         * testsuite/ld-scripts/include-1.d: xfail tic4x and tic54x.
1387         * testsuite/ld-scripts/provide-1.d: xfail tic54x.
1388         * testsuite/ld-scripts/provide-2.d: Likewise.
1389         * testsuite/ld-scripts/provide-4.d: Likewise.
1391 2020-08-24  Alan Modra  <amodra@gmail.com>
1393         * testsuite/ld-sparc/tlssunbin32.rd: Update for new readelf output.
1394         * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
1396 2020-08-24  Alan Modra  <amodra@gmail.com>
1398         * testsuite/ld-powerpc/tls32.d: Update for TPREL_HA/LO optimisation.
1399         * testsuite/ld-powerpc/tlsexe32.d: Likewise.
1400         * testsuite/ld-powerpc/tlsldopt32.d: Likewise.
1401         * testsuite/ld-powerpc/tlsmark32.d: Likewise.
1402         * testsuite/ld-powerpc/tlsopt4_32.d: Likewise.
1403         * testsuite/ld-powerpc/tprel.s,
1404         * testsuite/ld-powerpc/tprel.d,
1405         * testsuite/ld-powerpc/tprel32.d: New tests.
1406         * testsuite/ld-powerpc/tprelbad.s,
1407         * testsuite/ld-powerpc/tprelbad.d: New test.
1408         * testsuite/ld-powerpc/powerpc.exp: Run them.
1410 2020-08-22  H.J. Lu  <hongjiu.lu@intel.com>
1412         PR ld/26382
1413         * testsuite/ld-elf/pr26302.nd: Updated.
1414         * testsuite/ld-elf/pr26302.rd: New file.
1415         * testsuite/ld-elf/shared.exp: Add a test for readelf -sW.
1417 2020-08-20  Nick Clifton  <nickc@redhat.com>
1419         PR 26428
1420         * testsuite/ld-elf/zlibbegin.rS: Update expected output.
1421         * testsuite/ld-elf/zlibnormal.rS: Likewise.
1423 2020-08-16  Alan Modra  <amodra@gmail.com>
1425         * testsuite/ld-powerpc/inline.s,
1426         * testsuite/ld-powerpc/inline-1.d,
1427         * testsuite/ld-powerpc/inline-2.d,
1428         * testsuite/ld-powerpc/inline-3.d,
1429         * testsuite/ld-powerpc/inline-4.d,
1430         * testsuite/ld-powerpc/inlinepcrel.s,
1431         * testsuite/ld-powerpc/inlinepcrel-1.d,
1432         * testsuite/ld-powerpc/inlinepcrel-2.d,
1433         * testsuite/ld-powerpc/inlinepcrel-3.d: New tests.
1434         * testsuite/ld-powerpc/powerpc.exp: Run them.
1436 2020-08-16  H.J. Lu  <hongjiu.lu@intel.com>
1438         PR binutils/26389
1439         * testsuite/ld-plugin/lto.exp: Run PR binutils/26389 test.
1440         * testsuite/ld-plugin/pr26389.c: New file.
1441         * testsuite/ld-plugin/pr26389.d: Likewise.
1443 2020-08-14  Tamar Christina  <tamar.christina@arm.com>
1445         * testsuite/ld-arm/thumb-plt-got.d: Relax regexpr.
1446         * testsuite/ld-arm/thumb-plt.d: Likewise.
1448 2020-08-13  Alan Modra  <amodra@gmail.com>
1450         * emultempl/ppc64elf.em (params): Init new field.
1451         (enum ppc64_opt): Add OPTION_NO_PCREL_OPT.
1452         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS),
1453         (PARSE_AND_LIST_ARGS_CASES): Support --no-pcrel-optimize.
1455 2020-08-10  Nick Clifton  <nickc@redhat.com>
1457         PR ld/21351
1458         * ld.texi: Clarify the behaviour of the --relax and --no-relax
1459         options on systems that do not support them.
1461 2020-08-10  H.J. Lu  <hongjiu.lu@intel.com>
1463         PR binutils/26302
1464         * testsuite/ld-elf/pr26302.nd: New file.
1465         * testsuite/ld-elf/pr26302.ver: Likewise.
1466         * testsuite/ld-elf/pr26302a.c: Likewise.
1467         * testsuite/ld-elf/pr26302b.c: Likewise.
1468         * testsuite/ld-elf/shared.exp: Run binutils/26302 tests.
1470 2020-08-07  David Faust  <david.faust@oracle.com>
1472         * testsuite/ld-bpf/call-3.s: New file.
1473         * testsuite/ld-bpf/call-3.d: Likewise.
1475 2020-08-05  David Faust  <david.faust@oracle.com>
1477         * testsuite/ld-bpf/call-2.s: New file.
1478         * testsuite/ld-bpf/call-2.d: Likewise.
1479         * testsuite/ld-bpf/reloc-data-be.d: Likewise.
1480         * testsuite/ld-bpf/reloc-data-le.d: Likewise.
1481         * testsuite/ld-bpf/reloc-data.s: Likewise.
1482         * testsuite/ld-bpf/reloc-insn-external-be.d: Likewise.
1483         * testsuite/ld-bpf/reloc-insn-external-le.d: Likewise.
1484         * testsuite/ld-bpf/reloc-insn-external.s: Likewise.
1485         * testsuite/ld-bpf/reloc-insn32-be.d: Likewise.
1486         * testsuite/ld-bpf/reloc-insn32-le.d: Likewise.
1487         * testsuite/ld-bpf/reloc-insn32.s: Likewise.
1488         * testsuite/ld-bpf/reloc-insn64-be.d: Likewise.
1489         * testsuite/ld-bpf/reloc-insn64-le.d: Likewise.
1490         * testsuite/ld-bpf/reloc-insn64.s: Likewise.
1492 2020-08-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
1494         * emultempl/msp430.em (change_output_section): Update the tail
1495         of the output section statement list when moving the original
1496         tail to a different output section.
1497         (eval_upper_either_sections): Don't move sections from the upper
1498         region to the lower region unless the upper region is
1499         overflowing.
1501 2020-08-03  Alan Modra  <amodra@gmail.com>
1503         * ldlex.l (yy_create_string_buffer): Use xmalloc rather than malloc.
1504         * lexsup.c (parse_args): Likewise.
1506 2020-08-03  Alan Modra  <amodra@gmail.com>
1508         PR 26328
1509         * configure.ac: AC_CHECK_DECLS asprintf.
1510         * configure: Regenerate.
1511         * config.in: Regenerate.
1513 2020-08-03  Alan Modra  <amodra@gmail.com>
1515         * testsuite/ld-elfvers/vers.exp (objdump_symstuff): Remove unused
1516         variable.  Init list_a and list_b to empty.
1517         (objdump_dynsymstuff): Likewise, and remove undefined list_a
1518         handling.
1519         * testsuite/ld-elfweak/elfweak.exp (objdump_symstuff): Similarly.
1520         (objdump_dynsymstuff): Similarly.
1522 2020-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1524         * testsuite/ld-elf/indirect.exp: Append -fno-lto to CC.
1525         * testsuite/ld-elfvers/vers.exp: Likewise.
1526         * testsuite/ld-elfweak/elfweak.exp: Likewise.
1527         * testsuite/ld-ifunc/ifunc.exp: Likewise.
1528         * testsuite/ld-plugin/lto.exp (no_lto): New.
1529         Add $no_lto to build pr15146c.so.
1530         * testsuite/lib/ld-lib.exp (at_least_gcc_version): Filter out
1531         -Wl,xxx options.
1532         (check_gcc_plugin_enabled): Likewise.
1533         (run_ld_link_exec_tests): Prepend -fno-lto to $cflags.
1534         (run_cc_link_tests): Likewise.
1536 2020-07-31  Shahab Vahedi  <shahab@synopsys.com>
1538         * scripttempl/elfarc.sc (.init_array): Keep ".init_array.*".
1539         (.fini_array): Keep ".fini_array.*".
1541 2020-07-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1543         * Makefile.am (AM_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
1544         * Makefile.in: Regenerate.
1545         * configure: Regenerate.
1547 2020-07-29  Maciej W. Rozycki  <macro@linux-mips.org>
1549         * testsuite/ld-elf/sec64k.exp: Also accept a section symbol with
1550         a name.
1551         * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: New
1552         test.
1553         * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: New
1554         test.
1555         * testsuite/ld-mips-elf/global-local-symtab-sort-n32.d: New
1556         test.
1557         * testsuite/ld-mips-elf/global-local-symtab-sort-n32t.d: New
1558         test.
1559         * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: New
1560         test.
1561         * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: New
1562         test.
1563         * testsuite/ld-mips-elf/global-local-symtab-final-o32.d: New
1564         test.
1565         * testsuite/ld-mips-elf/global-local-symtab-final-n32.d: New
1566         test.
1567         * testsuite/ld-mips-elf/global-local-symtab-final-n64.d: New
1568         test.
1569         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1571 2020-07-29  Maciej W. Rozycki  <macro@linux-mips.org>
1573         * testsuite/ld-mips-elf/global-local-symtab-o32.d: New test.
1574         * testsuite/ld-mips-elf/global-local-symtab-o32t.d: New test.
1575         * testsuite/ld-mips-elf/global-local-symtab-n32.d: New test.
1576         * testsuite/ld-mips-elf/global-local-symtab-n32t.d: New test.
1577         * testsuite/ld-mips-elf/global-local-symtab-n64.d: New test.
1578         * testsuite/ld-mips-elf/global-local-symtab.ld: New test linker
1579         script.
1580         * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1582 2020-07-29  Alan Modra  <amodra@gmail.com>
1584         * ldelf.c (ldelf_before_place_orphans): Set SEC_EXCLUDE for
1585         discarded sections.
1587 2020-07-28  Alan Modra  <amodra@gmail.com>
1589         * ldlang.c (lang_check): Don't complain about relocs or merge
1590         attributes from --just-symbols input.
1591         * testsuite/ld-misc/just-symbols.exp: Just dump .data section.
1592         Don't run test on a number of targets.
1594 2020-07-28  Alan Modra  <amodra@gmail.com>
1596         * testsuite/ld-misc/just-symbols-1.dd: Revert last change.
1598 2020-07-27  Alan Modra  <amodra@gmail.com>
1600         * testsuite/ld-misc/just-symbols.exp: Run for x86_64 PE too.
1601         Set LDFLAGS for PE and XCOFF.
1602         * testsuite/ld-misc/just-symbols.ld: Accept XCOFF mapped .data.
1603         * testsuite/ld-misc/just-symbols-1.dd: Don't check format or
1604         "Contents of section" lines.
1606 2020-07-27  Alan Modra  <amodra@gmail.com>
1608         * testsuite/lib/ld-lib.exp (check_ctf_available): Check first that
1609         target compiler is available.
1611 2020-07-23  Maciej W. Rozycki  <macro@wdc.com>
1613         PR ld/26288
1614         * ldelf.c (ldelf_after_open): Do not reject ET_EXEC input
1615         supplied with `--just-symbols'.
1616         * testsuite/ld-misc/just-symbols.exp: New test script.
1617         * testsuite/ld-misc/just-symbols-1.dd: New test dump.
1618         * testsuite/ld-misc/just-symbols.ld: New test linker script.
1619         * testsuite/ld-misc/just-symbols-0.s: New test source.
1620         * testsuite/ld-misc/just-symbols-1.s: New test source.
1622 2020-07-23  Maciej W. Rozycki  <macro@wdc.com>
1624         PR ld/26288
1626         Revert:
1627         PR 26047
1628         * ldelf.c (ldelf_after_open): Fail if attempting to link one
1629         executable into another.
1631 2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
1633         * testsuite/ld-ctf/ctf.exp: Skip on non-ELF for now.
1635 2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
1637         * ldlang.c (ldlang_open_ctf): Set SEC_EXCLUDE on all but the
1638         first input .ctf section.
1640 2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
1642         * configure.ac (enable_libctf): Substitute it.
1643         * Makefile.am (enablings.exp): New.
1644         (EXTRA_DEJAGNU_SITE_CONFIG): Add it.
1645         (DISTCLEANFILES): Likewise.
1646         * Makefile.in: Regenerate.
1647         * configure: Likewise.
1648         * testsuite/lib/ld-lib.exp (compile_one_cc): New.
1649         (check_ctf_available): Likewise.
1650         (skip_ctf_tests): Likewise.
1651         * testsuite/ld-ctf/ctf.exp: Call skip_ctf_tests.
1653 2020-07-22  Egeyar Bagcioglu  <egeyar.bagcioglu@oracle.com>
1655         * testsuite/ld-ctf/ctf.exp: New file.
1656         * testsuite/ld-ctf/A-2.c: New file.
1657         * testsuite/ld-ctf/A.c: New file.
1658         * testsuite/ld-ctf/B-2.c: New file.
1659         * testsuite/ld-ctf/B.c: New file.
1660         * testsuite/ld-ctf/C-2.c: New file.
1661         * testsuite/ld-ctf/C.c: New file.
1662         * testsuite/ld-ctf/array-char.c: New file.
1663         * testsuite/ld-ctf/array-int.c: New file.
1664         * testsuite/ld-ctf/array.d: New file.
1665         * testsuite/ld-ctf/child-float.c: New file.
1666         * testsuite/ld-ctf/child-int.c: New file.
1667         * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: New file.
1668         * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: New file.
1669         * testsuite/ld-ctf/conflicting-cycle-1.parent.d: New file.
1670         * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: New file.
1671         * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: New file.
1672         * testsuite/ld-ctf/conflicting-cycle-2.parent.d: New file.
1673         * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: New file.
1674         * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: New file.
1675         * testsuite/ld-ctf/conflicting-cycle-3.parent.d: New file.
1676         * testsuite/ld-ctf/conflicting-enums.d: New file.
1677         * testsuite/ld-ctf/conflicting-typedefs.d: New file.
1678         * testsuite/ld-ctf/cross-tu-1.c: New file.
1679         * testsuite/ld-ctf/cross-tu-2.c: New file.
1680         * testsuite/ld-ctf/cross-tu-conflicting-2.c: New file.
1681         * testsuite/ld-ctf/cross-tu-cyclic-1.c: New file.
1682         * testsuite/ld-ctf/cross-tu-cyclic-2.c: New file.
1683         * testsuite/ld-ctf/cross-tu-cyclic-3.c: New file.
1684         * testsuite/ld-ctf/cross-tu-cyclic-4.c: New file.
1685         * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: New file.
1686         * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: New file.
1687         * testsuite/ld-ctf/cross-tu-into-cycle.d: New file.
1688         * testsuite/ld-ctf/cross-tu-noncyclic.d: New file.
1689         * testsuite/ld-ctf/cycle-1.c: New file.
1690         * testsuite/ld-ctf/cycle-1.d: New file.
1691         * testsuite/ld-ctf/cycle-2.A.d: New file.
1692         * testsuite/ld-ctf/cycle-2.B.d: New file.
1693         * testsuite/ld-ctf/cycle-2.C.d: New file.
1694         * testsuite/ld-ctf/diag-ctf-version-0.d: New file.
1695         * testsuite/ld-ctf/diag-ctf-version-0.s: New file.
1696         * testsuite/ld-ctf/diag-ctf-version-2-unsupported-feature.d: New file.
1697         * testsuite/ld-ctf/diag-ctf-version-2-unsupported-feature.s: New file.
1698         * testsuite/ld-ctf/diag-ctf-version-f.d: New file.
1699         * testsuite/ld-ctf/diag-ctf-version-f.s: New file.
1700         * testsuite/ld-ctf/diag-cttname-invalid.d: New file.
1701         * testsuite/ld-ctf/diag-cttname-invalid.s: New file.
1702         * testsuite/ld-ctf/diag-cttname-null.d: New file.
1703         * testsuite/ld-ctf/diag-cttname-null.s: New file.
1704         * testsuite/ld-ctf/diag-cuname.d: New file.
1705         * testsuite/ld-ctf/diag-cuname.s: New file.
1706         * testsuite/ld-ctf/diag-decompression-failure.d: New file.
1707         * testsuite/ld-ctf/diag-decompression-failure.s: New file.
1708         * testsuite/ld-ctf/diag-parlabel.d: New file.
1709         * testsuite/ld-ctf/diag-parlabel.s: New file.
1710         * testsuite/ld-ctf/diag-parname.d: New file.
1711         * testsuite/ld-ctf/diag-parname.s: New file.
1712         * testsuite/ld-ctf/diag-unsupported-flag.d: New file.
1713         * testsuite/ld-ctf/diag-unsupported-flag.s: New file.
1714         * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: New file.
1715         * testsuite/ld-ctf/diag-wrong-magic-number.d: New file.
1716         * testsuite/ld-ctf/diag-wrong-magic-number.s: New file.
1717         * testsuite/ld-ctf/enum-2.c: New file.
1718         * testsuite/ld-ctf/enum.c: New file.
1719         * testsuite/ld-ctf/function.c: New file.
1720         * testsuite/ld-ctf/function.d: New file.
1721         * testsuite/ld-ctf/slice.c: New file.
1722         * testsuite/ld-ctf/slice.d: New file.
1723         * testsuite/ld-ctf/super-sub-cycles.c: New file.
1724         * testsuite/ld-ctf/super-sub-cycles.d: New file.
1725         * testsuite/ld-ctf/typedef-int.c: New file.
1726         * testsuite/ld-ctf/typedef-long.c: New file.
1727         * testsuite/ld-ctf/union-1.c: New file.
1729 2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
1731         * ldlex.h (option_values) <OPTION_CTF_VARIABLES,
1732         OPTION_NO_CTF_VARIABLES, OPTION_CTF_SHARE_TYPES>: New.
1733         * ld.h (ld_config_type) <ctf_variables, ctf_share_duplicated>:
1734         New fields.
1735         * ldlang.c (lang_merge_ctf): Use them.
1736         * lexsup.c (ld_options): Add ctf-variables, no-ctf-variables,
1737         ctf-share-types.
1738         (parse_args) <OPTION_CTF_VARIABLES, OPTION_NO_CTF_VARIABLES,
1739         OPTION_CTF_SHARE_TYPES>: New cases.
1740         * ld.texi: Document new options.
1741         * NEWS: Likewise.
1743 2020-07-22  Egeyar Bagcioglu  <egeyar.bagcioglu@oracle.com>
1745         * ldlang.c (lang_merge_ctf): Turn errors into warnings.
1746         Fix a comment typo.
1747         (lang_write_ctf): Turn an error into a warning.
1748         (ldlang_open_ctf): Reformat warnings. Fix printing file names.
1750 2020-07-22  Nick Alcock  <nick.alcock@oracle.com>
1752         * ldlang.c (lang_ctf_errs_warnings): New, print CTF errors
1753         and warnings.  Assert when libctf asserts.
1754         (lang_merge_ctf): Call it.
1755         (land_write_ctf): Likewise.
1757 2020-07-22  H.J. Lu  <hongjiu.lu@intel.com>
1759         PR ld/26262
1760         PR ld/26267
1761         * ldlang.c (lang_process): Set lto_all_symbols_read after all
1762         LTO IR symbols have been read.
1763         * plugin.c (plugin_notice): Override the IR definition only if
1764         all LTO IR symbols have been read or the new definition is
1765         non-weak and the the IR definition is weak
1766         * testsuite/ld-plugin/lto.exp: Run PR ld/26262 and ld/26267
1767         tests.
1768         * testsuite/ld-plugin/pr26262a.c: New file.
1769         * testsuite/ld-plugin/pr26262b.c: Likewise.
1770         * testsuite/ld-plugin/pr26262c.c: Likewise.
1771         * testsuite/ld-plugin/pr26267.err: Likewise.
1772         * testsuite/ld-plugin/pr26267a.c: Likewise.
1773         * testsuite/ld-plugin/pr26267b.c: Likewise.
1774         * testsuite/ld-plugin/pr26267c.c: Likewise.
1776 2020-07-20  Nick Clifton  <nickc@redhat.com>
1778         * testsuite/ld-powerpc/powerpc.exp (ppcelftests): Use section name
1779         .PPC.EMB.apuinfo instead of section number 2 in apuinfo tests.
1781 2020-07-20  Alan Modra  <amodra@gmail.com>
1783         PR 26265
1784         * ldlang.c (undef_from_cmdline): Delete.
1785         (ldlang_add_undef): Mark "cmdline" param unused.
1786         (lang_end): Traverse gc_sym_list to determine whether a symbol root
1787         has been specified.  Update error message.
1788         * testsuite/ld-gc/noent.d: Adjust for changed error message.
1790 2020-07-20  H.J. Lu  <hongjiu.lu@intel.com>
1792         PR gas/26263
1793         * testsuite/ld-i386/pr26263.d: Updated.
1794         * testsuite/ld-x86-64/pr26263.d: Likewise.
1795         * testsuite/ld-x86-64/x86-64.exp: Run gas/26263 test for all ELF
1796         targets.
1798 2020-07-19  H.J. Lu  <hongjiu.lu@intel.com>
1800         PR gas/26263
1801         * testsuite/ld-i386/i386.exp: Run PR gas/26263 test.
1802         * testsuite/ld-x86-64/x86-64.exp: Likewise.
1803         * testsuite/ld-i386/pr26263.d: New file.
1804         * testsuite/ld-x86-64/pr26263.d: Likewise.
1805         * testsuite/ld-x86-64/pr26263.s: Likewise.
1807 2020-07-19  Hans-Peter Nilsson  <hp@bitrange.com>
1809         * scripttempl/elf.sc (ETEXT_LAST_IN_RODATA_SEGMENT): New variable.
1810         * emulparams/elf64mmix.sh (ETEXT_LAST_IN_RODATA_SEGMENT): Define.
1811         * testsuite/ld-mmix/sec-1.d: Adjust.
1813 2020-07-19  Alan Modra  <amodra@gmail.com>
1815         * emultempl/ppc64elf.em (power10-stubs): Accept optional "auto" arg.
1816         * ld.texi (power10-stubs): Update.
1817         * testsuite/ld-powerpc/callstub-1.d: Force --power10-stubs.
1818         * testsuite/ld-powerpc/callstub-2.d: Relax branch offset comparison.
1819         * testsuite/ld-powerpc/callstub-4.d: New test.
1820         * testsuite/ld-powerpc/notoc.d: Force --no-power10-stubs.
1821         * testsuite/ld-powerpc/notoc3.d,
1822         * testsuite/ld-powerpc/notoc3.s,
1823         * testsuite/ld-powerpc/notoc3.wf: New test.
1824         * testsuite/ld-powerpc/powerpc.exp: Run new tests.  Pass
1825         --no-power10-stubs for notoc link.
1827 2020-07-17  Hans-Peter Nilsson  <hp@bitrange.com>
1829         * scripttempt/mmo.sc: Move .init first in .text output section.
1830         * testsuite/ld-mmix/bpo-9m.d: Adjust accordingly.
1832 2020-07-15  Jan Beulich  <jbeulich@suse.com>
1834         * testsuite/ld-i386/ibt-plt-1.d, testsuite/ld-i386/ibt-plt-2a.d,
1835         testsuite/ld-i386/ibt-plt-2c.d, testsuite/ld-i386/ibt-plt-3a.d,
1836         testsuite/ld-i386/ibt-plt-3c.d, testsuite/ld-i386/plt-pic.pd,
1837         testsuite/ld-i386/plt-pic2.dd, testsuite/ld-i386/plt.pd,
1838         testsuite/ld-i386/plt2.dd, testsuite/ld-i386/pr19636-1d.d,
1839         testsuite/ld-i386/pr19636-1l.d, testsuite/ld-i386/pr19636-2c.d,
1840         testsuite/ld-i386/pr20830.d, testsuite/ld-i386/vxworks1-lib.dd,
1841         testsuite/ld-i386/vxworks1.dd,
1842         testsuite/ld-ifunc/ifunc-2-i386-now.d,
1843         testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
1844         testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d,
1845         testsuite/ld-ifunc/ifunc-2-x86-64-now.d,
1846         testsuite/ld-ifunc/ifunc-21-x86-64.d,
1847         testsuite/ld-ifunc/ifunc-22-x86-64.d,
1848         testsuite/ld-ifunc/pr17154-i386-now.d,
1849         testsuite/ld-ifunc/pr17154-i386.d,
1850         testsuite/ld-ifunc/pr17154-x86-64-now.d,
1851         testsuite/ld-ifunc/pr17154-x86-64.d,
1852         testsuite/ld-x86-64/align-branch-1.d,
1853         testsuite/ld-x86-64/bnd-branch-1-now.d,
1854         testsuite/ld-x86-64/bnd-branch-1.d,
1855         testsuite/ld-x86-64/bnd-ifunc-1-now.d,
1856         testsuite/ld-x86-64/bnd-ifunc-1.d,
1857         testsuite/ld-x86-64/bnd-ifunc-2-now.d,
1858         testsuite/ld-x86-64/bnd-ifunc-2.d,
1859         testsuite/ld-x86-64/bnd-plt-1-now.d,
1860         testsuite/ld-x86-64/bnd-plt-1.d,
1861         testsuite/ld-x86-64/call1a.d, testsuite/ld-x86-64/call1b.d,
1862         testsuite/ld-x86-64/call1d.d, testsuite/ld-x86-64/call1e.d,
1863         testsuite/ld-x86-64/call1f.d, testsuite/ld-x86-64/call1g.d,
1864         testsuite/ld-x86-64/call1h.d, testsuite/ld-x86-64/call1i.d,
1865         testsuite/ld-x86-64/gotpcrel1.dd,
1866         testsuite/ld-x86-64/hidden2.d,
1867         testsuite/ld-x86-64/ibt-plt-1-x32.d,
1868         testsuite/ld-x86-64/ibt-plt-1.d,
1869         testsuite/ld-x86-64/ibt-plt-2a-x32.d,
1870         testsuite/ld-x86-64/ibt-plt-2a.d,
1871         testsuite/ld-x86-64/ibt-plt-2c-x32.d,
1872         testsuite/ld-x86-64/ibt-plt-2c.d,
1873         testsuite/ld-x86-64/ibt-plt-3a-x32.d,
1874         testsuite/ld-x86-64/ibt-plt-3a.d,
1875         testsuite/ld-x86-64/ibt-plt-3c-x32.d,
1876         testsuite/ld-x86-64/ibt-plt-3c.d,
1877         testsuite/ld-x86-64/libno-plt-1b.dd,
1878         testsuite/ld-x86-64/mpx3.dd, testsuite/ld-x86-64/mpx3n.dd,
1879         testsuite/ld-x86-64/mpx4.dd, testsuite/ld-x86-64/mpx4n.dd,
1880         testsuite/ld-x86-64/no-plt-1a.dd,
1881         testsuite/ld-x86-64/no-plt-1b.dd,
1882         testsuite/ld-x86-64/no-plt-1c.dd,
1883         testsuite/ld-x86-64/no-plt-1d.dd,
1884         testsuite/ld-x86-64/no-plt-1e.dd,
1885         testsuite/ld-x86-64/no-plt-1f.dd,
1886         testsuite/ld-x86-64/no-plt-1g.dd,
1887         testsuite/ld-x86-64/plt-main-bnd.dd,
1888         testsuite/ld-x86-64/plt-main-ibt-x32.dd,
1889         testsuite/ld-x86-64/plt-main-ibt.dd,
1890         testsuite/ld-x86-64/plt.pd, testsuite/ld-x86-64/plt2.dd,
1891         testsuite/ld-x86-64/pr19609-5a.d,
1892         testsuite/ld-x86-64/pr19609-5b.d,
1893         testsuite/ld-x86-64/pr19609-5c.d,
1894         testsuite/ld-x86-64/pr19609-5e.d,
1895         testsuite/ld-x86-64/pr19609-7b.d,
1896         testsuite/ld-x86-64/pr19609-7d.d,
1897         testsuite/ld-x86-64/pr19636-2d.d,
1898         testsuite/ld-x86-64/pr19636-2l.d,
1899         testsuite/ld-x86-64/pr20253-1b.d,
1900         testsuite/ld-x86-64/pr20253-1d.d,
1901         testsuite/ld-x86-64/pr20253-1f.d,
1902         testsuite/ld-x86-64/pr20253-1h.d,
1903         testsuite/ld-x86-64/pr20253-1j.d,
1904         testsuite/ld-x86-64/pr20253-1l.d,
1905         testsuite/ld-x86-64/pr20830a-now.d,
1906         testsuite/ld-x86-64/pr20830a.d,
1907         testsuite/ld-x86-64/pr20830b-now.d,
1908         testsuite/ld-x86-64/pr20830b.d,
1909         testsuite/ld-x86-64/pr21038a-now.d,
1910         testsuite/ld-x86-64/pr21038a.d,
1911         testsuite/ld-x86-64/pr21038b-now.d,
1912         testsuite/ld-x86-64/pr21038b.d,
1913         testsuite/ld-x86-64/pr21038c-now.d,
1914         testsuite/ld-x86-64/pr21038c.d,
1915         testsuite/ld-x86-64/pr23930-x32.d,
1916         testsuite/ld-x86-64/pr23930.d,
1917         testsuite/ld-x86-64/pr25416-1a.d,
1918         testsuite/ld-x86-64/pr25416-2a.d,
1919         testsuite/ld-x86-64/pr26018.d,
1920         testsuite/ld-x86-64/protected2-k1om.d,
1921         testsuite/ld-x86-64/protected2-l1om.d,
1922         testsuite/ld-x86-64/protected2.d,
1923         testsuite/ld-x86-64/protected3.d,
1924         testsuite/ld-x86-64/protected8.d,
1925         testsuite/ld-x86-64/tlsbin.dd, testsuite/ld-x86-64/tlsbin2.dd,
1926         testsuite/ld-x86-64/tlsbindesc.dd,
1927         testsuite/ld-x86-64/tlsdesc.dd,
1928         testsuite/ld-x86-64/tlsdesc.pd,
1929         testsuite/ld-x86-64/tlsgd10.dd,
1930         testsuite/ld-x86-64/tlsgd7.dd, testsuite/ld-x86-64/tlsgd8.dd,
1931         testsuite/ld-x86-64/tlsgd9.dd,
1932         testsuite/ld-x86-64/tlsgdesc.dd,
1933         testsuite/ld-x86-64/tlsld3.dd, testsuite/ld-x86-64/tlsld4.dd,
1934         testsuite/ld-x86-64/tlspic.dd, testsuite/ld-x86-64/tlspic2.dd,
1935         testsuite/ld-x86-64/tlspie2b.d, testsuite/ld-x86-64/tlspie2c.d:
1936         Adjust expectations.
1938 2020-07-15  Hans-Peter Nilsson  <hp@bitrange.com>
1940         * testsuite/ld-mmix/undef-1.d, testsuite/ld-mmix/undef-1m.d,
1941         testsuite/ld-mmix/undef-2.d, testsuite/ld-mmix/undef-2m.d: Add
1942         start- and end-anchors to error-string to match just a
1943         single-line error-message.
1945 2020-07-13  Alan Modra  <amodra@gmail.com>
1947         * testsuite/ld-scripts/default-script1.d: Don't skip, xfail
1948         using is_pecoff_format.
1949         * testsuite/ld-scripts/default-script2.d: Likewise.
1950         * testsuite/ld-scripts/default-script3.d: Likewise.
1951         * testsuite/ld-scripts/default-script4.d: Likewise.
1952         * testsuite/ld-scripts/pr20302.d: Remove x86_64-*-cygwin from notarget.
1953         * testsuite/ld-scripts/provide-6.d: Remove x86_64-*-cygwin from xfail.
1954         * testsuite/ld-scripts/provide-8.d: Likewise.
1956 2020-07-10  Alan Modra  <amodra@gmail.com>
1958         * ld.texi (PowerPC64 ELF64): Document --no-inline-optimize,
1959         --power10-stubs and --no-power10-stubs.
1961 2020-07-10  Alan Modra  <amodra@gmail.com>
1963         * emultempl/ppc64elf.em (params): Init new field.
1964         (enum ppc64_opt): Add OPTION_POWER10_STUBS and OPTION_NO_POWER10_STUBS.
1965         (PARSE_AND_LIST_LONGOPTS): Support --power10-stubs and
1966         --no-power10-stubs.
1967         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
1968         * testsuite/ld-powerpc/callstub-3.d: New test.
1969         * testsuite/ld-powerpc/powerpc.exp: Run it.
1971 2020-07-09  Alan Modra  <amodra@gmail.com>
1973         * emulparams/ppcpe.sh: Delete.
1974         * scripttempl/ppcpe.sc: Delete.
1975         * emulparams/ppclynx.sh: Delete.
1976         * Makefile.am (ALL_EMULATION_SOURCES): Remove ppc PE and lynxos.
1977         * configure.tgt: Likewise.
1978         * emultempl/beos.em: Remove powerpc PE support.
1979         * emultempl/pe.em: Likewise.
1980         * po/BLD-POTFILES.in: Regenerate.
1981         * Makefile.in: Regenerate.
1983 2020-07-09  Alan Modra  <amodra@gmail.com>
1985         * testsuite/ld-gc/gc.exp: Don't set -mminimal-toc for powerpc64,
1986         and remove powerpc64 xfail.  Use -fno-PIE for ppc32.
1988 2020-07-09  Alan Modra  <amodra@gmail.com>
1990         PR 18841
1991         * testsuite/ld-ifunc/ifunc.exp: Run pr18841 tests non-pie.
1993 2020-07-08  Alan Modra  <amodra@gmail.com>
1995         * testsuite/lib/ld-lib.exp (ar_simple_create): Pass options before
1996         ar command.
1997         * testsuite/ld-powerpc/aix52.exp: Run for rs6000-aix5.2.  Update
1998         match files.
1999         * testsuite/ld-powerpc/aix-abs-branch-1.dd: Update.
2000         * testsuite/ld-powerpc/aix-core-sec-1.hd: Update.
2001         * testsuite/ld-powerpc/aix-gc-1-32.dd: Update.
2002         * testsuite/ld-powerpc/aix-gc-1-64.dd: Update.
2003         * testsuite/ld-powerpc/aix-glink-1-32.dd: Update.
2004         * testsuite/ld-powerpc/aix-glink-1-64.dd: Update.
2005         * testsuite/ld-powerpc/aix-glink-2-32.dd: Update.
2006         * testsuite/ld-powerpc/aix-glink-2-64.dd: Update.
2007         * testsuite/ld-powerpc/aix-no-dup-syms-1-rel.rd: Update.
2008         * testsuite/ld-powerpc/aix-ref-1-32.od: Update.
2009         * testsuite/ld-powerpc/aix-ref-1-64.od: Update.
2010         * testsuite/ld-powerpc/aix-toc-1-32.dd: Update.
2011         * testsuite/ld-powerpc/aix-toc-1-64.dd: Update.
2012         * testsuite/ld-powerpc/aix-weak-3-32.dd: Update.
2013         * testsuite/ld-powerpc/aix-weak-3-64.dd: Update.
2014         * testsuite/ld-powerpc/aix-abs-branch-1.nd: Delete, replace with..
2015         * testsuite/ld-powerpc/aix-abs-branch-1-32.nd,
2016         * testsuite/ld-powerpc/aix-abs-branch-1-64.nd: ..these new files.
2017         * testsuite/ld-powerpc/aix-abs-reloc-1.nd: Delete, replace with..
2018         * testsuite/ld-powerpc/aix-abs-reloc-1-32.nd,
2019         * testsuite/ld-powerpc/aix-abs-reloc-1-64.nd: ..these new files.
2020         * testsuite/ld-powerpc/aix-abs-reloc-1.od: Delete, replace with..
2021         * testsuite/ld-powerpc/aix-abs-reloc-1-32.od,
2022         * testsuite/ld-powerpc/aix-abs-reloc-1-64.od: ..these new files.
2023         * testsuite/ld-powerpc/aix-export-1-all.dd: Delete, replace with..
2024         * testsuite/ld-powerpc/aix-export-1-all-32.dd,
2025         * testsuite/ld-powerpc/aix-export-1-all-64.dd: ..these new files.
2026         * testsuite/ld-powerpc/aix-export-1-full.dd: Delete, replace with..
2027         * testsuite/ld-powerpc/aix-export-1-full-32.dd,
2028         * testsuite/ld-powerpc/aix-export-1-full-64.dd: ..these new files.
2029         * testsuite/ld-powerpc/aix-export-2.nd: Delete, replace with..
2030         * testsuite/ld-powerpc/aix-export-2-32.nd,
2031         * testsuite/ld-powerpc/aix-export-2-64.nd: ..these new files.
2032         * testsuite/ld-powerpc/aix-gc-1.nd: Delete, replace with..
2033         * testsuite/ld-powerpc/aix-gc-1-32.nd,
2034         * testsuite/ld-powerpc/aix-gc-1-64.nd: ..these new files.
2035         * testsuite/ld-powerpc/aix-glink-3.dd: Delete, replace with..
2036         * testsuite/ld-powerpc/aix-glink-3-32.dd,
2037         * testsuite/ld-powerpc/aix-glink-3-64.dd: ..these new files.
2038         * testsuite/ld-powerpc/aix-lineno-1a.dd: Delete, replace with..
2039         * testsuite/ld-powerpc/aix-lineno-1a-32.dd,
2040         * testsuite/ld-powerpc/aix-lineno-1a-64.dd: ..these new files.
2041         * testsuite/ld-powerpc/aix-lineno-1a.nd: Delete, replace with..
2042         * testsuite/ld-powerpc/aix-lineno-1a-32.nd,
2043         * testsuite/ld-powerpc/aix-lineno-1a-64.nd: ..these new files.
2044         * testsuite/ld-powerpc/aix-lineno-1b.dd: Delete, replace with..
2045         * testsuite/ld-powerpc/aix-lineno-1b-32.dd,
2046         * testsuite/ld-powerpc/aix-lineno-1b-64.dd: ..these new files.
2047         * testsuite/ld-powerpc/aix-lineno-1b.nd: Delete, replace with..
2048         * testsuite/ld-powerpc/aix-lineno-1b-32.nd,
2049         * testsuite/ld-powerpc/aix-lineno-1b-64.nd: ..these new files.
2050         * testsuite/ld-powerpc/aix-no-dup-syms-1-dso.dnd: Delete, replace with..
2051         * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.dnd,
2052         * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.dnd: ..these new files.
2053         * testsuite/ld-powerpc/aix-no-dup-syms-1-dso.drd: Delete, replace with..
2054         * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.drd,
2055         * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.drd: ..these new files.
2056         * testsuite/ld-powerpc/aix-no-dup-syms-1-dso.nd: Delete, replace with..
2057         * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.nd,
2058         * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.nd: ..these new files.
2059         * testsuite/ld-powerpc/aix-no-dup-syms-1-dso.rd: Delete, replace with..
2060         * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-32.rd,
2061         * testsuite/ld-powerpc/aix-no-dup-syms-1-dso-64.rd: ..these new files.
2062         * testsuite/ld-powerpc/aix-weak-1-dso.dnd: Delete, replace with..
2063         * testsuite/ld-powerpc/aix-weak-1-dso-32.dnd,
2064         * testsuite/ld-powerpc/aix-weak-1-dso-64.dnd: ..these new files.
2065         * testsuite/ld-powerpc/aix-weak-1-dso.hd: Delete, replace with..
2066         * testsuite/ld-powerpc/aix-weak-1-dso-32.hd,
2067         * testsuite/ld-powerpc/aix-weak-1-dso-64.hd: ..these new files.
2068         * testsuite/ld-powerpc/aix-weak-1-dso.nd: Delete, replace with..
2069         * testsuite/ld-powerpc/aix-weak-1-dso-32.nd,
2070         * testsuite/ld-powerpc/aix-weak-1-dso-64.nd: ..these new files.
2071         * testsuite/ld-powerpc/aix-weak-1-gcdso.dnd: Delete, replace with..
2072         * testsuite/ld-powerpc/aix-weak-1-gcdso-32.dnd,
2073         * testsuite/ld-powerpc/aix-weak-1-gcdso-64.dnd: ..these new files.
2074         * testsuite/ld-powerpc/aix-weak-1-gcdso.hd: Delete, replace with..
2075         * testsuite/ld-powerpc/aix-weak-1-gcdso-32.hd,
2076         * testsuite/ld-powerpc/aix-weak-1-gcdso-64.hd: ..these new files.
2077         * testsuite/ld-powerpc/aix-weak-1-gcdso.nd: Delete, replace with..
2078         * testsuite/ld-powerpc/aix-weak-1-gcdso-32.nd,
2079         * testsuite/ld-powerpc/aix-weak-1-gcdso-64.nd: ..these new files.
2080         * testsuite/ld-powerpc/aix-weak-2a.nd: Delete, replace with..
2081         * testsuite/ld-powerpc/aix-weak-2a-32.nd,
2082         * testsuite/ld-powerpc/aix-weak-2a-64.nd: ..these new files.
2083         * testsuite/ld-powerpc/aix-weak-2b.nd: Delete, replace with..
2084         * testsuite/ld-powerpc/aix-weak-2b-32.nd,
2085         * testsuite/ld-powerpc/aix-weak-2b-64.nd: ..these new files.
2086         * testsuite/ld-powerpc/aix-weak-2c.nd: Delete, replace with..
2087         * testsuite/ld-powerpc/aix-weak-2c-32.nd,
2088         * testsuite/ld-powerpc/aix-weak-2c-64.nd: ..these new files.
2089         * testsuite/ld-powerpc/aix-weak-2c.od: Delete, replace with..
2090         * testsuite/ld-powerpc/aix-weak-2c-32.od,
2091         * testsuite/ld-powerpc/aix-weak-2c-64.od: ..these new files.
2093 2020-07-07  Alan Modra  <amodra@gmail.com>
2095         * testsuite/ld-scripts/section-match-1.d: xfail h8300.
2097 2020-07-07  Alan Modra  <amodra@gmail.com>
2099         * testsuite/ld-scripts/align.exp: Don't exclude xcoff.  Pass
2100         -bnogc ld option for xcoff.
2101         * testsuite/ld-scripts/provide.exp: Likewise.
2102         * testsuite/ld-scripts/data.exp: Pass -bnogc ld option for xcoff.
2103         * testsuite/ld-scripts/default-script.exp: Likewise.
2104         * testsuite/ld-scripts/defined.exp: Likewise.
2105         * testsuite/ld-scripts/empty-address.exp: Likewise.
2106         * testsuite/ld-scripts/expr.exp: Likewise.
2107         * testsuite/ld-scripts/include.exp: Likewise.
2108         * testsuite/ld-scripts/script.exp: Likewise.
2109         * testsuite/ld-scripts/assign-loc.d: Don't exclude xcoff.
2110         * testsuite/ld-scripts/defined3.d: Likewise.
2111         * testsuite/ld-scripts/defined4.d: Likewise.
2112         * testsuite/ld-scripts/pr18963.d: Likewise.
2113         * testsuite/ld-scripts/sane1.d: Likewise.
2114         * testsuite/ld-scripts/segment-start.d: Likewise.
2115         * testsuite/ld-scripts/include-1.d: Likewise, and relax text vma.
2116         * testsuite/ld-scripts/defined5.d: Update xfail and comment.
2117         * testsuite/ld-scripts/defined5.s: Tweak "defined" to be at
2118         non-zero section offset.
2119         * testsuite/ld-scripts/fill16.d: xfail for xcoff.
2120         * testsuite/ld-scripts/provide-2.d: Accept more symbols.
2121         * testsuite/ld-scripts/provide-4.d: Likewise.
2122         * testsuite/ld-scripts/provide-5.d: Likewise.
2123         * testsuite/ld-scripts/provide-6.d: Likewise.
2124         * testsuite/ld-scripts/provide-7.d: Likewise.
2125         * testsuite/ld-scripts/align.t: Accept xcoff mapped .text and .data.
2126         * testsuite/ld-scripts/defined3.t: Likewise.
2127         * testsuite/ld-scripts/defined4.t: Likewise.
2128         * testsuite/ld-scripts/defined5.t: Likewise.
2129         * testsuite/ld-scripts/fill.t: Likewise.
2130         * testsuite/ld-scripts/include-subdata.t: Likewise.
2131         * testsuite/ld-scripts/provide-1.t: Likewise.
2132         * testsuite/ld-scripts/provide-2.t: Likewise.
2133         * testsuite/ld-scripts/provide-3.t: Likewise.
2134         * testsuite/ld-scripts/provide-4.t: Likewise.
2135         * testsuite/ld-scripts/provide-5.t: Likewise.
2136         * testsuite/ld-scripts/provide-6.t: Likewise.
2137         * testsuite/ld-scripts/provide-7.t: Likewise.
2138         * testsuite/ld-scripts/provide-8.t: Likewise.
2139         * testsuite/ld-scripts/assign-loc.t: Add required xcoff sections.
2140         * testsuite/ld-scripts/sizeof.t: Likewise.
2141         * testsuite/ld-scripts/align2.t: Likewise, and mapped sections.
2142         * testsuite/ld-scripts/align5.t: Likewise.
2143         * testsuite/ld-scripts/default-script.t: Likewise.
2144         * testsuite/ld-scripts/empty-address-1.t: Likewise.
2145         * testsuite/ld-scripts/empty-address-2a.t: Likewise.
2146         * testsuite/ld-scripts/empty-address-2b.t: Likewise.
2147         * testsuite/ld-scripts/empty-address-3a.t: Likewise.
2148         * testsuite/ld-scripts/empty-address-3b.t: Likewise.
2149         * testsuite/ld-scripts/empty-address-3c.t: Likewise.
2150         * testsuite/ld-scripts/include-sections.t: Likewise.
2151         * testsuite/ld-scripts/pr14962.t: Likewise.
2152         * testsuite/ld-scripts/sane1.t: Likewise.
2154 2020-07-07  Alan Modra  <amodra@gmail.com>
2156         * testsuite/ld-scripts/align.exp: Use is_pecoff_format.
2157         * testsuite/ld-scripts/defined.exp: Likewise.
2158         * testsuite/ld-scripts/provide.exp: Likewise.
2159         * testsuite/ld-scripts/weak.exp: Likewise.
2160         * testsuite/ld-scripts/empty-address.exp: Likewise.  Reset LDFLAGS
2161         on exit.
2162         * testsuite/ld-scripts/expr.exp: Set LDFLAGS earlier, and with
2163         --image-base for PE.
2164         * testsuite/ld-scripts/include.exp: Set LDFLAGS for PE.
2165         * testsuite/ld-scripts/script.exp: Use is_pecoff_format, and
2166         set LDFLAGS as well as flags.
2168 2020-07-07  Alan Modra  <amodra@gmail.com>
2170         * testsuite/ld-checks/checks.exp: Use is_xcoff_format.
2171         * testsuite/ld-powerpc/powerpc.exp: Likewise.
2172         * testsuite/ld-scripts/print-memory-usage.exp: Likewise.
2173         * testsuite/ld-srec/srec.exp: Likewise.
2174         * testsuite/ld-undefined/require-defined.exp: Likewise.
2175         * testsuite/ld-scripts/expr2.d: Likewise.
2176         * testsuite/ld-scripts/section-match-1.d: Only run for ELF.
2177         * testsuite/ld-elfvers/vers.exp: Delete dead code.
2178         * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
2179         * testsuite/ld-elfweak/elfweak.exp: Likewise.
2181 2020-07-07  Alan Modra  <amodra@gmail.com>
2183         * emultempl/aix.em (gld${EMULATION_NAME}_find_exp_assignment): Handle
2184         etree_provided.
2186 2020-07-07  Alan Modra  <amodra@gmail.com>
2188         * testsuite/ld-sh/vxworks1-lib.rd: Update expected output.
2189         * testsuite/ld-sh/vxworks4.d: Likewise.
2191 2020-07-06  Yuri Chornoivan  <yurchor@ukr.net>
2193         PR 26204
2194         * lexsup.c: Fix spelling mistake.
2195         * po/ld.pot: Regenerate.
2197 2020-07-06  Nick Clifton  <nickc@redhat.com>
2199         * po/bg.po: Updated Bulgarian translation.
2200         * po/fr.po: Updated French translation.
2201         * po/pt_BR.po: Updated Brazilian Portuguese translation.
2202         * po/uk.po: Updated Ukranian translation.
2204 2020-07-04  Nick Clifton  <nickc@redhat.com>
2206         * configure: Regenerate.
2208 2020-07-04  Nick Clifton  <nickc@redhat.com>
2210         Binutils 2.35 branch created.
2212 2020-07-03  Alan Modra  <amodra@gmail.com>
2214         PR 26028
2215         * testsuite/ld-arm/arm-elf.exp (vxworks1): Pass --wide to readelf
2216         when dumping relocs.
2217         * testsuite/ld-i386/i386.exp (vxworks1): Likewise.
2218         * testsuite/ld-sh/sh-vxworks.exp (vxworks1): Likewise.
2219         * testsuite/ld-sparc/sparc.exp (vxworks1): Likewise.
2220         * testsuite/ld-arm/vxworks1.rd: Adjust to suit.
2221         * testsuite/ld-i386/vxworks1.rd: Adjust.
2222         * testsuite/ld-sh/vxworks1.rd: Adjust.
2223         * testsuite/ld-sparc/vxworks1.rd: Adjust.
2225 2020-07-02  Nick Clifton  <nickc@redhat.com>
2227         PR 26028
2228         * testsuite/ld-powerpc/powerpc.exp: Add -T option to readelf
2229         command line when running some tests.
2230         * testsuite/ld-arm/arm-elf.exp: Likewise.
2231         * testsuite/ld-mips-elf/mips-elf.exp: Likewise.
2232         * testsuite/ld-mmix/local1.d: Likewise.
2233         * testsuite/ld-mmix/local3.d: Likewise.
2234         * testsuite/ld-mmix/local5.d: Likewise.
2235         * testsuite/ld-mmix/local7.d: Likewise.
2236         * testsuite/ld-powerpc/powerpc.exp: Likewise.
2238 2020-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2240         * Makefile.am (ALL_EMULATION_SOURCES): Remove eelf_i386_nacl.c,
2241         eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c.
2242         Remove x86 NaCl dep files.
2243         * NEWS: Mention x86 NaCl target support removal.
2244         * configure.tgt: Remove x86 NaCl target support.
2245         * testsuite/ld-elf/binutils.exp: Likewise.
2246         * testsuite/ld-elf/elf.exp: Likewise.
2247         * testsuite/ld-elfvers/vers.exp: Likewise.
2248         * testsuite/ld-i386/align-branch-1.d: Likewise.
2249         * testsuite/ld-i386/export-class.exp: Likewise.
2250         * testsuite/ld-i386/i386.exp: Likewise.
2251         * testsuite/ld-i386/load1.d: Likewise.
2252         * testsuite/ld-i386/pie1.d: Likewise.
2253         * testsuite/ld-i386/pr12570a.d: Likewise.
2254         * testsuite/ld-i386/pr12570b.d: Likewise.
2255         * testsuite/ld-i386/pr19636-1d.d: Likewise.
2256         * testsuite/ld-i386/pr19636-1l.d: Likewise.
2257         * testsuite/ld-i386/pr19636-2c.d: Likewise.
2258         * testsuite/ld-i386/pr19636-2d.d: Likewise.
2259         * testsuite/ld-i386/pr19636-2e.d: Likewise.
2260         * testsuite/ld-i386/pr20244-1a.d: Likewise.
2261         * testsuite/ld-i386/pr20244-1b.d: Likewise.
2262         * testsuite/ld-i386/pr20244-2a.d: Likewise.
2263         * testsuite/ld-i386/pr20244-2b.d: Likewise.
2264         * testsuite/ld-i386/pr20244-2c.d: Likewise.
2265         * testsuite/ld-i386/pr20244-4a.d: Likewise.
2266         * testsuite/ld-i386/pr20244-4b.d: Likewise.
2267         * testsuite/ld-i386/pr21884.d: Likewise.
2268         * testsuite/ld-ifunc/binutils.exp: Likewise.
2269         * testsuite/ld-ifunc/ifunc-10-i386.d: Likewise.
2270         * testsuite/ld-ifunc/ifunc-10-x86-64.d: Likewise.
2271         * testsuite/ld-ifunc/ifunc-11-i386.d: Likewise.
2272         * testsuite/ld-ifunc/ifunc-11-x86-64.d: Likewise.
2273         * testsuite/ld-ifunc/ifunc-12-i386.d: Likewise.
2274         * testsuite/ld-ifunc/ifunc-12-x86-64.d: Likewise.
2275         * testsuite/ld-ifunc/ifunc-13-i386.d: Likewise.
2276         * testsuite/ld-ifunc/ifunc-13-x86-64.d: Likewise.
2277         * testsuite/ld-ifunc/ifunc-14a-i386.d: Likewise.
2278         * testsuite/ld-ifunc/ifunc-14a-x86-64.d: Likewise.
2279         * testsuite/ld-ifunc/ifunc-14b-i386.d: Likewise.
2280         * testsuite/ld-ifunc/ifunc-14b-x86-64.d: Likewise.
2281         * testsuite/ld-ifunc/ifunc-14c-i386.d: Likewise.
2282         * testsuite/ld-ifunc/ifunc-14c-x86-64.d: Likewise.
2283         * testsuite/ld-ifunc/ifunc-14d-i386.d: Likewise.
2284         * testsuite/ld-ifunc/ifunc-14d-x86-64.d: Likewise.
2285         * testsuite/ld-ifunc/ifunc-14e-i386.d: Likewise.
2286         * testsuite/ld-ifunc/ifunc-14e-x86-64.d: Likewise.
2287         * testsuite/ld-ifunc/ifunc-14f-i386.d: Likewise.
2288         * testsuite/ld-ifunc/ifunc-14f-x86-64.d: Likewise.
2289         * testsuite/ld-ifunc/ifunc-15-i386.d: Likewise.
2290         * testsuite/ld-ifunc/ifunc-15-x86-64.d: Likewise.
2291         * testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
2292         * testsuite/ld-ifunc/ifunc-16-i386.d: Likewise.
2293         * testsuite/ld-ifunc/ifunc-16-x86-64-now.d: Likewise.
2294         * testsuite/ld-ifunc/ifunc-16-x86-64.d: Likewise.
2295         * testsuite/ld-ifunc/ifunc-17a-i386.d: Likewise.
2296         * testsuite/ld-ifunc/ifunc-17a-x86-64.d: Likewise.
2297         * testsuite/ld-ifunc/ifunc-17b-i386.d: Likewise.
2298         * testsuite/ld-ifunc/ifunc-17b-x86-64.d: Likewise.
2299         * testsuite/ld-ifunc/ifunc-18a-i386.d: Likewise.
2300         * testsuite/ld-ifunc/ifunc-18a-x86-64.d: Likewise.
2301         * testsuite/ld-ifunc/ifunc-18b-i386.d: Likewise.
2302         * testsuite/ld-ifunc/ifunc-18b-x86-64.d: Likewise.
2303         * testsuite/ld-ifunc/ifunc-19a-i386.d: Likewise.
2304         * testsuite/ld-ifunc/ifunc-19a-x86-64.d: Likewise.
2305         * testsuite/ld-ifunc/ifunc-19b-i386.d: Likewise.
2306         * testsuite/ld-ifunc/ifunc-19b-x86-64.d: Likewise.
2307         * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
2308         * testsuite/ld-ifunc/ifunc-2-i386.d: Likewise.
2309         * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
2310         * testsuite/ld-ifunc/ifunc-2-local-i386.d: Likewise.
2311         * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
2312         * testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
2313         * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
2314         * testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
2315         * testsuite/ld-ifunc/ifunc-20-i386.d: Likewise.
2316         * testsuite/ld-ifunc/ifunc-20-x86-64.d: Likewise.
2317         * testsuite/ld-ifunc/ifunc-21-i386.d: Likewise.
2318         * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
2319         * testsuite/ld-ifunc/ifunc-22-i386.d: Likewise.
2320         * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
2321         * testsuite/ld-ifunc/ifunc-5a-i386.d: Likewise.
2322         * testsuite/ld-ifunc/ifunc-5a-local-i386.d: Likewise.
2323         * testsuite/ld-ifunc/ifunc-5a-local-x86-64.d: Likewise.
2324         * testsuite/ld-ifunc/ifunc-5a-x86-64.d: Likewise.
2325         * testsuite/ld-ifunc/ifunc-5b-i386.d: Likewise.
2326         * testsuite/ld-ifunc/ifunc-5b-local-i386.d: Likewise.
2327         * testsuite/ld-ifunc/ifunc-5b-local-x86-64.d: Likewise.
2328         * testsuite/ld-ifunc/ifunc-5b-x86-64.d: Likewise.
2329         * testsuite/ld-ifunc/ifunc-5r-local-i386.d: Likewise.
2330         * testsuite/ld-ifunc/ifunc-5r-local-x86-64.d: Likewise.
2331         * testsuite/ld-ifunc/ifunc-6a-i386.d: Likewise.
2332         * testsuite/ld-ifunc/ifunc-6a-x86-64.d: Likewise.
2333         * testsuite/ld-ifunc/ifunc-6b-i386.d: Likewise.
2334         * testsuite/ld-ifunc/ifunc-6b-x86-64.d: Likewise.
2335         * testsuite/ld-ifunc/ifunc-7a-i386.d: Likewise.
2336         * testsuite/ld-ifunc/ifunc-7a-x86-64.d: Likewise.
2337         * testsuite/ld-ifunc/ifunc-7b-i386.d: Likewise.
2338         * testsuite/ld-ifunc/ifunc-7b-x86-64.d: Likewise.
2339         * testsuite/ld-ifunc/ifunc-8-i386.d: Likewise.
2340         * testsuite/ld-ifunc/ifunc-8-x86-64.d: Likewise.
2341         * testsuite/ld-ifunc/ifunc-9-i386.d: Likewise.
2342         * testsuite/ld-ifunc/ifunc-9-x86-64.d: Likewise.
2343         * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
2344         * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
2345         * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
2346         * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
2347         * testsuite/ld-plugin/lto.exp: Likewise.
2348         * testsuite/ld-x86-64/align-branch-1.d: Likewise.
2349         * testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
2350         * testsuite/ld-x86-64/line.exp: Likewise.
2351         * testsuite/ld-x86-64/load1a.d: Likewise.
2352         * testsuite/ld-x86-64/load1b.d: Likewise.
2353         * testsuite/ld-x86-64/load1c.d: Likewise.
2354         * testsuite/ld-x86-64/load1d.d: Likewise.
2355         * testsuite/ld-x86-64/pie3.d: Likewise.
2356         * testsuite/ld-x86-64/pr18160.d: Likewise.
2357         * testsuite/ld-x86-64/pr19013-x32.d: Likewise.
2358         * testsuite/ld-x86-64/pr19013.d: Likewise.
2359         * testsuite/ld-x86-64/pr19636-2d.d: Likewise.
2360         * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
2361         * testsuite/ld-x86-64/pr20253-1b.d: Likewise.
2362         * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
2363         * testsuite/ld-x86-64/pr20253-1f.d: Likewise.
2364         * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
2365         * testsuite/ld-x86-64/pr20253-1j.d: Likewise.
2366         * testsuite/ld-x86-64/pr20253-1l.d: Likewise.
2367         * testsuite/ld-x86-64/pr21884.d: Likewise.
2368         * testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
2369         * testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
2370         * testsuite/ld-x86-64/tlsgd10.dd: Likewise.
2371         * testsuite/ld-x86-64/tlsgd5.dd: Likewise.
2372         * testsuite/ld-x86-64/tlsgd8.dd: Likewise.
2373         * testsuite/ld-x86-64/x86-64.exp: Likewise.
2374         * emulparams/elf32_x86_64_nacl.sh: Removed.
2375         * emulparams/elf_i386_nacl.sh: Likewise.
2376         * emulparams/elf_x86_64_nacl.sh: Likewise.
2377         * testsuite/ld-i386/emit-relocs-nacl.rd: Likewise.
2378         * testsuite/ld-i386/load1-nacl.d: Likewise.
2379         * testsuite/ld-i386/pie1-nacl.d: Likewise.
2380         * testsuite/ld-i386/plt-nacl.pd: Likewise.
2381         * testsuite/ld-i386/plt-pic-nacl.pd: Likewise.
2382         * testsuite/ld-i386/pr17709-nacl.rd: Likewise.
2383         * testsuite/ld-i386/pr19636-1d-nacl.d: Likewise.
2384         * testsuite/ld-i386/pr19636-2c-nacl.d: Likewise.
2385         * testsuite/ld-i386/pr19636-2d-nacl.d: Likewise.
2386         * testsuite/ld-i386/pr19636-2e-nacl.d: Likewise.
2387         * testsuite/ld-i386/pr19827-nacl.rd: Likewise.
2388         * testsuite/ld-i386/pr21884-nacl.d: Likewise.
2389         * testsuite/ld-i386/pr21884-nacl.t: Likewise.
2390         * testsuite/ld-i386/tlsbin-nacl.rd: Likewise.
2391         * testsuite/ld-i386/tlsbin2-nacl.rd: Likewise.
2392         * testsuite/ld-i386/tlsbindesc-nacl.rd: Likewise.
2393         * testsuite/ld-i386/tlsdesc-nacl.rd: Likewise.
2394         * testsuite/ld-i386/tlsgdesc-nacl.rd: Likewise.
2395         * testsuite/ld-i386/tlsnopic-nacl.rd: Likewise.
2396         * testsuite/ld-i386/tlspic-nacl.rd: Likewise.
2397         * testsuite/ld-i386/tlspic2-nacl.rd: Likewise.
2398         * testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
2399         * testsuite/ld-x86-64/load1a-nacl.d: Likewise.
2400         * testsuite/ld-x86-64/load1b-nacl.d: Likewise.
2401         * testsuite/ld-x86-64/load1c-nacl.d: Likewise.
2402         * testsuite/ld-x86-64/load1d-nacl.d: Likewise.
2403         * testsuite/ld-x86-64/pie3-nacl.d: Likewise.
2404         * testsuite/ld-x86-64/plt-nacl.pd: Likewise.
2405         * testsuite/ld-x86-64/pr17709-nacl.rd: Likewise.
2406         * testsuite/ld-x86-64/pr19013-nacl.d: Likewise.
2407         * testsuite/ld-x86-64/pr19636-2d-nacl.d: Likewise.
2408         * testsuite/ld-x86-64/pr19827-nacl.rd: Likewise.
2409         * testsuite/ld-x86-64/pr21884-nacl.d: Likewise.
2410         * testsuite/ld-x86-64/pr21884-nacl.t: Likewise.
2411         * testsuite/ld-x86-64/split-by-file-nacl.rd: Likewise.
2412         * testsuite/ld-x86-64/tlsbin-nacl.rd: Likewise.
2413         * testsuite/ld-x86-64/tlsbin2-nacl.rd: Likewise.
2414         * testsuite/ld-x86-64/tlsbindesc-nacl.rd: Likewise.
2415         * testsuite/ld-x86-64/tlsdesc-nacl.pd: Likewise.
2416         * testsuite/ld-x86-64/tlsdesc-nacl.rd: Likewise.
2417         * testsuite/ld-x86-64/tlsgdesc-nacl.rd: Likewise.
2418         * testsuite/ld-x86-64/tlspic-nacl.rd: Likewise.
2419         * testsuite/ld-x86-64/tlspic2-nacl.rd: Likewise.
2420         * Makefile.in: Regenerated.
2421         * po/BLD-POTFILES.in: Likewise.
2423 2020-06-30  Alan Modra  <amodra@gmail.com>
2425         * testsuite/ld-elf/group1.d: Don't xfail all solaris targets, just
2426         ix86 and x86_64.
2428 2020-06-30  Alan Modra  <amodra@gmail.com>
2430         * testsuite/ld-elf/reloc-discard.d: Don't xfail nds32.
2432 2020-06-30  Alan Modra  <amodra@gmail.com>
2434         * scripttempl/elfmicroblaze.sc (.data): Add .data.* entry.
2435         * testsuite/ld-elf/var1.d: Don't xfail microblaze.
2437 2020-06-29  H.J. Lu  <hongjiu.lu@intel.com>
2439         * testsuite/ld-tic6x/shlib-1.rd: Move C6000_DSBT_BASE,
2440         C6000_DSBT_SIZE and C6000_DSBT_INDEX dynamic tags to the last.
2441         * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
2442         * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
2443         * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
2444         * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
2445         * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
2446         * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
2447         * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
2448         * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
2449         * testsuite/ld-tic6x/static-app-1.rd: Likewise.
2450         * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
2451         * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
2452         * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
2454 2020-06-29  Alan Modra  <amodra@gmail.com>
2456         * testsuite/ld-x86-64/abs-k1om.d: Run only on x86_64-*-linux*.
2457         * testsuite/ld-x86-64/protected2-k1om.d: Likewise.
2458         * testsuite/ld-x86-64/protected3-k1om.d: Likewise.
2460 2020-06-26  Nick Alcock  <nick.alcock@oracle.com>
2462         * configure.ac [--enable-libctf]: New, default yes.
2463         Set ENABLE_LIBCTF accordingly.
2464         * Makefile.am [!ENABLE_LIBCTF]: Empty LIBCTF.
2465         * configure: Regenerate.
2466         * config.in: Regenerate.
2467         * Makefile.in: Regenerate.
2468         * aclocal.m4: Regenerate.
2469         * ldlang.c (ctf_output): Conditionalize on ENABLE_LIBCTF.
2470         (ldlang_open_ctf): Likewise.
2471         (lang_merge_ctf): Likewise.
2472         (ldlang_ctf_apply_strsym): Likewise.
2473         (lang_write_ctf): Likewise.
2474         (ldlang_write_ctf_late): Likewise.
2475         (ldlang_open_ctf) [!ENABLE_LIBCTF]: Warn about the presence of CTF
2476         sections.
2477         (lang_merge_ctf) [!ENABLE_LIBCTF]: New stub.
2478         (ldlang_ctf_apply_strsym) [!ENABLE_LIBCTF]: Likewise.
2479         (lang_write_ctf) [!ENABLE_LIBCTF]: Likewise.
2480         (ldlang_write_ctf_late) [!ENABLE_LIBCTF]: Likewise.
2481         * ldelfgen.c (ldelf_emit_ctf_early): Conditionalize on
2482         ENABLE_LIBCTF.
2483         (struct ctf_strsym_iter_cb_arg): Likewise.
2484         (ldelf_ctf_strtab_iter_cb): Likewise.
2485         (ldelf_ctf_symbols_iter_cb): Likewise.
2486         (ldelf_examine_strtab_for_ctf): Likewise.
2487         (ldelf_emit_ctf_early) [!ENABLE_LIBCTF]: New stub.
2488         (ldelf_examine_strtab_for_ctf) [!ENABLE_LIBCTF]: New stub.
2490 2020-06-26  Jan Beulich  <jbeulich@suse.com>
2492         * testsuite/ld-x86-64/x86-64.exp: Run K1OM tests.
2494 2020-06-26  Pat Bernardi  <bernardi@adacore.com>
2496         * testsuite/ld-m68k/attr-gnu-4-0.s: New file.
2497         * testsuite/ld-m68k/attr-gnu-4-1.s: Likewise.
2498         * testsuite/ld-m68k/attr-gnu-4-2.s: Likewise.
2499         * testsuite/ld-m68k/attr-gnu-4-00.d: Likewise.
2500         * testsuite/ld-m68k/attr-gnu-4-01.d: Likewise.
2501         * testsuite/ld-m68k/attr-gnu-4-02.d: Likewise.
2502         * testsuite/ld-m68k/attr-gnu-4-10.d: Likewise.
2503         * testsuite/ld-m68k/attr-gnu-4-11.d: Likewise.
2504         * testsuite/ld-m68k/attr-gnu-4-12.d: Likewise.
2505         * testsuite/ld-m68k/attr-gnu-4-20.d: Likewise.
2506         * testsuite/ld-m68k/attr-gnu-4-21.d: Likewise.
2507         * testsuite/ld-m68k/attr-gnu-4-22.d: Likewise.
2508         * testsuite/ld-m68k/m68k.exp: Run the new tests.
2510 2020-06-24  H.J. Lu  <hongjiu.lu@intel.com>
2512         PR ld/26165
2513         * lexsup.c (ld_options): Correct --dependency-file order.
2515 2020-06-24  H.J. Lu  <hongjiu.lu@intel.com>
2517         PR ld/26083
2518         * testsuite/ld-csky/tls-ie-v1.d: Updated.
2519         * testsuite/ld-csky/tls-ie.d: Likewise.
2521 2020-06-24  H.J. Lu  <hongjiu.lu@intel.com>
2523         PR ld/26083
2524         * testsuite/ld-cris/libdso-15b.d: Updated.
2525         * testsuite/ld-cris/libdso-1c.d: Likewise.
2526         * testsuite/ld-cris/libdso-1d.d: Likewise.
2527         * testsuite/ld-cris/libdso-15c.d: New file.
2529 2020-06-24  H.J. Lu  <hongjiu.lu@intel.com>
2531         PR ld/26163
2532         * ldexp.c (exp_fold_tree_1): Set non_ir_ref_regular on the source
2533         for assignment.
2534         * testsuite/ld-plugin/lto.exp: Run ld/26163 test.
2535         * testsuite/ld-plugin/pr26163a.c: New file.
2536         * testsuite/ld-plugin/pr26163b.c: Likewise.
2538 2020-06-24  Alan Modra  <amodra@gmail.com>
2540         * lexsup.c (elf_shlib_list_options): Properly format help message.
2541         (elf_plt_unwind_list_options): Likewise.
2542         * emultempl/cskyelf.em (PARSE_AND_LIST_OPTIONS): Likewise.
2544 2020-06-23  Roland McGrath  <mcgrathr@google.com>
2546         PR 22843
2547         * NEWS: Note --dependency-file.
2548         * ld.texi (Options): Document --dependency-file.
2549         * ldlex.h (enum option_values): Add OPTION_DEPENDENCY_FILE.
2550         * ld.h (ld_config_type): New member dependency_file.
2551         * lexsup.c (ld_options, parse_args): Parse --dependency-file.
2552         * ldmain.c (struct dependency_file): New type.
2553         (dependency_files, dependency_files_tail): New static variables.
2554         (track_dependency_files): New function.
2555         (write_dependency_file): New function.
2556         (main): Call it when --dependency-file was passed.
2557         * ldfile.c (ldfile_try_open_bfd): Call track_dependency_files.
2558         (ldfile_open_command_file_1): Likewise.
2559         * ldelf.c (ldelf_try_needed): Likewise.
2560         * pe-dll.c (pe_implied_import_dll): Likewise.
2562 2020-06-23  Alan Modra  <amodra@gmail.com>
2564         PR 26150
2565         * ldlang.c (ldlang_add_file): Assert that we aren't adding the
2566         current end of link.next list again too.
2567         * ldmain.c (add_archive_element): Don't load archive elements
2568         again that have already been loaded.
2570 2020-06-23  Alan Modra  <amodra@gmail.com>
2572         * testsuite/ld-elf/shared.exp (pr14170): Clear xfail for
2573         bfin-*-linux*.
2574         (pr17068, symbolic-func.so, pr22374): Likewise.
2576 2020-06-22  Nelson Chu  <nelson.chu@sifive.com>
2578         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
2579         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Updated.
2580         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Updated.
2581         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Updated.
2582         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Updated.
2583         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Updated.
2585 2020-06-21  Alan Modra  <amodra@gmail.com>
2587         * ldfile.c: Replace uses of ENABLE_PLUGINS with BFD_SUPPORTS_PLUGINS.
2588         * ldlang.c: Likewise.
2589         * ldlang.h: Likewise.
2590         * ldlex.h: Likewise.
2591         * ldmain.c: Likewise.
2592         * lexsup.c: Likewise.
2593         * plugin.c: Wrap body of file in #if BFD_SUPPORTS_PLUGINS.
2594         * testplug.c: Likewise.
2595         * testplug2.c: Likewise.
2596         * testplug3.c: Likewise.
2597         * testplug4.c: Likewise.
2598         * configure.ac (ENABLE_PLUGINS): Don't define AM_CONTITIONAL.
2599         * Makefile.am: Remove ENABLE_PLUGINS conditionals.
2600         (PLUGIN_CFLAGS): Don't define.
2601         (PLUGIN_C, PLUGIN_H, PLUGIN_OBJECT): Likewise.  Substitute all
2602         uses with plugin file name.
2603         * configure: Regenerate.
2604         * Makefile.in: Regenerate.
2606 2020-06-20  Alan Modra  <amodra@gmail.com>
2608         * testsuite/lib/ld-lib.exp (default_ld_compile): Don't perror on
2609         a compiler error.
2610         (default_ld_assemble): Similarly for an assembler error.
2611         (default_ld_nm): Similarly for an nm error.
2612         (run_ld_link_tests): Report ld_assemble errors as a fail.
2613         (check_as_cfi): Remove now unnecessary perror substitution.
2614         * testsuite/ld-elf/exclude.exp: Report ld_nm error return as test
2615         fails rather then unresolved.
2616         * testsuite/ld-gc/gc.exp: Likewise.
2617         * testsuite/ld-scripts/alignof.exp: Likewise.
2618         * testsuite/ld-scripts/defined.exp: Likewise.
2619         * testsuite/ld-scripts/script.exp: Likewise.
2620         * testsuite/ld-scripts/sizeof.exp: Likewise.
2621         * testsuite/ld-selective/selective.exp: Likewise.
2622         * testsuite/ld-scripts/extern.exp: Likewise.  Return on ld_link
2623         failure.
2624         * testsuite/ld-elfweak/elfweak.exp: Report compiler errors as
2625         test unresolved.
2626         * testsuite/ld-fastcall/fastcall.exp: Report assember errors as
2627         test fails.
2628         * testsuite/ld-i386/i386.exp (iamcu_tests): Likewise.
2629         * testsuite/ld-ia64/line.exp: Likewise.
2630         * testsuite/ld-mep/mep.exp: Likewise.
2631         * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
2632         * testsuite/ld-nios2/nios2.exp: Likewise.
2633         * testsuite/ld-scripts/alignof.exp: Likewise.
2634         * testsuite/ld-x86-64/line.exp: Likewise.
2635         * testsuite/ld-x86-64/x86-64.exp: Likewise.
2636         * testsuite/ld-scripts/log2.exp: Formatting.
2637         * testsuite/ld-tic6x/tic6x.exp: Report ld_link errors as a test fail.
2639 2020-06-20  Alan Modra  <amodra@gmail.com>
2641         * testsuite/ld-alpha/alpha.exp: Exclude *ecoff targets.
2642         * testsuite/ld-elf/binutils.exp: Likewise.
2643         * testsuite/ld-elf/tls.exp: Likewise.
2644         * testsuite/ld-elf/tls_common.exp: Likewise.
2645         * testsuite/ld-scripts/phdrs2.exp: Likewise.
2647 2020-06-20  Alan Modra  <amodra@gmail.com>
2649         * testsuite/ld-sh/sh.exp: Don't run relax tests for non-ELF.
2650         Fail when ld_assemble fails.  Use elseif to reduce indentation.
2652 2020-06-19  Alan Modra  <amodra@gmail.com>
2654         * testsuite/ld-elf/dynamic-1.rd: Accept st_other notations.
2655         * testsuite/ld-elf/rdynamic-1.rd: Likewise.
2656         * testsuite/ld-elf/pr9676.rd: Likewise.
2657         * testsuite/ld-elf/pr9679.rd: Likewise.
2658         * testsuite/ld-elfvers/vers30.dsym: Likewise.
2659         * testsuite/ld-elfvers/vers31.dsym: Likewise.
2660         * testsuite/ld-plugin/pr22983.1.d: Likewise.
2661         * testsuite/ld-plugin/pr22983.2.d: Likewise.
2662         * testsuite/ld-plugin/pr22983.3.d: Likewise.
2663         * testsuite/ld-plugin/pr22983.4.d: Likewise.
2664         * testsuite/ld-ifunc/ifunc.exp: Exclude alpha.
2666 2020-06-19  Alan Modra  <amodra@gmail.com>
2668         * emultempl/elf.em (gld${EMULATION_NAME}_handle_option): Omit
2669         -z relro and -z norelro when target support for GNU_RELRO is lacking.
2670         (gld${EMULATION_NAME}_before_parse): Ignore RELRO default too.
2671         * emultempl/aarch64elf.em (gld${EMULATION_NAME}_before_parse): Ignore
2672         RELRO default when target support for GNU_RELRO is lacking.
2673         * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
2674         * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Likewise.
2675         * emultempl/scoreelf.em (gld${EMULATION_NAME}_before_parse): Likewise.
2676         * testsuite/config/default.exp (ld_elf_shared_opt): Don't set.
2677         * testsuite/ld-elf/pr16322.d: xfail when no relro support.
2678         * testsuite/ld-elf/pr22393-1a.d: Likewise.
2679         * testsuite/ld-elf/pr22393-1b.d: Likewise.
2680         * testsuite/ld-elf/shared.exp (pr20995-2.so, pr20995-2): Likewise.
2681         * testsuite/lib/ld-lib.exp (run_ld_link_tests): Use check_relro_support
2682         to decide whether to pass extra ld option "-z norelro".
2684 2020-06-17  H.J. Lu  <hongjiu.lu@intel.com>
2686         * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Append "-w"
2687         to cflags.
2689 2020-06-17  H.J. Lu  <hongjiu.lu@intel.com>
2691         * testsuite/ld-elf/linux-x86.exp: Require GCC 5 for Build
2692         pr25749-1b (-pie -fPIE).
2694 2020-06-16  Alan Modra  <amodra@gmail.com>
2696         * testsuite/ld-elf/pr23428.c: Define _DEFAULT_SOURCE.
2697         * testsuite/ld-elf/indirect1b.c: Replace asm with __asm__.
2698         * testsuite/ld-elf/indirect2.c: Likewise.
2699         * testsuite/ld-elf/indirect3b.c: Likewise.
2700         * testsuite/ld-elf/indirect4b.c: Likewise.
2701         * testsuite/ld-elf/pr14323-2.c: Likewise.
2702         * testsuite/ld-elf/pr18720b.c: Likewise.
2703         * testsuite/ld-elf/pr19553c.c: Likewise.
2704         * testsuite/ld-elf/pr23428.c: Likewise.
2705         * testsuite/ld-elfvers/vers27b.c: Likewise.
2706         * testsuite/ld-elfvsb/common.c: Likewise.
2707         * testsuite/ld-elfvsb/main.c: Likewise.
2708         * testsuite/ld-elfvsb/sh1.c: Likewise.
2709         * testsuite/ld-elfvsb/test.c: Likewise.
2710         * testsuite/ld-pe/aligncomm-1.c: Likewise.
2711         * testsuite/ld-pe/aligncomm-2.c: Likewise.
2712         * testsuite/ld-pe/aligncomm-3.c: Likewise.
2713         * testsuite/ld-pe/aligncomm-4.c: Likewise.
2714         * testsuite/ld-plugin/pr23958.c: Likewise.
2715         * testsuite/ld-size/size-1b.c: Likewise.
2716         * testsuite/ld-size/size-2b.c: Likewise.
2717         * testsuite/ld-size/size-3a.c: Likewise.
2718         * testsuite/ld-size/size-3b.c: Likewise.
2719         * testsuite/ld-size/size-3c.c: Likewise.
2720         * testsuite/ld-size/size-4b.c: Likewise.
2721         * testsuite/ld-size/size-5b.c: Likewise.
2722         * testsuite/ld-size/size-6a.c: Likewise.
2723         * testsuite/ld-size/size-7a.c: Likewise.
2724         * testsuite/ld-size/size-8a.c: Likewise.
2725         * testsuite/ld-size/size-9b.c: Likewise.
2726         * testsuite/ld-size/size-10b.c: Likewise.
2728 2020-06-16  Alan Modra  <amodra@gmail.com>
2730         * emulparams/tic30aout.sh: Delete file.
2731         * scripttempl/tic30aout.sc: Delete file.
2732         * Makefile.am: Remove etic30aout.c from ALL_EMULATION_SOURCES and
2733         delete dependency.
2734         * configure.tgt: Delete tic30-*-*aout* entry.
2735         * testsuite/ld-scripts/sane1.d: Delete tic30-*-aout mention.
2736         * testsuite/ld-scripts/segment-start.d: Likewise.
2737         * Makefile.in: Regenerate.
2738         * po/BLD-POTFILES.in: Regenerate.
2740 2020-06-15  Max Filippov  <jcmvbkbc@gmail.com>
2742         * emultempl/xtensaelf.em (XSHAL_ABI): Remove macro definition.
2743         (XTHAL_ABI_UNDEFINED, XTHAL_ABI_WINDOWED, XTHAL_ABI_CALL0): New
2744         macros.
2745         (elf32xtensa_abi): New declaration.
2746         (xt_config_info_unpack_and_check): Set elf32xtensa_abi if it is
2747         undefined.  Use xtensa_abi_choice instead of XSHAL_ABI to test
2748         ABI tag consistency.
2749         (xtensa_add_config_info): Use xtensa_abi_choice instead of
2750         XSHAL_ABI to format ABI tag.
2751         (PARSE_AND_LIST_PROLOGUE): Define OPTION_ABI_WINDOWED,
2752         OPTION_ABI_CALL0 and declare elf32xtensa_abi.
2753         (PARSE_AND_LIST_LONGOPTS): Add entries for --abi-windowed and
2754         --abi-call0.
2755         (PARSE_AND_LIST_OPTIONS): Add help text for --abi-windowed and
2756         --abi-call0.
2757         (PARSE_AND_LIST_ARGS_CASES): Add handlers for --abi-windowed and
2758         --abi-call0.
2759         * ld.texi: Add description for options --abi-windowed and
2760         --abi-call0.
2762 2020-06-15  Roland McGrath  <mcgrathr@google.com>
2764         * NEWS: Mention -z start-stop-visibility=... option for ELF.
2765         * ld.texi (Options): Document -z start-stop-visibility=... option.
2766         * ldmain.c (main): Initialize link_info.start_stop_visibility.
2767         * emultempl/elf.em (gld${EMULATION_NAME}_handle_option):
2768         Parse -z start-stop-visibility=... option.
2770 2020-06-15  Alan Modra  <amodra@gmail.com>
2772         * testsuite/ld-scripts/include.exp: Don't load ld-lib.exp.
2773         * testsuite/ld-scripts/phdrs3.exp: Likewise.
2774         * testsuite/ld-scripts/rgn-at.exp: Likewise.
2775         * testsuite/ld-scripts/rgn-over.exp: Likewise.
2776         * testsuite/ld-scripts/sort.exp: Likewise.
2777         * testsuite/ld-discard/discard.exp: Likewise.  Use is_elf_format.
2779 2020-06-15  Alan Modra  <amodra@gmail.com>
2781         PR 26103
2782         * testsuite/ld-linkonce/ref1.s,
2783         * testsuite/ld-linkonce/ref2.s,
2784         * testsuite/ld-linkonce/sym1.s,
2785         * testsuite/ld-linkonce/sym2.s,
2786         * testsuite/ld-linkonce/sym3.s: New test files.
2787         * testsuite/ld-linkonce/linkonce.exp: Run tests for PE too.
2788         Add pr26103 test.  Remove unnecessary load_lib.
2790 2020-06-15  Alan Modra  <amodra@gmail.com>
2792         * testsuite/ld-linkonce/zeroeh_x.s: Rename from x.s.
2793         * testsuite/ld-linkonce/zeroeh_y.s: Rename from y.s.
2794         * testsuite/ld-linkonce/zeroehl32.d: Adjust for renaming.  Support
2795         big-endian output.  Run for powerpc.
2797 2020-06-11  Alan Modra  <amodra@gmail.com>
2799         * testsuite/ld-plugin/lto.exp (lto_link_tests): Move lto-6,
2800         pr12760, pr23818 and pr23958 tests to..
2801         (lto_link_elf_tests): ..here.
2803 2020-06-11  Nick Clifton  <nickc@redhat.com>
2805         * testsuite/ld-elf/pr26094-1b.c (main): Change return type to
2806         int.
2808 2020-06-10  Alan Modra  <amodra@gmail.com>
2810         * testsuite/ld-elf/linux-x86.exp: Build tests when non-native.
2811         (check_pr25749b): Add optional args.  Set expected pass file
2812         from args.  Run -1b and -2a tests with passall.out.
2813         * testsuite/ld-elf/passall.out: New file.
2814         * testsuite/ld-elf/pr25749-1.c: Adjust to pass with older glibc.
2815         * testsuite/ld-elf/pr25749-2.c: Likewise.
2816         * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Use
2817         regexp_diff to compare expected output from running binary.
2819 2020-06-10  H.J. Lu  <hongjiu.lu@intel.com>
2821         PR ld/26094
2822         * testsuite/ld-elf/pr26094-1.ver: New fike.
2823         * testsuite/ld-elf/pr26094-1a.c: Likewise.
2824         * testsuite/ld-elf/pr26094-1a.rd: Likewise.
2825         * testsuite/ld-elf/pr26094-1b.c: Likewise.
2826         * testsuite/ld-elf/pr26094-1b.rd: Likewise.
2827         * testsuite/ld-elf/pr26094-1c.c: Likewise.
2828         * testsuite/ld-elf/shared.exp: Run ld/26094 tests.
2830 2020-06-09  H.J. Lu  <hongjiu.lu@intel.com>
2832         PR ld/18801
2833         * testsuite/ld-i386/i386.exp: Run ifunc-textrel-1a,
2834         ifunc-textrel-1b, ifunc-textrel-2a and ifunc-textrel-2b.
2835         * testsuite/ld-x86-64/x86-64.exp: Likewise.
2836         * testsuite/ld-i386/ifunc-textrel-1a.d: Likewise.
2837         * testsuite/ld-i386/ifunc-textrel-1b.d: Likewise.
2838         * testsuite/ld-i386/ifunc-textrel-2a.d: Likewise.
2839         * testsuite/ld-i386/ifunc-textrel-2b.d: Likewise.
2840         * testsuite/ld-x86-64/ifunc-textrel-1.s: Likewise.
2841         * testsuite/ld-x86-64/ifunc-textrel-1a.d: Likewise.
2842         * testsuite/ld-x86-64/ifunc-textrel-1b.d: Likewise.
2843         * testsuite/ld-x86-64/ifunc-textrel-2.s: Likewise.
2844         * testsuite/ld-x86-64/ifunc-textrel-2a.d: Likewise.
2845         * testsuite/ld-x86-64/ifunc-textrel-2b.d: Likewise.
2846         * testsuite/ld-i386/pr18801a.d: Expect warning for IFUNC
2847         resolvers.
2848         * testsuite/ld-i386/pr18801b.d: Likewise.
2849         * estsuite/ld-x86-64/pr18801a.d: Likewise.
2850         * estsuite/ld-x86-64/pr18801b.d: Likewise.
2852 2020-06-09  Alan Modra  <amodra@gmail.com>
2854         PR 26065
2855         * testsuite/ld-elf/shared.exp: Compile dl4main.c -fPIC.
2856         (dl4e, dl4f): Expect dl4a.out.
2857         * testsuite/ld-elf/dl4e.out: Delete.
2859 2020-06-07  H.J. Lu  <hongjiu.lu@intel.com>
2861         * testsuite/ld-elf/shared.exp: Pass $LFLAGS to PR ld/21703
2862         shared test.
2864 2020-06-07  H.J. Lu  <hongjiu.lu@intel.com>
2866         * testsuite/ld-elf/shared.exp: Xfail pr20995/pr20995-2 for
2867         tic6x-*-*.
2869 2020-06-07  H.J. Lu  <hongjiu.lu@intel.com>
2871         * testsuite/ld-elf/pr11304.d: Skip tic6x-*-elf.
2873 2020-06-06  Alan Modra  <amodra@gmail.com>
2875         * testsuite/ld-elf/comm-data.exp: Don't xfail arm or bfin-linux.
2877 2020-06-06  Alan Modra  <amodra@gmail.com>
2879         * lexsup.c (ld_options): Accept -plugin and -plugin-opt when
2880         !ENABLE_PLUGINS.
2881         * testsuite/lib/ld-lib.exp (check_plugin_api_available): Adjust.
2883 2020-06-05  Nelson Chu  <nelson.chu@sifive.com>
2885         * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Rename to
2886         attr-merge-priv-spec-01.d.
2887         * testsuite/ld-riscv-elf/attr-merge-priv-spec-c.s: Set spec to 1.11.
2888         * testsuite/ld-riscv-elf/attr-merge-priv-spec-d.s: Empty priv spec set.
2889         * testsuite/ld-riscv-elf/attr-merge-priv-spec-02.d: New testcase.
2890         * testsuite/ld-riscv-elf/attr-merge-priv-spec-03.d: Likewise.
2891         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
2892         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
2893         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
2894         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
2895         * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
2896         * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
2898 2020-06-05  Nelson Chu  <nelson.chu@sifive.com>
2900         * testsuite/ld-riscv-elf/attr-merge-arch-01.d: The CSR isn't used,
2901         so ignore the -mpriv-spec setting.
2902         * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
2903         * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
2904         * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
2905         * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
2906         * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
2907         * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
2908         * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
2909         * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
2910         * testsuite/ld-riscv-elf/call-relax.d: Add -mno-arch-attr.
2912 2020-06-04  H.J. Lu  <hongjiu.lu@intel.com>
2914         PR ld/26080
2915         * testsuite/ld-elf/comm-data.exp: Remove copy_reloc.
2916         * testsuite/ld-elf/comm-data2r.rd: Removed.
2917         * testsuite/ld-elf/comm-data2r.sd: Likewise.
2918         * testsuite/ld-elf/comm-data2r.xd: Likewise.
2920 2020-06-04  Alan Modra  <amodra@gmail.com>
2922         * testsuite/config/default.exp: Remove global directive outside
2923         proc body.
2924         * testsuite/ld-bootstrap/bootstrap.exp: Likewise.
2925         * testsuite/ld-elf/compress.exp: Likewise.
2926         * testsuite/ld-elf/elf.exp: Likewise.
2927         * testsuite/ld-elf/exclude.exp: Likewise.
2928         * testsuite/ld-elf/frame.exp: Likewise.
2929         * testsuite/ld-elf/indirect.exp: Likewise.
2930         * testsuite/ld-elf/linux-x86.exp: Likewise.
2931         * testsuite/ld-elf/shared.exp: Likewise.
2932         * testsuite/ld-elf/tls.exp: Likewise.
2933         * testsuite/ld-elf/tls_common.exp: Likewise.
2934         * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
2935         * testsuite/ld-elfweak/elfweak.exp: Likewise.
2936         * testsuite/ld-frv/fdpic.exp: Likewise.
2937         * testsuite/ld-frv/tls.exp: Likewise.
2938         * testsuite/ld-gc/gc.exp: Likewise.
2939         * testsuite/ld-i386/i386.exp: Likewise.
2940         * testsuite/ld-i386/no-plt.exp: Likewise.
2941         * testsuite/ld-ifunc/ifunc.exp: Likewise.
2942         * testsuite/ld-mips-elf/mips-elf-flags.exp: Likewise.
2943         * testsuite/ld-nios2/nios2.exp: Likewise.
2944         * testsuite/ld-plugin/lto.exp: Likewise.
2945         * testsuite/ld-plugin/plugin.exp: Likewise.
2946         * testsuite/ld-powerpc/export-class.exp: Likewise.
2947         * testsuite/ld-scripts/align.exp: Likewise.
2948         * testsuite/ld-scripts/crossref.exp: Likewise.
2949         * testsuite/ld-scripts/defined.exp: Likewise.
2950         * testsuite/ld-scripts/overlay-size.exp: Likewise.
2951         * testsuite/ld-scripts/provide.exp: Likewise.
2952         * testsuite/ld-scripts/weak.exp: Likewise.
2953         * testsuite/ld-selective/selective.exp: Likewise.
2954         * testsuite/ld-sh/rd-sh.exp: Likewise.
2955         * testsuite/ld-size/size.exp: Likewise.
2956         * testsuite/ld-srec/srec.exp: Likewise.
2957         * testsuite/ld-x86-64/mpx.exp: Likewise.
2958         * testsuite/ld-x86-64/no-plt.exp: Likewise.
2959         * testsuite/ld-x86-64/x86-64.exp: Likewise.
2961 2020-06-04  Alan Modra  <amodra@gmail.com>
2963         * testsuite/ld-dynamic/export-dynamic-symbol-2.d: Match output for
2964         mips-sgi-irix6.
2965         * testsuite/ld-dynamic/export-dynamic-symbol-glob.d: Likewise.
2966         * testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: Likewise.
2967         * testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: Likewise.
2968         * testsuite/ld-dynamic/export-dynamic-symbol.exp: Exclude targets
2969         with poor PIE support.
2971 2020-06-04  Alan Modra  <amodra@gmail.com>
2973         * testsuite/ld-plugin/lto.exp (pr12758.exe): Add NOPIE_LDFLAGS.
2974         * testsuite/ld-unique/unique.exp: Add NOPIE_LDFLAGS to unique
2975         executable and dynamic executable tests.
2977 2020-06-03  H.J. Lu  <hongjiu.lu@intel.com>
2979         * testsuite/config/default.exp (NOSANTIZE_CFLAGS): New.
2980         * testsuite/ld-elf/linux-x86.exp: Add $NOSANTIZE_CFLAGS to
2981         tests with run_ld_link_exec_tests.
2982         * testsuite/ld-elf/shared.exp: Add $NOSANTIZE_CFLAGS to tests
2983         with run_ld_link_tests.
2984         * testsuite/ld-elf/tls.exp: Likewise.
2985         * testsuite/ld-elfweak/elfweak.exp: Add $NOSANTIZE_CFLAGS to
2986         tests with ld_link.
2987         * testsuite/ld-gc/gc.exp: Add $NOSANTIZE_CFLAGS to cflags.
2988         * testsuite/ld-plugin/lto.exp: Add $NOSANTIZE_CFLAGS to tests
2989         with run_ld_link_tests.a
2990         * testsuite/ld-plugin/plugin.exp: Append $NOSANTIZE_CFLAGS to
2991         CFLAGS.
2992         * testsuite/ld-selective/selective.exp: Add $NOSANTIZE_CFLAGS
2993         to cflags and cxxflags.
2994         * testsuite/ld-srec/srec.exp: Append $NOSANTIZE_CFLAGS to CC
2995         and CXX.
2996         * testsuite/ld-x86-64/plt-main-ibt-x32.dd: Updated for
2997         -fsanitize=undefined.
2998         * testsuite/ld-x86-64/plt-main-ibt.dd: Likewise.
2999         * testsuite/ld-x86-64/x86-64.exp: Add $NOSANTIZE_CFLAGS to
3000         tests with run_cc_link_tests and run_ld_link_tests.
3002 2020-06-03  Fangrui Song  <maskray@google.com>
3003             H.J. Lu  <hongjiu.lu@intel.com>
3005         PR ld/25910
3006         * NEWS: Mention --export-dynamic-symbol[-list].
3007         * ld.texi: Document --export-dynamic-symbol[-list].
3008         * ldgram.y: Pass current_dynamic_list_p to
3009         lang_append_dynamic_list.
3010         * ldlang.c (current_dynamic_list_p): New.
3011         (ang_append_dynamic_list): Updated to take a pointer to
3012         struct bfd_elf_dynamic_list * argument instead of using
3013         link_info.dynamic_list.
3014         (lang_append_dynamic_list_cpp_typeinfo): Pass
3015         &link_info.dynamic_list to ang_append_dynamic_list.
3016         (lang_append_dynamic_list_cpp_new): Likewise.
3017         * ldlang.h (current_dynamic_list_p): New.
3018         (lang_append_dynamic_list): Add a pointer to
3019         struct bfd_elf_dynamic_list * argument.
3020         * ldlex.h (option_values): Add OPTION_EXPORT_DYNAMIC_SYMBOL and
3021         OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
3022         * lexsup.c (ld_options): Add entries for
3023         OPTION_EXPORT_DYNAMIC_SYMBOL and
3024         OPTION_EXPORT_DYNAMIC_SYMBOL_LIST.
3025         (parse_args): Handle --export-dynamic-symbol and
3026         --export-dynamic-symbol-list.
3027         * testsuite/ld-dynamic/export-dynamic-symbol-1.d: New.
3028         * testsuite/ld-dynamic/export-dynamic-symbol-2.d: New.
3029         * testsuite/ld-dynamic/export-dynamic-symbol-glob.d: New.
3030         * testsuite/ld-dynamic/export-dynamic-symbol-list-1.d: New.
3031         * testsuite/ld-dynamic/export-dynamic-symbol-list-2.d: New.
3032         * testsuite/ld-dynamic/export-dynamic-symbol-list-glob.d: New.
3033         * testsuite/ld-dynamic/export-dynamic-symbol.exp: New.
3034         * testsuite/ld-dynamic/export-dynamic-symbol.s: New.
3035         * testsuite/ld-dynamic/foo-bar.list: New.
3036         * testsuite/ld-dynamic/foo.list: New.
3037         * testsuite/ld-dynamic/foo.s: New.
3038         * testsuite/ld-dynamic/fstar.list: New.
3039         * testsuite/ld-elf/dlempty.list: New.
3040         * testsuite/ld-elf/shared.exp: Add tests for
3041         --export-dynamic-symbol and --export-dynamic-symbol-list.
3043 2020-06-03  Jan Beulich  <jbeulich@suse.com>
3045         * testsuite/ld-elf/linux-x86.exp: Make copied source files
3046         writeable.
3048 2020-05-28  Nick Clifton  <nickc@redhat.com>
3050         PR 26047
3051         * ldelf.c (ldelf_after_open): Fail if attempting to link one
3052         executable into another.  Ensure that the test is made for all
3053         forms of linking.
3055 2020-05-28  H.J. Lu  <hongjiu.lu@intel.com>
3057         * NEWS: Mention --enable-textrel-check=yes is default for
3058         Linux/x86 targets.
3059         * configure.tgt (ac_default_ld_textrel_check): Set to yes if
3060         unset for Linux/x86 targets.
3062 2020-05-28  H.J. Lu  <hongjiu.lu@intel.com>
3064         PR ld/20824
3065         * NEWS: Mention --enable-textrel-check=[no|yes|warning|error].
3066         * configure.ac: Add --enable-textrel-check=[no|yes|warning|error].
3067         (DEFAULT_LD_TEXTREL_CHECK): New AC_DEFINE_UNQUOTED.
3068         (DEFAULT_LD_TEXTREL_CHECK_WARNING): Likewise.
3069         * ldmain.c (main): Initialize link_info.textrel_check to
3070         DEFAULT_LD_TEXTREL_CHECK.
3071         * lexsup.c (ld_options): Check DEFAULT_LD_TEXTREL_CHECK_WARNING.
3072         * config.in: Regenerated.
3073         * configure: Likewise.
3075 2020-05-28  Nick Clifton  <nickc@redhat.com>
3077         * lexsup.c (parse_args): Generate an error if a name is not
3078         provided to the -Map option.
3079         (ld_options): Mention that the -Map option supports a directory
3080         name as an argument.
3081         * NEWS: Remove mention of support for an empty string as an
3082         argument to -Map.
3083         * ld.texi: Likewise.
3085 2020-05-27  Hans-Peter Nilsson  <hp@axis.com>
3087         PR ld/22909
3088         * testsuite/ld-elf/pr19539.d: Don't xfail for cris*-*-*.
3090 2020-05-27  Rasmus Villemoes <rv@rasmusvillemoes.dk>
3091             Nick Clifton  <nickc@redhat.com>
3093         * lexsup.c (parse_args): If the map filename is defined but empty
3094         create a name based upon the output file name.  If the name is
3095         defined but refers to a directory create a file inside the
3096         directory based on the output file name.
3097         * ld.texi: Document the new feature.
3098         * testsuite/ld-script/map-address.exp: Add test of new feature.
3099         * NEWS: Mention the new feature.
3101 2020-05-27  H.J. Lu  <hongjiu.lu@intel.com>
3103         PR ld/22909
3104         * NEWS: Mention --warn-textrel.
3105         * ld.texi: Update -z text/notext/textoff.  Add --warn-textrel.
3106         Remove --warn-shared-textrel.
3107         * ldlex.h (option_values): Rename OPTION_WARN_SHARED_TEXTREL to
3108         OPTION_WARN_TEXTREL.
3109         * lexsup.c (ld_options): Add --warn-textrel.  Obsolete
3110         --warn-shared-textrel.
3111         (parse_args): Updated.
3112         (elf_shlib_list_options): Check link_info.textrel_check.
3113         * emultempl/elf.em: Updated.
3114         * testsuite/ld-elf/pr19539.d: Replace -z notext with
3115         --warn-textrel.  Expect a warning.
3116         * testsuite/ld-i386/warn1.d: Update expected warning.
3118 2020-05-26  H.J. Lu  <hongjiu.lu@intel.com>
3120         * testsuite/ld-ifunc/ifunc-23a-x86.d: Skip *-*-lynxos *-*-nto*.
3121         * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
3122         * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
3124 2020-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3126         * testsuite/ld-x86-64/x86-64.exp: Pass -z notext to linker.
3128 2020-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3130         * testsuite/ld-elf/eh6.d: Pass -z notext to linker.
3131         * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
3132         * testsuite/ld-elf/pr19539.d: Likewise.
3133         * testsuite/ld-elfvers/vers.exp: Likewise.
3134         * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
3135         * testsuite/ld-i386/i386.exp: Likewise.
3136         * testsuite/ld-i386/nogot1.d: Likewise.
3137         * testsuite/ld-i386/pr19539.d: Likewise.
3138         * testsuite/ld-i386/pr19636-2a.d: Likewise.
3139         * testsuite/ld-i386/pr19636-2b.d: Likewise.
3140         * testsuite/ld-i386/pr19636-2c.d: Likewise.
3141         * testsuite/ld-i386/pr19636-2d.d: Likewise.
3142         * testsuite/ld-i386/pr19636-2e.d: Likewise.
3143         * testsuite/ld-i386/pr19636-3d.d: Likewise.
3144         * testsuite/ld-i386/pr19636-3e.d: Likewise.
3145         * testsuite/ld-i386/pr19939b.d: Likewise.
3146         * testsuite/ld-i386/undefweaka.d: Likewise.
3147         * testsuite/ld-i386/undefweakb.d: Likewise.
3148         * testsuite/ld-shared/shared.exp: Likewise.
3149         * testsuite/ld-size/size.exp: Likewise.
3150         * testsuite/ld-unique/unique.exp: Likewise.
3151         * testsuite/ld-x86-64/pie1.d: Likewise.
3152         * testsuite/ld-x86-64/pr19539a.d: Likewise.
3153         * testsuite/ld-x86-64/pr19539b.d: Likewise.
3154         * testsuite/ld-x86-64/pr19636-1d.d: Likewise.
3155         * testsuite/ld-x86-64/pr19636-1e.d: Likewise.
3156         * testsuite/ld-x86-64/pr19807-1a.d: Likewise.
3157         * testsuite/ld-x86-64/pr19807-1b.d: Likewise.
3158         * testsuite/ld-x86-64/pr19807-2b.d: Likewise.
3159         * testsuite/ld-x86-64/pr19807-2c.d: Likewise.
3160         * testsuite/ld-x86-64/pr19807-2d.d: Likewise.
3161         * testsuite/ld-x86-64/pr19807-2e.d: Likewise.
3162         * testsuite/ld-x86-64/pr19939b.d: Likewise.
3163         * testsuite/ld-x86-64/x86-64.exp: Likewise.
3165 2020-05-24  Fangrui Song <maskray@google.com>
3167         PR ld/26018
3168         * lexsup.c (parse_args): Simplify.
3169         * testsuite/ld-elf/dl4e.out: New.
3170         * testsuite/ld-elf/shared.exp: Updated for PR ld/26018 tests.
3172 2020-05-23  H.J. Lu  <hongjiu.lu@intel.com>
3174         PR ld/26018
3175         * testsuite/ld-i386/i386.exp: Add a -Bsymbolic-functions test.
3176         * testsuite/ld-x86-64/x86-64.exp: Likewise.
3177         * testsuite/ld-i386/pr26018.d: New file.
3178         * testsuite/ld-x86-64/pr26018.d: Likewise.
3179         * testsuite/ld-x86-64/pr26018.s: Likewise.
3181 2020-05-21  Alan Modra  <amodra@gmail.com>
3183         * deffilep.y: Replace "if (x) free (x)" with "free (x)" thoughout.
3184         * emultempl/elf.em: Likewise.
3185         * emultempl/msp430.em: Likewise.
3186         * emultempl/pe.em: Likewise.
3187         * emultempl/pep.em: Likewise.
3188         * emultempl/ppc64elf.em: Likewise.
3189         * emultempl/xtensaelf.em: Likewise.
3190         * ldelf.c: Likewise.
3191         * ldfile.c: Likewise.
3192         * ldmain.c: Likewise.
3193         * ldmisc.c: Likewise.
3194         * lexsup.c: Likewise.
3195         * pe-dll.c: Likewise.
3197 2020-05-20  Nelson Chu  <nelson.chu@sifive.com>
3199         * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Updated
3200         priv attributes according to the -mpriv-spec option.
3201         * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
3202         * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
3203         * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
3204         * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
3205         * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
3206         * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
3207         * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
3208         * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
3209         * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
3210         * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
3211         * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
3213 2020-05-20  Alan Modra  <amodra@gmail.com>
3215         PR 25993
3216         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Don't copy
3217         other_bfd_filename for bfd_set_filename, and test result of
3218         bfd_set_filename call.  Don't create a new is->filename, simply
3219         copy from bfd filename.  Free new_name after bfd_set_filename.
3220         * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
3222 2020-05-19  Siddhesh Poyarekar  <siddesh.poyarekar@arm.com>
3224         * testsuite/ld-aarch64/aarch64-elf.exp: New test
3225         emit-relocs-560.
3226         * testsuite/ld-aarch64/emit-relocs-560.d: New file.
3227         * testsuite/ld-aarch64/emit-relocs-560.s: New file.
3229 2020-05-19  Alan Modra  <amodra@gmail.com>
3231         * emultempl/beos.em (sort_by_file_name): Use bfd_get_filename
3232         rather than accessing bfd->filename directly.
3233         * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
3234         * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
3235         * emultempl/spuelf.em (embedded_spu_file): Likewise.
3236         * ldlang.c (input_statement_is_archive_path, wild_sort),
3237         (check_excluded_libs): Likewise.
3238         * ldmain.c (add_archive_element): Likewise.
3239         * ldmisc.c (vfinfo): Likewise.
3240         * pe-dll.c (auto_export, generate_edata, pe_create_import_fixup),
3241         (pe_dll_generate_implib, pe_process_import_defs): Likewise.
3242         * plugin.c (plugin_object_p): Likewise.
3244 2020-05-18  Douglas B Rupp  <rupp@adacore.com>
3246         * ldemul.h (ldemul_print_symbol): New.
3247         (ld_emulation_xfer_type) <print_symbol): Likewise.
3248         * ldemul.c (ldemul_print_symbol): New.
3249         * ldlang.c (SECTION_NAME_MAP_LANGTH): Move to ...
3250         (print_one_symbol): Make global and move declaration to ...
3251         (print_all_symbols): Rename print_one_symbol to ldemul_print_symbol
3252         (print_input_section): Likewise
3253         * ldlang.h: ... here.
3254         * emultempl/aix.em (gld${EMULATION_NAME}_print_symbol): New.
3255         (ld_emulation_xfer_struct): Use it.
3256         * emultempl/armcoff.em (ld_emulation_xfer_struct): Add print_symbol
3257         and default to NULL.
3258         * emultempl/beos.em (ld_emulation_xfer_struct): Likewise
3259         * emultempl/elf.em (ld_emulation_xfer_struct): Likewise
3260         * emultempl/generic.em (ld_emulation_xfer_struct): Likewise
3261         * emultempl/linux.em (ld_emulation_xfer_struct): Likewise
3262         * emultempl/msp430.em (ld_emulation_xfer_struct): Likewise
3263         * emultempl/pe.em (ld_emulation_xfer_struct): Likewise
3264         * emultempl/pep.em (ld_emulation_xfer_struct): Likewise
3265         * emultempl/ticoff.em (ld_emulation_xfer_struct): Likewise
3266         * emultempl/vanilla.em (ld_emulation_xfer_struct): Likewise
3268 2020-05-18  Sergei Trofimovich  <siarheit@google.com>
3270         * ldmain.c (add_archive_element): Fix s/claimi/claim/ typo
3271         in info message.
3273 2020-05-18  Nick Clifton  <nickc@redhat.com>
3275         * po/sv.po: Update Swedish translation.
3277 2020-05-18  Nick Clifton  <nickc@redhat.com>
3279         PR 25993
3280         * emultempl/pe.em (_after_open): Check for duplicate filename
3281         pointers before renaming the dll.
3282         * emultempl/pep.em (_after_open): Likewise.
3284 2020-05-13  Nick Clifton  <nickc@redhat.com>
3286         PR 25979
3287         * lexsup.c (elf_shlib_list_options): Include the default value for
3288         the hash style in the output text.
3290 2020-05-11  Alan Modra  <amodra@gmail.com>
3292         * testsuite/ld-powerpc/pcrelopt.s: Add lxvp and stxvp.
3293         * testsuite/ld-powerpc/pcrelopt.d: Update.
3295 2020-05-11  Alan Modra  <amodra@gmail.com>
3297         * testsuite/ld-powerpc/callstub-1.d: Use -mpower10/-Mpower10 in
3298         place of -mfuture/-Mfuture.
3299         * testsuite/ld-powerpc/notoc2.d: Likewise.
3300         * testsuite/ld-powerpc/powerpc.exp: Likewise.
3301         * testsuite/ld-powerpc/tlsgd.d: Likewise.
3302         * testsuite/ld-powerpc/tlsie.d: Likewise.
3303         * testsuite/ld-powerpc/tlsld.d: Likewise.
3305 2020-05-11  Nick Clifton  <nickc@redhat.com>
3307         * po/es.po: Updated Spanish translation.
3309 2020-05-01  Wilco Dijkstra  <wdijkstr@arm.com>
3311         PR ld/25665
3312         * testsuite/ld-aarch64/farcall-group.s: New large group test.
3313         * testsuite/ld-aarch64/farcall-group.d: New test driver.
3314         * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
3316 2020-05-01  Alan Modra  <amodra@gmail.com>
3318         PR 25882
3319         * ldlang.c (lang_check): Call bfd_merge_private_bfd_data for
3320         shared libraries.
3322 2020-05-01  Alan Modra  <amodra@gmail.com>
3324         * po/BLD-POTFILES.in: Regenerate.
3326 2020-04-30  Alex Coplan  <alex.coplan@arm.com>
3328         * testsuite/ld-aarch64/erratum843419_tls_ie.d: Use udf in disassembly.
3329         * testsuite/ld-aarch64/farcall-b-section.d: Likewise.
3330         * testsuite/ld-aarch64/farcall-back.d: Likewise.
3331         * testsuite/ld-aarch64/farcall-bl-section.d: Likewise.
3333 2020-04-30  Nick Clifton  <nickc@redhat.com>
3335         * testsuite/ld-elf/compress1c.d: XFAIL if thet target linker does
3336         not support the -shared command line option.
3337         * /ld-elf/compressed1c.d: Likewise.
3338         * /ld-elf/compressed1e.d: Likewise.
3339         * /ld-elf/dynamic1.d: Likewise.
3340         * /ld-elf/dynsym1.d: Likewise.
3341         * /ld-elf/ehdr_start-shared.d: Likewise.
3342         * /ld-elf/exclude3b.d: Likewise.
3343         * /ld-elf/global1.d: Likewise.
3344         * /ld-elf/hash.d: Likewise.
3345         * /ld-elf/local1.d: Likewise.
3346         * /ld-elf/mbind1b.d: Likewise.
3347         * /ld-elf/now-1.d: Likewise.
3348         * /ld-elf/now-2.d: Likewise.
3349         * /ld-elf/now-3.d: Likewise.
3350         * /ld-elf/now-4.d: Likewise.
3351         * /ld-elf/pr12975.d: Likewise.
3352         * /ld-elf/pr13177.d: Likewise.
3353         * /ld-elf/pr13195.d: Likewise.
3354         * /ld-elf/pr16322.d: Likewise.
3355         * /ld-elf/pr16498a.d: Likewise.
3356         * /ld-elf/pr16498b.d: Likewise.
3357         * /ld-elf/pr17615.d: Likewise.
3358         * /ld-elf/pr19162.d: Likewise.
3359         * /ld-elf/pr19698.d: Likewise.
3360         * /ld-elf/pr20513c.d: Likewise.
3361         * /ld-elf/pr20513d.d: Likewise.
3362         * /ld-elf/pr21389a.d: Likewise.
3363         * /ld-elf/pr21389b.d: Likewise.
3364         * /ld-elf/pr21389c.d: Likewise.
3365         * /ld-elf/pr21562a.d: Likewise.
3366         * /ld-elf/pr21562b.d: Likewise.
3367         * /ld-elf/pr21562c.d: Likewise.
3368         * /ld-elf/pr21562d.d: Likewise.
3369         * /ld-elf/pr21562e.d: Likewise.
3370         * /ld-elf/pr21562f.d: Likewise.
3371         * /ld-elf/pr21562g.d: Likewise.
3372         * /ld-elf/pr21562h.d: Likewise.
3373         * /ld-elf/pr21562i.d: Likewise.
3374         * /ld-elf/pr21562j.d: Likewise.
3375         * /ld-elf/pr21562k.d: Likewise.
3376         * /ld-elf/pr21562l.d: Likewise.
3377         * /ld-elf/pr21562m.d: Likewise.
3378         * /ld-elf/pr21562n.d: Likewise.
3379         * /ld-elf/pr21903a.d: Likewise.
3380         * /ld-elf/pr21903b.d: Likewise.
3381         * /ld-elf/pr22269b.d: Likewise.
3382         * /ld-elf/pr22393-1a.d: Likewise.
3383         * /ld-elf/pr22393-1b.d: Likewise.
3384         * /ld-elf/pr23658-1c.d: Likewise.
3385         * /ld-elf/pr25708.d: Likewise.
3386         * /ld-elf/rpath-1.d: Likewise.
3387         * /ld-elf/rpath-2.d: Likewise.
3388         * /ld-elf/runpath-1.d: Likewise.
3389         * /ld-elf/runpath-2.d: Likewise.
3390         * /ld-elf/sizeofb.d: Likewise.
3391         * /ld-elf/startofb.d: Likewise.
3392         * /ld-elf/strtab.d: Likewise.
3393         * /ld-elf/textaddr2.d: Likewise.
3394         * /ld-elf/textaddr5.d: Likewise.
3395         * /ld-elf/textaddr6.d: Likewise.
3396         * /ld-elf/unknown2.d: Likewise.
3397         * /ld-undefined/entry-3.d: Likewise.
3398         * /ld-undefined/entry-4.d: Likewise.
3399         * /ld-elf/mbind1c.d: XFAIL if the target linker does not support
3400         the -pie option.
3401         * /ld-elf/pie.d: Likewise.
3402         * /ld-elf/pr19539.d: Likewise.
3403         * /ld-elf/pr21903d.d: Likewise.
3404         * /ld-elf/pr22269a.d: Likewise.
3405         * /ld-elf/pr22393-1c.d: Likewise.
3406         * /ld-elf/pr22393-1d.d: Likewise.
3407         * /ld-elf/pr22423.d: Likewise.
3408         * /ld-elf/loadaddr1.d: Expect to fail on the rx-linux target.
3409         * /ld-elf/loadaddr2.d: Likewise.
3410         * /ld-elf/pr22393-1e.d: Likewise.
3411         * /ld-elf/pr22393-1f.d: Likewise.
3412         * /ld-elf/textaddr1.d: Likewise.
3413         * /ld-elf/textaddr4.d: Likewise.
3415 2020-04-30  Yoshinori Sato <ysato@users.sourceforge.jp>
3417         * emulparams/elf32rx_linux.sh: New rx-linux emulation.
3418         * emultempl/rxlinux.em: New.
3419         * configure.tgt: Add rx-linux.
3420         * Makefile.am: Add eelf32rx_linux.c
3421         * Makefile.in: Regenerate.
3423 2020-04-29  Max Filippov  <jcmvbkbc@gmail.com>
3425         * testsuite/ld-xtensa/relax-diff1.d: New test definition.
3426         * testsuite/ld-xtensa/relax-diff1.s: New test source.
3427         * testsuite/ld-xtensa/relax-ndiff.d: New test definition.
3428         * testsuite/ld-xtensa/relax-ndiff.s: New test source.
3429         * testsuite/ld-xtensa/xtensa.exp: (relax-diff1)
3430         (relax-ndiff): New tests.
3432 2020-04-29  Stephen Casner  <casner@acm.org>
3434         PR 25829
3435         * testsuite/ld-scripts/default-script.exp: Add --image-base=0 to
3436         LDFLAGS for targets *-*-mingw64 x86_64-*-cygwin.
3437         * testsuite/ld-scripts/default-script1.d: No longer have to skip
3438         test for those targets.
3439         * testsuite/ld-scripts/default-script2.d: Likewise.
3440         * testsuite/ld-scripts/default-script3.d: Likewise.
3441         * testsuite/ld-scripts/default-script4.d: Likewise.
3443 2020-04-27  Tamar Christina  <tamar.christina@arm.com>
3445         * pe-dll.c (pe_detail_list):  Add pe-bigobj-i386.
3447 2020-04-22  Max Filippov  <jcmvbkbc@gmail.com>
3449         PR ld/25861
3450         * testsuite/ld-xtensa/relax-loc.d: New test definition.
3451         * testsuite/ld-xtensa/relax-loc.s: New test source.
3452         * testsuite/ld-xtensa/xtensa.exp (relax-loc): New test.
3454 2020-04-22  Fangrui Song <maskray@google.com>
3456         PR ld/25806
3457         * ldlang.h (struct lang_input_statement_struct): Add extra_search_path.
3458         * ldlang.c (current_input_file): New.
3459         (ldirname): New.
3460         (new_afile): Add from_filename parameter.  Set extra_search_path.
3461         (lang_add_input_file): Pass current_input_file to new_afile.
3462         (load_symbols): Set current_input_file.
3463         * ldfile.c (ldfile_open_file): If extra_search_path has been set
3464         then scan it for the file that needs to be opened.
3465         * ld.texi: Document the new behaviour.
3466         * NEWS: Mention the new feature.
3468 2020-04-22  Alan Modra  <amodra@gmail.com>
3470         * testsuite/ld-scripts/default-script1.d: Correct mingw skip.
3471         * testsuite/ld-scripts/default-script2.d: Likewise.
3472         * testsuite/ld-scripts/default-script3.d: Likewise.
3473         * testsuite/ld-scripts/default-script4.d: Likewise.
3475 2020-04-21  Stephen Casner  <casner@acm.org>
3477         PR 25829
3478         * testsuite/ld-scripts/script.exp (check_script)
3479         (extract_symbol_test): Make test addresses fit in 16 bits.
3480         * testsuite/ld-scripts/memory.t: Likewise.
3481         * testsuite/ld-scripts/memory_sym.t (TXT_LENGTH): Likewise.
3482         * testsuite/ld-scripts/default-script.t (_START): Likewise.
3483         * testsuite/ld-scripts/default-script1.d: Likewise.
3484         * testsuite/ld-scripts/default-script2.d: Likewise.
3485         * testsuite/ld-scripts/default-script3.d: Likewise.
3486         * testsuite/ld-scripts/default-script4.d: Likewise.
3487         * testsuite/ld-scripts/empty-address-1.t: Likewise.
3488         * testsuite/ld-scripts/empty-address-1.d: Likewise.
3489         * testsuite/ld-scripts/empty-address-2a.d: Likewise.
3490         * testsuite/ld-scripts/empty-address-2b.d: Likewise.
3491         * testsuite/ld-misc/start.s: .long -> .dc.a to allow relocation to
3492         fit target address size.
3493         * testsuite/ld-scripts/empty-address-1.s: Likewise.
3494         * testsuite/ld-scripts/empty-address-2.s: Likewise.
3496 2020-04-21  H.J. Lu  <hongjiu.lu@intel.com>
3498         PR ld/25849
3499         * ldelfgen.c (ldelf_map_segments): Call
3500         elf_backend_strip_zero_sized_dynamic_sections.
3501         * testsuite/ld-alpha/tlsbinr.rd: Updated.
3503 2020-04-20  Alan Modra  <amodra@gmail.com>
3505         * testsuite/ld-powerpc/tlsopt5.s: Rename foo to aaaaa.
3506         * testsuite/ld-powerpc/tlsopt5.d: Adjust to suit.
3507         * testsuite/ld-powerpc/tlsopt6.d: Likewise.
3509 2020-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3511         * testsuite/ld-elf/warn1.d: Don't xfail on 64-bit Solaris/SPARC.
3512         * testsuite/ld-elf/warn2.d: Likewise.
3514 2020-04-18  H.J. Lu  <hongjiu.lu@intel.com>
3516         * testsuite/ld-elf/elf.exp (ASFLAGS): Add "--defsym NO_SET=1" for
3517         alpha target.
3518         * testsuite/ld-elf/pr19789.s: Use "=" if NO_SET is defined.
3520 2020-04-16  Stephen Casner  <casner@acm.org>
3522         PR 18963
3523         * testsuite/ld-scripts/pr18963.t: Reduce section sizes to fit in
3524         16-bit address space.
3525         * testsuite/ld-scripts/pr18963.d: Likewise.
3527 2020-04-17  Juan Manuel Guerrero  <juan.guerrero@gmx.de>
3528             Jan W. Jagersma  <jwjagersma@gmail.com>
3530         * scripttempl/i386go32.sc: Provide symbol _environ.  Link in
3531         .ctors and .dtors.  Discard LTO sections.
3533 2020-04-17  Nick Clifton  <nickc@redhat.com>
3535         * testsuite/config/default.exp: If not already set then create the
3536         CCC_OVERRIDE_OPTIONS environment variable to help when running the
3537         testsuite with clang.
3538         * testsuite/ld-elf/pr22269-1.c: Add a missing return statement.
3539         * testsuite/ld-elfvers/vers.exp: Add checks to detect if files
3540         were built before attempting to copy them.
3542 2020-04-15  Fangrui Song <maskray@google.com>
3544         PR binutils/24613
3545         * lexsup.c (parse_args): Change RM_GENERATE_WARNING and
3546         RM_GENERATE_ERROR to RM_DIAGNOSE.
3547         * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Change
3548         RM_GENERATE_ERROR to RM_DIAGNOSE.
3549         * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Likewise.
3551 2020-04-14  Stephen Casner  <casner@acm.org>
3553         PR ld/25677
3554         * emulparams/pdp11.sh (SCRIPT_NAME): Change to pdp11.
3555         (EXTRA_EM_FILE): New, add emulation file pdp11.
3556         * scripttempl/pdp11.sc: New, derived from aout.sc without
3557         irrelevant input sections.
3558         * emultempl/pdp11.em (_add_options, _handle_option)
3559         (_list_options): New. Add options -z, --imagic for pdp11-aout.
3560         (_before_parse): Make --omagic be default instead of --nmagic.
3561         (_get_script): Modify special-case linker script for --imagic.
3562         * lexsup.c (parse_args): Explictly set config.text_read_only for -n.
3563         * ld.texi (Options): Add documentation of PDP11-specific options.
3564         (Options): Fix unrelated typo to --no-compact-branches.
3565         * gen-doc.texi: @set PDP11.
3566         * testsuite/ld-pdp11/pdp11.exp: New, start pdp11 testing.
3567         * testsuite/ld-pdp11/sections.s: New, source for options tests.
3568         * testsuite/ld-pdp11/imagic.d: New, test --imagic format.
3569         * testsuite/ld-pdp11/imagicz.d: New, test -z (imagic) format.
3570         * testsuite/ld-pdp11/nmagic.d: New, test --nmagic format.
3571         * testsuite/ld-pdp11/omagic.d: New, test --omagic format.
3573 2020-04-14  H.J. Lu  <hongjiu.lu@intel.com>
3575         PR binutils/25707
3576         * testsuite/ld-arm/armthumb-lib.sym: Updated.
3577         * testsuite/ld-arm/farcall-mixed-app.sym: Likewise.
3578         * testsuite/ld-arm/farcall-mixed-app2.sym: Likewise.
3579         * testsuite/ld-arm/fdpic-main-m.sym: Likewise.
3580         * testsuite/ld-arm/fdpic-main.sym: Likewise.
3581         * testsuite/ld-arm/fdpic-shared-m.sym: Likewise.
3582         * testsuite/ld-arm/fdpic-shared.sym: Likewise.
3583         * testsuite/ld-arm/mixed-app.sym: Likewise.
3584         * testsuite/ld-arm/mixed-lib.sym: Likewise.
3585         * testsuite/ld-arm/preempt-app.sym: Likewise.
3586         * testsuite/ld-elf/hash.d: Likewise.
3587         * testsuite/ld-elf/pr13195.d: Likewise.
3588         * testsuite/ld-elfvsb/hidden2.d: Likewise.
3589         * testsuite/ld-mips-elf/hash2.d: Likewise.
3591 2020-04-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3593         * testsuite/ld-shared/shared.exp: Remove dangling comments.
3594         xfail shared non PIC tests on Solaris.
3596 2020-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3598         * testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIC on sparc*-*-*.
3600 2020-04-02  H.J. Lu  <hongjiu.lu@intel.com>
3602         * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): Replace
3603         nopie with available.
3605 2020-04-02  H.J. Lu  <hongjiu.lu@intel.com>
3607         * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): New.
3608         Set to "-fcf-protection=none" if target compiler supports it.
3609         * testsuite/ld-srec/srec.exp: Add $NOCF_PROTECTION_CFLAGS to
3610         CC and CXX.
3611         * testsuite/ld-x86-64/x86-64.exp: Add $NOCF_PROTECTION_CFLAGS
3612         to PLT BND tests.
3614 2020-04-02  H.J. Lu  <hongjiu.lu@intel.com>
3616         * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Compile with
3617         -I../bfd.
3618         (check_pr25749b): Likewise.
3620 2020-04-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3622         * testsuite/ld-ifunc/ifunc-10-i386.d: Remove *-*-solaris2* from
3623         notarget.
3624         * ifunc-11-i386.d: Likewise.
3625         * ifunc-12-i386.d: Likewise.
3626         * ifunc-13-i386.d: Likewise.
3627         * ifunc-14a-i386.d: Likewise.
3628         * ifunc-14b-i386.d: Likewise.
3629         * ifunc-14c-i386.d: Likewise.
3630         * ifunc-14d-i386.d: Likewise.
3631         * ifunc-14e-i386.d: Likewise.
3632         * ifunc-14f-i386.d: Likewise.
3633         * ifunc-15-i386.d: Likewise.
3634         * ifunc-16-i386-now.d: Likewise.
3635         * ifunc-16-i386.d: Likewise.
3636         * ifunc-17a-i386.d: Likewise.
3637         * ifunc-17b-i386.d: Likewise.
3638         * ifunc-18a-i386.d: Likewise.
3639         * ifunc-18b-i386.d: Likewise.
3640         * ifunc-19a-i386.d: Likewise.
3641         * ifunc-19b-i386.d: Likewise.
3642         * ifunc-2-i386-now.d: Likewise.
3643         * ifunc-2-i386.d: Likewise.
3644         * ifunc-2-local-i386-now.d: Likewise.
3645         * ifunc-2-local-i386.d: Likewise.
3646         * ifunc-20-i386.d: Likewise.
3647         * ifunc-21-i386.d: Likewise.
3648         * ifunc-22-i386.d: Likewise.
3649         * ifunc-5a-i386.d: Likewise.
3650         * ifunc-5a-local-i386.d: Likewise.
3651         * ifunc-5b-i386.d: Likewise.
3652         * ifunc-5b-local-i386.d: Likewise.
3653         * ifunc-5r-local-i386.d: Likewise.
3654         * ifunc-6a-i386.d: Likewise.
3655         * ifunc-6b-i386.d: Likewise.
3656         * ifunc-7a-i386.d: Likewise.
3657         * ifunc-7b-i386.d: Likewise.
3658         * ifunc-8-i386.d: Likewise.
3659         * ifunc-9-i386.d: Likewise.
3660         * pr17154-i386-now.d: Likewise.
3661         * pr17154-i386.d: Likewise.
3663         * ifunc-23a-x86.d: Remove notarget.
3664         * ifunc-24a-x86.d: Likewise.
3665         * ifunc-25a-x86.d: Likewise.
3667 2020-04-02  Nick Clifton  <nickc@redhat.com>
3669         PR ld/25747
3670         * ldfile.c (ldfile_open_file): Fix typo in warning message.
3672 2020-04-01  H.J. Lu  <hongjiu.lu@intel.com>
3674         PR ld/25749
3675         PR ld/25754
3676         * testsuite/ld-elf/linux-x86.exp: Run ld/25749 tests.
3677         * testsuite/ld-elf/pr25749-1.c: New file.
3678         * testsuite/ld-elf/pr25749-1a.c: Likewise.
3679         * testsuite/ld-elf/pr25749-1b.c: Likewise.
3680         * testsuite/ld-elf/pr25749-1b.err: Likewise.
3681         * testsuite/ld-elf/pr25749-1c.c: Likewise.
3682         * testsuite/ld-elf/pr25749-1d.c: Likewise.
3683         * testsuite/ld-elf/pr25749-2.c: Likewise.
3684         * testsuite/ld-elf/pr25749-2a.s: Likewise.
3685         * testsuite/ld-elf/pr25749-2b.s: Likewise.
3686         * testsuite/ld-elf/pr25749.rd: Likewise.
3687         * testsuite/ld-elf/pr25754-1a.c: Likewise.
3688         * testsuite/ld-elf/pr25754-1b.s: Likewise.
3689         * testsuite/ld-elf/pr25754-2a.c: Likewise.
3690         * testsuite/ld-elf/pr25754-2b.err: Likewise.
3691         * testsuite/ld-elf/pr25754-2b.s: Likewise.
3692         * testsuite/ld-elf/pr25754-3a.c: Likewise.
3693         * testsuite/ld-elf/pr25754-3b.s: Likewise.
3694         * testsuite/ld-elf/pr25754-4a.c: Likewise.
3695         * testsuite/ld-elf/pr25754-4b.s: Likewise.
3696         * testsuite/ld-elf/pr25754-4c.s: Likewise.
3697         * testsuite/ld-elf/pr25754-5a.c: Likewise.
3698         * testsuite/ld-elf/pr25754-5b.s: Likewise.
3699         * testsuite/ld-elf/pr25754-5c.s: Likewise.
3700         * testsuite/ld-elf/pr25754-6a.c: Likewise.
3701         * testsuite/ld-elf/pr25754-6b.s: Likewise.
3702         * testsuite/ld-x86-64/pr19609-6a.d: Don't expect linker error.
3704 2020-04-01  Tamar Christina  <tamar.christina@arm.com>
3706         PR ld/16017
3707         * testsuite/ld-arm/arm-elf.exp (thumb-plt, thumb-plt-got): Skip for NaCL.
3709 2020-04-01  Nick Clifton  <nickc@redhat.com>
3711         PR ld/25747
3712         * ldfile.c (ldfile_open_file): If a search for a library fails,
3713         but there is a file that would match if it had a "lib" prefix to
3714         its name, then tell the user.
3716 2020-04-01  Tamar Christina  <tamar.christina@arm.com>
3718         PR ld/16017
3719         * testsuite/ld-arm/arm-elf.exp (thumb-plt-got): New.
3720         * testsuite/ld-arm/thumb-plt-got.d: New test.
3722 2020-04-01  Tamar Christina  <tamar.christina@arm.com>
3724         * testsuite/ld-arm/arm-elf.exp (thumb-plt): New.
3725         * testsuite/ld-arm/thumb-plt.d: New test.
3726         * testsuite/ld-arm/thumb-plt.s: New test.
3728 2020-04-01  Hans-Peter Nilsson  <hp@bitrange.com>
3730         * testsuite/ld-scripts/defined4.d: Don't xfail mmix-*-*.
3732 2020-03-30  Nick Clifton  <nickc@redhat.com>
3734         PR binutils/25662
3735         * emultempl/pe.em (after_open): Replace initialisation of the
3736         insert_timestamp field in the pe_data structure with an
3737         initialisation of the timestamp field.
3738         * emultemp/pep.em: Likewise.
3739         * pe-dll.c (fill_edata): Use the timestamp field in the pe_data
3740         structure instead of the insert_timestamp field.
3742 2020-03-28  H.J. Lu  <hongjiu.lu@intel.com>
3744         PR 25732
3745         * emulparams/elf_i386_ldso.sh (COMMONPAGESIZE): New.
3746         * testsuite/ld-elf/shared.exp:Don't xfail pr20995-2 tests for
3747         Solaris.
3749 2020-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3751         PR 25732
3752         * testsuite/ld-elf/shared.exp: Xfail pr20995-2 tests for Solaris.
3754 2020-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3756         PR 25732
3757         * testsuite/ld-ifunc/ifunc-23a-x86.d: Add notarget for Solaris.
3758         * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
3759         * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
3761 2020-03-25  Alan Modra  <amodra@gmail.com>
3763         * testsuite/ld-elf/compress1c.d: xfail h8300.
3764         * testsuite/ld-elf/compressed1c.d: Likewise.
3765         * testsuite/ld-elf/compressed1e.d: Likewise.
3766         * testsuite/ld-elf/dynamic1.d: Likewise.
3767         * testsuite/ld-elf/dynsym1.d: Likewise.
3768         * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
3769         * testsuite/ld-elf/exclude3b.d: Likewise.
3770         * testsuite/ld-elf/export-class.exp: Don't run without -shared support.
3771         * testsuite/ld-elf/global1.d: xfail h8300.
3772         * testsuite/ld-elf/hash.d: Likewise.
3773         * testsuite/ld-elf/loadaddr1.d: Likewise.
3774         * testsuite/ld-elf/loadaddr2.d: Likewise.
3775         * testsuite/ld-elf/local1.d: Likewise.
3776         * testsuite/ld-elf/mbind1b.d: Likewise.
3777         * testsuite/ld-elf/mbind1c.d: Likewise.
3778         * testsuite/ld-elf/now-1.d: Likewise.
3779         * testsuite/ld-elf/now-2.d: Likewise.
3780         * testsuite/ld-elf/now-3.d: Likewise.
3781         * testsuite/ld-elf/now-4.d: Likewise.
3782         * testsuite/ld-elf/pie.d: Likewise.
3783         * testsuite/ld-elf/pr12975.d: Likewise.
3784         * testsuite/ld-elf/pr13177.d: Likewise.
3785         * testsuite/ld-elf/pr13195.d: Likewise.
3786         * testsuite/ld-elf/pr16322.d: Likewise.
3787         * testsuite/ld-elf/pr16498a.d: Likewise.
3788         * testsuite/ld-elf/pr16498b.d: Likewise.
3789         * testsuite/ld-elf/pr17615.d: Likewise.
3790         * testsuite/ld-elf/pr19162.d: Likewise.
3791         * testsuite/ld-elf/pr19539.d: Likewise.
3792         * testsuite/ld-elf/pr19617a.d: Likewise.
3793         * testsuite/ld-elf/pr19698.d: Likewise.
3794         * testsuite/ld-elf/pr20513c.d: Likewise.
3795         * testsuite/ld-elf/pr20513d.d: Likewise.
3796         * testsuite/ld-elf/pr21389a.d: Likewise.
3797         * testsuite/ld-elf/pr21389b.d: Likewise.
3798         * testsuite/ld-elf/pr21389c.d: Likewise.
3799         * testsuite/ld-elf/pr21562a.d: Likewise.
3800         * testsuite/ld-elf/pr21562b.d: Likewise.
3801         * testsuite/ld-elf/pr21562c.d: Likewise.
3802         * testsuite/ld-elf/pr21562d.d: Likewise.
3803         * testsuite/ld-elf/pr21562e.d: Likewise.
3804         * testsuite/ld-elf/pr21562f.d: Likewise.
3805         * testsuite/ld-elf/pr21562g.d: Likewise.
3806         * testsuite/ld-elf/pr21562h.d: Likewise.
3807         * testsuite/ld-elf/pr21562i.d: Likewise.
3808         * testsuite/ld-elf/pr21562j.d: Likewise.
3809         * testsuite/ld-elf/pr21562k.d: Likewise.
3810         * testsuite/ld-elf/pr21562l.d: Likewise.
3811         * testsuite/ld-elf/pr21562m.d: Likewise.
3812         * testsuite/ld-elf/pr21562n.d: Likewise.
3813         * testsuite/ld-elf/pr21903a.d: Likewise.
3814         * testsuite/ld-elf/pr21903b.d: Likewise.
3815         * testsuite/ld-elf/pr21903d.d: Likewise.
3816         * testsuite/ld-elf/pr22269a.d: Likewise.
3817         * testsuite/ld-elf/pr22269b.d: Likewise.
3818         * testsuite/ld-elf/pr22393-1a.d: Likewise.
3819         * testsuite/ld-elf/pr22393-1b.d: Likewise.
3820         * testsuite/ld-elf/pr22393-1c.d: Likewise.
3821         * testsuite/ld-elf/pr22393-1d.d: Likewise.
3822         * testsuite/ld-elf/pr22393-1e.d: Likewise.
3823         * testsuite/ld-elf/pr22393-1f.d: Likewise.
3824         * testsuite/ld-elf/pr22423.d: Likewise.
3825         * testsuite/ld-elf/pr22450.d: xfail avr, crx, h8300, ip2k, m68hc11,
3826         and xc16x.
3827         * testsuite/ld-elf/pr23658-1c.d: xfail h8300.
3828         * testsuite/ld-elf/pr25708.d: xfail h8300 and hppa64.
3829         * testsuite/ld-elf/rpath-1.d: xfail h8300.
3830         * testsuite/ld-elf/rpath-2.d: Likewise.
3831         * testsuite/ld-elf/runpath-1.d: Likewise.
3832         * testsuite/ld-elf/runpath-2.d: Likewise.
3833         * testsuite/ld-elf/sizeofb.d: Likewise.
3834         * testsuite/ld-elf/startofb.d: Likewise.
3835         * testsuite/ld-elf/strtab.d: Likewise.
3836         * testsuite/ld-elf/textaddr1.d: Likewise.
3837         * testsuite/ld-elf/textaddr2.d: Likewise.
3838         * testsuite/ld-elf/textaddr4.d: Likewise.
3839         * testsuite/ld-elf/textaddr5.d: Likewise.
3840         * testsuite/ld-elf/textaddr6.d: Likewise.
3841         * testsuite/ld-elf/unknown2.d: Likewise.
3842         * testsuite/ld-undefined/entry-3.d: Likewise.
3843         * testsuite/ld-undefined/entry-4.d: Likewise.
3844         * testsuite/ld-h8300/h8300.exp: Pass appropriate ld -m option.
3845         * testsuite/ld-h8300/gcsection.d: Remove ld -m option and relax
3846         file format match.
3847         * testsuite/ld-h8300/relax-2.d: Likewise.
3848         * testsuite/ld-h8300/relax-3.d: Likewise.
3849         * testsuite/ld-h8300/relax-4.d: Likewise.
3850         * testsuite/ld-h8300/relax-5.d: Likewise.
3851         * testsuite/ld-h8300/relax-6.d: Likewise.
3852         * testsuite/ld-h8300/relax-7.d: Likewise.
3853         * testsuite/ld-h8300/relax.d: Relax file format match.
3855 2020-03-24  H.J. Lu  <hongjiu.lu@intel.com>
3857         PR binutils/25708
3858         * testsuite/ld-elf/pr25708.d: New file.
3860 2020-03-23  Alan Modra  <amodra@gmail.com>
3862         * Makefile.am (ALL_EMULATION_SOURCES): Reinstate ei386aout.c.
3863         Include ei386aout dep file.
3864         * Makefile.in: Regenerate.
3865         * po/BLD-POTFILES.in: Regenerate.
3867 2020-03-20  H.J. Lu  <hongjiu.lu@intel.com>
3869         * testsuite/ld-plugin/lto.exp (lto_link_tests): Run PR ld/25355
3870         test only for GCC 10 or newer.
3872 2020-03-20  Alan Modra  <amodra@gmail.com>
3874         * testplug.c (parse_symdefstr): Use %hhi to read sym->def, and
3875         clear new fields.
3876         * testplug2.c (parse_symdefstr): Likewise.
3877         * testplug3.c (parse_symdefstr): Likewise.
3878         * testplug4.c (parse_symdefstr): Likewise.
3880 2020-03-18  Christophe Lyon  <christophe.lyon@linaro.org>
3882         * testsuite/ld-arm/non-contiguous-arm4.d: Fix expected output.
3883         * testsuite/ld-powerpc/non-contiguous-powerpc.d: Likewise.
3885 2020-03-18  Christophe Lyon  <christophe.lyon@linaro.org>
3887         * emultempl/xtensaelf.em: Emit a fatal error message
3888         instead of calling abort.
3889         * ldlang.c: Likewise.
3891 2020-03-14  Alan Modra  <amodra@gmail.com>
3893         * testsuite/ld-elf/non-contiguous.d: Don't xfail generic ELF
3894         targets.  Don't skip xtensa, xfail instead.
3896 2020-03-13  Christophe Lyon  <christophe.lyon@linaro.org>
3898         * ldlang.c (lang_add_section): Add support for
3899         non_contiguous_regions.
3900         (size_input_section): Likewise.
3901         (lang_size_sections_1): Likewise.
3902         (process_insert_statements): Likewise.
3903         * ldlex.h (option_values): Add OPTION_NON_CONTIGUOUS_REGIONS and
3904         OPTION_NON_CONTIGUOUS_REGIONS_WARNINGS.
3905         * lexsup.c (ld_options): Add entries for
3906         --enable-non-contiguous-regions and
3907         --enable-non-contiguous-regions-warnings.
3908         (parse_args): Handle it.
3909         * NEWS: Add --enable-non-contiguous-regions and
3910         --enable-non-contiguous-regions-warnings.
3911         * ld.texi: Add --enable-non-contiguous-regions and
3912         --enable-non-contiguous-regions-warnings documentation.
3913         * emultempl/armelf.em (elf32_arm_add_stub_section): Add
3914         SEC_LINKER_CREATED flag.
3915         * emultempl/xtensaelf.em (ld_build_required_section_dependence):
3916         Emit an error when --enable-non-contiguous-regions is used.
3917         * testsuite/ld-elf/non-contiguous.d: New.
3918         * testsuite/ld-elf/non-contiguous.ld: New.
3919         * testsuite/ld-elf/non-contiguous.s: New.
3920         * testsuite/ld-arm/arm-elf.exp: Run the new tests.
3921         * testsuite/ld-arm/arm-elf/non-contiguous-arm.s: New.
3922         * testsuite/ld-arm/arm-elf/non-contiguous-arm.d: New.
3923         * testsuite/ld-arm/arm-elf/non-contiguous-arm.ld: New.
3924         * testsuite/ld-arm/arm-elf/non-contiguous-arm2.d: New.
3925         * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
3926         * testsuite/ld-arm/arm-elf/non-contiguous-arm3.d: New.
3927         * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
3928         * testsuite/ld-arm/arm-elf/non-contiguous-arm4.d: New.
3929         * testsuite/ld-arm/arm-elf/non-contiguous-arm4.ld: New.
3930         * testsuite/ld-arm/arm-elf/non-contiguous-arm5.d: New.
3931         * testsuite/ld-arm/arm-elf/non-contiguous-arm5.ld: New.
3932         * testsuite/ld-arm/arm-elf/non-contiguous-arm6.d: New.
3933         * testsuite/ld-arm/arm-elf/non-contiguous-arm6.ld: New.
3934         * testsuite/ld-powerpc/powerpc.exp: Run new tests.
3935         * testsuite/ld-powerpc/non-contiguous-powerpc.d: New.
3936         * testsuite/ld-powerpc/non-contiguous-powerpc.ld: New.
3937         * testsuite/ld-powerpc/non-contiguous-powerpc.sd: New.
3938         * testsuite/ld-powerpc/non-contiguous-powerpc64.d: New.
3940 2020-03-13  H.J. Lu  <hongjiu.lu@intel.com>
3942         PR ld/24920
3943         * emulparams/elf32_x86_64.sh: Use static.sh.
3944         * emulparams/elf_i386.sh: Likewise.
3945         * emulparams/elf_x86_64.sh: Likewise.
3946         * emulparams/static.sh: New file.
3947         * emultempl/elf-x86.em: Include "ldlex.h".
3948         * testsuite/ld-elf/pr24920.err: New file.
3949         * testsuite/ld-elf/linux-x86.exp: Run ld/24920 tests.
3951 2020-03-13  Christian Eggers  <ceggers@gmx.de>
3953         * ldexp.c (fold_name): Return SIZEOF_HEADERS in bytes.
3955 2020-03-11  Alan Modra  <amodra@gmail.com>
3957         * ldelf.c (elf_orphan_compatible): Return false when two sections
3958         have differing SHF_MASKPROC or SHF_MASKOS flags.
3960 2020-03-05  Alan Modra  <amodra@gmail.com>
3962         PR 25570
3963         * ldlang.c (lang_size_sections_1): Don't report changes on
3964         second and subsequent iterations that make no change in
3965         alignment from that already reported.
3967 2020-03-05  Alan Modra  <amodra@gmail.com>
3969         PR 25570
3970         * ldlang.c (lang_sizing_iteration): New static var.
3971         (lang_size_sections_1): Warn about no memory region only on first
3972         iteration.  Warn about changing start address on first iteration
3973         then any delta from that on subsequent iterations.  Report a signed
3974         delta.
3975         (one_lang_size_sections_pass): Increment lang_sizing_iteration.
3977 2020-03-03  Nick Clifton  <nickc@redhat.com>
3979         PR 25588
3980         * ld.texi (Options): Update the description of the --rpath-link
3981         option.
3983 2020-03-02  Alan Modra  <amodra@gmail.com>
3985         * plugin.c (plugin_object_p): Return a bfd_cleanup.
3986         (plugin_cleanup): New function.
3988 2020-03-01  H.J. Lu  <hongjiu.lu@intel.com>
3990         PR ld/25618
3991         * plugin.c (plugin_object_p): Copy the no_export field to the IR
3992         dummy object.
3993         * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Add
3994         PR ld/25618 tests.
3995         * testsuite/ld-plugin/pr25618.d: New file.
3996         * testsuite/ld-plugin/pr25618a.cc: Likewise.
3997         * testsuite/ld-plugin/pr25618a.h: Likewise.
3998         * testsuite/ld-plugin/pr25618b.cc: Likewise.
3999         * testsuite/ld-plugin/pr25618b.h: Likewise.
4001 2020-02-27  Alan Modra  <amodra@gmail.com>
4003         PR 24511
4004         * testsuite/ld-mmix/b-fixo2.d: Adjust for .data change.
4005         * testsuite/ld-mmix/sec-2.d: Likewise.
4006         * testsuite/ld-mmix/sec-3.d: Likewise.
4007         * testsuite/ld-mmix/sec-4.d: Likewise.
4008         * testsuite/ld-mmix/spec802.d: Likewise.
4009         * testsuite/ld-mmix/spec803.d: Likewise.
4010         * testsuite/ld-mmix/spec804.d: Likewise.
4011         * testsuite/ld-mmix/spec805.d: Likewise.
4012         * testsuite/ld-mmix/spec806.d: Likewise.
4013         * testsuite/ld-mmix/spec807.d: Likewise.
4014         * testsuite/ld-mmix/spec808.d: Likewise.
4016 2020-02-26  H.J. Lu  <hongjiu.lu@intel.com>
4018         PR ld/25593
4019         * testsuite/ld-plugin/lto.exp: Run PR ld/25593 tests.
4020         * testsuite/ld-plugin/pr25593.d: New file.
4021         * testsuite/ld-plugin/pr25593a-1.c: Likewise.
4022         * testsuite/ld-plugin/pr25593a-2.c: Likewise.
4023         * testsuite/ld-plugin/pr25593b.c: Likewise.
4024         * testsuite/ld-plugin/pr25593c.c: Likewise.
4025         * testsuite/ld-plugin/pr25593d.c: Likewise.
4026         * testsuite/ld-plugin/pr25593e.c: Likewise.
4028 2020-02-26  Alan Modra  <amodra@gmail.com>
4030         * emultempl/cskyelf.em: Indent labels correctly.
4031         * ldfile.c: Likewise.
4032         * ldlang.c: Likewise.
4033         * plugin.c: Likewise.
4035 2020-02-26  Alan Modra  <amodra@gmail.com>
4037         PR 25593
4038         * ldelf.c (ldelf_try_needed): Add DT_NEEDED lib to input_bfds.
4039         (ldelf_after_open): Save state of input_bfds list before loading
4040         DT_NEEDED libs.  Traverse input_bfds list adding DT_NEEDED tags.
4041         Restore input_bfds list.
4042         * testsuite/ld-cris/gotplt1.d: Adjust for changed .dynstr order.
4044 2020-02-24  Nick Clifton  <nickc@redhat.com>
4046         * po/fr.po: Update French translation.
4048 2020-02-22  Alan Modra  <amodra@gmail.com>
4050         PR 25585
4051         * NEWS: Mention better "PHDR segment not covered by LOAD segment"
4052         checking.
4054 2020-02-19  Sergey Belyashov  <sergey.belyashov@gmail.com>
4056         PR 25537
4057         * emultempl/z80.em: Remove machine compatability checking.
4059 2020-02-19  Sergey Belyashov  <sergey.belyashov@gmail.com>
4061         PR 25517
4062         * testsuite/ld-z80/arch_ez80_adl.d: Update command line.
4063         * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
4064         * testsuite/ld-z80/arch_r800.d: Likewise.
4065         * testsuite/ld-z80/arch_z180.d: Likewise.
4066         * testsuite/ld-z80/arch_z80n.d: Likewise.
4067         * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
4068         * testsuite/ld-z80/comb_arch_z180_z80.d: Likewise.
4069         * testsuite/ld-z80/comb_arch_z80_ez80.d: Likewise.
4070         * testsuite/ld-z80/comb_arch_z80_z180.d: Likewise.
4071         * testsuite/ld-z80/comb_arch_z80_z80n.d: Likewise.
4072         * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
4073         * testsuite/ld-z80/relocs_b_z80.d: Likewise.
4074         * testsuite/ld-z80/relocs_f_ez80.d: Likewise.
4075         * testsuite/ld-z80/relocs_f_z80.d: Likewise.
4076         * testsuite/ld-z80/relocs_f_z80n.d: Likewise.
4078 2020-02-19  Alan Modra  <amodra@gmail.com>
4080         * testsuite/ld-plugin/pr25355.d: Allow alpha-linux nm result.
4082 2020-02-10  H.J. Lu  <hongjiu.lu@intel.com>
4084         PR binutils/25355
4085         * testsuite/ld-plugin/lto.exp: Run PR binutils/25355 test.
4086         * testsuite/ld-plugin/pr25355.c: New file.
4087         * testsuite/ld-plugin/pr25355.d: Likewise.
4088         * testsuite/lib/ld-lib.exp (run_cc_link_tests): Support compile
4089         only dump.
4091 2020-02-07  H.J. Lu  <hongjiu.lu@intel.com>
4093         * testsuite/ld-unique/unique.exp (contains_unique_symbol): Updated.
4095 2020-02-07  Sergey Belyashov  <sergey.belyashov@gmail.com>
4097         PR 25469
4098         * emulparams/elf32z80.sh: Use z80 emulation.
4099         * emultempl/z80.em: Make generic to both COFF and ELF Z80 emulations.
4100         * emultempl/z80elf.em: Delete.
4101         * testsuite/ld-elf/pr22450.d: Expect to fail for the Z80.
4102         * testsuite/ld-elf/sec64k.exp: Fix Z80 assembly.
4103         * testsuite/ld-unique/pr21529.s: Avoid register name conflict.
4104         * testsuite/ld-unique/unique.s: Likewise.
4105         * testsuite/ld-unique/unique_empty.s: Likewise.
4106         * testsuite/ld-unique/unique_shared.s: Likewise.
4107         * testsuite/ld-unique/unique.d: Updated expected output.
4108         * testsuite/ld-z80/arch_z80n.d: New file.
4109         * testsuite/ld-z80/comb_arch_z80_z80n.d: New file.
4110         * testsuite/ld-z80/labels.s: Add more labels.
4111         * testsuite/ld-z80/relocs.s: Add more reloc tests.
4112         * testsuite/ld-z80/relocs_f_z80n.d: New file
4114 2020-02-07  H.J. Lu  <hongjiu.lu@intel.com>
4116         PR ld/25022
4117         * testsuite/ld-elf/pr25022.d: Xfail more targets which don't use
4118         ldelf_before_place_orphans.
4120 2020-02-06  H.J. Lu  <hongjiu.lu@intel.com>
4122         PR ld/25022
4123         * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
4124         before_place_orphans_default.
4125         * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
4126         * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
4127         * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
4128         * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Likewise.
4129         * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
4130         * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
4131         * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
4132         * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
4133         * emultempl/vanilla.em (ld_${EMULATION_NAME}_emulation): Likewise.
4134         * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Use
4135         ldelf_before_place_orphans.
4136         * ldelf.c (ldelf_before_place_orphans): New.
4137         * ldelf.h (ldelf_before_place_orphans): Likewise.
4138         * ldemul.c (ldemul_before_place_orphans): Likewise.
4139         (before_place_orphans_default): Likewise.
4140         * ldemul.h (ldemul_before_place_orphans): Likewise.
4141         (before_place_orphans_default): Likewise.
4142         (ld_emulation_xfer_struct): Add before_place_orphans.
4143         * ldlang.c (lang_process): Call ldemul_before_place_orphans
4144         before lang_place_orphans.
4145         * testsuite/ld-elf/pr25022.d: New file.
4146         * testsuite/ld-elf/pr25022.s: Likewise.
4147         * testsuite/ld-elf/pr25022.t: Likewise.
4149 2020-02-06  H.J. Lu  <hongjiu.lu@intel.com>
4151         PR ld/25490
4152         * testsuite/ld-elf/pr25490-1.d: New file.
4153         * testsuite/ld-elf/pr25490-1.s: Likewise.
4155 2020-02-06  H.J. Lu  <hongjiu.lu@intel.com>
4157         PR ld/24526
4158         PR ld/25021
4159         PR ld/25490
4160         * testsuite/ld-elf/elf.exp: Run PR ld/25490 tests.
4161         * testsuite/ld-elf/pr24526.d: New file.
4162         * testsuite/ld-elf/pr24526.s: Likewise.
4163         * testsuite/ld-elf/pr25021.d: Likewise.
4164         * testsuite/ld-elf/pr25021.s: Likewise.
4165         * testsuite/ld-elf/pr25490-2-16.rd: Likewise.
4166         * testsuite/ld-elf/pr25490-2-32.rd: Likewise.
4167         * testsuite/ld-elf/pr25490-2-64.rd: Likewise.
4168         * testsuite/ld-elf/pr25490-2.s: Likewise.
4169         * testsuite/ld-elf/pr25490-3-16.rd: Likewise.
4170         * testsuite/ld-elf/pr25490-3-32.rd: Likewise.
4171         * testsuite/ld-elf/pr25490-3-64.rd: Likewise.
4172         * testsuite/ld-elf/pr25490-3.s: Likewise.
4173         * testsuite/ld-elf/pr25490-4-16.rd: Likewise.
4174         * testsuite/ld-elf/pr25490-4-32.rd: Likewise.
4175         * testsuite/ld-elf/pr25490-4-64.rd: Likewise.
4176         * testsuite/ld-elf/pr25490-4.s: Likewise.
4177         * testsuite/ld-elf/pr25490-5-16.rd: Likewise.
4178         * testsuite/ld-elf/pr25490-5-32.rd: Likewise.
4179         * testsuite/ld-elf/pr25490-5-64.rd: Likewise.
4180         * testsuite/ld-elf/pr25490-5.s: Likewise.
4181         * testsuite/ld-elf/pr25490-6-16.rd: Likewise.
4182         * testsuite/ld-elf/pr25490-6-32.rd: Likewise.
4183         * testsuite/ld-elf/pr25490-6-64.rd: Likewise.
4184         * testsuite/ld-elf/pr25490-6.s: Likewise.
4186 2020-02-06  H.J. Lu  <hongjiu.lu@intel.com>
4188         * testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark
4189         z80 as not supported.
4191 2020-02-06  Alan Modra  <amodra@gmail.com>
4193         * testsuite/ld-ifunc/ifunc.exp: Enable for more targets, specifying
4194         targets that don't support ifunc rather than ones that do.
4195         (contains_irelative_reloc): Match R_PARISC_IPLT.
4196         * testsuite/ld-ifunc/lib.c: Don't use .set in asm.
4197         * testsuite/ld-ifunc/ifunc-23-x86.s,
4198         * testsuite/ld-ifunc/ifunc-24-x86.s,
4199         * testsuite/ld-ifunc/ifunc-25-x86.s,
4200         * testsuite/ld-ifunc/ifunc-4-local-x86.s,
4201         * testsuite/ld-ifunc/ifunc-4-x86.s: Define _main.
4202         * testsuite/ld-ifunc/ifunc-10-i386.d,
4203         * testsuite/ld-ifunc/ifunc-11-i386.d,
4204         * testsuite/ld-ifunc/ifunc-12-i386.d,
4205         * testsuite/ld-ifunc/ifunc-13-i386.d,
4206         * testsuite/ld-ifunc/ifunc-14a-i386.d,
4207         * testsuite/ld-ifunc/ifunc-14b-i386.d,
4208         * testsuite/ld-ifunc/ifunc-14c-i386.d,
4209         * testsuite/ld-ifunc/ifunc-14d-i386.d,
4210         * testsuite/ld-ifunc/ifunc-14e-i386.d,
4211         * testsuite/ld-ifunc/ifunc-14f-i386.d,
4212         * testsuite/ld-ifunc/ifunc-15-i386.d,
4213         * testsuite/ld-ifunc/ifunc-16-i386-now.d,
4214         * testsuite/ld-ifunc/ifunc-16-i386.d,
4215         * testsuite/ld-ifunc/ifunc-17a-i386.d,
4216         * testsuite/ld-ifunc/ifunc-17b-i386.d,
4217         * testsuite/ld-ifunc/ifunc-18a-i386.d,
4218         * testsuite/ld-ifunc/ifunc-18b-i386.d,
4219         * testsuite/ld-ifunc/ifunc-19a-i386.d,
4220         * testsuite/ld-ifunc/ifunc-19b-i386.d,
4221         * testsuite/ld-ifunc/ifunc-2-i386-now.d,
4222         * testsuite/ld-ifunc/ifunc-2-i386.d,
4223         * testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
4224         * testsuite/ld-ifunc/ifunc-2-local-i386.d,
4225         * testsuite/ld-ifunc/ifunc-20-i386.d,
4226         * testsuite/ld-ifunc/ifunc-21-i386.d,
4227         * testsuite/ld-ifunc/ifunc-22-i386.d,
4228         * testsuite/ld-ifunc/ifunc-26.d,
4229         * testsuite/ld-ifunc/ifunc-5a-i386.d,
4230         * testsuite/ld-ifunc/ifunc-5a-local-i386.d,
4231         * testsuite/ld-ifunc/ifunc-5b-i386.d,
4232         * testsuite/ld-ifunc/ifunc-5b-local-i386.d,
4233         * testsuite/ld-ifunc/ifunc-5r-local-i386.d,
4234         * testsuite/ld-ifunc/ifunc-6a-i386.d,
4235         * testsuite/ld-ifunc/ifunc-6b-i386.d,
4236         * testsuite/ld-ifunc/ifunc-7a-i386.d,
4237         * testsuite/ld-ifunc/ifunc-7b-i386.d,
4238         * testsuite/ld-ifunc/ifunc-8-i386.d,
4239         * testsuite/ld-ifunc/ifunc-9-i386.d,
4240         * testsuite/ld-ifunc/pr17154-i386-now.d,
4241         * testsuite/ld-ifunc/pr17154-i386.d: xfail lynxos, nto, and solaris.
4243 2020-02-06  Alan Modra  <amodra@gmail.com>
4245         * testsuite/lib/ld-lib.exp (is_generic): Delete.
4246         * testsuite/ld-unique/unique.exp: Exclude tic6x.
4248 2020-02-06  Alan Modra  <amodra@gmail.com>
4250         * configure.tgt (i[3-7]86-*-moss*): Don't clear targ_extra_ofiles.
4251         (i[3-7]86-*-openbsd*, x86_64-*-openbsd*): Add.
4253 2020-02-02  H.J. Lu  <hongjiu.lu@intel.com>
4255         PR gas/25380
4256         * testsuite/ld-i386/pr22001-1c.S: Use "unique,N" in .section
4257         directives.
4258         * testsuite/ld-i386/tls-gd1.S: Likewise.
4259         * testsuite/ld-x86-64/pr21481b.S: Likewise.
4261 2020-01-30  Jan Beulich  <jbeulich@suse.com>
4263         * ld.texi: Remove space between @option and brace.
4265 2020-01-29  Alan Modra  <amodra@gmail.com>
4267         PR 25477
4268         * ldelf.c (ldelf_check_ld_so_conf): Add prefix parameter and
4269         correct concat.
4270         (ldelf_after_open): Add prefix parameter.
4271         * ldelf.h (ldelf_after_open): Update prototype.
4272         * emultempl/elf.em (gld${EMULATION_NAME}_after_open): Pass $prefix
4273         to ldelf_after_open.
4274         * Makefile.am: Correct z80 dependencies.
4275         * Makefile.in: Regenerate.
4277 2020-01-28  Alan Modra  <amodra@gmail.com>
4279         * ldexp.c (fold_name): Don't print bfd_link_hash_lookup failed
4280         in first phase.
4282 2020-01-27  Alan Modra  <amodra@gmail.com>
4284         * testsuite/ld-elfvers/vers.exp: Replace case statements with
4285         switch statements.
4286         * testsuite/ld-ifunc/ifunc.exp: Likewise.
4287         * testsuite/ld-unique/unique.exp: Likewise.
4289 2020-01-27  H.J. Lu  <hongjiu.lu@intel.com>
4290             Alan Modra  <amodra@gmail.com>
4292         PR ld/25458
4293         * testsuite/ld-elf/pr25458.map: New file.
4294         * testsuite/ld-elf/pr25458.rd: Likewise.
4295         * testsuite/ld-elf/pr25458a.s: Likewise.
4296         * testsuite/ld-elf/pr25458b.s: Likewise.
4297         * testsuite/ld-elf/shared.exp: Run PR ld/25458 test.
4299 2020-01-22  H.J. Lu  <hongjiu.lu@intel.com>
4301         PR ld/25416
4302         * testsuite/ld-x86-64/tls.exp: Skip GNU2 TLS tests only without
4303         compiler support.
4305 2020-01-22  Alan Modra  <amodra@gmail.com>
4307         * testsuite/ld-powerpc/tlsdesc3.d,
4308         * testsuite/ld-powerpc/tlsdesc3.wf,
4309         * testsuite/ld-powerpc/tlsdesc4.d,
4310         * testsuite/ld-powerpc/tlsdesc4.s,
4311         * testsuite/ld-powerpc/tlsdesc4.wf: New tests.
4312         * testsuite/ld-powerpc/powerpc.exp: Run them.
4314 2020-01-22  Alan Modra  <amodra@gmail.com>
4316         * emultempl/ppc64elf.em (ppc64_opt, PARSE_AND_LIST_LONGOPTS),
4317         (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Support
4318         --tls-get-addr-regsave and --no-tls-get-addr-regsave.
4319         (params): Init new field.
4320         * ld.texi (--tls-get-addr-regsave, --no-tls-get-addr-regsave):
4321         Document.
4322         * testsuite/ld-powerpc/tlsdesc.s,
4323         * testsuite/ld-powerpc/tlsdesc.d,
4324         * testsuite/ld-powerpc/tlsdesc.wf,
4325         * testsuite/ld-powerpc/tlsdesc2.d,
4326         * testsuite/ld-powerpc/tlsdesc2.wf,
4327         * testsuite/ld-powerpc/tlsexenors.d,
4328         * testsuite/ld-powerpc/tlsexenors.r,
4329         * testsuite/ld-powerpc/tlsexers.d,
4330         * testsuite/ld-powerpc/tlsexers.r,
4331         * testsuite/ld-powerpc/tlsexetocnors.d,
4332         * testsuite/ld-powerpc/tlsexetocrs.d,
4333         * testsuite/ld-powerpc/tlsexetocrs.r,
4334         * testsuite/ld-powerpc/tlsopt6.d,
4335         * testsuite/ld-powerpc/tlsopt6.wf: New.
4336         * testsuite/ld-powerpc/powerpc.exp: Run new tests.
4338 2020-01-22  Yuri Chornoivan  <yurchor@mageia.org>
4340         PR 25417
4341         * ldlang.c (ldlang_open_ctf): Fix error message typo.
4342         * emultempl/z80elf.em (z80_elf_after_open): Likewise.
4344 2020-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4346         * testsuite/ld-elf/pr23900-1.d: Adjusted.
4348 2020-01-21  H.J. Lu  <hongjiu.lu@intel.com>
4350         * testsuite/ld-elf/pr23900-1.d: Also pass -l to readelf.
4352 2020-01-20  Nick Clifton  <nickc@redhat.com>
4354         * po/pt_BR.po: Updated Brazilian Portuguese translation.
4355         * po/uk.po: Updated Ukranian translation.
4357 2020-01-20  H.J. Lu  <hongjiu.lu@intel.com>
4359         PR ld/25416
4360         * testsuite/ld-x86-64/pr25416-1.s: New file
4361         * testsuite/ld-x86-64/pr25416-1a.d: Likewise.
4362         * testsuite/ld-x86-64/pr25416-1b.d: Likewise.
4363         * testsuite/ld-x86-64/pr25416-1.s: Likewise.
4364         * testsuite/ld-x86-64/pr25416-2.s: Likewise.
4365         * testsuite/ld-x86-64/pr25416-2a.d: Likewise.
4366         * testsuite/ld-x86-64/pr25416-2b.d: Likewise.
4367         * testsuite/ld-x86-64/pr25416-3.d: Likewise.
4368         * testsuite/ld-x86-64/pr25416-3.s: Likewise.
4369         * testsuite/ld-x86-64/pr25416-4.d: Likewise.
4370         * testsuite/ld-x86-64/pr25416-4.s: Likewise.
4371         * testsuite/ld-x86-64/pr25416-5a.c: Likewise.
4372         * testsuite/ld-x86-64/pr25416-5b.s: Likewise.
4373         * testsuite/ld-x86-64/pr25416-5c.s: Likewise.
4374         * testsuite/ld-x86-64/pr25416-5d.s: Likewise.
4375         * testsuite/ld-x86-64/pr25416-5e.s: Likewise.
4376         * testsuite/ld-x86-64/x86-64.exp: Run PR ld/25416 tests.
4378 2020-01-20  Alan Modra  <amodra@gmail.com>
4380         * testsuite/ld-powerpc/tlsexe.d: Match new __tls_get_addr stub.
4381         * testsuite/ld-powerpc/tlsexeno.d: Likewise.
4382         * testsuite/ld-powerpc/tlsexetoc.d: Likewise.
4383         * testsuite/ld-powerpc/tlsexetocno.d: Likewise.
4384         * testsuite/ld-powerpc/tlsopt5.d: Likewise.
4386 2020-01-18  Roland McGrath  <mcgrathr@google.com>
4388         * testsuite/ld-x86-64/align-branch-1.d: Loosen instruction regexps
4389         to admit whatever absolute address.  The label-relative address is
4390         what the test needs to verify.
4392 2020-01-18  Nick Clifton  <nickc@redhat.com>
4394         * configure: Regenerate.
4395         * po/ld.pot: Regenerate.
4397 2020-01-18  Nick Clifton  <nickc@redhat.com>
4399         Binutils 2.34 branch created.
4401 2020-01-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4403         * scripttempl/elf32msp430_3.sc: Remove.
4405 2020-01-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4407         * scripttempl/elf32msp430.sc: Add input section rules for
4408         .upper.{text,data,rodata,bss}.
4409         * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
4410         * testsuite/ld-msp430-elf/upper-input-sections.s: New test.
4412 2020-01-15  Lars Brinkhoff  <lars@nocrew.org>
4414         PR 20694
4415         * temulparams/pdp11.sh (TARGET_PAGE_SIZE): Set to 8192.
4417 2020-01-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4419         * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
4420         * testsuite/ld-msp430-elf/reloc-lo-430x.s: New test.
4422 2020-01-15  Alan Modra  <amodra@gmail.com>
4424         * testsuite/ld-powerpc/ambiguousv1b.d: Adjust expected output.
4425         * testsuite/ld-powerpc/funref.s: Align func_tab.
4426         * testsuite/ld-powerpc/funref2.s: Likewise.
4427         * testsuite/ld-powerpc/funv1.s: Add dot symbols.
4429 2020-01-14  Lili Cui <lili.cui@intel.com>
4431         * testsuite/ld-i386/align-branch-1.d: Updated for i686-pc-elf.
4433 2020-01-13  Alan Modra  <amodra@gmail.com>
4435         * po/BLD-POTFILES.in: Regenerate.
4437 2020-01-13  Claudiu Zissulescu  <claziss@gmail.com>
4439         * testsuite/ld-arc/relax-local-pic.d: Improve matching patterns.
4441 2020-01-13  Claudiu Zissulescu  <claziss@gmail.com>
4443         * Makefile.am: Remove earcelf_prof.c and earclinux_prof.c
4444         emulations.
4445         * configure.tgt: Likewise.
4446         * Makefile.in: Regenerate.
4447         * emulparams/arcelf_prof.sh: Remove file.
4448         * emulparams/arclinux_prof.sh: Likewise.
4450 2020-01-13  Claudiu Zissulescu  <claziss@gmail.com>
4452         * scripttempl/elfarcv2.sc : Allow interrupt vector table to be
4453         located at an arbitrary address.  Use DWARF.sc file.
4454         * scripttempl/elfarc.sc: Use DWARF.sc file.
4456 2020-01-07  Alan Modra  <amodra@gmail.com>
4458         * testsuite/ld-mips-elf/eh-frame5.s,
4459         * testsuite/ld-mips-elf/ehdr_start-new.s,
4460         * testsuite/ld-mips-elf/ehdr_start-o32.s,
4461         * testsuite/ld-mips-elf/mips16-call-global-1.s,
4462         * testsuite/ld-mips-elf/mips16-intermix-1.s,
4463         * testsuite/ld-mips-elf/mips16-pic-1b.s,
4464         * testsuite/ld-mips-elf/mips16-pic-4c.s,
4465         * testsuite/ld-mips-elf/no-shared-1-n64.s,
4466         * testsuite/ld-mips-elf/no-shared-1-o32.s,
4467         * testsuite/ld-mips-elf/pic-and-nonpic-1b-micromips.s,
4468         * testsuite/ld-mips-elf/pic-and-nonpic-1b.s,
4469         * testsuite/ld-mips-elf/pic-and-nonpic-2a.s,
4470         * testsuite/ld-mips-elf/pic-and-nonpic-3b.s,
4471         * testsuite/ld-mips-elf/pic-and-nonpic-4b.s,
4472         * testsuite/ld-mips-elf/pic-and-nonpic-5a.s,
4473         * testsuite/ld-mips-elf/pic-and-nonpic-6-n32c.s,
4474         * testsuite/ld-mips-elf/pic-and-nonpic-6-n64c.s,
4475         * testsuite/ld-mips-elf/pic-and-nonpic-6-o32c.s,
4476         * testsuite/ld-mips-elf/pie.s,
4477         * testsuite/ld-mips-elf/relax-jalr.s: Revert 2019-12-17 change.
4479 2020-01-06  Nick Clifton  <nickc@redhat.com>
4481         PR 25327
4482         * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
4483         command line when building libcomm1.o and pr13250 tests.
4484         * testsuite/ld-plugin/lto.exp: Likewise for pr20267 tests.
4486 2020-01-06  Nick Clifton  <nickc@redhat.com>
4488         PR 25326
4489         * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
4490         command line when building pr19579 binaries.
4492 2020-01-03  Hannes Domani  <ssbssa@yahoo.de>
4494         * emultempl/pe.em: Add new option --enable-reloc-section.
4495         * emultempl/pep.em: Likewise.
4496         * ld.texi: Document --enable-reloc-section.
4497         * pe-dll.c (pe_dll_build_sections): Use pe_dll_enable_reloc_section.
4498         (pe_dll_fill_sections): Simplify by calling pe_exe_fill_sections.
4499         * pe-dll.h: Add extern declaration of option flag.
4500         * pep-dll.c (pe_dll_enable_reloc_section):
4501         Add alias define for pep_dll_enable_reloc_section.
4502         * pep-dll.h: Add extern declaration of option flag.
4504 2020-01-02  Sergey Belyashov  <sergey.belyashov@gmail.com>
4506         * Makefile.am: Add new target z80-elf
4507         * configure.tgt: Likewise.
4508         * Makefile.in: Regenerate.
4509         * emultempl/z80.em: Add support for eZ80 and Z180 architectures.
4510         * emulparams/elf32z80.sh: New file.
4511         * emultempl/z80elf.em: Likewise.
4512         * testsuite/ld-elf/comm-data4.s: Fix for Z80.
4513         * testsuite/ld-elf/comm-data5.s: Fix for Z80.
4514         * testsuite/ld-scripts/fill16.d: Fix for Z80.
4515         * testsuite/ld-z80/arch_ez80_adl.d: Likewise.
4516         * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
4517         * testsuite/ld-z80/arch_r800.d: Likewise.
4518         * testsuite/ld-z80/arch_z180.d: Likewise.
4519         * testsuite/ld-z80/arch_z80.d: Likewise.
4520         * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
4521         * testsuite/ld-z80/comb_arch_z180.d: Likewise.
4522         * testsuite/ld-z80/labels.s: Likewise.
4523         * testsuite/ld-z80/relocs.s: Likewise.
4524         * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
4525         * testsuite/ld-z80/relocs_b_z80.d: Likewise.
4526         * testsuite/ld-z80/relocs_f_z80.d: Likewise.
4527         * testsuite/ld-z80/z80.exp: Likewise.
4528         * NEWS: Mention the new support.
4530 2020-01-02  Tamar Christina  <tamar.christina@arm.com>
4532         PR 25210
4533         PR 24753
4534         * emultempl/aarch64elf.em (elf${ELFSIZE}_aarch64_add_stub_section):
4535         Remove SEC_LINKER_CREATED.
4536         * testsuite/ld-aarch64/aarch64-elf.exp: Add erratum835769-843419.
4537         * testsuite/ld-aarch64/erratum835769-843419.d: New test.
4539 2020-01-01  Alan Modra  <amodra@gmail.com>
4541         Update year range in copyright notice of all files.
4543 For older changes see ChangeLog-2019
4545 Copyright (C) 2020 Free Software Foundation, Inc.
4547 Copying and distribution of this file, with or without modification,
4548 are permitted in any medium without royalty provided the copyright
4549 notice and this notice are preserved.
4551 Local Variables:
4552 mode: change-log
4553 left-margin: 8
4554 fill-column: 74
4555 version-control: never
4556 End: