]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/ChangeLog
arc: Update ARC's CFI tests.
[thirdparty/binutils-gdb.git] / ld / ChangeLog
CommitLineData
93cda40b
NC
12023-04-12 Nick Clifton <nickc@redhat.com>
2
3 * ld.texi (--enable-non-contiguous-regions): Fix typos in script
4 example.
5
2d5783fa
NC
62023-03-15 Nick Clifton <nickc@redhat.com>
7
8 PR 30187
9 * NEWS: Mention the new feature.
10 * ld.texi: Document the new feature.
11 * ldgram.y: Handle LINKER_VERSION token.
12 * ldlang.c (lang_add_version): New function.
13 (enable_linker_version): New global variable.
14 * ldlang.h (land_add_version): Prototype.
15 (enable_linker_version): Export.
16 * ldlex.h (OPTION_ENABLE_LINKER_VERSION): Define.
17 (OPTION_DISABLE_LINKER_VERSION): Define.
18 * ldlex.l (LINKER_VERSION): Add token.
19 * lexsup.c (ld_options): Add --enable-linker-version and
20 --disable-linker-version.
21 (parse_args): Handle the new options.
22 * scripttempl/arclinux.sc: Remove stabs and comment sections and
23 replace with inclusion of misc-sections.sc
24 * scripttempl/avr.sc: Likewise.
25 * scripttempl/dlx.sc: Likewise.
26 * scripttempl/elf.sc: Likewise.
27 * scripttempl/elf32cr16.sc: Likewise.
28 * scripttempl/elf32crx.sc: Likewise.
29 * scripttempl/elf32msp430.sc: Likewise.
30 * scripttempl/elf64bpf.sc: Likewise.
31 * scripttempl/elf64hppa.sc: Likewise.
32 * scripttempl/elf_chaos.sc: Likewise.
33 * scripttempl/elfarc.sc: Likewise.
34 * scripttempl/elfarcv2.sc: Likewise.
35 * scripttempl/elfd10v.sc: Likewise.
36 * scripttempl/elfd30v.sc: Likewise.
37 * scripttempl/elfm68hc11.sc: Likewise.
38 * scripttempl/elfm68hc12.sc: Likewise.
39 * scripttempl/elfm9s12z.sc: Likewise.
40 * scripttempl/elfmicroblaze.sc: Likewise.
41 * scripttempl/elfxgate.sc: Likewise.
42 * scripttempl/elfxtensa.sc: Likewise.
43 * scripttempl/epiphany_4x4.sc: Likewise.
44 * scripttempl/ft32.sc: Likewise.
45 * scripttempl/ip2k.sc: Likewise.
46 * scripttempl/iq2000.sc: Likewise.
47 * scripttempl/mep.sc: Likewise.
48 * scripttempl/nds32elf.sc: Likewise.
49 * scripttempl/pru.sc: Likewise.
50 * scripttempl/v850.sc: Likewise.
51 * scripttempl/v850_rh850.sc: Likewise.
52 * scripttempl/visium.sc: Likewise.
53 * scripttempl/xstormy16.sc: Likewise.
54 * scripttempl/z80.sc: Likewise.
55 * testsuite/ld-scripts/script.exp: Run new tests.
56 * scripttempl/misc-sections.sc: New file.
57 * testsuite/ld-scripts/ld-version-2.d: New file.
58 * testsuite/ld-scripts/ld-version.d: New file.
59 * testsuite/ld-scripts/ld-version.t: New file.
60
50980ba3
FS
612023-02-23 Fangrui Song <i@maskray.me>
62
63 * emultempl/riscvelf.em: Add option parsing.
64 * testsuite/ld-riscv-elf/code-model-relax-medlow-01-norelaxgp.d: New.
65 * testsuite/ld-riscv-elf/pcgp-relax-01-norelaxgp.d: New.
66 * testsuite/ld-riscv-elf/pcgp-relax-02.d: Test --relax --relax-gp can be
67 used together.
68
c9802aca
NC
692023-02-20 Nick Clifton <nickc@redhat.com>
70
71 PR 30004
72 * pe-dll.c (pe_dll_build_sections): Do not build an edata section
73 if all symbols are being excluded.
74
2b56cd91
NC
752023-02-15 Nick Clifton <nickc@redhat.com>
76
77 PR 30078
78 * testsuite/ld-elf/merge4b.s: Use .asciz instead of .string in
79 order to avoid the special behaviour of the .string directive on
80 HPPA architectures.
81
9b38b85e
NC
822023-02-14 Nick Clifton <nickc@redhat.com>
83
84 * ld.texi (Plugins): Mention that the -plugin command line option
85 is used to load plugins.
86
1c66b8a0
NC
872023-01-27 Nick Clifton <nickc@redhat.com>
88
89 PR 29998
90 * pe-dll.c (build_filler_bfd): Initialise the next field of the
91 filler input statement, so that it does not break the file chain.
92
f3d8ae90
NC
932023-01-24 Nick Clifton <nickc@redhat.com>
94
95 PR 29998
96 * pe-dll.c (generate_reloc): Handle sections with no assigned
97 output section. Terminate early of there are no relocs to put in
98 the .reloc section.
99 (pe_exe_fill_sections): Do not emit an empty .reloc section.
100
59e1f50f
NC
1012023-01-06 Nick Clifton <nickc@redhat.com>
102
103 * po/bg.po: Updated Bulgarian translation.
104
beb6b61d
NC
1052023-01-05 Nick Clifton <nickc@redhat.com>
106
107 * configure.tgt: Add arm64pe as an extra emulation for aarch64pe.
108 * Makefile.am (ALL_64_EMULATION_SOURCES): Add earm64pe.c
109 * emultempl/pep.em: Add suppport for arm64pe emulation.
110 * Makefile.in: Regenerate.
111 * po/BLD-POTFILES.in: Regenerate.
112 * po/ld.pot: Regenerate.
113
b26c8438
AH
1142023-01-05 Andreas K. Huettel <dilfridge@gentoo.org>
115
116 * testsuite/ld-elf/shared.exp: un-xfail the PR19710 test for the
117 AArch64 architecture.
118
502c7218
AH
1192023-01-04 Andreas K. Huettel <dilfridge@gentoo.org>
120
121 PR 29843
122 * testsuite/ld-aarch64/bti-plt-5.d: Relax regxps slightly to allow
123 for differences in build environments.
124 * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: Likewise.
125
11982f9f
NC
1262023-01-03 Nick Clifton <nickc@redhat.com>
127
128 * po/uk.po: Updated Ukrainian translation.
129
a72b0718
NC
1302022-12-31 Nick Clifton <nickc@redhat.com>
131
132 * 2.40 branch created.
133
a7a32d58
NC
1342022-12-21 Nick Clifton <nickc@redhat.com>
135
136 PR 29900
137 * scripttempl/pe.sc: Keep the .drectve section when performing a
138 relocateable link.
139 * scripttempl/pep.sc: Likewise.
140
dcb53d93
NC
1412022-12-08 Nick Clifton <nickc@redhat.com>
142
143 PR 29861
144 * ld.texi (Output Section Type): Note that setting the output
145 section type only works if the section contains untyped data.
146
3bf5bf54
NC
1472022-12-05 Nick Clifton <nickc@redhat.com>
148
149 PR 29849
150 * ldlang.c (spec_match): Check that there is sufficient length in
151 the target name to match the spec's prefix.
152
e26943f9
NC
1532022-11-03 Nick Clifton <nickc@redhat.com>
154
155 PR 29748
156 * configure.tgt (ac_default_ld_warn_rwx_segments): Set to 0 for
157 the V850.
158
fa6895ad
NC
1592022-11-03 Nick Clifton <nickc@redhat.com>
160
78cd9188 161 PR 29741
fa6895ad
NC
162 * scripttempl/avr.sc (__DATA_REGION_ORIGIN__): Define. If a value
163 has not been provided on the command line then use DATA_ORIGIN.
164 (MEMORY): Use __DATA_REGION_ORIGIN__ as the start of the data region.
165
4b2e7a57
NC
1662022-10-21 Nick Clifton <nickc@redhat.com>
167
168 PR 29654
169 * ld.h (struct ld_config_type): Add no_warnings field.
170 * ldlex.h (enum option_values): Add OPTION_NO_WARNINGS.
171 * lexsup.c (ld_options): Add --no-warnings.
172 (parse_args): Add support for -w and --no-warnings.
173 * ldmisc.c (vfinfo): Return early if the message is a warning and
174 -w has been enabled.
175 * ld.texi (options): Document new command line option.
176 * NEWS: Mention the new feature.
177
37833b96
NC
1782022-08-30 Nick Clifton <nickc@redhat.com>
179
180 PR 29529
181 * testsuite/ld-x86-64/pr27587.err: Update expected output.
182
f0821653
RH
1832022-08-18 Ralf Habacker <ralf.habacker@freenet.de>
184
185 PR 28362
186 * testsuite/ld-pe/pe-run2-def.exp: New file.
187
a6ad7914
AM
1882022-08-03 Alan Modra <amodra@gmail.com>
189
190 PR 29389
191 * ldlang.h (lang_input_statement_struct): Add sort_key field.
192 * emultempl/pe.em (after_open): If multiple import libraries refer
193 to the same bfd, store their names in the sort_key field.
194 * emultempl/pep.em (after_open): Likewise.
195 * ldlang.c (sort_filename): New function. Returns the filename to
196 be used when sorting input files.
197 (wild_sort): Use the sort_filename function.
198
b80b72c0
RO
1992022-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
200
201 PR ld/29411
202 * configure.tgt (ac_default_ld_warn_rwx_segments): Extend to all
203 sparc targets. Expand comment.
204
91896b4d
NC
2052022-07-26 Nick Clifton <nickc@redhat.com>
206
207 PR 29411
208 * configure.tgt (ac_default_ld_warn_rwx_segments): Disable for
209 sparc-solaris configurations.
210
0bd09323
NC
2112022-07-08 Nick Clifton <nickc@redhat.com>
212
213 * 2.39 branch created.
214
ed1c7ad8
NC
2152022-06-27 Nick Clifton <nickc@redhat.com>
216
217 PR 29263
218 * configure.ac: Move HPPA specific code from here...
219 * configure.tgt: ... to here. Add similar code for MIPS.
220 Move code for CRIS, MIPS and HPPA to block at start of file.
221 * configure: Regenerate.
222
acd65fa6
NC
2232022-06-21 Nick Clifton <nickc@redhat.com>
224
225 PR 29263
226 * configure.ac (ac_default_ld_warn_execstack): Default to 'no' for
227 HPPA targets.
228 (ac_default_ld_warn_rwx_segments): Likewise.
229 * configure: Regenerate.
230 * testsuite/ld-elf/elf.exp: Add the --warn-execstack command line
231 option to the command line when running execstack tests for the
232 HPPA target.
233
678dc756
AM
2342022-05-12 Alan Modra <amodra@gmail.com>
235
236 PR 29006
237 * pe-dll.c (dll_name): Delete, replacing with..
238 (dll_filename): ..this, moved earlier in file.
239 (generate_edata): Delete parameters. Don't set up dll_name here..
240 (pe_process_import_defs): ..instead set up dll_filename and
241 dll_symname here before returning.
242 (dll_symname_len): Delete write-only variable.
243 (pe_dll_generate_implib): Don't set up dll_symname here.
244
46465574
NC
2452022-05-03 Nick Clifton <nickc@redhat.com>
246
247 PR 29101
248 * libdep_plugin.c (get_libdeps): Check for overflow when computing
249 amount of memory to allocate.
250
639d467b
NC
2512022-04-27 Nick Clifton <nickc@redhat.com>
252
253 PR 29006
254 * pe-dll.c (make_head): Use asprintf to allocate and populate a
255 buffer containing the temporary name.
256 (make_tail, make_one, make_singleton_name_thunk): Likewise.
257 (make_import_fixup_mark, make_import_fixup_entry): Likewise.
258 (make_runtime_pseudo_reloc): Likewise.
259 (pe_create_runtime_relocator_reference): Likewise.
260
0d38576a
NC
2612022-04-25 Nick Clifton <nickc@redhat.com>
262
263 PR 29072
264 * testsuite/ld-elf/pr29072.b.warn: Update to include the note
265 about the linker's behaviour being depreccated.
266
2d23f965
CC
2672022-04-20 Clément Chigot <clement.chigot@atos.net>
268
269 * emultempl/aix.em (params): New variable.
270 (stub_file): New variable.
271 (xcoff_add_stub_section): New function.
272 (xcoff_layout_sections_again): New function
273 (hook_in_stub): New function.
274 (_after_allocation): Add stub creation.
275 (_create_output_section_statements): Allocate stub file and
276 pass params to backend.
277
1876a542
CC
2782022-04-20 Clément Chigot <clement.chigot@atos.net>
279
280 * emultempl/aix.em (_after_allocation): New function.
281
145667f8
MH
2822022-04-07 Mark Harmstone <mark@harmstone.com>
283
284 * testsuite/ld-pe/secidx1.s: New test source file.
285 * testsuite/ld-pe/secidx2.s: New test source file.
286 * testsuite/ld-pe/secidx.d: New test driver file.
287 * testsuite/ld-pe/secidx_64.d: New test driver file.
288 * testsuite/ld-pe/pe.exp: Add new tests.
289
95e96e05
NC
2902022-03-01 Nick Clifton <nickc@redhat.com>
291
292 PR 21964
293 * testsuite/ld-elf/pr21964-1a.c: Fix array comparisons.
294 * testsuite/ld-elf/pr21964-1b.c: Likewise.
295 * testsuite/ld-elf/pr21964-1c.c: Likewise.
296 * testsuite/ld-elf/pr21964-2a.c: Likewise.
297 * testsuite/ld-elf/pr21964-2b.c: Likewise.
298 * testsuite/ld-elf/pr21964-3a.c: Likewise.
299
5c14cc55
RM
3002022-02-17 Roland McGrath <mcgrathr@google.com>
301
302 * ld.texi (Output Section Type): Fix typo in @code syntax.
303
36d285b9
NC
3042022-02-17 Nick Clifton <nickc@redhat.com>
305
306 * po/sr.po: Updated Serbian translation.
307
c212f39d 3082022-02-16 Fangrui Song <maskray@google.com>
5c14cc55 309 Nick Clifton <nickc@redhat.com>
c212f39d
FS
310
311 PR ld/28841
312 * ld.texi: Document new output section type.
313 * ldlex.l: Add new token TYPE.
314 * ldgram.y: Handle TYPE=exp and READONLY (TYPE=exp).
315 * ldlang.h: Add type_section to list of section types.
316 * ldlang.c (lang_add_section): Handle type_section.
317 (map_input_to_output_sections): Handle type_section.
318 * testsuite/ld-scripts/output-section-types.t: Add tests.
319 * testsuite/ld-scripts/output-section-types.d: Update.
320
a6983974
NC
3212022-02-02 Nick Clifton <nickc@redhat.com>
322
323 * po/fr.po: Updated French translation.
324
5fe73d46
NC
3252022-01-24 Nick Clifton <nickc@redhat.com>
326
327 * po/bg.po: Updated Bulgarian translation.
328 * po/uk.po: Updated Ukranian translation.
329
cc5e4073
AGI
3302022-01-22 Alexander von Gluck IV <kallisti5@unixzen.com>
331
332 * configure.tgt (arm-haiku): Fix typo.
333 * emulparams/armelf_haiku.su (MAXPAGESIZE): Use the default value.
334 (COMMONPAGESIZE): Likewise.
335
f908e960
NC
3362022-01-22 Nick Clifton <nickc@redhat.com>
337
338 * configure: Regenerate.
339 * po/ld.pot: Regenerate.
340
a74e1cb3
NC
3412022-01-22 Nick Clifton <nickc@redhat.com>
342
343 * 2.38 release branch created.
344
e901223d
NC
3452022-01-21 Nick Clifton <nickc@redhat.com>
346
347 * po/sr.po: Updated Serbian translation.
348
6c037fdb
NC
3492022-01-17 Nick Clifton <nickc@redhat.com>
350
351 * Makefile.in: Regenerate.
352 * po/ld.pot: Regenerate.
353
c4a8df19
MS
3542022-01-11 Martin Storsjö <martin@martin.st>
355
356 * pe-dll.c (make_head): Prefix the symbol name with the dll name.
357 (make_tail, make_one, make_singleton_name_thunk): Likewise.
358 (make_import_fixup_entry, make_runtime_pseudo_reloc): Likewise.
359 (pe_create_runtime_relocator_reference): Likewise.
360 (pe_dll_generate_implib): Set dll_symname_len.
361 (pe_process_import_defs): Likewise.
362
f3be70df
NC
3632021-12-16 Nick Clifton <nickc@redhat.com>
364
365 PR 28686
366 * testsuite/ld-avr/avr-prop-7.d: Adjust expected output.
367 * testsuite/ld-avr/avr-prop-8.d: Likewise.
368 * testsuite/ld-avr/pr13402.d: Likewise.
369
44b357eb
NC
3702021-11-30 Nick Clifton <nickc@redhat.com>
371
372 * scripttempl/pru.sc (.pru_irq_map): Define output section.
373 * testsuite/ld-pru/pru_irq_map-1.d: New test.
374 * testsuite/ld-pru/pru_irq_map-2.d: New test.
375 * testsuite/ld-pru/pru_irq_map.s: New test.
376
ef6379e1
JD
3772021-11-17 Jeremy Drake <cygwin@jdrake.com>
378
379 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Set to 0 for
380 Cygwin targets.
381 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Likewise.
382
ee9e412f
NC
3832021-11-17 Nick Clifton <nickc@redhat.com>
384
385 PR 28452
386 * ldgram.y: Add support for PT_GNU_RELRO and PT_GNU_PROPERTY.
387 * ldgram.c: Regenerate.
388
d029b54d
RM
3892021-11-15 Roland McGrath <mcgrathr@google.com>
390
391 * testsuite/ld-aarch64/dt_textrel.d: Pass explicit -z notext in
392 case ld was configured with --enable-textrel-check=error.
393 * testsuite/ld-aarch64/pr22764.d: Likewise.
394 * testsuite/ld-aarch64/pr20402.d: Likewise.
395
eb5323fd
NA
3962021-10-25 Nick Alcock <nick.alcock@oracle.com>
397
398 * testsuite/ld-ctf/nonrepresentable-member.*: New test.
399
10909ea8
NA
4002021-10-25 Nick Alcock <nick.alcock@oracle.com>
401
402 * testsuite/ld-ctf/array.d: Change --ctf=.ctf to --ctf.
403 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
404 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
405 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
406 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
407 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
408 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
409 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
410 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
411 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
412 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
413 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
414 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
415 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
416 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
417 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
418 * testsuite/ld-ctf/cycle-1.d: Likewise.
419 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
420 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
421 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
422 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
423 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
424 * testsuite/ld-ctf/diag-cuname.d: Likewise.
425 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
426 * testsuite/ld-ctf/enum-forward.d: Likewise.
427 * testsuite/ld-ctf/enums.d: Likewise.
428 * testsuite/ld-ctf/forward.d: Likewise.
429 * testsuite/ld-ctf/function.d: Likewise.
430 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
431 * testsuite/ld-ctf/slice.d: Likewise.
432 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
433
5109a7bd
DD
4342021-09-30 Dimitar Dimitrov <dimitar@dinux.eu>
435
436 * scripttempl/pru.sc (.resource_table): Align the output
437 section, not the first symbol.
438
b9004024
NA
4392021-09-27 Nick Alcock <nick.alcock@oracle.com>
440
441 * configure: Regenerate.
442
5226a6a8
NC
4432021-09-21 Nick Clifton <nickc@redhat.com>
444
445 * ldlang.c (lang_end): When computing the entry point, only
446 try the start address of the entry section when creating an
447 executable.
448 * ld.texi (Entry point): Update description of heuristic used to
449 choose the entry point.
450 testsuite/ld-alpha/tlspic.rd: Update expected entry point address.
451 testsuite/ld-arm/tls-gdesc-got.d: Likewise.
452 testsuite/ld-i386/tlsnopic.rd: Likewise.
453 testsuite/ld-ia64/tlspic.rd: Likewise.
454 testsuite/ld-sparc/gotop32.rd: Likewise.
455 testsuite/ld-sparc/gotop64.rd: Likewise.
456 testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
457 testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
458 testsuite/ld-sparc/tlssunpic32.rd: Likewise.
459 testsuite/ld-sparc/tlssunpic64.rd: Likewise.
460 testsuite/ld-tic6x/shlib-1.rd: Likewise.
461 testsuite/ld-tic6x/shlib-1b.rd: Likewise.
462 testsuite/ld-tic6x/shlib-1r.rd: Likewise.
463 testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
464 testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
465 testsuite/ld-x86-64/pr14207.d: Likewise.
466 testsuite/ld-x86-64/tlsdesc.rd: Likewise.
467 testsuite/ld-x86-64/tlspic.rd: Likewise.
468 testsuite/ld-x86-64/tlspic2.rd: Likewise.
469
720f6ee0
CZ
4702021-09-15 Claudiu Zissulescu <claziss@synopsys.com>
471
472 * testsuite/ld-arc/got-weak.d: Update file.
473
09a7e912
CZ
4742021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
475
476 * ld-arc/got-weak.d: New file.
477 * ld-arc/got-weak.s: Likewise.
478
dfe3b805
RM
4792021-07-26 Roland McGrath <mcgrathr@google.com>
480
481 * testsuite/ld-x86-64/x86-64.exp (Build textrel-1): Use --warn-textrel.
482
235f5ef4
MM
4832021-07-06 Michael Matz <matz@suse.de>
484
485 PR ld/28021
486 * testsuite/ld-riscv-elf/relax-twice.ver: New.
487 * testsuite/ld-riscv-elf/relax-twice-1.s: New.
488 * testsuite/ld-riscv-elf/relax-twice-2.s: New.
489 * testsuite/ld-riscv-elf/ld-riscv-elf.exp
490 (run_relax_twice_test): New, and call it.
491
346d80ef
NC
4922021-07-03 Nick Clifton <nickc@redhat.com>
493
494 * configure: Regenerate.
495 * po/ld.pot: Regenerate.
496
51419248
NC
4972021-07-03 Nick Clifton <nickc@redhat.com>
498
499 * 2.37 release branch created.
500
50331d64
NC
5012021-06-22 Nelson Chu <nelson.chu@sifive.com>
502
503 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
504 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.d: New testcase.
505 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.s: Likewise.
506 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.d: New testcase.
507 Should report error since the %pcrel_lo with addend refers to
508 %got_pcrel_hi.
509 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.s: Likewise.
510 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.d: New testcase.
511 Should report error since the %got_pcrel_hi with addend.
512 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.s: Likewise.
513 * testsuite/ld-riscv-elf/pcrel-lo-addend-3.ld: Likewise.
514
406b4ada
L
5152021-06-19 H.J. Lu <hongjiu.lu@intel.com>
516
517 PR ld/27998
518 * testsuite/ld-i386/i386.exp: Run PR ld/27998 tests.
519 * testsuite/ld-i386/pr27998a.d: New file.
520 * testsuite/ld-i386/pr27998a.s: Likewise.
521 * testsuite/ld-i386/pr27998b.d: Likewise.
522 * testsuite/ld-i386/pr27998b.s: Likewise.
523
83b1d8f4
L
5242021-06-19 H.J. Lu <hongjiu.lu@intel.com>
525
526 * testsuite/ld-x86-64/textrel-1.err: New file.
527 * testsuite/ld-x86-64/textrel-1a.s: Likewise.
528 * testsuite/ld-x86-64/textrel-1b.s: Likewise.
529 * testsuite/ld-x86-64/x86-64.exp: Run textrel-1 tests.
530
c30420d8
L
5312021-06-18 H.J. Lu <hongjiu.lu@intel.com>
532
533 * testsuite/ld-elf/property-and-1.d: Skip am33_2.0, hppa-hpux
534 and mn10300.
535 Pass --generate-missing-build-notes=no to assembler. Allow
536 other note sections for xtensa.
537 * testsuite/ld-elf/property-and-2.d: Likewise.
538 * testsuite/ld-elf/property-and-3.d: Likewise.
539 * testsuite/ld-elf/property-and-4.d: Likewise.
540 * testsuite/ld-elf/property-or-1.d: Likewise.
541 * testsuite/ld-elf/property-or-2.d: Likewise.
542 * testsuite/ld-elf/property-or-3.d: Likewise.
543 * testsuite/ld-elf/property-or-4.d: Likewise.
544
2d95647b
L
5452021-06-18 H.J. Lu <hongjiu.lu@intel.com>
546
547 * ld.texi: Move -z unique-symbol after -z undefs.
548
5a767724
L
5492021-06-18 H.J. Lu <hongjiu.lu@intel.com>
550
551 * testsuite/ld-elf/property-and-1.d: New file.
552 * testsuite/ld-elf/property-and-1.s: Likewise.
553 * testsuite/ld-elf/property-and-2.d: Likewise.
554 * testsuite/ld-elf/property-and-2.s: Likewise.
555 * testsuite/ld-elf/property-and-3.d: Likewise.
556 * testsuite/ld-elf/property-and-3.s: Likewise.
557 * testsuite/ld-elf/property-and-4.d: Likewise.
558 * testsuite/ld-elf/property-and-empty.s: Likewise.
559 * testsuite/ld-elf/property-or-1.d: Likewise.
560 * testsuite/ld-elf/property-or-1.s: Likewise.
561 * testsuite/ld-elf/property-or-2.d: Likewise.
562 * testsuite/ld-elf/property-or-2.s: Likewise.
563 * testsuite/ld-elf/property-or-3.d: Likewise.
564 * testsuite/ld-elf/property-or-3.s: Likewise.
565 * testsuite/ld-elf/property-or-4.d: Likewise.
566 * testsuite/ld-elf/property-or-empty.s: Likewise.
567
e013d20d
L
5682021-06-17 H.J. Lu <hongjiu.lu@intel.com>
569
570 PR ld/27973
571 * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and
572 $NOPIE_CFLAGS to protected-func-1 without PIE.
573
b6b42983
L
5742021-06-17 H.J. Lu <hongjiu.lu@intel.com>
575
576 PR ld/27973
577 * testsuite/ld-x86-64/x86-64.exp: Run protected function tests.
578 * testsuite/ld-x86-64/protected-func-1.h: New file.
579 * testsuite/ld-x86-64/protected-func-1a.s: Likewise.
580 * testsuite/ld-x86-64/protected-func-1b.c: Likewise.
581
d208bc76
FS
5822021-06-17 Fangrui Song <maskray@google.com>
583
584 * ldlex.h (enum option_values): Add OPTION_NO_PIE.
585 * lexsup.c (struct ld_options): Add -no-pie.
586 (parse_args): Handle -no-pie.
587 * ld.texi: Document -no-pie.
588
93df3340
AM
5892021-06-15 Alan Modra <amodra@gmail.com>
590
591 * testsuite/ld-pie/vaddr-0.d: Update expected output.
592
f64b9b13
AM
5932021-06-11 Alan Modra <amodra@gmail.com>
594
595 PR 27952
596 * ldelf.c (ldelf_after_open): Error on input PIEs too.
597
f75bcf7e
NC
5982021-06-09 Nick Clifton <nickc@redhat.com>
599
600 PR 27666
601 * testsuite/ld-sparc/sparc.exp: Do not run the sparctests or
602 sparc64tests for Solaris2 targets.
603
364d7729
AM
6042021-06-03 Alan Modra <amodra@gmail.com>
605
606 PR 2589
607 * ld.texi (link-time runtime library search path): Mention
608 plugin library path. Correct order of search.
609
ef9d2565
NC
6102021-05-31 Nelson Chu <nelson.chu@sifive.com>
611 Lifang Xia <lifang_xia@c-sky.com>
612
613 PR 27566
614 * emultempl/riscvelf.em (after_allocation): Call
615 riscv_set_data_segment_info to set data segment phase before relaxing.
616 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
617 * testsuite/ld-riscv-elf/relro-relax-lui.d: New testcase.
618 * testsuite/ld-riscv-elf/relro-relax-lui.s: Likewise.
619 * testsuite/ld-riscv-elf/relro-relax-pcrel.d: Likewise.
620 * testsuite/ld-riscv-elf/relro-relax-pcrel.s: Likewise.
621
1273b2f8
L
6222021-05-28 H.J. Lu <hongjiu.lu@intel.com>
623
624 PR ld/27905
625 * testsuite/ld-i386/pcrel16-2.d: xfail.
626 * testsuite/ld-x86-64/pcrel16-2.d: Likewise.
627
50c95a73
L
6282021-05-26 H.J. Lu <hongjiu.lu@intel.com>
629
630 PR ld/27905
631 * testsuite/ld-i386/code16.d: New file.
632 * testsuite/ld-i386/code16.t: Likewise.
633 * testsuite/ld-x86-64/code16.d: Likewise.
634 * testsuite/ld-x86-64/code16.t: Likewise.
635 * testsuite/ld-i386/i386.exp: Run code16.
636 * testsuite/ld-x86-64/x86-64.exp: Likewise.
637
983d5689
L
6382021-05-26 H.J. Lu <hongjiu.lu@intel.com>
639
640 * testsuite/ld-x86-64/ilp32-12.d: New file.
641 * testsuite/ld-x86-64/ilp32-12.s: Likewise.
642 * testsuite/ld-x86-64/x86-64.exp: Run ilp32-12.
643
75f03fa7
NC
6442021-05-14 Nelson Chu <nelson.chu@sifive.com>
645
646 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
647 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d: Renamed from
648 pcrel-lo-addend-2.
649 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.s: Likewise.
650 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.d: New testcase.
651 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.s: Likewise.
652
cf893b0e
FS
6532021-05-13 Fangrui Song <maskray@google.com>
654
655 PR 27834
656 * ldlex.h (enum option_values): Add OPTION_NO_SYMBOLIC.
657 * lexsup.c (ld_options): Add -Bno-symbolic.
658 (parse_args): Handle -Bno-symbolic.
659 * ld.texi: Document -Bno-symbolic.
660 * NEWS: Mention -Bno-symbolic.
661 * testsuite/ld-elf/shared.exp: Add a test.
662
84139c58
RE
6632021-05-12 Richard Earnshaw <rearnsha@arm.com>
664
665 * testsuite/ld-arm/arm-elf.exp (farcall test for v8-m.mainline):
666 Correct expected output.
667
4a1ad5c9
RM
6682021-05-11 Roland McGrath <mcgrathr@google.com>
669
670 * testsuite/ld-x86-64/rela.d: Fix regexp not to presume a specific
671 address layout, so it works for e.g. --target=x86-64-elf.
672
22604fe6
NC
6732021-05-11 Nick Clifton <nickc@redhat.com>
674
675 PR 27113
676 * Makefile.am (install-data-local): Also delete libdep.dll.a if it
677 is present.
678 * Makefile.in: Regenerate.
679
5b45e89f
DD
6802021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
681
682 * testsuite/ld-elf/group8a.d: Remove pru from XFAIL list.
683 * testsuite/ld-elf/group8b.d: Ditto.
684 * testsuite/ld-elf/group9a.d: Ditto.
685 * testsuite/ld-elf/group9b.d: Ditto.
686 * testsuite/ld-elf/pr12851.d: Ditto.
687 * testsuite/ld-elf/pr22677.d: Ditto.
688 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove
689 pru from list.
690
261980de
DD
6912021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
692
693 * scripttempl/pru.sc (.resource_table): Add ALIGN directive.
694 Use symbols for memory sizes.
695
cf758b39
MF
6962021-05-08 Mike Frysinger <vapier@gentoo.org>
697
698 * Makefile.am (html-local, doc/ld/index.html): New targets.
699 * Makefile.in: Regenerate.
700
2faf902d
MF
7012021-05-08 Mike Frysinger <vapier@gentoo.org>
702
703 * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
704 * Makefile.in: Regenerate.
705
17c6c3b9
JB
7062021-05-07 Jan Beulich <jbeulich@suse.com>
707
708 * testsuite/ld-x86-64/rela.d: New.
709 * testsuite/ld-x86-64/x86-64.exp: Run new test.
710
d820a652
NC
7112021-05-07 Nick Clifton <nickc@redhat.com>
712
713 * ldelfgen.c (compare_link_order): Ignore section size when
714 performing a relocateable link.
715
70993db3
AM
7162021-05-07 Alan Modra <amodra@gmail.com>
717
718 * ldexp.c (update_definedness): Don't return false for absolute
719 symbols.
720 * ldmain.c (multiple_definition): Print "warning: " in message
721 when not a hard error.
722
973bba91
AM
7232021-05-07 Alan Modra <amodra@gmail.com>
724
725 * testsuite/ld-elf/pr27825-1.d: Correct xfail.
726 * testsuite/ld-elf/pr27825-2.d: Likewise.
727
284a1309
SH
7282021-05-06 Stafford Horne <shorne@gmail.com>
729
730 PR 27746
731 testsuite/ld-or1k/or1k.exp (or1kplttests): Add tests for linking
732 along with gotha() relocations.
733 testsuite/ld-or1k/gotha1.dd: New file.
734 testsuite/ld-or1k/gotha1.s: New file.
735 testsuite/ld-or1k/gotha2.dd: New file.
736 testsuite/ld-or1k/gotha2.s: New file
737 testsuite/ld-or1k/pltlib.s (x): Define size to avoid link
738 failure.
739
ae064303
NA
7402021-05-06 Nick Alcock <nick.alcock@oracle.com>
741
742 * testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt.
743 * testsuite/lib/ld-lib.exp: Likewise.
744 * testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types.
745 * testsuite/ld-ctf/nonrepresentable-2.c: Likewise.
746 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
747 * testsuite/ld-ctf/array.d: Larger type section.
748 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
749 * testsuite/ld-ctf/enums.d: Likewise.
750 * testsuite/ld-ctf/conflicting-enums.d: Don't compare types.
751 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order.
752 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
753 * testsuite/ld-ctf/slice.d: Adjust for improved slice emission.
754
4467df35
L
7552021-05-05 H.J. Lu <hongjiu.lu@intel.com>
756
757 PR ld/27825
758 * testsuite/ld-elf/pr27825-1.d: New file.
759 * testsuite/ld-elf/pr27825-1a.s: Likewise.
760 * testsuite/ld-elf/pr27825-1b.s: Likewise.
761 * testsuite/ld-elf/pr27825-2.d: Likewise.
762 * testsuite/ld-elf/pr27825-2a.s: Likewise.
763 * testsuite/ld-elf/pr27825-2b.s: Likewise.
764
13ffdac3
AM
7652021-05-05 Alan Modra <amodra@gmail.com>
766
767 * testsuite/ld-powerpc/empty.s: New file.
768 * testsuite/ld-powerpc/undefweak.d,
769 * testsuite/ld-powerpc/undefweak.s: New testcase.
770 * testsuite/ld-powerpc/powerpc.exp: Run it.
771
df6fbc21
AM
7722021-05-03 Alan Modra <amodra@gmail.com>
773
774 * testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
775 named section symbols.
776
24aebc79
NC
7772021-04-28 Nick Clifton <nickc@redhat.com>
778
779 * testsuite/ld-elf/anno-sym.s: New test source file.
780 * testsuite/ld-elf/anno-sym.d: New test driver.
781 * testsuite/ld-elf/anno-sym.l: New test error output.
782
a7664973
JB
7832021-04-26 Jan Beulich <jbeulich@suse.com>
784
785 * testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d,
786 testsuite/ld-x86-64/pcrel16-2.d: New.
787 * testsuite/ld-i386/i386.exp: Run new test.
788 * testsuite/ld-x86-64/x86-64.exp: Likewise.
789
69cc1945
L
7902021-04-23 H.J. Lu <hongjiu.lu@intel.com>
791
792 PR ld/27771
793 * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
794 to tmpdir/ldscripts only if it doesn't exist.
795
d018cd83
JB
7962021-04-22 Jan Beulich <jbeulich@suse.com>
797
798 PR ld/26659
799 * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
800
23356397
NC
8012021-04-21 Nick Clifton <nickc@redhat.com>
802
803 * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
804 to allow for named section symbols.
805 * testsuite/ld-aarch64/variant_pcs-r.d: Likewise.
806 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
807 * testsuite/ld-alpha/tlsbin.rd: Likewise.
808 * testsuite/ld-alpha/tlsbinr.rd: Likewise.
809 * testsuite/ld-alpha/tlspic.rd: Likewise.
810 * testsuite/ld-arm/rodata-merge-map.sym: Likewise.
811 * testsuite/ld-arm/script-type.sym: Likewise.
812 * testsuite/ld-cris/libdso-2.d: Likewise.
813 * testsuite/ld-cris/pr16044.d: Likewise.
814 * testsuite/ld-elf/sec64k.exp: Likewise.
815 * testsuite/ld-ia64/tlsbin.rd: Likewise.
816 * testsuite/ld-ia64/tlspic.rd: Likewise.
817 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
818 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
819 * testsuite/ld-mmix/bspec1.d: Likewise.
820 * testsuite/ld-mmix/bspec2.d: Likewise.
821 * testsuite/ld-mmix/local1.d: Likewise.
822 * testsuite/ld-mmix/local3.d: Likewise.
823 * testsuite/ld-mmix/local5.d: Likewise.
824 * testsuite/ld-mmix/local7.d: Likewise.
825 * testsuite/ld-mmix/undef-3.d: Likewise.
826 * testsuite/ld-powerpc/tlsso.r: Likewise.
827 * testsuite/ld-powerpc/tlsso32.r: Likewise.
828 * testsuite/ld-powerpc/tlstocso.r: Likewise.
829 * testsuite/ld-s390/tlsbin.rd: Likewise.
830 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
831 * testsuite/ld-s390/tlspic.rd: Likewise.
832 * testsuite/ld-s390/tlspic_64.rd: Likewise.
833 * testsuite/ld-sparc/gotop32.rd: Likewise.
834 * testsuite/ld-sparc/gotop64.rd: Likewise.
835 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
836 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
837 * testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
838 * testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
839 * testsuite/ld-sparc/tlssunpic32.rd: Likewise.
840 * testsuite/ld-sparc/tlssunpic64.rd: Likewise.
841 * testsuite/ld-tic6x/common.d: Likewise.
842 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
843 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
844 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
845 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
846 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
847 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
848 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
849 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
850 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
851 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
852 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
853 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
854 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
855
c5df7e44
CC
8562021-04-20 Clément Chigot <clement.chigot@atos.net>
857
858 PR binutils/21700
859 * testsuite/ld-powerpc/aix52.exp: Add new test.
860 * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
861 * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
862 * testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
863 * testsuite/ld-powerpc/aix-neg-reloc.s: New test.
864
6418520e
NC
8652021-04-13 Nick Clifton <nickc@redhat.com>
866
867 * ld.texi (Options): Add note about the effect of --as-needed on
868 the --rpath and --rpath-link options on Linux based systems.
869
1cfc6f00
AM
8702021-04-13 Alan Modra <amodra@gmail.com>
871
872 PR 27722
873 * libdep_plugin.c (str2vec): Don't pass a potentially signed char
874 to isspace.
875
43e05cd4
AM
8762021-04-12 Alan Modra <amodra@gmail.com>
877
878 * configure.ac (--enable-checking): Add support.
879 * config.in: Regenerate.
880 * configure: Regenerate.
881
2cc15b10
AM
8822021-04-12 Alan Modra <amodra@gmail.com>
883
884 * emultempl/mipself.em (mips_create_output_section_statements):
885 Pass base type of hash table to is_elf_hash_table.
886 * ldelf.c (ldelf_after_open): Likewise.
887
fc304b88
AM
8882021-04-12 Alan Modra <amodra@gmail.com>
889
890 PR 27719
891 * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
892 the symbol hash table is the correct type before accessing
893 elf_link_hash_entry symbols.
894 * plugin.c (is_visible_from_outside): Likewise.
895 * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
896 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
897
c3f72de4
AM
8982021-04-09 Alan Modra <amodra@gmail.com>
899
900 * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
901 * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
902 * testsuite/ld-powerpc/notoc2.d: Likewise.
903 * testsuite/ld-powerpc/notoc3.d: Likewise.
904 * testsuite/ld-powerpc/pcrelopt.d: Likewise.
905 * testsuite/ld-powerpc/startstop.d: Likewise.
906 * testsuite/ld-powerpc/tlsget.d: Likewise.
907 * testsuite/ld-powerpc/tlsget2.d: Likewise.
908 * testsuite/ld-powerpc/tlsld.d: Likewise.
909 * testsuite/ld-powerpc/weak1.d: Likewise.
910 * testsuite/ld-powerpc/weak1so.d: Likewise.
911
bd3d1480
JB
9122021-04-06 Jan Beulich <jbeulich@suse.com>
913
914 * pe-dll.c (generate_reloc): Bail immediately when .reloc is
915 being discarded. Warn when relocated entry is above .reloc.
916
c774eab1
AM
9172021-04-05 Alan Modra <amodra@gmail.com>
918
919 * configure.ac: Move initfini-array arg handling earlier. Don't
920 check for string.h, strings.h, stdlib.h, or locale.h. Do check
921 for inttypes.h, stdint.h, sys/types.h. Don't check for
922 setlocale, free, getev or strstr.
923 (AC_ISC_POSIX): Don't invoke.
924 * sysdep.h: Include string.h and stdlib.h unconditionally. Test
925 HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and
926 getenv fallback declarations.
927 * ld.h: Don't test HAVE_LOCALE_H.
928 * ldmain.c: Don't test HAVE_SETLOCALE.
929 * config.in: Regenerate.
930 * configure: Regenerate.
931
74edb473
TC
9322021-04-01 Tamar Christina <tamar.christina@arm.com>
933
934 PR ld/26659
935 * testsuite/ld-pe/pe.exp: Add test.
936 * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
937 * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
938
e9b095a5
ML
9392021-04-01 Martin Liska <mliska@suse.cz>
940
941 * ldbuildid.c (strneq): Remove strneq and use startswith.
942 (validate_build_id_style): Likewise.
943 (compute_build_id_size): Likewise.
944
f38a2680
AM
9452021-03-31 Alan Modra <amodra@gmail.com>
946
947 * sysdep.h (POISON_BFD_BOOLEAN): Define.
948 * configure.ac (elf_list_options, elf_shlib_list_options=false),
949 (elf_plt_unwind_list_options=false): Replace FALSE with false,
950 and TRUE with true.
951 * emulparams/call_nop.sh, * emulparams/cet.sh,
952 * emulparams/dynamic_undefined_weak.sh,
953 * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
954 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
955 * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
956 * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
957 * emulparams/reloc_overflow.sh, * emulparams/static.sh,
958 * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
959 * emultempl/aix.em, * emultempl/alphaelf.em,
960 * emultempl/armcoff.em, * emultempl/armelf.em,
961 * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
962 * emultempl/cr16elf.em, * emultempl/crxelf.em,
963 * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
964 * emultempl/hppaelf.em, * emultempl/linux.em,
965 * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
966 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
967 * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
968 * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
969 * emultempl/pep.em, * emultempl/ppc32elf.em,
970 * emultempl/ppc64elf.em, * emultempl/rxelf.em,
971 * emultempl/rxlinux.em, * emultempl/scoreelf.em,
972 * emultempl/solaris2.em, * emultempl/spuelf.em,
973 * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
974 * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
975 * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
976 * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
977 * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
978 * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
979 * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
980 * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
981 * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
982 bfd_boolean with bool, FALSE with false, and TRUE with true.
983 * configure: Regenerate.
984
3dfb1b6d
AM
9852021-03-31 Alan Modra <amodra@gmail.com>
986
987 * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
988 * emultempl/nds32elf.em: Likewise.
989 * testsuite/ld-elf/mbind2b.c: Likewise.
990 * testsuite/ld-elf/pr18718.c: Likewise.
991 * testsuite/ld-elf/pr18720a.c: Likewise.
992 * testsuite/ld-elf/pr25749-1.c: Likewise.
993 * testsuite/ld-elf/pr25749-1a.c: Likewise.
994 * testsuite/ld-elf/pr25749-1b.c: Likewise.
995 * testsuite/ld-elf/pr25749-1c.c: Likewise.
996 * testsuite/ld-elf/pr25749-1d.c: Likewise.
997 * testsuite/ld-elf/pr25749-2.c: Likewise.
998 * testsuite/ld-elf/pr25754-1a.c: Likewise.
999 * testsuite/ld-elf/pr25754-2a.c: Likewise.
1000 * testsuite/ld-elf/pr25754-3a.c: Likewise.
1001 * testsuite/ld-elf/pr25754-4a.c: Likewise.
1002 * testsuite/ld-elf/pr25754-5a.c: Likewise.
1003 * testsuite/ld-elf/pr25754-6a.c: Likewise.
1004
63b4cc53
AM
10052021-03-29 Alan Modra <amodra@gmail.com>
1006
1007 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
1008 boolean expression.
1009 * lexsup.c (parse_args): Likewise.
1010 * pe-dll.c (pe_dll_id_target): Likewise.
1011
8592be8c
NA
10122021-03-25 Nick Alcock <nick.alcock@oracle.com>
1013
1014 * testsuite/ld-ctf/array.d: Only check that the data object
1015 section is nonempty: do not check its exact size.
1016 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1017 * testsuite/ld-ctf/slice.d: Likewise.
1018 * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
1019 func info section too.
1020 * testsuite/ld-ctf/function.d: Likewise, for the func info section.
1021
08dedd66
ML
10222021-03-22 Martin Liska <mliska@suse.cz>
1023
1024 * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
1025 * emultempl/beos.em: Likewise.
1026 * emultempl/elf.em: Likewise.
1027 * emultempl/pe.em: Likewise.
1028 * emultempl/pep.em: Likewise.
1029 * emultempl/xtensaelf.em: Likewise.
1030 * ldctor.c (ctor_prio): Likewise.
1031 * ldelf.c (ldelf_try_needed): Likewise.
1032 (ldelf_parse_ld_so_conf): Likewise.
1033 (ldelf_after_open): Likewise.
1034 (output_rel_find): Likewise.
1035 (ldelf_place_orphan): Likewise.
1036 * ldfile.c (ldfile_add_library_path): Likewise.
1037 * ldlang.c (lang_add_input_file): Likewise.
1038 * ldmain.c (get_sysroot): Likewise.
1039 (get_emulation): Likewise.
1040 (add_archive_element): Likewise.
1041 * ldwrite.c (unsplittable_name): Likewise.
1042 (clone_section): Likewise.
1043 * lexsup.c (parse_args): Likewise.
1044 * pe-dll.c (is_import): Likewise.
1045 (pe_implied_import_dll): Likewise.
1046
1de96e5d
L
10472021-03-19 H.J. Lu <hongjiu.lu@intel.com>
1048
1049 PR ld/27590
1050 * testsuite/ld-x86-64/pr27590.rd: New file.
1051 * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
1052 * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
1053 * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
1054
15407e7e
AM
10552021-03-20 Alan Modra <amodra@gmail.com>
1056
1057 PR 27590
1058 * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
1059 for all sections except .stabstr.
1060
fba7f753
AM
10612021-03-19 Alan Modra <amodra@gmail.com>
1062
1063 PR 27590
1064 * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
1065 R_MIPS_NONE.
1066 * testsuite/ld-elf/pr27590b.d: Likewise.
1067
3818d4ab
L
10682021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1069
1070 PR ld/27590
1071 * testsuite/ld-elf/pr27590.s: New file.
1072 * testsuite/ld-elf/pr27590a.d: Likewise.
1073 * testsuite/ld-elf/pr27590b.d: Likewise.
1074 * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
1075 --reduce-memory-overheads.
1076
51f6e7a9
L
10772021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1078
1079 PR ld/27587
1080 * testsuite/ld-x86-64/pr27587.err: New file.
1081 * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
1082 * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
1083 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
1084
69a28486
NA
10852021-03-18 Nick Alcock <nick.alcock@oracle.com>
1086
1087 * testsuite/ld-ctf/slice.c: Check slices of enums too.
1088 * testsuite/ld-ctf/slice.d: Results adjusted.
1089
ee42883c
NC
10902021-03-16 Nick Clifton <nickc@redhat.com>
1091
1092 * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
1093 lname string.
1094
c68b1842
JB
10952021-03-15 Jan Beulich <jbeulich@suse.com>
1096
1097 * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
1098
203a206d
AM
10992021-03-12 Alan Modra <amodra@gmail.com>
1100
1101 * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
1102 (ALL_64_EMULATION_SOURCES): ..here.
1103 * Makefile.in: Regenerate.
1104
1b2cb8e2
CC
11052021-03-12 Clément Chigot <clement.chigot@atos.net>
1106
1107 * emultempl/aix.em: Ensure .tdata section is removed
1108 if empty, even with -r flag.
1109 * scripttempl/aix.sc: Handle TLS sections.
1110 * testsuite/ld-powerpc/aix52.exp: Add new tests.
1111 * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
1112 * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
1113 * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
1114 * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
1115 * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
1116 * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
1117 * testsuite/ld-powerpc/aix-tls-section.ex: New test.
1118 * testsuite/ld-powerpc/aix-tls-section.s: New test.
1119
4a403be0
CC
11202021-03-12 Clément Chigot <clement.chigot@atos.net>
1121
1122 * scripttempl/aix.sc: Add .te to .data section.
1123 * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
1124 Add aix-largetoc-1 test.
1125 * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
1126 * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
1127 * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
1128 * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
1129
68cb2183
AM
11302021-03-12 Alan Modra <amodra@gmail.com>
1131
1132 * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
1133 arrange to define __main for some run_dump_test tests.
1134 * testsuite/ld-gc/pr13683.d: Accept more symbols.
1135 * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
1136 * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
1137 * testsuite/ld-srec/srec.exp: Likewise.
1138 * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
1139
ebdcad3f
NC
11402021-03-11 Nelson Chu <nelson.chu@sifive.com>
1141
1142 * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
1143 many times if riscv_restart_relax_sections returns TRUE.
1144 * testsuite/ld-riscv-elf/restart-relax.d: New testcase. Before
1145 applying this patch, the call won't be relaxed to jal; But now we
1146 have more chances to do relaxations.
1147 * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
1148 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
1149
67b0f684
JB
11502021-03-10 Jan Beulich <jbeulich@suse.com>
1151
1152 * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
1153 than 32 set bits.
1154 * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
1155 comment.
1156 * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
1157
5dc75cf3
JB
11582021-03-09 Jan Beulich <jbeulich@suse.com>
1159
1160 * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
1161 alignment to 4k.
1162 * testsuite/ld-pe/reloc.d: xfail for mcore.
1163
87fa7d56
JB
11642021-03-09 Jan Beulich <jbeulich@suse.com>
1165
1166 * testsuite/ld-scripts/alignof.exp,
1167 testsuite/ld-scripts/data.exp,
1168 testsuite/ld-scripts/default-script.exp,
1169 testsuite/ld-scripts/log2.exp,
1170 testsuite/ld-scripts/print-memory-usage.exp,
1171 testsuite/ld-scripts/sizeof.exp,
1172 testsuite/ld-undefined/weak-undef.exp: Set image base to zero
1173 for PE/COFF.
1174 * testsuite/ld-scripts/default-script1.d,
1175 testsuite/ld-scripts/default-script2.d,
1176 testsuite/ld-scripts/default-script3.d,
1177 testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
1178
8c0546e9
L
11792021-03-05 H.J. Lu <hongjiu.lu@intel.com>
1180
1181 PR ld/27425
1182 PR ld/27432
1183 * ldelf.c (ldelf_set_output_arch): New function.
1184 * ldelf.h (ldelf_set_output_arch): New prototype.
1185 * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
1186 ldelf_set_output_arch.
1187 * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
1188 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1189 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1190 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1191 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1192 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1193 * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
1194 * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
1195 * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
1196
d4e5db4e
JB
11972021-03-04 Jan Beulich <jbeulich@suse.com>
1198
1199 * testsuite/ld-scripts/map-address.exp: Set image base to zero
1200 for PE/COFF.
1201 * testsuite/ld-scripts/map-address.t: Place .text.
1202
6fa7408d
JB
12032021-03-04 Jan Beulich <jbeulich@suse.com>
1204
1205 * ldexp.c (ldexp_is_final_sym_absolute): New.
1206 * ldexp.h (ldexp_is_final_sym_absolute): Declare.
1207 * pe-dll.c (generate_reloc): Skip absolute symbols.
1208 * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
1209 * testsuite/ld-pe/pe.exp: Run new test.
1210
5789f845
AM
12112021-03-03 Alan Modra <amodra@gmail.com>
1212
1213 PR 27500
1214 * ldlang.c (insert_undefined): Don't mark symbols here.
1215 (lang_mark_undefineds): Do so here instead, new function.
1216 (lang_process): Call lang_mark_undefineds.
1217 * testsuite/ld-gc/start3.d,
1218 * testsuite/ld-gc/start3.s: New test.
1219 * testsuite/ld-gc/start4.d,
1220 * testsuite/ld-gc/start4.s: New test.
1221 * testsuite/ld-gc/gc.exp: Run them.
1222
270f32fc
AM
12232021-03-03 Alan Modra <amodra@gmail.com>
1224
1225 * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
1226 Move tests with ELF section directives to is_elf_format block.
1227 * testsuite/ld-gc/abi-note.d: Run on more targets.
1228 * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
1229 * testsuite/ld-gc/start.d: Likewise.
1230 * testsuite/ld-gc/start2.d: Likewise.
1231 * testsuite/ld-gc/stop.d: Likewise.
1232 * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
1233 * testsuite/ld-gc/start.s: Likewise.
1234 * testsuite/ld-gc/start2.s: Likewise.
1235
211bcd01
NA
12362021-03-02 Nick Alcock <nick.alcock@oracle.com>
1237
1238 * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
1239
b80e421f
AM
12402021-03-02 Alan Modra <amodra@gmail.com>
1241
1242 * testsuite/ld-powerpc/startstop.d,
1243 * testsuite/ld-powerpc/startstop.r,
1244 * testsuite/ld-powerpc/startstop.s: New test.
1245 * testsuite/ld-powerpc/powerpc.exp: Run it.
1246
f5b9c288
AM
12472021-03-02 Alan Modra <amodra@gmail.com>
1248
1249 * testsuite/ld-powerpc/weak1.d,
1250 * testsuite/ld-powerpc/weak1.r,
1251 * testsuite/ld-powerpc/weak1.s,
1252 * testsuite/ld-powerpc/weak1so.d,
1253 * testsuite/ld-powerpc/weak1so.r: New tests.
1254 * testsuite/ld-powerpc/powerpc.exp: Run them.
1255
ba6eb62f
NC
12562021-03-01 Hannes Domani <ssbssa@sourceware.org>
1257 Nick Clifton <nickc@redhat.com>
1258
1259 PR 27268
1260 * scripttempl/pe.sc: Add DWARF-5 section names.
1261 * scripttempl/pep.sc: Likewise.
1262
8ee10e86
AM
12632021-03-01 Alan Modra <amodra@gmail.com>
1264 Fangrui Song <maskray@google.com>
1265
1266 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
1267 * lexsup.c (elf_static_list_options): Display help for them. Move
1268 help for -z stack-size to here from elf_shlib_list_options. Add
1269 help for -z start-stop-visibility and -z undefs.
1270 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
1271 * NEWS: Mention -z start-stop-gc.
1272 * testsuite/ld-gc/start2.s,
1273 * testsuite/ld-gc/start2.d: New test.
1274 * testsuite/ld-gc/gc.exp: Run it.
1275
7824c1d2
AM
12762021-03-01 Alan Modra <amodra@gmail.com>
1277
1278 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
1279 symbols undefweak if that was how they were referenced. Undo
1280 dynamic state too.
1281
6a1224ec
AM
12822021-03-01 Alan Modra <amodra@gmail.com>
1283
1284 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
1285 * testsuite/ld-elf/pr27128a.d: Likewise.
1286 * testsuite/ld-elf/pr27128b.d: Likewise.
1287 * testsuite/ld-elf/pr27128c.d: Likewise.
1288 * testsuite/ld-elf/pr27128d.d: Likewise.
1289 * testsuite/ld-elf/pr27128e.d: Likewise.
1290
bfece756
AM
12912021-02-26 Alan Modra <amodra@gmail.com>
1292
1293 PR 27441
1294 * testsuite/ld-plugin/pr27441a.c,
1295 * testsuite/ld-plugin/pr27441b.c,
1296 * testsuite/ld-plugin/pr27441c.c,
1297 * testsuite/ld-plugin/pr27441c.d: New test.
1298 * testsuite/ld-plugin/lto.exp: Run it.
1299
3c27360b
JB
13002021-02-25 Jan Beulich <jbeulich@suse.com>
1301
1302 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
1303
89753bbf
AM
13042021-02-21 Alan Modra <amodra@gmail.com>
1305
1306 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
1307 defined in an object file.
1308 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
1309 * testsuite/ld-scripts/defined5.d: Expect a warning.
1310
2f973f13
AM
13112021-02-19 Alan Modra <amodra@gmail.com>
1312
1313 * testsuite/lib/ld-lib.exp: Whitespace.
1314 (load_common_lib): Expand single use and delete this proc.
1315 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
1316 Use -B for clang too.
1317
a364a116
AB
13182021-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
1319
1320 * testplugin.c (record_read_length): Remove debug fprintf.
1321
5b1f6c95
AM
13222021-02-14 Alan Modra <amodra@gmail.com>
1323
1324 * testsuite/ld-cdtest/cdtest.exp,
1325 * testsuite/ld-checks/checks.exp,
1326 * testsuite/ld-elf/binutils.exp,
1327 * testsuite/ld-elf/compress.exp,
1328 * testsuite/ld-elf/dwarf.exp,
1329 * testsuite/ld-elf/exclude.exp,
1330 * testsuite/ld-elf/frame.exp,
1331 * testsuite/ld-elf/indirect.exp,
1332 * testsuite/ld-elf/linux-x86.exp,
1333 * testsuite/ld-elf/sec-to-seg.exp,
1334 * testsuite/ld-elf/tls_common.exp,
1335 * testsuite/ld-elfcomm/elfcomm.exp,
1336 * testsuite/ld-elfvers/vers.exp,
1337 * testsuite/ld-elfvsb/elfvsb.exp,
1338 * testsuite/ld-elfweak/elfweak.exp,
1339 * testsuite/ld-ifunc/binutils.exp,
1340 * testsuite/ld-mips-elf/mips-elf-flags.exp,
1341 * testsuite/ld-misc/defsym.exp,
1342 * testsuite/ld-mn10300/mn10300.exp,
1343 * testsuite/ld-plugin/lto.exp,
1344 * testsuite/ld-plugin/plugin.exp,
1345 * testsuite/ld-scripts/align.exp,
1346 * testsuite/ld-scripts/assert.exp,
1347 * testsuite/ld-scripts/crossref.exp,
1348 * testsuite/ld-scripts/defined.exp,
1349 * testsuite/ld-scripts/extern.exp,
1350 * testsuite/ld-scripts/log2.exp,
1351 * testsuite/ld-scripts/map-address.exp,
1352 * testsuite/ld-scripts/phdrs.exp,
1353 * testsuite/ld-scripts/phdrs2.exp,
1354 * testsuite/ld-scripts/script.exp,
1355 * testsuite/ld-scripts/section-flags.exp,
1356 * testsuite/ld-scripts/sizeof.exp,
1357 * testsuite/ld-scripts/weak.exp,
1358 * testsuite/ld-selective/selective.exp,
1359 * testsuite/ld-sh/sh.exp,
1360 * testsuite/ld-shared/shared.exp,
1361 * testsuite/ld-srec/srec.exp,
1362 * testsuite/ld-tic6x/tic6x.exp,
1363 * testsuite/ld-undefined/undefined.exp,
1364 * testsuite/ld-undefined/weak-undef.exp,
1365 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
1366 perror. Instead report "unsupported" or "fail".
1367
c46b7066
NC
13682021-02-12 Nick Clifton <nickc@redhat.com>
1369
1370 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
1371 following debug links.
1372
933feaf3
AM
13732021-02-11 Alan Modra <amodra@gmail.com>
1374
1375 * NEWS: Mention arm-symbianelf removal.
1376
a57d1773
AM
13772021-02-09 Alan Modra <amodra@gmail.com>
1378
1379 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
1380 Don't include symbian dep file.
1381 * configure.tgt: Remove arm*-*-symbianelf* entry.
1382 * emulparams/armsymbian.sh: Delete.
1383 * ld.texi: Don't mention symbian.
1384 * scripttempl/armbpabi.sc: Delete.
1385 * testsuite/ld-arm/symbian-seg1.d: Delete.
1386 * testsuite/ld-arm/symbian-seg1.s: Delete.
1387 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
1388 * Makefile.in: Regenerate.
1389 * po/BLD-POTFILES.in: Regenerate.
1390
38a143aa
L
13912021-02-07 H.J. Lu <hongjiu.lu@intel.com>
1392
1393 PR ld/27358
1394 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
1395 tests.
1396 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1397
35a01a04
NA
13982021-01-26 Nick Alcock <nick.alcock@oracle.com>
1399
1400 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
1401 when appropriate.
1402
1a2f1b54
L
14032021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1404
1405 PR ld/19609
1406 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
1407 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
1408 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
1409 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
1410 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
1411 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
1412 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
1413
37707bd8
L
14142021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1415
1416 PR ld/15146
1417 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
1418 * testsuite/ld-plugin/pr15146.d: Restored.
1419 * testsuite/ld-plugin/pr15146a.c: Likewise.
1420 * testsuite/ld-plugin/pr15146b.c: Likewise.
1421 * testsuite/ld-plugin/pr15146c.c: Likewise.
1422 * testsuite/ld-plugin/pr15146d.c: Likewise.
1423
7d409ac0
AM
14242021-02-04 Alan Modra <amodra@gmail.com>
1425
1426 * testsuite/ld-plugin/pr27311d.c: New test.
1427 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
1428 and link new test as pr27311-2.
1429
69551367
AM
14302021-02-03 Alan Modra <amodra@gmail.com>
1431
1432 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
1433 Link with --as-needed.
1434
9918bff7
AM
14352021-02-02 Alan Modra <amodra@gmail.com>
1436
1437 * testsuite/ld-plugin/pr27311.d,
1438 * testsuite/ld-plugin/pr27311.ver,
1439 * testsuite/ld-plugin/pr27311a.c,
1440 * testsuite/ld-plugin/pr27311b.c,
1441 * testsuite/ld-plugin/pr27311c.c: New testcase.
1442 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
1443 PR12982 entries.
1444
1f568f9a
EH
14452021-02-01 Emery Hemingway <ehmry@posteo.net>
1446
1447 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1448
fb6c220e
AM
14492021-02-01 Alan Modra <amodra@gmail.com>
1450
1451 * ldgram.y (defsym_expr): Use assignment rule.
1452 * ldlex.h (ldlex_defsym): Delete.
1453 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
1454
40726f16
AM
14552021-02-01 Alan Modra <amodra@gmail.com>
1456
1457 * ldgram.y (section): Call ldlex_backup. Remove empty action.
1458 * ldlex.h (ldlex_backup): Declare.
1459 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
1460 chars, use SYMBOLNAMECHAR.
1461 (ldlex_backup): New function.
1462
a5f92c67
AM
14632021-02-01 Alan Modra <amodra@gmail.com>
1464
1465 * ldgram.y: Whitespace fixes.
1466
49daa38f
AM
14672021-02-01 Alan Modra <amodra@gmail.com>
1468
1469 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
1470
c4566785
AM
14712021-01-29 Alan Modra <amodra@gmail.com>
1472
1473 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
1474
53e556e5
L
14752021-01-28 H.J. Lu <hongjiu.lu@intel.com>
1476
1477 PR ld/27259
1478 * testsuite/ld-elf/pr27259.d: New file.
1479 * testsuite/ld-elf/pr27259.s: Likewise.
1480
def97fb9
AM
14812021-01-28 Alan Modra <amodra@gmail.com>
1482
1483 PR 27259
1484 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
1485 prevent endless looping of linked-to sections.
1486
2eda57ef
L
14872021-01-26 H.J. Lu <hongjiu.lu@intel.com>
1488
1489 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
1490
1c9c9b9b
AM
14912021-01-26 Alan Modra <amodra@gmail.com>
1492
1493 PR 27226
1494 * emulparams/alphavms.sh: Don't set COMPILE_IN.
1495 * emulparams/elf64_ia64_vms.sh: Likewise.
1496 * emulparams/elf64mmix.sh: Likewise.
1497 * emulparams/elf_iamcu.sh: Likewise.
1498 * emulparams/elf_k1om.sh: Likewise.
1499 * emulparams/elf_l1om.sh: Likewise.
1500 * emulparams/mmo.sh: Likewise.
1501 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
1502 * scripttempl/pdp11.sc: Use it.
1503 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
1504 instead use .xe script. Support scripts from file system.
1505 * emultempl/beos.em: Support scripts from file system.
1506 * emultempl/pe.em: Likewise.
1507 * emultempl/pep.em: Likewise.
1508 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
1509
9e42b976
FS
15102021-01-25 Fangrui Song <maskray@google.com>
1511
1512 PR ld/27230
1513 * scripttempl/DWARF.sc: Add .debug_* sections.
1514
b8df6900
NC
15152021-01-25 Nick Clifton <nickc@redhat.com>
1516
1517 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
1518 .debug_line_str and .debug_str_offsets. Move .debug_macro and
1519 .debug_addr into DWARF-5 section.
1520
c78eec44
AM
15212021-01-21 Alan Modra <amodra@gmail.com>
1522
1523 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
1524
4bd7c902
AM
15252021-01-20 Alan Modra <amodra@gmail.com>
1526
1527 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
1528 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
1529 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
1530 * testsuite/ld-powerpc/tlsget.wf: Likewise.
1531 * testsuite/ld-powerpc/tlsget2.d: Likewise.
1532 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
1533 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
1534 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
1535 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
1536 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
1537 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
1538 * testsuite/ld-powerpc/tlsexers.r: Likewise.
1539 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
1540 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
1541 * testsuite/ld-powerpc/tlsso.r: Likewise.
1542 * testsuite/ld-powerpc/tlsso32.r: Likewise.
1543 * testsuite/ld-powerpc/tlstocso.r: Likewise.
1544
c98de297
NA
15452021-01-19 Nick Alcock <nick.alcock@oracle.com>
1546
1547 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
1548 symbols by the optimizer.
1549 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
1550
85e963f1
NC
15512021-01-19 Nelson Chu <nelson.chu@sifive.com>
1552
1553 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
1554 if target is riscv little endian. Otherwise, return false.
1555 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
1556 targets by [riscv_little_endian].
1557
326adec3
AM
15582021-01-18 Alan Modra <amodra@gmail.com>
1559
1560 PR 26378
1561 * ldlang.c (map_input_to_output_sections): Start with a read-only
1562 section for data statements.
1563 * testsuite/ld-elf/size-2.d: Adjust to suit.
1564
994b2513
L
15652021-01-17 H.J. Lu <hongjiu.lu@intel.com>
1566
1567 PR ld/27193
1568 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
1569 * testsuite/ld-i386/pr27193.dd: New file.
1570 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
1571 * testsuite/ld-i386/pr27193b.s: Likewise.
1572
edf0f284
L
15732021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1574
1575 PR binutils/23460
1576 * testsuite/ld-plugin/lto.exp: Increase the max number of open
1577 files to 20 for PR binutils/23460 test.
1578
75a933f3
L
15792021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1580
1581 PR ld/23169
1582 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
1583 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
1584 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
1585 address.
1586
68b00778
L
15872021-01-15 H.J. Lu <hongjiu.lu@intel.com>
1588
1589 * NEWS: Mention -z report-relative-reloc.
1590 * ld.texi: Document -z report-relative-reloc.
1591 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
1592 * emulparams/elf_i386.sh: Likewse.
1593 * emulparams/elf_x86_64.sh: Likewse.
1594 * emulparams/x86-report-relative.sh: New file.
1595 * testsuite/ld-i386/report-reloc-1.d: Likewse.
1596 * testsuite/ld-i386/report-reloc-1.l: Likewse.
1597 * testsuite/ld-i386/report-reloc-1.s: Likewse.
1598 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
1599 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
1600 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
1601 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
1602 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
1603 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
1604 report-reloc-1-x32.
1605
eb6e6af8
AM
16062021-01-16 Alan Modra <amodra@gmail.com>
1607
1608 PR 26002
1609 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
1610 unversioned symbols.
1611 * testsuite/ld-elfvers/vers16.dsym: Likewise.
1612
b800637e
NC
16132021-01-15 Nelson Chu <nelson.chu@sifive.com>
1614
1615 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
1616 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
1617 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
1618 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
1619 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
1620 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
1621
5a10699f
NC
16222021-01-14 Nick Clifton <nickc@redhat.com>
1623
1624 * po/fr.po: Updated French translation.
1625
271bea6a
MF
16262021-01-14 Mike Frysinger <vapier@gentoo.org>
1627
1628 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
1629
4120e488
AM
16302021-01-14 Alan Modra <amodra@gmail.com>
1631
1632 PR 27160
1633 * ldelfgen.c (compare_link_order): Protect access of ELF section
1634 data.
1635 (add_link_order_input_section): Remove redundant NULL check.
1636 Use bfd_get_flavour.
1637 (ldelf_map_segments): Use bfd_get_flavour.
1638
b634d11d
L
16392021-01-13 H.J. Lu <hongjiu.lu@intel.com>
1640
1641 * ldelfgen.c (add_link_order_input_section): Check for ELF input
1642 before accessing ELF section data.
1643
5347ed60
AM
16442021-01-13 Alan Modra <amodra@gmail.com>
1645
1646 * Makefile.in: Regenerate.
1647
b209b5a6
AM
16482021-01-13 Alan Modra <amodra@gmail.com>
1649
1650 PR 27160
1651 * ldlang.h (lang_output_section_statement_type): Add data field.
1652 (lang_input_section_type, lang_section_bst_type): Add pattern field.
1653 (statement_list): Declare.
1654 (lang_add_section): Adjust prototype.
1655 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
1656 * emultempl/armelf.em: Likewise.
1657 * emultempl/beos.em: Likewise.
1658 * emultempl/cskyelf.em: Likewise.
1659 * emultempl/hppaelf.em: Likewise.
1660 * emultempl/m68hc1xelf.em: Likewise.
1661 * emultempl/metagelf.em: Likewise.
1662 * emultempl/mipself.em: Likewise.
1663 * emultempl/mmo.em: Likewise.
1664 * emultempl/msp430.em: Likewise.
1665 * emultempl/nios2elf.em: Likewise.
1666 * emultempl/pe.em: Likewise.
1667 * emultempl/pep.em: Likewise.
1668 * emultempl/ppc64elf.em: Likewise.
1669 * emultempl/spuelf.em: Likewise.
1670 * emultempl/vms.em: Likewise.
1671 * ldelf.c: Likewise.
1672 * ldelfgen.c: Include ldctor.h.
1673 (struct os_sections): New.
1674 (add_link_order_input_section, link_order_scan): New functions.
1675 (compare_link_order, fixup_link_order): New functions.
1676 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
1677 * ldlang.c (statement_list): Make global.
1678 (output_section_callback_fast): Save pattern in tree node.
1679 (lang_add_section): Add pattern parameter, save in lang_input_section.
1680 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
1681 (lang_insert_orphan, output_section_callback): Likewise.
1682 (ldlang_place_orphan): Likewise.
1683 (gc_section_callback): Don't set section->pattern.
1684 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
1685 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1686 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
1687
8c4645b4
AM
16882021-01-13 Alan Modra <amodra@gmail.com>
1689
1690 * ldlang.h (callback_t): Remove flag_info function parameter.
1691 * ldlang.c (walk_wild_consider_section): Adjust to suit.
1692 (walk_wild_section_general): Likewise.
1693 (output_section_callback_fast, output_section_callback): Likewise.
1694 (check_section_callback, gc_section_callback): Likewise.
1695 (find_relro_section_callback): Likewise.
1696
d546b610
L
16972021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1698
1699 PR binutils/26792
1700 * configure.ac: Use GNU_MAKE_JOBSERVER.
1701 * aclocal.m4: Regenerated.
1702 * configure: Likewise.
1703
c2e9a4a3
L
17042021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1705
1706 PR ld/27171
1707 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
1708 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1709 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1710 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
1711
83b33c6c
L
17122021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1713
1714 PR ld/27173
1715 * configure: Regenerated.
1716
c0f6e439
MJ
17172021-01-11 Matt Jenkins <matt@majenko.co.uk>
1718
1719 PR ld/27167
1720 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
1721 and mips64r5 to list of known mips targets.
1722
17232021-01-11 Nick Clifton <nickc@redhat.com>matt@majenko.co.uk
a8aa72b9
NC
1724
1725 * po/pt_BR.po: Updated Brazilian Portuguese translation.
1726` * po/uk.po: Updated Ukranian translation.
1727
a4966cd9
L
17282021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1729
1730 * configure: Regenerated.
1731
0a94990b
L
17322021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1733
1734 PR ld/27166
1735 * testsuite/ld-x86-64/lam-u48.rd: New file.
1736 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
1737 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
1738
573fe3fb
NC
17392021-01-09 Nick Clifton <nickc@redhat.com>
1740
1741 * configure: Regenerate.
1742 * po/ld.pot: Regenerate.
1743
055bc77a
NC
17442021-01-09 Nick Clifton <nickc@redhat.com>
1745
1746 * 2.36 release branch crated.
1747
ba9e922f
L
17482021-01-08 H.J. Lu <hongjiu.lu@intel.com>
1749
1750 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
1751 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
1752
64307045
AM
17532021-01-09 Alan Modra <amodra@gmail.com>
1754
1755 * configure: Regenerate.
1756 * Makefile.in: Regenerate.
1757
f4782128
ST
17582021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1759
1760 * configure: Regenerate.
1761
d1bcae83
L
17622021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1763
1764 PR 27109
1765 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
1766 * testsuite/ld-elf/loadaddr3b.d: Likewise.
1767 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1768 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1769 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1770 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1771 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1772 * testsuite/ld-i386/pr19636-1d.d: Likewise.
1773 * testsuite/ld-i386/pr19636-1l.d: Likewise.
1774 * testsuite/ld-i386/pr19636-2c.d: Likewise.
1775 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1776 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1777 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1778 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1779 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1780 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1781 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1782 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1783 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1784 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1785 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1786 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1787 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1788 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1789 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1790 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1791 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1792 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1793 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1794 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1795 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1796 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1797 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1798 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1799 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1800 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1801 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
1802 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
1803 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
1804 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
1805 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
1806 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
1807 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1808 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
1809 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1810 * testsuite/ld-x86-64/pr21038b.d: Likewise.
1811 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1812 * testsuite/ld-x86-64/pr21038c.d: Likewise.
1813 * testsuite/ld-x86-64/pr23854.d: Likewise.
1814 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1815 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1816 * testsuite/ld-i386/plt-pic.pd: Likewise.
1817 * testsuite/ld-i386/plt-pic2.dd: Likewise.
1818 * testsuite/ld-i386/plt.pd: Likewise.
1819 * testsuite/ld-i386/plt2.dd: Likewise.
1820 * testsuite/ld-i386/tlsbin.rd: Likewise.
1821 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1822 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1823 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1824 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
1825 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1826 * testsuite/ld-i386/tlspic.rd: Likewise.
1827 * testsuite/ld-i386/tlspic2.rd: Likewise.
1828 * testsuite/ld-x86-64/mpx3.dd: Likewise.
1829 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
1830 * testsuite/ld-x86-64/mpx4.dd: Likewise.
1831 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
1832 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
1833 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1834 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1835 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1836 * testsuite/ld-x86-64/plt.pd: Likewise.
1837 * testsuite/ld-x86-64/plt2.dd: Likewise.
1838 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1839 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1840 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1841 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1842 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
1843 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1844 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1845 * testsuite/ld-elf/sec64k.exp: Check
1846 is_elf_unused_section_symbols.
1847
dc200613
AM
18482021-01-07 Alan Modra <amodra@gmail.com>
1849
1850 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
1851 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
1852 * testsuite/ld-scripts/segment-start.d: Likewise.
1853
8e604ff0
AM
18542021-01-07 Alan Modra <amodra@gmail.com>
1855
1856 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
1857 about dynamic relocations in read-only sections.
1858 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1859 * testsuite/ld-elf/ehdr_start.d: Likewise.
1860 * testsuite/ld-scripts/pr22267.d: Likewise.
1861 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
1862 pr20995 text.
1863 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
1864
4d4490b8
MC
18652021-01-07 Marcus Comstedt <marcus@mc.pp.se>
1866
1867 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
1868 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
1869
f526791a
AM
18702021-01-07 Alan Modra <amodra@gmail.com>
1871
1872 * po/BLD-POTFILES.in: Regenerate.
1873
4018f4e0
AM
18742021-01-07 Alan Modra <amodra@gmail.com>
1875
1876 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
1877 complain about relocs in read-only sections. Tidy ASFLAGS append.
1878
3677b729
AM
18792021-01-06 Alan Modra <amodra@gmail.com>
1880
1881 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
1882 base for some tests.
1883 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
1884 * testsuite/ld-sparc/gotop32.sd: Likewise.
1885 * testsuite/ld-sparc/gotop32.td: Likewise.
1886 * testsuite/ld-sparc/gotop64.dd: Likewise.
1887 * testsuite/ld-sparc/gotop64.sd: Likewise.
1888 * testsuite/ld-sparc/gotop64.td: Likewise.
1889 * testsuite/ld-sparc/tlsg32.sd: Likewise.
1890 * testsuite/ld-sparc/tlsg64.sd: Likewise.
1891 * testsuite/ld-sparc/tlspie32.dd: Likewise.
1892 * testsuite/ld-sparc/tlspie64.dd: Likewise.
1893 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
1894 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
1895 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
1896 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
1897 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
1898 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
1899 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
1900 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
1901 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
1902 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
1903 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
1904 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
1905 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
1906 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
1907 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
1908 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
1909 * testsuite/ld-sparc/wdispcall.dd: Likewise.
1910
73624512
AM
19112021-01-06 Alan Modra <amodra@gmail.com>
1912
1913 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
1914 * testsuite/ld-scripts/rgn-at11.d: Likewise.
1915
f36ce378
MC
19162021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1917
1918 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
1919 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
1920 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
1921 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
1922 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1923 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1924 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1925 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
1926 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
1927 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
1928 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
1929 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
1930 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
1931 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
1932 to littleriscv.
1933 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
1934
fbc09e7a
MC
19352021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1936
1937 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
1938 riscv32be*-*-linux*, and riscv64be*-*-linux*.
1939 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
1940 eelf32briscv_ilp32.c.
1941 * Makefile.in: Regenerate.
1942 * emulparams/elf32briscv.sh: Added.
1943 * emulparams/elf32briscv_ilp32.sh: Likewise.
1944 * emulparams/elf32briscv_ilp32f.sh: Likewise.
1945 * emulparams/elf64briscv.sh: Likewise.
1946 * emulparams/elf64briscv_lp64.sh: Likewise.
1947 * emulparams/elf64briscv_lp64f.sh: Likewise.
1948
b4b6ea46
NA
19492021-01-05 Nick Alcock <nick.alcock@oracle.com>
1950
1951 * testsuite/ld-ctf/enum-forward.c: New test.
1952 * testsuite/ld-ctf/enum-forward.c: New results.
1953
37002871
NA
19542021-01-05 Nick Alcock <nick.alcock@oracle.com>
1955
1956 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1957 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1958 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1959 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1960 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1961 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1962 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1963 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1964 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1965 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1966 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1967 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1968 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1969 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1970 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1971 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1972 * testsuite/ld-ctf/cycle-1.d: Likewise.
1973 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1974 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1975 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1976 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1977 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1978 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1979 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1980 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1981 * testsuite/ld-ctf/forward.d: Likewise.
1982 * testsuite/ld-ctf/function.d: Likewise.
1983 * testsuite/ld-ctf/slice.d: Likewise.
1984 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1985 * testsuite/ld-ctf/enums.c: New test.
1986 * testsuite/ld-ctf/enums.d: New test.
1987
ffeece6a
NA
19882021-01-05 Nick Alcock <nick.alcock@oracle.com>
1989
1990 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
1991 changes.
1992 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1993 * testsuite/ld-ctf/forward.c: New test...
1994 * testsuite/ld-ctf/forward.d: ... and results.
1995
91e7ce2f
NA
19962021-01-05 Nick Alcock <nick.alcock@oracle.com>
1997
1998 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1999 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2000 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2001 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2002 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2003 * testsuite/ld-ctf/function.d: Likewise.
2004 * testsuite/ld-ctf/slice.d: Likewise.
2005
57f97d0e
NA
20062021-01-05 Nick Alcock <nick.alcock@oracle.com>
2007
2008 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2009 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
2010 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
2011 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
2012 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
2013 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
2014 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
2015 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
2016 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
2017 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
2018 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
2019 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
2020 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2021 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
2022 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
2023 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
2024 * testsuite/ld-ctf/cycle-1.d: Likewise.
2025 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
2026 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
2027 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
2028 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2029 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2030 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2031 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2032 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
2033 * testsuite/ld-ctf/function.d: Likewise.
2034 * testsuite/ld-ctf/slice.d: Likewise.
2035 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
2036
b281a04f
AM
20372021-01-05 Alan Modra <amodra@gmail.com>
2038
2039 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
2040
40b11930
AM
20412021-01-05 Alan Modra <amodra@gmail.com>
2042
2043 PR ld/26256
2044 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
2045 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
2046
cd6d537c
L
20472021-01-04 H.J. Lu <hongjiu.lu@intel.com>
2048
2049 PR ld/26256
2050 * ldlang.c (gc_section_callback): Set pattern.
2051 * testsuite/ld-elf/pr26256-1.s: New file.
2052 * testsuite/ld-elf/pr26256-1.t: Likewise.
2053 * testsuite/ld-elf/pr26256-1a.d: Likewise.
2054 * testsuite/ld-elf/pr26256-1b.d: Likewise.
2055 * testsuite/ld-elf/pr26256-2.s: Likewise.
2056 * testsuite/ld-elf/pr26256-2.t: Likewise.
2057 * testsuite/ld-elf/pr26256-2a.d: Likewise.
2058 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
2059 * testsuite/ld-elf/pr26256-2b.d: Likewise.
2060 * testsuite/ld-elf/pr26256-3.s: Likewise.
2061 * testsuite/ld-elf/pr26256-3a.d: Likewise.
2062 * testsuite/ld-elf/pr26256-3a.t: Likewise.
2063 * testsuite/ld-elf/pr26256-3b.d: Likewise.
2064 * testsuite/ld-elf/pr26256-3b.t: Likewise.
2065
5b4293ba
AM
20662021-01-04 Alan Modra <amodra@gmail.com>
2067
2068 PR 26822
2069 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
2070 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
2071 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
2072 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
2073 * testsuite/ld-i386/tlsbin.rd: Likewise.
2074 * testsuite/ld-i386/tlsbin2.rd: Likewise.
2075 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
2076 * testsuite/ld-i386/tlsdesc.rd: Likewise.
2077 * testsuite/ld-i386/tlsnopic.rd: Likewise.
2078 * testsuite/ld-i386/tlspic.rd: Likewise.
2079 * testsuite/ld-i386/tlspic2.rd: Likewise.
2080 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
2081 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
2082 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
2083 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
2084 * testsuite/ld-plugin/pr17973.d: Likewise.
2085 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
2086 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
2087 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
2088 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
2089 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
2090 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
2091 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
2092 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
2093 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
2094 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
2095 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
2096 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
2097 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
2098 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
2099 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
2100 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
2101 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
2102 * testsuite/ld-x86-64/tlspic.rd: Likewise.
2103 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
2104 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
2105 * testsuite/ld-xtensa/tlspic.rd: Likewise.
2106
f9a6a8f0
AM
21072021-01-01 Nicolas Boulenguez <nicolas@debian.org>
2108
2109 * configure.tgt: Correct comment grammar.
2110 * emultempl/m68hc1xelf.em: Likewise.
2111 * ld.texi: Correct grammar.
2112
250d07de
AM
21132021-01-01 Alan Modra <amodra@gmail.com>
2114
2115 Update year range in copyright notice of all files.
2116
c2795844 2117For older changes see ChangeLog-2020
3499769a 2118\f
d87bef3a 2119Copyright (C) 2021-2023 Free Software Foundation, Inc.
3499769a
AM
2120
2121Copying and distribution of this file, with or without modification,
2122are permitted in any medium without royalty provided the copyright
2123notice and this notice are preserved.
2124
2125Local Variables:
2126mode: change-log
2127left-margin: 8
2128fill-column: 74
2129version-control: never
2130End: