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