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