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