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