]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/ChangeLog
asprintf memory leaks
[thirdparty/binutils-gdb.git] / ld / ChangeLog
CommitLineData
064ad3ea
NC
12023-06-07 Nick Clifton <nickc@redhat.com>
2
3 PR 30499
4 * testsuite/ld-elfcomm/elfcomm.exp: Update regexps to match new
5 output from the linker.
6
80d4e113
LB
72023-05-17 Luca Bacci <luca.bacci@outlook.com>
8
9 PR 30421
10 * emultempl/pe.em (set_decoration): New function.
11 (pe_fixup_stdcalls): Call the new function.
12 * emultempl/pep.em (set_decoration): New function.
13 (pep_fixup_stdcalls): Call the new function.
14 * pe-dll.c (make_one): Check for decoated symbols.
15
d1792f72
NC
162023-05-16 Nick Clifton <nickc@redhat.com>
17
18 PR 30359
19 * ld.texi (WIN32): Document how to create a resource only DLL.
20
0a7dda4f
NC
212023-05-16 Nick Clifton <nickc@redhat.com>
22
23 * ld.texi (-Ur): Clarify the actions of this option.
24
496917ce
NC
252023-05-10 Nick Clifton <nickc@redhat.com>
26
27 PR 16566
28 * ldlang.c (ld_is_local_symbol): New function.
29 (print_input_section): Add code to display local symbols in the
30 section.
31 * ldlex.h (enum option_values): Add OPTION_PRINT_MAP_LOCALS and
32 OPTION_PRINT_MAP_LOCALS.
33 * lexsup.c (ld_options[]): Add entries for --print-map-locals
34 and --no-print-map-locals.
35 * NEWS: Mention the new feature.
36 * ld.h (struct ld_config_type): Add print_map_locals field.
37 * ld.texi: Document the new command line option.
38 * testsuite/ld-scripts/sizeof.s: Add a local symbol.
39 * testsuite/ld-scripts/map-locals.d: New test control file.
40 * testsuite/ld-scripts/map-address.exp: Run the new test.
41
35394145
NC
422023-05-04 Nick Clifton <nickc@redhat.com>
43
44 PR 30300
45 * emultempl/pep.em (set_entry_point): Add an undefined reference
46 to the entry point if it has been constructed heuristically.
47 * emultempl/pe.em (set_entry_point): Likewise.
48
35130e73
DD
492023-05-04 Dimitar Dimitrov <dimitar@dinux.eu>
50
51 * scripttempl/pru.sc (OUTPUT_SECTION_ALIGN): New helper variable
52 to place at end of DMEM output sections.
53 (.data): Use the helper variable.
54 (.eh_frame): New output section.
55 (.gnu_extab): Ditto.
56 (.gcc_except_table): Ditto.
57 (.resource_table): Use the helper variable.
58
c386bf4d
NC
592023-04-27 Nick Clifton <nickc@redhat.com>
60
61 * ldmisc.c (vfinfo): Add support for %x and %lx.
62
a02676b7 632023-04-18 mengqinggang <mengqinggang@loongson.cn>
64
65 * testsuite/ld-loongarch-elf/macro_op.d: Regenerated.
66
b29f2fda
NC
672023-04-17 Nick Clifton <nickc@redhat.com>
68
69 PR 30354
70 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): Define in order to
71 handle the .gnu.sgstubs section.
72
546c7898
CZ
732023-04-13 Claudiu Zissulescu <claziss@synopsys.com>
74
75 * testsuite/ld-arc/arc.exp: Update execution predicate.
76 * testsuite/ld-arc/nps-1a.d: Add linker script option.
77 * testsuite/ld-arc/nps-1b.d: Likewise.
78 * testsuite/ld-arc/relax-local-pic.d: Update matching patterns.
79
93cda40b
NC
802023-04-12 Nick Clifton <nickc@redhat.com>
81
82 * ld.texi (--enable-non-contiguous-regions): Fix typos in script
83 example.
84
2d5783fa
NC
852023-03-15 Nick Clifton <nickc@redhat.com>
86
87 PR 30187
88 * NEWS: Mention the new feature.
89 * ld.texi: Document the new feature.
90 * ldgram.y: Handle LINKER_VERSION token.
91 * ldlang.c (lang_add_version): New function.
92 (enable_linker_version): New global variable.
93 * ldlang.h (land_add_version): Prototype.
94 (enable_linker_version): Export.
95 * ldlex.h (OPTION_ENABLE_LINKER_VERSION): Define.
96 (OPTION_DISABLE_LINKER_VERSION): Define.
97 * ldlex.l (LINKER_VERSION): Add token.
98 * lexsup.c (ld_options): Add --enable-linker-version and
99 --disable-linker-version.
100 (parse_args): Handle the new options.
101 * scripttempl/arclinux.sc: Remove stabs and comment sections and
102 replace with inclusion of misc-sections.sc
103 * scripttempl/avr.sc: Likewise.
104 * scripttempl/dlx.sc: Likewise.
105 * scripttempl/elf.sc: Likewise.
106 * scripttempl/elf32cr16.sc: Likewise.
107 * scripttempl/elf32crx.sc: Likewise.
108 * scripttempl/elf32msp430.sc: Likewise.
109 * scripttempl/elf64bpf.sc: Likewise.
110 * scripttempl/elf64hppa.sc: Likewise.
111 * scripttempl/elf_chaos.sc: Likewise.
112 * scripttempl/elfarc.sc: Likewise.
113 * scripttempl/elfarcv2.sc: Likewise.
114 * scripttempl/elfd10v.sc: Likewise.
115 * scripttempl/elfd30v.sc: Likewise.
116 * scripttempl/elfm68hc11.sc: Likewise.
117 * scripttempl/elfm68hc12.sc: Likewise.
118 * scripttempl/elfm9s12z.sc: Likewise.
119 * scripttempl/elfmicroblaze.sc: Likewise.
120 * scripttempl/elfxgate.sc: Likewise.
121 * scripttempl/elfxtensa.sc: Likewise.
122 * scripttempl/epiphany_4x4.sc: Likewise.
123 * scripttempl/ft32.sc: Likewise.
124 * scripttempl/ip2k.sc: Likewise.
125 * scripttempl/iq2000.sc: Likewise.
126 * scripttempl/mep.sc: Likewise.
127 * scripttempl/nds32elf.sc: Likewise.
128 * scripttempl/pru.sc: Likewise.
129 * scripttempl/v850.sc: Likewise.
130 * scripttempl/v850_rh850.sc: Likewise.
131 * scripttempl/visium.sc: Likewise.
132 * scripttempl/xstormy16.sc: Likewise.
133 * scripttempl/z80.sc: Likewise.
134 * testsuite/ld-scripts/script.exp: Run new tests.
135 * scripttempl/misc-sections.sc: New file.
136 * testsuite/ld-scripts/ld-version-2.d: New file.
137 * testsuite/ld-scripts/ld-version.d: New file.
138 * testsuite/ld-scripts/ld-version.t: New file.
139
50980ba3
FS
1402023-02-23 Fangrui Song <i@maskray.me>
141
142 * emultempl/riscvelf.em: Add option parsing.
143 * testsuite/ld-riscv-elf/code-model-relax-medlow-01-norelaxgp.d: New.
144 * testsuite/ld-riscv-elf/pcgp-relax-01-norelaxgp.d: New.
145 * testsuite/ld-riscv-elf/pcgp-relax-02.d: Test --relax --relax-gp can be
146 used together.
147
c9802aca
NC
1482023-02-20 Nick Clifton <nickc@redhat.com>
149
150 PR 30004
151 * pe-dll.c (pe_dll_build_sections): Do not build an edata section
152 if all symbols are being excluded.
153
2b56cd91
NC
1542023-02-15 Nick Clifton <nickc@redhat.com>
155
156 PR 30078
157 * testsuite/ld-elf/merge4b.s: Use .asciz instead of .string in
158 order to avoid the special behaviour of the .string directive on
159 HPPA architectures.
160
9b38b85e
NC
1612023-02-14 Nick Clifton <nickc@redhat.com>
162
163 * ld.texi (Plugins): Mention that the -plugin command line option
164 is used to load plugins.
165
1c66b8a0
NC
1662023-01-27 Nick Clifton <nickc@redhat.com>
167
168 PR 29998
169 * pe-dll.c (build_filler_bfd): Initialise the next field of the
170 filler input statement, so that it does not break the file chain.
171
f3d8ae90
NC
1722023-01-24 Nick Clifton <nickc@redhat.com>
173
174 PR 29998
175 * pe-dll.c (generate_reloc): Handle sections with no assigned
176 output section. Terminate early of there are no relocs to put in
177 the .reloc section.
178 (pe_exe_fill_sections): Do not emit an empty .reloc section.
179
59e1f50f
NC
1802023-01-06 Nick Clifton <nickc@redhat.com>
181
182 * po/bg.po: Updated Bulgarian translation.
183
beb6b61d
NC
1842023-01-05 Nick Clifton <nickc@redhat.com>
185
186 * configure.tgt: Add arm64pe as an extra emulation for aarch64pe.
187 * Makefile.am (ALL_64_EMULATION_SOURCES): Add earm64pe.c
188 * emultempl/pep.em: Add suppport for arm64pe emulation.
189 * Makefile.in: Regenerate.
190 * po/BLD-POTFILES.in: Regenerate.
191 * po/ld.pot: Regenerate.
192
b26c8438
AH
1932023-01-05 Andreas K. Huettel <dilfridge@gentoo.org>
194
195 * testsuite/ld-elf/shared.exp: un-xfail the PR19710 test for the
196 AArch64 architecture.
197
502c7218
AH
1982023-01-04 Andreas K. Huettel <dilfridge@gentoo.org>
199
200 PR 29843
201 * testsuite/ld-aarch64/bti-plt-5.d: Relax regxps slightly to allow
202 for differences in build environments.
203 * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: Likewise.
204
11982f9f
NC
2052023-01-03 Nick Clifton <nickc@redhat.com>
206
207 * po/uk.po: Updated Ukrainian translation.
208
a72b0718
NC
2092022-12-31 Nick Clifton <nickc@redhat.com>
210
211 * 2.40 branch created.
212
a7a32d58
NC
2132022-12-21 Nick Clifton <nickc@redhat.com>
214
215 PR 29900
216 * scripttempl/pe.sc: Keep the .drectve section when performing a
217 relocateable link.
218 * scripttempl/pep.sc: Likewise.
219
dcb53d93
NC
2202022-12-08 Nick Clifton <nickc@redhat.com>
221
222 PR 29861
223 * ld.texi (Output Section Type): Note that setting the output
224 section type only works if the section contains untyped data.
225
3bf5bf54
NC
2262022-12-05 Nick Clifton <nickc@redhat.com>
227
228 PR 29849
229 * ldlang.c (spec_match): Check that there is sufficient length in
230 the target name to match the spec's prefix.
231
e26943f9
NC
2322022-11-03 Nick Clifton <nickc@redhat.com>
233
234 PR 29748
235 * configure.tgt (ac_default_ld_warn_rwx_segments): Set to 0 for
236 the V850.
237
fa6895ad
NC
2382022-11-03 Nick Clifton <nickc@redhat.com>
239
78cd9188 240 PR 29741
fa6895ad
NC
241 * scripttempl/avr.sc (__DATA_REGION_ORIGIN__): Define. If a value
242 has not been provided on the command line then use DATA_ORIGIN.
243 (MEMORY): Use __DATA_REGION_ORIGIN__ as the start of the data region.
244
4b2e7a57
NC
2452022-10-21 Nick Clifton <nickc@redhat.com>
246
247 PR 29654
248 * ld.h (struct ld_config_type): Add no_warnings field.
249 * ldlex.h (enum option_values): Add OPTION_NO_WARNINGS.
250 * lexsup.c (ld_options): Add --no-warnings.
251 (parse_args): Add support for -w and --no-warnings.
252 * ldmisc.c (vfinfo): Return early if the message is a warning and
253 -w has been enabled.
254 * ld.texi (options): Document new command line option.
255 * NEWS: Mention the new feature.
256
37833b96
NC
2572022-08-30 Nick Clifton <nickc@redhat.com>
258
259 PR 29529
260 * testsuite/ld-x86-64/pr27587.err: Update expected output.
261
f0821653
RH
2622022-08-18 Ralf Habacker <ralf.habacker@freenet.de>
263
264 PR 28362
265 * testsuite/ld-pe/pe-run2-def.exp: New file.
266
a6ad7914
AM
2672022-08-03 Alan Modra <amodra@gmail.com>
268
269 PR 29389
270 * ldlang.h (lang_input_statement_struct): Add sort_key field.
271 * emultempl/pe.em (after_open): If multiple import libraries refer
272 to the same bfd, store their names in the sort_key field.
273 * emultempl/pep.em (after_open): Likewise.
274 * ldlang.c (sort_filename): New function. Returns the filename to
275 be used when sorting input files.
276 (wild_sort): Use the sort_filename function.
277
b80b72c0
RO
2782022-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
279
280 PR ld/29411
281 * configure.tgt (ac_default_ld_warn_rwx_segments): Extend to all
282 sparc targets. Expand comment.
283
91896b4d
NC
2842022-07-26 Nick Clifton <nickc@redhat.com>
285
286 PR 29411
287 * configure.tgt (ac_default_ld_warn_rwx_segments): Disable for
288 sparc-solaris configurations.
289
0bd09323
NC
2902022-07-08 Nick Clifton <nickc@redhat.com>
291
292 * 2.39 branch created.
293
ed1c7ad8
NC
2942022-06-27 Nick Clifton <nickc@redhat.com>
295
296 PR 29263
297 * configure.ac: Move HPPA specific code from here...
298 * configure.tgt: ... to here. Add similar code for MIPS.
299 Move code for CRIS, MIPS and HPPA to block at start of file.
300 * configure: Regenerate.
301
acd65fa6
NC
3022022-06-21 Nick Clifton <nickc@redhat.com>
303
304 PR 29263
305 * configure.ac (ac_default_ld_warn_execstack): Default to 'no' for
306 HPPA targets.
307 (ac_default_ld_warn_rwx_segments): Likewise.
308 * configure: Regenerate.
309 * testsuite/ld-elf/elf.exp: Add the --warn-execstack command line
310 option to the command line when running execstack tests for the
311 HPPA target.
312
678dc756
AM
3132022-05-12 Alan Modra <amodra@gmail.com>
314
315 PR 29006
316 * pe-dll.c (dll_name): Delete, replacing with..
317 (dll_filename): ..this, moved earlier in file.
318 (generate_edata): Delete parameters. Don't set up dll_name here..
319 (pe_process_import_defs): ..instead set up dll_filename and
320 dll_symname here before returning.
321 (dll_symname_len): Delete write-only variable.
322 (pe_dll_generate_implib): Don't set up dll_symname here.
323
46465574
NC
3242022-05-03 Nick Clifton <nickc@redhat.com>
325
326 PR 29101
327 * libdep_plugin.c (get_libdeps): Check for overflow when computing
328 amount of memory to allocate.
329
639d467b
NC
3302022-04-27 Nick Clifton <nickc@redhat.com>
331
332 PR 29006
333 * pe-dll.c (make_head): Use asprintf to allocate and populate a
334 buffer containing the temporary name.
335 (make_tail, make_one, make_singleton_name_thunk): Likewise.
336 (make_import_fixup_mark, make_import_fixup_entry): Likewise.
337 (make_runtime_pseudo_reloc): Likewise.
338 (pe_create_runtime_relocator_reference): Likewise.
339
0d38576a
NC
3402022-04-25 Nick Clifton <nickc@redhat.com>
341
342 PR 29072
343 * testsuite/ld-elf/pr29072.b.warn: Update to include the note
344 about the linker's behaviour being depreccated.
345
2d23f965
CC
3462022-04-20 Clément Chigot <clement.chigot@atos.net>
347
348 * emultempl/aix.em (params): New variable.
349 (stub_file): New variable.
350 (xcoff_add_stub_section): New function.
351 (xcoff_layout_sections_again): New function
352 (hook_in_stub): New function.
353 (_after_allocation): Add stub creation.
354 (_create_output_section_statements): Allocate stub file and
355 pass params to backend.
356
1876a542
CC
3572022-04-20 Clément Chigot <clement.chigot@atos.net>
358
359 * emultempl/aix.em (_after_allocation): New function.
360
145667f8
MH
3612022-04-07 Mark Harmstone <mark@harmstone.com>
362
363 * testsuite/ld-pe/secidx1.s: New test source file.
364 * testsuite/ld-pe/secidx2.s: New test source file.
365 * testsuite/ld-pe/secidx.d: New test driver file.
366 * testsuite/ld-pe/secidx_64.d: New test driver file.
367 * testsuite/ld-pe/pe.exp: Add new tests.
368
95e96e05
NC
3692022-03-01 Nick Clifton <nickc@redhat.com>
370
371 PR 21964
372 * testsuite/ld-elf/pr21964-1a.c: Fix array comparisons.
373 * testsuite/ld-elf/pr21964-1b.c: Likewise.
374 * testsuite/ld-elf/pr21964-1c.c: Likewise.
375 * testsuite/ld-elf/pr21964-2a.c: Likewise.
376 * testsuite/ld-elf/pr21964-2b.c: Likewise.
377 * testsuite/ld-elf/pr21964-3a.c: Likewise.
378
5c14cc55
RM
3792022-02-17 Roland McGrath <mcgrathr@google.com>
380
381 * ld.texi (Output Section Type): Fix typo in @code syntax.
382
36d285b9
NC
3832022-02-17 Nick Clifton <nickc@redhat.com>
384
385 * po/sr.po: Updated Serbian translation.
386
c212f39d 3872022-02-16 Fangrui Song <maskray@google.com>
5c14cc55 388 Nick Clifton <nickc@redhat.com>
c212f39d
FS
389
390 PR ld/28841
391 * ld.texi: Document new output section type.
392 * ldlex.l: Add new token TYPE.
393 * ldgram.y: Handle TYPE=exp and READONLY (TYPE=exp).
394 * ldlang.h: Add type_section to list of section types.
395 * ldlang.c (lang_add_section): Handle type_section.
396 (map_input_to_output_sections): Handle type_section.
397 * testsuite/ld-scripts/output-section-types.t: Add tests.
398 * testsuite/ld-scripts/output-section-types.d: Update.
399
a6983974
NC
4002022-02-02 Nick Clifton <nickc@redhat.com>
401
402 * po/fr.po: Updated French translation.
403
5fe73d46
NC
4042022-01-24 Nick Clifton <nickc@redhat.com>
405
406 * po/bg.po: Updated Bulgarian translation.
407 * po/uk.po: Updated Ukranian translation.
408
cc5e4073
AGI
4092022-01-22 Alexander von Gluck IV <kallisti5@unixzen.com>
410
411 * configure.tgt (arm-haiku): Fix typo.
412 * emulparams/armelf_haiku.su (MAXPAGESIZE): Use the default value.
413 (COMMONPAGESIZE): Likewise.
414
f908e960
NC
4152022-01-22 Nick Clifton <nickc@redhat.com>
416
417 * configure: Regenerate.
418 * po/ld.pot: Regenerate.
419
a74e1cb3
NC
4202022-01-22 Nick Clifton <nickc@redhat.com>
421
422 * 2.38 release branch created.
423
e901223d
NC
4242022-01-21 Nick Clifton <nickc@redhat.com>
425
426 * po/sr.po: Updated Serbian translation.
427
6c037fdb
NC
4282022-01-17 Nick Clifton <nickc@redhat.com>
429
430 * Makefile.in: Regenerate.
431 * po/ld.pot: Regenerate.
432
c4a8df19
MS
4332022-01-11 Martin Storsjö <martin@martin.st>
434
435 * pe-dll.c (make_head): Prefix the symbol name with the dll name.
436 (make_tail, make_one, make_singleton_name_thunk): Likewise.
437 (make_import_fixup_entry, make_runtime_pseudo_reloc): Likewise.
438 (pe_create_runtime_relocator_reference): Likewise.
439 (pe_dll_generate_implib): Set dll_symname_len.
440 (pe_process_import_defs): Likewise.
441
f3be70df
NC
4422021-12-16 Nick Clifton <nickc@redhat.com>
443
444 PR 28686
445 * testsuite/ld-avr/avr-prop-7.d: Adjust expected output.
446 * testsuite/ld-avr/avr-prop-8.d: Likewise.
447 * testsuite/ld-avr/pr13402.d: Likewise.
448
44b357eb
NC
4492021-11-30 Nick Clifton <nickc@redhat.com>
450
451 * scripttempl/pru.sc (.pru_irq_map): Define output section.
452 * testsuite/ld-pru/pru_irq_map-1.d: New test.
453 * testsuite/ld-pru/pru_irq_map-2.d: New test.
454 * testsuite/ld-pru/pru_irq_map.s: New test.
455
ef6379e1
JD
4562021-11-17 Jeremy Drake <cygwin@jdrake.com>
457
458 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Set to 0 for
459 Cygwin targets.
460 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Likewise.
461
ee9e412f
NC
4622021-11-17 Nick Clifton <nickc@redhat.com>
463
464 PR 28452
465 * ldgram.y: Add support for PT_GNU_RELRO and PT_GNU_PROPERTY.
466 * ldgram.c: Regenerate.
467
d029b54d
RM
4682021-11-15 Roland McGrath <mcgrathr@google.com>
469
470 * testsuite/ld-aarch64/dt_textrel.d: Pass explicit -z notext in
471 case ld was configured with --enable-textrel-check=error.
472 * testsuite/ld-aarch64/pr22764.d: Likewise.
473 * testsuite/ld-aarch64/pr20402.d: Likewise.
474
eb5323fd
NA
4752021-10-25 Nick Alcock <nick.alcock@oracle.com>
476
477 * testsuite/ld-ctf/nonrepresentable-member.*: New test.
478
10909ea8
NA
4792021-10-25 Nick Alcock <nick.alcock@oracle.com>
480
481 * testsuite/ld-ctf/array.d: Change --ctf=.ctf to --ctf.
482 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
483 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
484 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
485 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
486 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
487 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
488 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
489 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
490 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
491 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
492 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
493 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
494 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
495 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
496 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
497 * testsuite/ld-ctf/cycle-1.d: Likewise.
498 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
499 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
500 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
501 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
502 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
503 * testsuite/ld-ctf/diag-cuname.d: Likewise.
504 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
505 * testsuite/ld-ctf/enum-forward.d: Likewise.
506 * testsuite/ld-ctf/enums.d: Likewise.
507 * testsuite/ld-ctf/forward.d: Likewise.
508 * testsuite/ld-ctf/function.d: Likewise.
509 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
510 * testsuite/ld-ctf/slice.d: Likewise.
511 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
512
5109a7bd
DD
5132021-09-30 Dimitar Dimitrov <dimitar@dinux.eu>
514
515 * scripttempl/pru.sc (.resource_table): Align the output
516 section, not the first symbol.
517
b9004024
NA
5182021-09-27 Nick Alcock <nick.alcock@oracle.com>
519
520 * configure: Regenerate.
521
5226a6a8
NC
5222021-09-21 Nick Clifton <nickc@redhat.com>
523
524 * ldlang.c (lang_end): When computing the entry point, only
525 try the start address of the entry section when creating an
526 executable.
527 * ld.texi (Entry point): Update description of heuristic used to
528 choose the entry point.
529 testsuite/ld-alpha/tlspic.rd: Update expected entry point address.
530 testsuite/ld-arm/tls-gdesc-got.d: Likewise.
531 testsuite/ld-i386/tlsnopic.rd: Likewise.
532 testsuite/ld-ia64/tlspic.rd: Likewise.
533 testsuite/ld-sparc/gotop32.rd: Likewise.
534 testsuite/ld-sparc/gotop64.rd: Likewise.
535 testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
536 testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
537 testsuite/ld-sparc/tlssunpic32.rd: Likewise.
538 testsuite/ld-sparc/tlssunpic64.rd: Likewise.
539 testsuite/ld-tic6x/shlib-1.rd: Likewise.
540 testsuite/ld-tic6x/shlib-1b.rd: Likewise.
541 testsuite/ld-tic6x/shlib-1r.rd: Likewise.
542 testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
543 testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
544 testsuite/ld-x86-64/pr14207.d: Likewise.
545 testsuite/ld-x86-64/tlsdesc.rd: Likewise.
546 testsuite/ld-x86-64/tlspic.rd: Likewise.
547 testsuite/ld-x86-64/tlspic2.rd: Likewise.
548
720f6ee0
CZ
5492021-09-15 Claudiu Zissulescu <claziss@synopsys.com>
550
551 * testsuite/ld-arc/got-weak.d: Update file.
552
09a7e912
CZ
5532021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
554
555 * ld-arc/got-weak.d: New file.
556 * ld-arc/got-weak.s: Likewise.
557
dfe3b805
RM
5582021-07-26 Roland McGrath <mcgrathr@google.com>
559
560 * testsuite/ld-x86-64/x86-64.exp (Build textrel-1): Use --warn-textrel.
561
235f5ef4
MM
5622021-07-06 Michael Matz <matz@suse.de>
563
564 PR ld/28021
565 * testsuite/ld-riscv-elf/relax-twice.ver: New.
566 * testsuite/ld-riscv-elf/relax-twice-1.s: New.
567 * testsuite/ld-riscv-elf/relax-twice-2.s: New.
568 * testsuite/ld-riscv-elf/ld-riscv-elf.exp
569 (run_relax_twice_test): New, and call it.
570
346d80ef
NC
5712021-07-03 Nick Clifton <nickc@redhat.com>
572
573 * configure: Regenerate.
574 * po/ld.pot: Regenerate.
575
51419248
NC
5762021-07-03 Nick Clifton <nickc@redhat.com>
577
578 * 2.37 release branch created.
579
50331d64
NC
5802021-06-22 Nelson Chu <nelson.chu@sifive.com>
581
582 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
583 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.d: New testcase.
584 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.s: Likewise.
585 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.d: New testcase.
586 Should report error since the %pcrel_lo with addend refers to
587 %got_pcrel_hi.
588 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.s: Likewise.
589 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.d: New testcase.
590 Should report error since the %got_pcrel_hi with addend.
591 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.s: Likewise.
592 * testsuite/ld-riscv-elf/pcrel-lo-addend-3.ld: Likewise.
593
406b4ada
L
5942021-06-19 H.J. Lu <hongjiu.lu@intel.com>
595
596 PR ld/27998
597 * testsuite/ld-i386/i386.exp: Run PR ld/27998 tests.
598 * testsuite/ld-i386/pr27998a.d: New file.
599 * testsuite/ld-i386/pr27998a.s: Likewise.
600 * testsuite/ld-i386/pr27998b.d: Likewise.
601 * testsuite/ld-i386/pr27998b.s: Likewise.
602
83b1d8f4
L
6032021-06-19 H.J. Lu <hongjiu.lu@intel.com>
604
605 * testsuite/ld-x86-64/textrel-1.err: New file.
606 * testsuite/ld-x86-64/textrel-1a.s: Likewise.
607 * testsuite/ld-x86-64/textrel-1b.s: Likewise.
608 * testsuite/ld-x86-64/x86-64.exp: Run textrel-1 tests.
609
c30420d8
L
6102021-06-18 H.J. Lu <hongjiu.lu@intel.com>
611
612 * testsuite/ld-elf/property-and-1.d: Skip am33_2.0, hppa-hpux
613 and mn10300.
614 Pass --generate-missing-build-notes=no to assembler. Allow
615 other note sections for xtensa.
616 * testsuite/ld-elf/property-and-2.d: Likewise.
617 * testsuite/ld-elf/property-and-3.d: Likewise.
618 * testsuite/ld-elf/property-and-4.d: Likewise.
619 * testsuite/ld-elf/property-or-1.d: Likewise.
620 * testsuite/ld-elf/property-or-2.d: Likewise.
621 * testsuite/ld-elf/property-or-3.d: Likewise.
622 * testsuite/ld-elf/property-or-4.d: Likewise.
623
2d95647b
L
6242021-06-18 H.J. Lu <hongjiu.lu@intel.com>
625
626 * ld.texi: Move -z unique-symbol after -z undefs.
627
5a767724
L
6282021-06-18 H.J. Lu <hongjiu.lu@intel.com>
629
630 * testsuite/ld-elf/property-and-1.d: New file.
631 * testsuite/ld-elf/property-and-1.s: Likewise.
632 * testsuite/ld-elf/property-and-2.d: Likewise.
633 * testsuite/ld-elf/property-and-2.s: Likewise.
634 * testsuite/ld-elf/property-and-3.d: Likewise.
635 * testsuite/ld-elf/property-and-3.s: Likewise.
636 * testsuite/ld-elf/property-and-4.d: Likewise.
637 * testsuite/ld-elf/property-and-empty.s: Likewise.
638 * testsuite/ld-elf/property-or-1.d: Likewise.
639 * testsuite/ld-elf/property-or-1.s: Likewise.
640 * testsuite/ld-elf/property-or-2.d: Likewise.
641 * testsuite/ld-elf/property-or-2.s: Likewise.
642 * testsuite/ld-elf/property-or-3.d: Likewise.
643 * testsuite/ld-elf/property-or-3.s: Likewise.
644 * testsuite/ld-elf/property-or-4.d: Likewise.
645 * testsuite/ld-elf/property-or-empty.s: Likewise.
646
e013d20d
L
6472021-06-17 H.J. Lu <hongjiu.lu@intel.com>
648
649 PR ld/27973
650 * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and
651 $NOPIE_CFLAGS to protected-func-1 without PIE.
652
b6b42983
L
6532021-06-17 H.J. Lu <hongjiu.lu@intel.com>
654
655 PR ld/27973
656 * testsuite/ld-x86-64/x86-64.exp: Run protected function tests.
657 * testsuite/ld-x86-64/protected-func-1.h: New file.
658 * testsuite/ld-x86-64/protected-func-1a.s: Likewise.
659 * testsuite/ld-x86-64/protected-func-1b.c: Likewise.
660
d208bc76
FS
6612021-06-17 Fangrui Song <maskray@google.com>
662
663 * ldlex.h (enum option_values): Add OPTION_NO_PIE.
664 * lexsup.c (struct ld_options): Add -no-pie.
665 (parse_args): Handle -no-pie.
666 * ld.texi: Document -no-pie.
667
93df3340
AM
6682021-06-15 Alan Modra <amodra@gmail.com>
669
670 * testsuite/ld-pie/vaddr-0.d: Update expected output.
671
f64b9b13
AM
6722021-06-11 Alan Modra <amodra@gmail.com>
673
674 PR 27952
675 * ldelf.c (ldelf_after_open): Error on input PIEs too.
676
f75bcf7e
NC
6772021-06-09 Nick Clifton <nickc@redhat.com>
678
679 PR 27666
680 * testsuite/ld-sparc/sparc.exp: Do not run the sparctests or
681 sparc64tests for Solaris2 targets.
682
364d7729
AM
6832021-06-03 Alan Modra <amodra@gmail.com>
684
685 PR 2589
686 * ld.texi (link-time runtime library search path): Mention
687 plugin library path. Correct order of search.
688
ef9d2565
NC
6892021-05-31 Nelson Chu <nelson.chu@sifive.com>
690 Lifang Xia <lifang_xia@c-sky.com>
691
692 PR 27566
693 * emultempl/riscvelf.em (after_allocation): Call
694 riscv_set_data_segment_info to set data segment phase before relaxing.
695 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
696 * testsuite/ld-riscv-elf/relro-relax-lui.d: New testcase.
697 * testsuite/ld-riscv-elf/relro-relax-lui.s: Likewise.
698 * testsuite/ld-riscv-elf/relro-relax-pcrel.d: Likewise.
699 * testsuite/ld-riscv-elf/relro-relax-pcrel.s: Likewise.
700
1273b2f8
L
7012021-05-28 H.J. Lu <hongjiu.lu@intel.com>
702
703 PR ld/27905
704 * testsuite/ld-i386/pcrel16-2.d: xfail.
705 * testsuite/ld-x86-64/pcrel16-2.d: Likewise.
706
50c95a73
L
7072021-05-26 H.J. Lu <hongjiu.lu@intel.com>
708
709 PR ld/27905
710 * testsuite/ld-i386/code16.d: New file.
711 * testsuite/ld-i386/code16.t: Likewise.
712 * testsuite/ld-x86-64/code16.d: Likewise.
713 * testsuite/ld-x86-64/code16.t: Likewise.
714 * testsuite/ld-i386/i386.exp: Run code16.
715 * testsuite/ld-x86-64/x86-64.exp: Likewise.
716
983d5689
L
7172021-05-26 H.J. Lu <hongjiu.lu@intel.com>
718
719 * testsuite/ld-x86-64/ilp32-12.d: New file.
720 * testsuite/ld-x86-64/ilp32-12.s: Likewise.
721 * testsuite/ld-x86-64/x86-64.exp: Run ilp32-12.
722
75f03fa7
NC
7232021-05-14 Nelson Chu <nelson.chu@sifive.com>
724
725 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
726 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d: Renamed from
727 pcrel-lo-addend-2.
728 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.s: Likewise.
729 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.d: New testcase.
730 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.s: Likewise.
731
cf893b0e
FS
7322021-05-13 Fangrui Song <maskray@google.com>
733
734 PR 27834
735 * ldlex.h (enum option_values): Add OPTION_NO_SYMBOLIC.
736 * lexsup.c (ld_options): Add -Bno-symbolic.
737 (parse_args): Handle -Bno-symbolic.
738 * ld.texi: Document -Bno-symbolic.
739 * NEWS: Mention -Bno-symbolic.
740 * testsuite/ld-elf/shared.exp: Add a test.
741
84139c58
RE
7422021-05-12 Richard Earnshaw <rearnsha@arm.com>
743
744 * testsuite/ld-arm/arm-elf.exp (farcall test for v8-m.mainline):
745 Correct expected output.
746
4a1ad5c9
RM
7472021-05-11 Roland McGrath <mcgrathr@google.com>
748
749 * testsuite/ld-x86-64/rela.d: Fix regexp not to presume a specific
750 address layout, so it works for e.g. --target=x86-64-elf.
751
22604fe6
NC
7522021-05-11 Nick Clifton <nickc@redhat.com>
753
754 PR 27113
755 * Makefile.am (install-data-local): Also delete libdep.dll.a if it
756 is present.
757 * Makefile.in: Regenerate.
758
5b45e89f
DD
7592021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
760
761 * testsuite/ld-elf/group8a.d: Remove pru from XFAIL list.
762 * testsuite/ld-elf/group8b.d: Ditto.
763 * testsuite/ld-elf/group9a.d: Ditto.
764 * testsuite/ld-elf/group9b.d: Ditto.
765 * testsuite/ld-elf/pr12851.d: Ditto.
766 * testsuite/ld-elf/pr22677.d: Ditto.
767 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove
768 pru from list.
769
261980de
DD
7702021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
771
772 * scripttempl/pru.sc (.resource_table): Add ALIGN directive.
773 Use symbols for memory sizes.
774
cf758b39
MF
7752021-05-08 Mike Frysinger <vapier@gentoo.org>
776
777 * Makefile.am (html-local, doc/ld/index.html): New targets.
778 * Makefile.in: Regenerate.
779
2faf902d
MF
7802021-05-08 Mike Frysinger <vapier@gentoo.org>
781
782 * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
783 * Makefile.in: Regenerate.
784
17c6c3b9
JB
7852021-05-07 Jan Beulich <jbeulich@suse.com>
786
787 * testsuite/ld-x86-64/rela.d: New.
788 * testsuite/ld-x86-64/x86-64.exp: Run new test.
789
d820a652
NC
7902021-05-07 Nick Clifton <nickc@redhat.com>
791
792 * ldelfgen.c (compare_link_order): Ignore section size when
793 performing a relocateable link.
794
70993db3
AM
7952021-05-07 Alan Modra <amodra@gmail.com>
796
797 * ldexp.c (update_definedness): Don't return false for absolute
798 symbols.
799 * ldmain.c (multiple_definition): Print "warning: " in message
800 when not a hard error.
801
973bba91
AM
8022021-05-07 Alan Modra <amodra@gmail.com>
803
804 * testsuite/ld-elf/pr27825-1.d: Correct xfail.
805 * testsuite/ld-elf/pr27825-2.d: Likewise.
806
284a1309
SH
8072021-05-06 Stafford Horne <shorne@gmail.com>
808
809 PR 27746
810 testsuite/ld-or1k/or1k.exp (or1kplttests): Add tests for linking
811 along with gotha() relocations.
812 testsuite/ld-or1k/gotha1.dd: New file.
813 testsuite/ld-or1k/gotha1.s: New file.
814 testsuite/ld-or1k/gotha2.dd: New file.
815 testsuite/ld-or1k/gotha2.s: New file
816 testsuite/ld-or1k/pltlib.s (x): Define size to avoid link
817 failure.
818
ae064303
NA
8192021-05-06 Nick Alcock <nick.alcock@oracle.com>
820
821 * testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt.
822 * testsuite/lib/ld-lib.exp: Likewise.
823 * testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types.
824 * testsuite/ld-ctf/nonrepresentable-2.c: Likewise.
825 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
826 * testsuite/ld-ctf/array.d: Larger type section.
827 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
828 * testsuite/ld-ctf/enums.d: Likewise.
829 * testsuite/ld-ctf/conflicting-enums.d: Don't compare types.
830 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order.
831 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
832 * testsuite/ld-ctf/slice.d: Adjust for improved slice emission.
833
4467df35
L
8342021-05-05 H.J. Lu <hongjiu.lu@intel.com>
835
836 PR ld/27825
837 * testsuite/ld-elf/pr27825-1.d: New file.
838 * testsuite/ld-elf/pr27825-1a.s: Likewise.
839 * testsuite/ld-elf/pr27825-1b.s: Likewise.
840 * testsuite/ld-elf/pr27825-2.d: Likewise.
841 * testsuite/ld-elf/pr27825-2a.s: Likewise.
842 * testsuite/ld-elf/pr27825-2b.s: Likewise.
843
13ffdac3
AM
8442021-05-05 Alan Modra <amodra@gmail.com>
845
846 * testsuite/ld-powerpc/empty.s: New file.
847 * testsuite/ld-powerpc/undefweak.d,
848 * testsuite/ld-powerpc/undefweak.s: New testcase.
849 * testsuite/ld-powerpc/powerpc.exp: Run it.
850
df6fbc21
AM
8512021-05-03 Alan Modra <amodra@gmail.com>
852
853 * testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
854 named section symbols.
855
24aebc79
NC
8562021-04-28 Nick Clifton <nickc@redhat.com>
857
858 * testsuite/ld-elf/anno-sym.s: New test source file.
859 * testsuite/ld-elf/anno-sym.d: New test driver.
860 * testsuite/ld-elf/anno-sym.l: New test error output.
861
a7664973
JB
8622021-04-26 Jan Beulich <jbeulich@suse.com>
863
864 * testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d,
865 testsuite/ld-x86-64/pcrel16-2.d: New.
866 * testsuite/ld-i386/i386.exp: Run new test.
867 * testsuite/ld-x86-64/x86-64.exp: Likewise.
868
69cc1945
L
8692021-04-23 H.J. Lu <hongjiu.lu@intel.com>
870
871 PR ld/27771
872 * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
873 to tmpdir/ldscripts only if it doesn't exist.
874
d018cd83
JB
8752021-04-22 Jan Beulich <jbeulich@suse.com>
876
877 PR ld/26659
878 * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
879
23356397
NC
8802021-04-21 Nick Clifton <nickc@redhat.com>
881
882 * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
883 to allow for named section symbols.
884 * testsuite/ld-aarch64/variant_pcs-r.d: Likewise.
885 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
886 * testsuite/ld-alpha/tlsbin.rd: Likewise.
887 * testsuite/ld-alpha/tlsbinr.rd: Likewise.
888 * testsuite/ld-alpha/tlspic.rd: Likewise.
889 * testsuite/ld-arm/rodata-merge-map.sym: Likewise.
890 * testsuite/ld-arm/script-type.sym: Likewise.
891 * testsuite/ld-cris/libdso-2.d: Likewise.
892 * testsuite/ld-cris/pr16044.d: Likewise.
893 * testsuite/ld-elf/sec64k.exp: Likewise.
894 * testsuite/ld-ia64/tlsbin.rd: Likewise.
895 * testsuite/ld-ia64/tlspic.rd: Likewise.
896 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
897 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
898 * testsuite/ld-mmix/bspec1.d: Likewise.
899 * testsuite/ld-mmix/bspec2.d: Likewise.
900 * testsuite/ld-mmix/local1.d: Likewise.
901 * testsuite/ld-mmix/local3.d: Likewise.
902 * testsuite/ld-mmix/local5.d: Likewise.
903 * testsuite/ld-mmix/local7.d: Likewise.
904 * testsuite/ld-mmix/undef-3.d: Likewise.
905 * testsuite/ld-powerpc/tlsso.r: Likewise.
906 * testsuite/ld-powerpc/tlsso32.r: Likewise.
907 * testsuite/ld-powerpc/tlstocso.r: Likewise.
908 * testsuite/ld-s390/tlsbin.rd: Likewise.
909 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
910 * testsuite/ld-s390/tlspic.rd: Likewise.
911 * testsuite/ld-s390/tlspic_64.rd: Likewise.
912 * testsuite/ld-sparc/gotop32.rd: Likewise.
913 * testsuite/ld-sparc/gotop64.rd: Likewise.
914 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
915 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
916 * testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
917 * testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
918 * testsuite/ld-sparc/tlssunpic32.rd: Likewise.
919 * testsuite/ld-sparc/tlssunpic64.rd: Likewise.
920 * testsuite/ld-tic6x/common.d: Likewise.
921 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
922 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
923 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
924 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
925 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
926 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
927 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
928 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
929 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
930 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
931 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
932 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
933 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
934
c5df7e44
CC
9352021-04-20 Clément Chigot <clement.chigot@atos.net>
936
937 PR binutils/21700
938 * testsuite/ld-powerpc/aix52.exp: Add new test.
939 * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
940 * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
941 * testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
942 * testsuite/ld-powerpc/aix-neg-reloc.s: New test.
943
6418520e
NC
9442021-04-13 Nick Clifton <nickc@redhat.com>
945
946 * ld.texi (Options): Add note about the effect of --as-needed on
947 the --rpath and --rpath-link options on Linux based systems.
948
1cfc6f00
AM
9492021-04-13 Alan Modra <amodra@gmail.com>
950
951 PR 27722
952 * libdep_plugin.c (str2vec): Don't pass a potentially signed char
953 to isspace.
954
43e05cd4
AM
9552021-04-12 Alan Modra <amodra@gmail.com>
956
957 * configure.ac (--enable-checking): Add support.
958 * config.in: Regenerate.
959 * configure: Regenerate.
960
2cc15b10
AM
9612021-04-12 Alan Modra <amodra@gmail.com>
962
963 * emultempl/mipself.em (mips_create_output_section_statements):
964 Pass base type of hash table to is_elf_hash_table.
965 * ldelf.c (ldelf_after_open): Likewise.
966
fc304b88
AM
9672021-04-12 Alan Modra <amodra@gmail.com>
968
969 PR 27719
970 * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
971 the symbol hash table is the correct type before accessing
972 elf_link_hash_entry symbols.
973 * plugin.c (is_visible_from_outside): Likewise.
974 * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
975 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
976
c3f72de4
AM
9772021-04-09 Alan Modra <amodra@gmail.com>
978
979 * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
980 * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
981 * testsuite/ld-powerpc/notoc2.d: Likewise.
982 * testsuite/ld-powerpc/notoc3.d: Likewise.
983 * testsuite/ld-powerpc/pcrelopt.d: Likewise.
984 * testsuite/ld-powerpc/startstop.d: Likewise.
985 * testsuite/ld-powerpc/tlsget.d: Likewise.
986 * testsuite/ld-powerpc/tlsget2.d: Likewise.
987 * testsuite/ld-powerpc/tlsld.d: Likewise.
988 * testsuite/ld-powerpc/weak1.d: Likewise.
989 * testsuite/ld-powerpc/weak1so.d: Likewise.
990
bd3d1480
JB
9912021-04-06 Jan Beulich <jbeulich@suse.com>
992
993 * pe-dll.c (generate_reloc): Bail immediately when .reloc is
994 being discarded. Warn when relocated entry is above .reloc.
995
c774eab1
AM
9962021-04-05 Alan Modra <amodra@gmail.com>
997
998 * configure.ac: Move initfini-array arg handling earlier. Don't
999 check for string.h, strings.h, stdlib.h, or locale.h. Do check
1000 for inttypes.h, stdint.h, sys/types.h. Don't check for
1001 setlocale, free, getev or strstr.
1002 (AC_ISC_POSIX): Don't invoke.
1003 * sysdep.h: Include string.h and stdlib.h unconditionally. Test
1004 HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and
1005 getenv fallback declarations.
1006 * ld.h: Don't test HAVE_LOCALE_H.
1007 * ldmain.c: Don't test HAVE_SETLOCALE.
1008 * config.in: Regenerate.
1009 * configure: Regenerate.
1010
74edb473
TC
10112021-04-01 Tamar Christina <tamar.christina@arm.com>
1012
1013 PR ld/26659
1014 * testsuite/ld-pe/pe.exp: Add test.
1015 * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
1016 * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
1017
e9b095a5
ML
10182021-04-01 Martin Liska <mliska@suse.cz>
1019
1020 * ldbuildid.c (strneq): Remove strneq and use startswith.
1021 (validate_build_id_style): Likewise.
1022 (compute_build_id_size): Likewise.
1023
f38a2680
AM
10242021-03-31 Alan Modra <amodra@gmail.com>
1025
1026 * sysdep.h (POISON_BFD_BOOLEAN): Define.
1027 * configure.ac (elf_list_options, elf_shlib_list_options=false),
1028 (elf_plt_unwind_list_options=false): Replace FALSE with false,
1029 and TRUE with true.
1030 * emulparams/call_nop.sh, * emulparams/cet.sh,
1031 * emulparams/dynamic_undefined_weak.sh,
1032 * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
1033 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
1034 * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
1035 * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
1036 * emulparams/reloc_overflow.sh, * emulparams/static.sh,
1037 * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
1038 * emultempl/aix.em, * emultempl/alphaelf.em,
1039 * emultempl/armcoff.em, * emultempl/armelf.em,
1040 * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
1041 * emultempl/cr16elf.em, * emultempl/crxelf.em,
1042 * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
1043 * emultempl/hppaelf.em, * emultempl/linux.em,
1044 * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
1045 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
1046 * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
1047 * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
1048 * emultempl/pep.em, * emultempl/ppc32elf.em,
1049 * emultempl/ppc64elf.em, * emultempl/rxelf.em,
1050 * emultempl/rxlinux.em, * emultempl/scoreelf.em,
1051 * emultempl/solaris2.em, * emultempl/spuelf.em,
1052 * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
1053 * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
1054 * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
1055 * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
1056 * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
1057 * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
1058 * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
1059 * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
1060 * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
1061 bfd_boolean with bool, FALSE with false, and TRUE with true.
1062 * configure: Regenerate.
1063
3dfb1b6d
AM
10642021-03-31 Alan Modra <amodra@gmail.com>
1065
1066 * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
1067 * emultempl/nds32elf.em: Likewise.
1068 * testsuite/ld-elf/mbind2b.c: Likewise.
1069 * testsuite/ld-elf/pr18718.c: Likewise.
1070 * testsuite/ld-elf/pr18720a.c: Likewise.
1071 * testsuite/ld-elf/pr25749-1.c: Likewise.
1072 * testsuite/ld-elf/pr25749-1a.c: Likewise.
1073 * testsuite/ld-elf/pr25749-1b.c: Likewise.
1074 * testsuite/ld-elf/pr25749-1c.c: Likewise.
1075 * testsuite/ld-elf/pr25749-1d.c: Likewise.
1076 * testsuite/ld-elf/pr25749-2.c: Likewise.
1077 * testsuite/ld-elf/pr25754-1a.c: Likewise.
1078 * testsuite/ld-elf/pr25754-2a.c: Likewise.
1079 * testsuite/ld-elf/pr25754-3a.c: Likewise.
1080 * testsuite/ld-elf/pr25754-4a.c: Likewise.
1081 * testsuite/ld-elf/pr25754-5a.c: Likewise.
1082 * testsuite/ld-elf/pr25754-6a.c: Likewise.
1083
63b4cc53
AM
10842021-03-29 Alan Modra <amodra@gmail.com>
1085
1086 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
1087 boolean expression.
1088 * lexsup.c (parse_args): Likewise.
1089 * pe-dll.c (pe_dll_id_target): Likewise.
1090
8592be8c
NA
10912021-03-25 Nick Alcock <nick.alcock@oracle.com>
1092
1093 * testsuite/ld-ctf/array.d: Only check that the data object
1094 section is nonempty: do not check its exact size.
1095 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1096 * testsuite/ld-ctf/slice.d: Likewise.
1097 * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
1098 func info section too.
1099 * testsuite/ld-ctf/function.d: Likewise, for the func info section.
1100
08dedd66
ML
11012021-03-22 Martin Liska <mliska@suse.cz>
1102
1103 * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
1104 * emultempl/beos.em: Likewise.
1105 * emultempl/elf.em: Likewise.
1106 * emultempl/pe.em: Likewise.
1107 * emultempl/pep.em: Likewise.
1108 * emultempl/xtensaelf.em: Likewise.
1109 * ldctor.c (ctor_prio): Likewise.
1110 * ldelf.c (ldelf_try_needed): Likewise.
1111 (ldelf_parse_ld_so_conf): Likewise.
1112 (ldelf_after_open): Likewise.
1113 (output_rel_find): Likewise.
1114 (ldelf_place_orphan): Likewise.
1115 * ldfile.c (ldfile_add_library_path): Likewise.
1116 * ldlang.c (lang_add_input_file): Likewise.
1117 * ldmain.c (get_sysroot): Likewise.
1118 (get_emulation): Likewise.
1119 (add_archive_element): Likewise.
1120 * ldwrite.c (unsplittable_name): Likewise.
1121 (clone_section): Likewise.
1122 * lexsup.c (parse_args): Likewise.
1123 * pe-dll.c (is_import): Likewise.
1124 (pe_implied_import_dll): Likewise.
1125
1de96e5d
L
11262021-03-19 H.J. Lu <hongjiu.lu@intel.com>
1127
1128 PR ld/27590
1129 * testsuite/ld-x86-64/pr27590.rd: New file.
1130 * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
1131 * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
1132 * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
1133
15407e7e
AM
11342021-03-20 Alan Modra <amodra@gmail.com>
1135
1136 PR 27590
1137 * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
1138 for all sections except .stabstr.
1139
fba7f753
AM
11402021-03-19 Alan Modra <amodra@gmail.com>
1141
1142 PR 27590
1143 * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
1144 R_MIPS_NONE.
1145 * testsuite/ld-elf/pr27590b.d: Likewise.
1146
3818d4ab
L
11472021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1148
1149 PR ld/27590
1150 * testsuite/ld-elf/pr27590.s: New file.
1151 * testsuite/ld-elf/pr27590a.d: Likewise.
1152 * testsuite/ld-elf/pr27590b.d: Likewise.
1153 * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
1154 --reduce-memory-overheads.
1155
51f6e7a9
L
11562021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1157
1158 PR ld/27587
1159 * testsuite/ld-x86-64/pr27587.err: New file.
1160 * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
1161 * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
1162 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
1163
69a28486
NA
11642021-03-18 Nick Alcock <nick.alcock@oracle.com>
1165
1166 * testsuite/ld-ctf/slice.c: Check slices of enums too.
1167 * testsuite/ld-ctf/slice.d: Results adjusted.
1168
ee42883c
NC
11692021-03-16 Nick Clifton <nickc@redhat.com>
1170
1171 * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
1172 lname string.
1173
c68b1842
JB
11742021-03-15 Jan Beulich <jbeulich@suse.com>
1175
1176 * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
1177
203a206d
AM
11782021-03-12 Alan Modra <amodra@gmail.com>
1179
1180 * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
1181 (ALL_64_EMULATION_SOURCES): ..here.
1182 * Makefile.in: Regenerate.
1183
1b2cb8e2
CC
11842021-03-12 Clément Chigot <clement.chigot@atos.net>
1185
1186 * emultempl/aix.em: Ensure .tdata section is removed
1187 if empty, even with -r flag.
1188 * scripttempl/aix.sc: Handle TLS sections.
1189 * testsuite/ld-powerpc/aix52.exp: Add new tests.
1190 * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
1191 * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
1192 * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
1193 * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
1194 * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
1195 * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
1196 * testsuite/ld-powerpc/aix-tls-section.ex: New test.
1197 * testsuite/ld-powerpc/aix-tls-section.s: New test.
1198
4a403be0
CC
11992021-03-12 Clément Chigot <clement.chigot@atos.net>
1200
1201 * scripttempl/aix.sc: Add .te to .data section.
1202 * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
1203 Add aix-largetoc-1 test.
1204 * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
1205 * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
1206 * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
1207 * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
1208
68cb2183
AM
12092021-03-12 Alan Modra <amodra@gmail.com>
1210
1211 * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
1212 arrange to define __main for some run_dump_test tests.
1213 * testsuite/ld-gc/pr13683.d: Accept more symbols.
1214 * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
1215 * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
1216 * testsuite/ld-srec/srec.exp: Likewise.
1217 * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
1218
ebdcad3f
NC
12192021-03-11 Nelson Chu <nelson.chu@sifive.com>
1220
1221 * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
1222 many times if riscv_restart_relax_sections returns TRUE.
1223 * testsuite/ld-riscv-elf/restart-relax.d: New testcase. Before
1224 applying this patch, the call won't be relaxed to jal; But now we
1225 have more chances to do relaxations.
1226 * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
1227 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
1228
67b0f684
JB
12292021-03-10 Jan Beulich <jbeulich@suse.com>
1230
1231 * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
1232 than 32 set bits.
1233 * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
1234 comment.
1235 * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
1236
5dc75cf3
JB
12372021-03-09 Jan Beulich <jbeulich@suse.com>
1238
1239 * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
1240 alignment to 4k.
1241 * testsuite/ld-pe/reloc.d: xfail for mcore.
1242
87fa7d56
JB
12432021-03-09 Jan Beulich <jbeulich@suse.com>
1244
1245 * testsuite/ld-scripts/alignof.exp,
1246 testsuite/ld-scripts/data.exp,
1247 testsuite/ld-scripts/default-script.exp,
1248 testsuite/ld-scripts/log2.exp,
1249 testsuite/ld-scripts/print-memory-usage.exp,
1250 testsuite/ld-scripts/sizeof.exp,
1251 testsuite/ld-undefined/weak-undef.exp: Set image base to zero
1252 for PE/COFF.
1253 * testsuite/ld-scripts/default-script1.d,
1254 testsuite/ld-scripts/default-script2.d,
1255 testsuite/ld-scripts/default-script3.d,
1256 testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
1257
8c0546e9
L
12582021-03-05 H.J. Lu <hongjiu.lu@intel.com>
1259
1260 PR ld/27425
1261 PR ld/27432
1262 * ldelf.c (ldelf_set_output_arch): New function.
1263 * ldelf.h (ldelf_set_output_arch): New prototype.
1264 * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
1265 ldelf_set_output_arch.
1266 * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
1267 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1268 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1269 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1270 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1271 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1272 * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
1273 * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
1274 * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
1275
d4e5db4e
JB
12762021-03-04 Jan Beulich <jbeulich@suse.com>
1277
1278 * testsuite/ld-scripts/map-address.exp: Set image base to zero
1279 for PE/COFF.
1280 * testsuite/ld-scripts/map-address.t: Place .text.
1281
6fa7408d
JB
12822021-03-04 Jan Beulich <jbeulich@suse.com>
1283
1284 * ldexp.c (ldexp_is_final_sym_absolute): New.
1285 * ldexp.h (ldexp_is_final_sym_absolute): Declare.
1286 * pe-dll.c (generate_reloc): Skip absolute symbols.
1287 * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
1288 * testsuite/ld-pe/pe.exp: Run new test.
1289
5789f845
AM
12902021-03-03 Alan Modra <amodra@gmail.com>
1291
1292 PR 27500
1293 * ldlang.c (insert_undefined): Don't mark symbols here.
1294 (lang_mark_undefineds): Do so here instead, new function.
1295 (lang_process): Call lang_mark_undefineds.
1296 * testsuite/ld-gc/start3.d,
1297 * testsuite/ld-gc/start3.s: New test.
1298 * testsuite/ld-gc/start4.d,
1299 * testsuite/ld-gc/start4.s: New test.
1300 * testsuite/ld-gc/gc.exp: Run them.
1301
270f32fc
AM
13022021-03-03 Alan Modra <amodra@gmail.com>
1303
1304 * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
1305 Move tests with ELF section directives to is_elf_format block.
1306 * testsuite/ld-gc/abi-note.d: Run on more targets.
1307 * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
1308 * testsuite/ld-gc/start.d: Likewise.
1309 * testsuite/ld-gc/start2.d: Likewise.
1310 * testsuite/ld-gc/stop.d: Likewise.
1311 * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
1312 * testsuite/ld-gc/start.s: Likewise.
1313 * testsuite/ld-gc/start2.s: Likewise.
1314
211bcd01
NA
13152021-03-02 Nick Alcock <nick.alcock@oracle.com>
1316
1317 * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
1318
b80e421f
AM
13192021-03-02 Alan Modra <amodra@gmail.com>
1320
1321 * testsuite/ld-powerpc/startstop.d,
1322 * testsuite/ld-powerpc/startstop.r,
1323 * testsuite/ld-powerpc/startstop.s: New test.
1324 * testsuite/ld-powerpc/powerpc.exp: Run it.
1325
f5b9c288
AM
13262021-03-02 Alan Modra <amodra@gmail.com>
1327
1328 * testsuite/ld-powerpc/weak1.d,
1329 * testsuite/ld-powerpc/weak1.r,
1330 * testsuite/ld-powerpc/weak1.s,
1331 * testsuite/ld-powerpc/weak1so.d,
1332 * testsuite/ld-powerpc/weak1so.r: New tests.
1333 * testsuite/ld-powerpc/powerpc.exp: Run them.
1334
ba6eb62f
NC
13352021-03-01 Hannes Domani <ssbssa@sourceware.org>
1336 Nick Clifton <nickc@redhat.com>
1337
1338 PR 27268
1339 * scripttempl/pe.sc: Add DWARF-5 section names.
1340 * scripttempl/pep.sc: Likewise.
1341
8ee10e86
AM
13422021-03-01 Alan Modra <amodra@gmail.com>
1343 Fangrui Song <maskray@google.com>
1344
1345 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
1346 * lexsup.c (elf_static_list_options): Display help for them. Move
1347 help for -z stack-size to here from elf_shlib_list_options. Add
1348 help for -z start-stop-visibility and -z undefs.
1349 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
1350 * NEWS: Mention -z start-stop-gc.
1351 * testsuite/ld-gc/start2.s,
1352 * testsuite/ld-gc/start2.d: New test.
1353 * testsuite/ld-gc/gc.exp: Run it.
1354
7824c1d2
AM
13552021-03-01 Alan Modra <amodra@gmail.com>
1356
1357 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
1358 symbols undefweak if that was how they were referenced. Undo
1359 dynamic state too.
1360
6a1224ec
AM
13612021-03-01 Alan Modra <amodra@gmail.com>
1362
1363 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
1364 * testsuite/ld-elf/pr27128a.d: Likewise.
1365 * testsuite/ld-elf/pr27128b.d: Likewise.
1366 * testsuite/ld-elf/pr27128c.d: Likewise.
1367 * testsuite/ld-elf/pr27128d.d: Likewise.
1368 * testsuite/ld-elf/pr27128e.d: Likewise.
1369
bfece756
AM
13702021-02-26 Alan Modra <amodra@gmail.com>
1371
1372 PR 27441
1373 * testsuite/ld-plugin/pr27441a.c,
1374 * testsuite/ld-plugin/pr27441b.c,
1375 * testsuite/ld-plugin/pr27441c.c,
1376 * testsuite/ld-plugin/pr27441c.d: New test.
1377 * testsuite/ld-plugin/lto.exp: Run it.
1378
3c27360b
JB
13792021-02-25 Jan Beulich <jbeulich@suse.com>
1380
1381 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
1382
89753bbf
AM
13832021-02-21 Alan Modra <amodra@gmail.com>
1384
1385 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
1386 defined in an object file.
1387 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
1388 * testsuite/ld-scripts/defined5.d: Expect a warning.
1389
2f973f13
AM
13902021-02-19 Alan Modra <amodra@gmail.com>
1391
1392 * testsuite/lib/ld-lib.exp: Whitespace.
1393 (load_common_lib): Expand single use and delete this proc.
1394 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
1395 Use -B for clang too.
1396
a364a116
AB
13972021-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
1398
1399 * testplugin.c (record_read_length): Remove debug fprintf.
1400
5b1f6c95
AM
14012021-02-14 Alan Modra <amodra@gmail.com>
1402
1403 * testsuite/ld-cdtest/cdtest.exp,
1404 * testsuite/ld-checks/checks.exp,
1405 * testsuite/ld-elf/binutils.exp,
1406 * testsuite/ld-elf/compress.exp,
1407 * testsuite/ld-elf/dwarf.exp,
1408 * testsuite/ld-elf/exclude.exp,
1409 * testsuite/ld-elf/frame.exp,
1410 * testsuite/ld-elf/indirect.exp,
1411 * testsuite/ld-elf/linux-x86.exp,
1412 * testsuite/ld-elf/sec-to-seg.exp,
1413 * testsuite/ld-elf/tls_common.exp,
1414 * testsuite/ld-elfcomm/elfcomm.exp,
1415 * testsuite/ld-elfvers/vers.exp,
1416 * testsuite/ld-elfvsb/elfvsb.exp,
1417 * testsuite/ld-elfweak/elfweak.exp,
1418 * testsuite/ld-ifunc/binutils.exp,
1419 * testsuite/ld-mips-elf/mips-elf-flags.exp,
1420 * testsuite/ld-misc/defsym.exp,
1421 * testsuite/ld-mn10300/mn10300.exp,
1422 * testsuite/ld-plugin/lto.exp,
1423 * testsuite/ld-plugin/plugin.exp,
1424 * testsuite/ld-scripts/align.exp,
1425 * testsuite/ld-scripts/assert.exp,
1426 * testsuite/ld-scripts/crossref.exp,
1427 * testsuite/ld-scripts/defined.exp,
1428 * testsuite/ld-scripts/extern.exp,
1429 * testsuite/ld-scripts/log2.exp,
1430 * testsuite/ld-scripts/map-address.exp,
1431 * testsuite/ld-scripts/phdrs.exp,
1432 * testsuite/ld-scripts/phdrs2.exp,
1433 * testsuite/ld-scripts/script.exp,
1434 * testsuite/ld-scripts/section-flags.exp,
1435 * testsuite/ld-scripts/sizeof.exp,
1436 * testsuite/ld-scripts/weak.exp,
1437 * testsuite/ld-selective/selective.exp,
1438 * testsuite/ld-sh/sh.exp,
1439 * testsuite/ld-shared/shared.exp,
1440 * testsuite/ld-srec/srec.exp,
1441 * testsuite/ld-tic6x/tic6x.exp,
1442 * testsuite/ld-undefined/undefined.exp,
1443 * testsuite/ld-undefined/weak-undef.exp,
1444 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
1445 perror. Instead report "unsupported" or "fail".
1446
c46b7066
NC
14472021-02-12 Nick Clifton <nickc@redhat.com>
1448
1449 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
1450 following debug links.
1451
933feaf3
AM
14522021-02-11 Alan Modra <amodra@gmail.com>
1453
1454 * NEWS: Mention arm-symbianelf removal.
1455
a57d1773
AM
14562021-02-09 Alan Modra <amodra@gmail.com>
1457
1458 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
1459 Don't include symbian dep file.
1460 * configure.tgt: Remove arm*-*-symbianelf* entry.
1461 * emulparams/armsymbian.sh: Delete.
1462 * ld.texi: Don't mention symbian.
1463 * scripttempl/armbpabi.sc: Delete.
1464 * testsuite/ld-arm/symbian-seg1.d: Delete.
1465 * testsuite/ld-arm/symbian-seg1.s: Delete.
1466 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
1467 * Makefile.in: Regenerate.
1468 * po/BLD-POTFILES.in: Regenerate.
1469
38a143aa
L
14702021-02-07 H.J. Lu <hongjiu.lu@intel.com>
1471
1472 PR ld/27358
1473 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
1474 tests.
1475 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1476
35a01a04
NA
14772021-01-26 Nick Alcock <nick.alcock@oracle.com>
1478
1479 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
1480 when appropriate.
1481
1a2f1b54
L
14822021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1483
1484 PR ld/19609
1485 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
1486 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
1487 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
1488 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
1489 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
1490 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
1491 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
1492
37707bd8
L
14932021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1494
1495 PR ld/15146
1496 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
1497 * testsuite/ld-plugin/pr15146.d: Restored.
1498 * testsuite/ld-plugin/pr15146a.c: Likewise.
1499 * testsuite/ld-plugin/pr15146b.c: Likewise.
1500 * testsuite/ld-plugin/pr15146c.c: Likewise.
1501 * testsuite/ld-plugin/pr15146d.c: Likewise.
1502
7d409ac0
AM
15032021-02-04 Alan Modra <amodra@gmail.com>
1504
1505 * testsuite/ld-plugin/pr27311d.c: New test.
1506 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
1507 and link new test as pr27311-2.
1508
69551367
AM
15092021-02-03 Alan Modra <amodra@gmail.com>
1510
1511 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
1512 Link with --as-needed.
1513
9918bff7
AM
15142021-02-02 Alan Modra <amodra@gmail.com>
1515
1516 * testsuite/ld-plugin/pr27311.d,
1517 * testsuite/ld-plugin/pr27311.ver,
1518 * testsuite/ld-plugin/pr27311a.c,
1519 * testsuite/ld-plugin/pr27311b.c,
1520 * testsuite/ld-plugin/pr27311c.c: New testcase.
1521 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
1522 PR12982 entries.
1523
1f568f9a
EH
15242021-02-01 Emery Hemingway <ehmry@posteo.net>
1525
1526 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1527
fb6c220e
AM
15282021-02-01 Alan Modra <amodra@gmail.com>
1529
1530 * ldgram.y (defsym_expr): Use assignment rule.
1531 * ldlex.h (ldlex_defsym): Delete.
1532 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
1533
40726f16
AM
15342021-02-01 Alan Modra <amodra@gmail.com>
1535
1536 * ldgram.y (section): Call ldlex_backup. Remove empty action.
1537 * ldlex.h (ldlex_backup): Declare.
1538 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
1539 chars, use SYMBOLNAMECHAR.
1540 (ldlex_backup): New function.
1541
a5f92c67
AM
15422021-02-01 Alan Modra <amodra@gmail.com>
1543
1544 * ldgram.y: Whitespace fixes.
1545
49daa38f
AM
15462021-02-01 Alan Modra <amodra@gmail.com>
1547
1548 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
1549
c4566785
AM
15502021-01-29 Alan Modra <amodra@gmail.com>
1551
1552 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
1553
53e556e5
L
15542021-01-28 H.J. Lu <hongjiu.lu@intel.com>
1555
1556 PR ld/27259
1557 * testsuite/ld-elf/pr27259.d: New file.
1558 * testsuite/ld-elf/pr27259.s: Likewise.
1559
def97fb9
AM
15602021-01-28 Alan Modra <amodra@gmail.com>
1561
1562 PR 27259
1563 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
1564 prevent endless looping of linked-to sections.
1565
2eda57ef
L
15662021-01-26 H.J. Lu <hongjiu.lu@intel.com>
1567
1568 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
1569
1c9c9b9b
AM
15702021-01-26 Alan Modra <amodra@gmail.com>
1571
1572 PR 27226
1573 * emulparams/alphavms.sh: Don't set COMPILE_IN.
1574 * emulparams/elf64_ia64_vms.sh: Likewise.
1575 * emulparams/elf64mmix.sh: Likewise.
1576 * emulparams/elf_iamcu.sh: Likewise.
1577 * emulparams/elf_k1om.sh: Likewise.
1578 * emulparams/elf_l1om.sh: Likewise.
1579 * emulparams/mmo.sh: Likewise.
1580 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
1581 * scripttempl/pdp11.sc: Use it.
1582 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
1583 instead use .xe script. Support scripts from file system.
1584 * emultempl/beos.em: Support scripts from file system.
1585 * emultempl/pe.em: Likewise.
1586 * emultempl/pep.em: Likewise.
1587 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
1588
9e42b976
FS
15892021-01-25 Fangrui Song <maskray@google.com>
1590
1591 PR ld/27230
1592 * scripttempl/DWARF.sc: Add .debug_* sections.
1593
b8df6900
NC
15942021-01-25 Nick Clifton <nickc@redhat.com>
1595
1596 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
1597 .debug_line_str and .debug_str_offsets. Move .debug_macro and
1598 .debug_addr into DWARF-5 section.
1599
c78eec44
AM
16002021-01-21 Alan Modra <amodra@gmail.com>
1601
1602 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
1603
4bd7c902
AM
16042021-01-20 Alan Modra <amodra@gmail.com>
1605
1606 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
1607 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
1608 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
1609 * testsuite/ld-powerpc/tlsget.wf: Likewise.
1610 * testsuite/ld-powerpc/tlsget2.d: Likewise.
1611 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
1612 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
1613 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
1614 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
1615 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
1616 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
1617 * testsuite/ld-powerpc/tlsexers.r: Likewise.
1618 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
1619 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
1620 * testsuite/ld-powerpc/tlsso.r: Likewise.
1621 * testsuite/ld-powerpc/tlsso32.r: Likewise.
1622 * testsuite/ld-powerpc/tlstocso.r: Likewise.
1623
c98de297
NA
16242021-01-19 Nick Alcock <nick.alcock@oracle.com>
1625
1626 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
1627 symbols by the optimizer.
1628 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
1629
85e963f1
NC
16302021-01-19 Nelson Chu <nelson.chu@sifive.com>
1631
1632 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
1633 if target is riscv little endian. Otherwise, return false.
1634 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
1635 targets by [riscv_little_endian].
1636
326adec3
AM
16372021-01-18 Alan Modra <amodra@gmail.com>
1638
1639 PR 26378
1640 * ldlang.c (map_input_to_output_sections): Start with a read-only
1641 section for data statements.
1642 * testsuite/ld-elf/size-2.d: Adjust to suit.
1643
994b2513
L
16442021-01-17 H.J. Lu <hongjiu.lu@intel.com>
1645
1646 PR ld/27193
1647 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
1648 * testsuite/ld-i386/pr27193.dd: New file.
1649 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
1650 * testsuite/ld-i386/pr27193b.s: Likewise.
1651
edf0f284
L
16522021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1653
1654 PR binutils/23460
1655 * testsuite/ld-plugin/lto.exp: Increase the max number of open
1656 files to 20 for PR binutils/23460 test.
1657
75a933f3
L
16582021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1659
1660 PR ld/23169
1661 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
1662 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
1663 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
1664 address.
1665
68b00778
L
16662021-01-15 H.J. Lu <hongjiu.lu@intel.com>
1667
1668 * NEWS: Mention -z report-relative-reloc.
1669 * ld.texi: Document -z report-relative-reloc.
1670 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
1671 * emulparams/elf_i386.sh: Likewse.
1672 * emulparams/elf_x86_64.sh: Likewse.
1673 * emulparams/x86-report-relative.sh: New file.
1674 * testsuite/ld-i386/report-reloc-1.d: Likewse.
1675 * testsuite/ld-i386/report-reloc-1.l: Likewse.
1676 * testsuite/ld-i386/report-reloc-1.s: Likewse.
1677 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
1678 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
1679 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
1680 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
1681 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
1682 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
1683 report-reloc-1-x32.
1684
eb6e6af8
AM
16852021-01-16 Alan Modra <amodra@gmail.com>
1686
1687 PR 26002
1688 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
1689 unversioned symbols.
1690 * testsuite/ld-elfvers/vers16.dsym: Likewise.
1691
b800637e
NC
16922021-01-15 Nelson Chu <nelson.chu@sifive.com>
1693
1694 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
1695 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
1696 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
1697 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
1698 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
1699 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
1700
5a10699f
NC
17012021-01-14 Nick Clifton <nickc@redhat.com>
1702
1703 * po/fr.po: Updated French translation.
1704
271bea6a
MF
17052021-01-14 Mike Frysinger <vapier@gentoo.org>
1706
1707 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
1708
4120e488
AM
17092021-01-14 Alan Modra <amodra@gmail.com>
1710
1711 PR 27160
1712 * ldelfgen.c (compare_link_order): Protect access of ELF section
1713 data.
1714 (add_link_order_input_section): Remove redundant NULL check.
1715 Use bfd_get_flavour.
1716 (ldelf_map_segments): Use bfd_get_flavour.
1717
b634d11d
L
17182021-01-13 H.J. Lu <hongjiu.lu@intel.com>
1719
1720 * ldelfgen.c (add_link_order_input_section): Check for ELF input
1721 before accessing ELF section data.
1722
5347ed60
AM
17232021-01-13 Alan Modra <amodra@gmail.com>
1724
1725 * Makefile.in: Regenerate.
1726
b209b5a6
AM
17272021-01-13 Alan Modra <amodra@gmail.com>
1728
1729 PR 27160
1730 * ldlang.h (lang_output_section_statement_type): Add data field.
1731 (lang_input_section_type, lang_section_bst_type): Add pattern field.
1732 (statement_list): Declare.
1733 (lang_add_section): Adjust prototype.
1734 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
1735 * emultempl/armelf.em: Likewise.
1736 * emultempl/beos.em: Likewise.
1737 * emultempl/cskyelf.em: Likewise.
1738 * emultempl/hppaelf.em: Likewise.
1739 * emultempl/m68hc1xelf.em: Likewise.
1740 * emultempl/metagelf.em: Likewise.
1741 * emultempl/mipself.em: Likewise.
1742 * emultempl/mmo.em: Likewise.
1743 * emultempl/msp430.em: Likewise.
1744 * emultempl/nios2elf.em: Likewise.
1745 * emultempl/pe.em: Likewise.
1746 * emultempl/pep.em: Likewise.
1747 * emultempl/ppc64elf.em: Likewise.
1748 * emultempl/spuelf.em: Likewise.
1749 * emultempl/vms.em: Likewise.
1750 * ldelf.c: Likewise.
1751 * ldelfgen.c: Include ldctor.h.
1752 (struct os_sections): New.
1753 (add_link_order_input_section, link_order_scan): New functions.
1754 (compare_link_order, fixup_link_order): New functions.
1755 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
1756 * ldlang.c (statement_list): Make global.
1757 (output_section_callback_fast): Save pattern in tree node.
1758 (lang_add_section): Add pattern parameter, save in lang_input_section.
1759 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
1760 (lang_insert_orphan, output_section_callback): Likewise.
1761 (ldlang_place_orphan): Likewise.
1762 (gc_section_callback): Don't set section->pattern.
1763 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
1764 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1765 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
1766
8c4645b4
AM
17672021-01-13 Alan Modra <amodra@gmail.com>
1768
1769 * ldlang.h (callback_t): Remove flag_info function parameter.
1770 * ldlang.c (walk_wild_consider_section): Adjust to suit.
1771 (walk_wild_section_general): Likewise.
1772 (output_section_callback_fast, output_section_callback): Likewise.
1773 (check_section_callback, gc_section_callback): Likewise.
1774 (find_relro_section_callback): Likewise.
1775
d546b610
L
17762021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1777
1778 PR binutils/26792
1779 * configure.ac: Use GNU_MAKE_JOBSERVER.
1780 * aclocal.m4: Regenerated.
1781 * configure: Likewise.
1782
c2e9a4a3
L
17832021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1784
1785 PR ld/27171
1786 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
1787 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1788 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1789 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
1790
83b33c6c
L
17912021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1792
1793 PR ld/27173
1794 * configure: Regenerated.
1795
c0f6e439
MJ
17962021-01-11 Matt Jenkins <matt@majenko.co.uk>
1797
1798 PR ld/27167
1799 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
1800 and mips64r5 to list of known mips targets.
1801
18022021-01-11 Nick Clifton <nickc@redhat.com>matt@majenko.co.uk
a8aa72b9
NC
1803
1804 * po/pt_BR.po: Updated Brazilian Portuguese translation.
1805` * po/uk.po: Updated Ukranian translation.
1806
a4966cd9
L
18072021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1808
1809 * configure: Regenerated.
1810
0a94990b
L
18112021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1812
1813 PR ld/27166
1814 * testsuite/ld-x86-64/lam-u48.rd: New file.
1815 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
1816 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
1817
573fe3fb
NC
18182021-01-09 Nick Clifton <nickc@redhat.com>
1819
1820 * configure: Regenerate.
1821 * po/ld.pot: Regenerate.
1822
055bc77a
NC
18232021-01-09 Nick Clifton <nickc@redhat.com>
1824
1825 * 2.36 release branch crated.
1826
ba9e922f
L
18272021-01-08 H.J. Lu <hongjiu.lu@intel.com>
1828
1829 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
1830 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
1831
64307045
AM
18322021-01-09 Alan Modra <amodra@gmail.com>
1833
1834 * configure: Regenerate.
1835 * Makefile.in: Regenerate.
1836
f4782128
ST
18372021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1838
1839 * configure: Regenerate.
1840
d1bcae83
L
18412021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1842
1843 PR 27109
1844 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
1845 * testsuite/ld-elf/loadaddr3b.d: Likewise.
1846 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1847 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1848 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1849 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1850 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1851 * testsuite/ld-i386/pr19636-1d.d: Likewise.
1852 * testsuite/ld-i386/pr19636-1l.d: Likewise.
1853 * testsuite/ld-i386/pr19636-2c.d: Likewise.
1854 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1855 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1856 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1857 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1858 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1859 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1860 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1861 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1862 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1863 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1864 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1865 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1866 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1867 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1868 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1869 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1870 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1871 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1872 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1873 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1874 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1875 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1876 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1877 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1878 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1879 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1880 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
1881 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
1882 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
1883 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
1884 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
1885 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
1886 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1887 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
1888 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1889 * testsuite/ld-x86-64/pr21038b.d: Likewise.
1890 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1891 * testsuite/ld-x86-64/pr21038c.d: Likewise.
1892 * testsuite/ld-x86-64/pr23854.d: Likewise.
1893 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1894 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1895 * testsuite/ld-i386/plt-pic.pd: Likewise.
1896 * testsuite/ld-i386/plt-pic2.dd: Likewise.
1897 * testsuite/ld-i386/plt.pd: Likewise.
1898 * testsuite/ld-i386/plt2.dd: Likewise.
1899 * testsuite/ld-i386/tlsbin.rd: Likewise.
1900 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1901 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1902 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1903 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
1904 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1905 * testsuite/ld-i386/tlspic.rd: Likewise.
1906 * testsuite/ld-i386/tlspic2.rd: Likewise.
1907 * testsuite/ld-x86-64/mpx3.dd: Likewise.
1908 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
1909 * testsuite/ld-x86-64/mpx4.dd: Likewise.
1910 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
1911 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
1912 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1913 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1914 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1915 * testsuite/ld-x86-64/plt.pd: Likewise.
1916 * testsuite/ld-x86-64/plt2.dd: Likewise.
1917 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1918 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1919 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1920 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1921 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
1922 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1923 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1924 * testsuite/ld-elf/sec64k.exp: Check
1925 is_elf_unused_section_symbols.
1926
dc200613
AM
19272021-01-07 Alan Modra <amodra@gmail.com>
1928
1929 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
1930 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
1931 * testsuite/ld-scripts/segment-start.d: Likewise.
1932
8e604ff0
AM
19332021-01-07 Alan Modra <amodra@gmail.com>
1934
1935 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
1936 about dynamic relocations in read-only sections.
1937 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1938 * testsuite/ld-elf/ehdr_start.d: Likewise.
1939 * testsuite/ld-scripts/pr22267.d: Likewise.
1940 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
1941 pr20995 text.
1942 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
1943
4d4490b8
MC
19442021-01-07 Marcus Comstedt <marcus@mc.pp.se>
1945
1946 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
1947 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
1948
f526791a
AM
19492021-01-07 Alan Modra <amodra@gmail.com>
1950
1951 * po/BLD-POTFILES.in: Regenerate.
1952
4018f4e0
AM
19532021-01-07 Alan Modra <amodra@gmail.com>
1954
1955 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
1956 complain about relocs in read-only sections. Tidy ASFLAGS append.
1957
3677b729
AM
19582021-01-06 Alan Modra <amodra@gmail.com>
1959
1960 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
1961 base for some tests.
1962 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
1963 * testsuite/ld-sparc/gotop32.sd: Likewise.
1964 * testsuite/ld-sparc/gotop32.td: Likewise.
1965 * testsuite/ld-sparc/gotop64.dd: Likewise.
1966 * testsuite/ld-sparc/gotop64.sd: Likewise.
1967 * testsuite/ld-sparc/gotop64.td: Likewise.
1968 * testsuite/ld-sparc/tlsg32.sd: Likewise.
1969 * testsuite/ld-sparc/tlsg64.sd: Likewise.
1970 * testsuite/ld-sparc/tlspie32.dd: Likewise.
1971 * testsuite/ld-sparc/tlspie64.dd: Likewise.
1972 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
1973 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
1974 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
1975 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
1976 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
1977 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
1978 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
1979 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
1980 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
1981 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
1982 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
1983 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
1984 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
1985 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
1986 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
1987 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
1988 * testsuite/ld-sparc/wdispcall.dd: Likewise.
1989
73624512
AM
19902021-01-06 Alan Modra <amodra@gmail.com>
1991
1992 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
1993 * testsuite/ld-scripts/rgn-at11.d: Likewise.
1994
f36ce378
MC
19952021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1996
1997 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
1998 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
1999 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
2000 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
2001 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
2002 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
2003 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
2004 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
2005 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
2006 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
2007 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
2008 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
2009 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
2010 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
2011 to littleriscv.
2012 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
2013
fbc09e7a
MC
20142021-01-06 Marcus Comstedt <marcus@mc.pp.se>
2015
2016 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
2017 riscv32be*-*-linux*, and riscv64be*-*-linux*.
2018 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
2019 eelf32briscv_ilp32.c.
2020 * Makefile.in: Regenerate.
2021 * emulparams/elf32briscv.sh: Added.
2022 * emulparams/elf32briscv_ilp32.sh: Likewise.
2023 * emulparams/elf32briscv_ilp32f.sh: Likewise.
2024 * emulparams/elf64briscv.sh: Likewise.
2025 * emulparams/elf64briscv_lp64.sh: Likewise.
2026 * emulparams/elf64briscv_lp64f.sh: Likewise.
2027
b4b6ea46
NA
20282021-01-05 Nick Alcock <nick.alcock@oracle.com>
2029
2030 * testsuite/ld-ctf/enum-forward.c: New test.
2031 * testsuite/ld-ctf/enum-forward.c: New results.
2032
37002871
NA
20332021-01-05 Nick Alcock <nick.alcock@oracle.com>
2034
2035 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2036 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
2037 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
2038 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
2039 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
2040 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
2041 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
2042 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
2043 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
2044 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
2045 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
2046 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
2047 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2048 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
2049 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
2050 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
2051 * testsuite/ld-ctf/cycle-1.d: Likewise.
2052 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
2053 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
2054 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
2055 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2056 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2057 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2058 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2059 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
2060 * testsuite/ld-ctf/forward.d: Likewise.
2061 * testsuite/ld-ctf/function.d: Likewise.
2062 * testsuite/ld-ctf/slice.d: Likewise.
2063 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
2064 * testsuite/ld-ctf/enums.c: New test.
2065 * testsuite/ld-ctf/enums.d: New test.
2066
ffeece6a
NA
20672021-01-05 Nick Alcock <nick.alcock@oracle.com>
2068
2069 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
2070 changes.
2071 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2072 * testsuite/ld-ctf/forward.c: New test...
2073 * testsuite/ld-ctf/forward.d: ... and results.
2074
91e7ce2f
NA
20752021-01-05 Nick Alcock <nick.alcock@oracle.com>
2076
2077 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2078 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2079 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2080 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2081 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2082 * testsuite/ld-ctf/function.d: Likewise.
2083 * testsuite/ld-ctf/slice.d: Likewise.
2084
57f97d0e
NA
20852021-01-05 Nick Alcock <nick.alcock@oracle.com>
2086
2087 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2088 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
2089 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
2090 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
2091 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
2092 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
2093 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
2094 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
2095 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
2096 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
2097 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
2098 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
2099 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2100 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
2101 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
2102 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
2103 * testsuite/ld-ctf/cycle-1.d: Likewise.
2104 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
2105 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
2106 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
2107 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2108 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2109 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2110 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2111 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
2112 * testsuite/ld-ctf/function.d: Likewise.
2113 * testsuite/ld-ctf/slice.d: Likewise.
2114 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
2115
b281a04f
AM
21162021-01-05 Alan Modra <amodra@gmail.com>
2117
2118 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
2119
40b11930
AM
21202021-01-05 Alan Modra <amodra@gmail.com>
2121
2122 PR ld/26256
2123 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
2124 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
2125
cd6d537c
L
21262021-01-04 H.J. Lu <hongjiu.lu@intel.com>
2127
2128 PR ld/26256
2129 * ldlang.c (gc_section_callback): Set pattern.
2130 * testsuite/ld-elf/pr26256-1.s: New file.
2131 * testsuite/ld-elf/pr26256-1.t: Likewise.
2132 * testsuite/ld-elf/pr26256-1a.d: Likewise.
2133 * testsuite/ld-elf/pr26256-1b.d: Likewise.
2134 * testsuite/ld-elf/pr26256-2.s: Likewise.
2135 * testsuite/ld-elf/pr26256-2.t: Likewise.
2136 * testsuite/ld-elf/pr26256-2a.d: Likewise.
2137 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
2138 * testsuite/ld-elf/pr26256-2b.d: Likewise.
2139 * testsuite/ld-elf/pr26256-3.s: Likewise.
2140 * testsuite/ld-elf/pr26256-3a.d: Likewise.
2141 * testsuite/ld-elf/pr26256-3a.t: Likewise.
2142 * testsuite/ld-elf/pr26256-3b.d: Likewise.
2143 * testsuite/ld-elf/pr26256-3b.t: Likewise.
2144
5b4293ba
AM
21452021-01-04 Alan Modra <amodra@gmail.com>
2146
2147 PR 26822
2148 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
2149 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
2150 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
2151 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
2152 * testsuite/ld-i386/tlsbin.rd: Likewise.
2153 * testsuite/ld-i386/tlsbin2.rd: Likewise.
2154 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
2155 * testsuite/ld-i386/tlsdesc.rd: Likewise.
2156 * testsuite/ld-i386/tlsnopic.rd: Likewise.
2157 * testsuite/ld-i386/tlspic.rd: Likewise.
2158 * testsuite/ld-i386/tlspic2.rd: Likewise.
2159 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
2160 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
2161 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
2162 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
2163 * testsuite/ld-plugin/pr17973.d: Likewise.
2164 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
2165 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
2166 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
2167 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
2168 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
2169 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
2170 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
2171 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
2172 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
2173 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
2174 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
2175 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
2176 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
2177 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
2178 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
2179 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
2180 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
2181 * testsuite/ld-x86-64/tlspic.rd: Likewise.
2182 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
2183 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
2184 * testsuite/ld-xtensa/tlspic.rd: Likewise.
2185
f9a6a8f0
AM
21862021-01-01 Nicolas Boulenguez <nicolas@debian.org>
2187
2188 * configure.tgt: Correct comment grammar.
2189 * emultempl/m68hc1xelf.em: Likewise.
2190 * ld.texi: Correct grammar.
2191
250d07de
AM
21922021-01-01 Alan Modra <amodra@gmail.com>
2193
2194 Update year range in copyright notice of all files.
2195
c2795844 2196For older changes see ChangeLog-2020
3499769a 2197\f
d87bef3a 2198Copyright (C) 2021-2023 Free Software Foundation, Inc.
3499769a
AM
2199
2200Copying and distribution of this file, with or without modification,
2201are permitted in any medium without royalty provided the copyright
2202notice and this notice are preserved.
2203
2204Local Variables:
2205mode: change-log
2206left-margin: 8
2207fill-column: 74
2208version-control: never
2209End: