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