1 2023-11-06 Jan Beulich <jbeulich@suse.com>
4 * testsuite/ld-x86-64/property-3.r: Revert commit bf77f42f6708.
5 * testsuite/ld-x86-64/property-4.r: Likewise.
6 * testsuite/ld-x86-64/property-5.r: Likewise.
8 2023-11-06 Nick Clifton <nickc@redhat.com>
11 * ld.texi: Update description of the FILL command.
12 * testsuite/ld-scripts/fill2.d: New test.
13 * testsuite/ld-scripts/fill2.t: New test source.
14 * testsuite/ld-scripts/data.exp: Run the new test.
16 2023-11-02 Nick Clifton <nickc@redhat.com>
18 * testsuite/ld-x86-64/property-3.r: Update regexp to allow for
19 targets which support x86-64-v3.
20 * testsuite/ld-x86-64/property-4.r: Likewise.
21 * testsuite/ld-x86-64/property-5.r: Likewise.
23 2023-11-01 Nick Clifton <nickc@redhat.com>
26 * ldlex.l: Add REVERSE.
27 * ldgram.y: Allow REVERSE to be used wherever a sorting command
29 * ld.h (struct wildcard_spec): Add 'reversed' field.
30 * ldlang.h (lang_wild_statement_struct): Add 'filenames_reversed' field.
31 * ldlang.c (compare_sections): Add reversed parameter.
32 (wild_sort): Reverse the comparison if requested.
33 (print_wild_statement): Handle the reversed field.
34 * ld.texi: Document the new feature.
35 * NEWS: Mention the new feature.
36 * testsuite/ld-scripts/sort-file-reversed-1.d: New test driver.
37 * testsuite/ld-scripts/sort-file-reversed-1.t: New test source.
38 * testsuite/ld-scripts/sort-file-reversed-2.t: New test source.
39 * testsuite/ld-scripts/sort-file-reversed-2.d: New test driver.
40 * testsuite/ld-scripts/sort-sections-reversed-1.d: New test driver.
41 * testsuite/ld-scripts/sort-sections-reversed-1.t: New test source.
42 * testsuite/ld-scripts/sort-sections-reversed-2.t: New test source.
43 * testsuite/ld-scripts/sort-sections-reversed-2.d: New test driver.
44 * testsuite/ld-scripts/sort-sections-reversed-3.d: New test driver.
45 * testsuite/ld-scripts/sort-sections-reversed-3.t: New test source.
47 2023-10-30 Nick Clifton <nickc@redhat.com>
49 * po/ka.po: New Georgian translation.
51 2023-10-19 Jose E. Marchesi <jose.marchesi@oracle.com>
53 * ld.texi (Options): Fix typo metdata->metadata.
55 2023-10-16 Nick Clifton <nickc@redhat.com>
58 * lexsup.c (ld_options): Require that the --architecture option is
59 given exactly two dashes, so that it does not become confused with
62 2023-10-09 Nick Clifton <nickc@redhat.com>
65 * ldlex.l (yy_input): Check for YY_CURRENT_BUFFER being NULL.
68 * ldlang.c (map_input_to_output_sections): Check that os is non
71 2023-10-05 A. Wilcox <awilfox@adelielinux.org>
74 * testsuite/ld-elf/pr28158.rd: Adjust regexp to allow for section
75 indicies larger than 9.
77 2023-10-05 A. Wilcox <awilfox@adelielinux.org>
80 * testsuite/ld-elf/dt-relr.exp: Skip for MUSL targets.
82 2023-10-05 A. Wilcox <awilfox@adelielinux.org>
85 * testsuite/ld-shared/shared.exp: Add XFAILs for tests that fail
86 with the MUSL library.
88 2023-10-05 A. Wilcox <awilfox@adelielinux.org>
91 * testsuite/ld-arm/thumb-plt-got.d: Skip test for configurations
92 using the MUSL library.
93 * testsuite/ld-arm/thumb-plt.d: Likewise.
95 2023-10-05 A. Wilcox <awilfox@adelielinux.org>
99 * testsuite/ld-i386/i386.exp: Skip the pr22001 test with TEXTREL
100 relocations enabled on configurations using the MUSL library.
102 2023-10-05 A. Wilcox <awilfox@adelielinux.org>
105 * testsuite/ld-elfvers/vers.exp (objdump_emptyverstuff): Handle
106 EABI version information in objdump's output.
108 2023-10-02 Nick Clifton <nickc@redhat.com>
110 * pe-dll.c (fill_edata): Use bfd_get_current_time when filling in
113 2023-09-27 Hsinyuan Xavier <TheLastLin@hotmail.com>
116 * ldlang.c (get_os_init_flag): New function.
117 (exp_init_os, map_input_to_output_sections): Use it.
119 2023-07-24 Johannes Schauer Marin Rodrigues <josch@debian.org>
121 * pe-dll.c (fill_edata): If inserting a timestamp, use the value
122 held in the SOURCE_DATE_EPOCH environment variable, if it is
124 * ld.texi (--insert-timestamp): Document change in behaviour.
126 2023-07-03 Nick Clifton <nickc@redhat.com>
128 * configure: Regenerate.
130 2023-07-03 Nick Clifton <nickc@redhat.com>
134 2023-06-28 Nikita Popov <npopov@redhat.com>
135 Nick Clifton <nickc@redhat.com>
138 * ldfile.c (ldfile_try_open_bfd): Do not track lto generated
141 2023-06-21 Nick Clifton <nickc@redhat.com>
144 * testsuite/ld-elf/elf.exp (target_defaults_to_execstack): Always
145 return false for linkers configured with the --enable-default-execstack=no
148 2023-06-14 Nick Clifton <nickc@redhat.com>
151 * ldfile.c (struct input_remap): New structure.
152 (ldfile_add_remap): New function.
153 (ldfile_remap_input_free): New function.
154 (ldfile_add_remap_file): New function.
155 (ldfile_possibly_remap_input): New function.
156 (ldfile_print_input_remaps): New function.
157 * ldfile.h: Add prototypes for new functions.
158 * ldlang.c (new_afile): Call ldfile_possibly_remap_input.
159 (lang_finish): Call ldfile_remap_input_free.
160 (lang_map): Call ldfile_print_input_remaps.
161 * ldlex.h (OPTION_REMAP_INPUTS, OPTION_REMAP_INPUTS_FILE): Define.
162 * lexsup.c (ld_options): Add --remap-inputs-file and --remap-inputs.
163 (parse_args): Handle new options.
164 * NEWS: Mention the new feature.
165 * ld.texi: Document the new options.
166 * testsuite/ld-misc/input-remap.exp: New test driver.
167 * testsuite/ld-misc/remaps.r: New file: Expected linker output.
168 * testsuite/ld-misc/remaps.txt: New file. Input remaps file.
170 2023-06-07 Nick Clifton <nickc@redhat.com>
173 * testsuite/ld-elfcomm/elfcomm.exp: Update regexps to match new
174 output from the linker.
176 2023-05-17 Luca Bacci <luca.bacci@outlook.com>
179 * emultempl/pe.em (set_decoration): New function.
180 (pe_fixup_stdcalls): Call the new function.
181 * emultempl/pep.em (set_decoration): New function.
182 (pep_fixup_stdcalls): Call the new function.
183 * pe-dll.c (make_one): Check for decoated symbols.
185 2023-05-16 Nick Clifton <nickc@redhat.com>
188 * ld.texi (WIN32): Document how to create a resource only DLL.
190 2023-05-16 Nick Clifton <nickc@redhat.com>
192 * ld.texi (-Ur): Clarify the actions of this option.
194 2023-05-10 Nick Clifton <nickc@redhat.com>
197 * ldlang.c (ld_is_local_symbol): New function.
198 (print_input_section): Add code to display local symbols in the
200 * ldlex.h (enum option_values): Add OPTION_PRINT_MAP_LOCALS and
201 OPTION_PRINT_MAP_LOCALS.
202 * lexsup.c (ld_options[]): Add entries for --print-map-locals
203 and --no-print-map-locals.
204 * NEWS: Mention the new feature.
205 * ld.h (struct ld_config_type): Add print_map_locals field.
206 * ld.texi: Document the new command line option.
207 * testsuite/ld-scripts/sizeof.s: Add a local symbol.
208 * testsuite/ld-scripts/map-locals.d: New test control file.
209 * testsuite/ld-scripts/map-address.exp: Run the new test.
211 2023-05-04 Nick Clifton <nickc@redhat.com>
214 * emultempl/pep.em (set_entry_point): Add an undefined reference
215 to the entry point if it has been constructed heuristically.
216 * emultempl/pe.em (set_entry_point): Likewise.
218 2023-05-04 Dimitar Dimitrov <dimitar@dinux.eu>
220 * scripttempl/pru.sc (OUTPUT_SECTION_ALIGN): New helper variable
221 to place at end of DMEM output sections.
222 (.data): Use the helper variable.
223 (.eh_frame): New output section.
225 (.gcc_except_table): Ditto.
226 (.resource_table): Use the helper variable.
228 2023-04-27 Nick Clifton <nickc@redhat.com>
230 * ldmisc.c (vfinfo): Add support for %x and %lx.
232 2023-04-18 mengqinggang <mengqinggang@loongson.cn>
234 * testsuite/ld-loongarch-elf/macro_op.d: Regenerated.
236 2023-04-17 Nick Clifton <nickc@redhat.com>
239 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): Define in order to
240 handle the .gnu.sgstubs section.
242 2023-04-13 Claudiu Zissulescu <claziss@synopsys.com>
244 * testsuite/ld-arc/arc.exp: Update execution predicate.
245 * testsuite/ld-arc/nps-1a.d: Add linker script option.
246 * testsuite/ld-arc/nps-1b.d: Likewise.
247 * testsuite/ld-arc/relax-local-pic.d: Update matching patterns.
249 2023-04-12 Nick Clifton <nickc@redhat.com>
251 * ld.texi (--enable-non-contiguous-regions): Fix typos in script
254 2023-03-15 Nick Clifton <nickc@redhat.com>
257 * NEWS: Mention the new feature.
258 * ld.texi: Document the new feature.
259 * ldgram.y: Handle LINKER_VERSION token.
260 * ldlang.c (lang_add_version): New function.
261 (enable_linker_version): New global variable.
262 * ldlang.h (land_add_version): Prototype.
263 (enable_linker_version): Export.
264 * ldlex.h (OPTION_ENABLE_LINKER_VERSION): Define.
265 (OPTION_DISABLE_LINKER_VERSION): Define.
266 * ldlex.l (LINKER_VERSION): Add token.
267 * lexsup.c (ld_options): Add --enable-linker-version and
268 --disable-linker-version.
269 (parse_args): Handle the new options.
270 * scripttempl/arclinux.sc: Remove stabs and comment sections and
271 replace with inclusion of misc-sections.sc
272 * scripttempl/avr.sc: Likewise.
273 * scripttempl/dlx.sc: Likewise.
274 * scripttempl/elf.sc: Likewise.
275 * scripttempl/elf32cr16.sc: Likewise.
276 * scripttempl/elf32crx.sc: Likewise.
277 * scripttempl/elf32msp430.sc: Likewise.
278 * scripttempl/elf64bpf.sc: Likewise.
279 * scripttempl/elf64hppa.sc: Likewise.
280 * scripttempl/elf_chaos.sc: Likewise.
281 * scripttempl/elfarc.sc: Likewise.
282 * scripttempl/elfarcv2.sc: Likewise.
283 * scripttempl/elfd10v.sc: Likewise.
284 * scripttempl/elfd30v.sc: Likewise.
285 * scripttempl/elfm68hc11.sc: Likewise.
286 * scripttempl/elfm68hc12.sc: Likewise.
287 * scripttempl/elfm9s12z.sc: Likewise.
288 * scripttempl/elfmicroblaze.sc: Likewise.
289 * scripttempl/elfxgate.sc: Likewise.
290 * scripttempl/elfxtensa.sc: Likewise.
291 * scripttempl/epiphany_4x4.sc: Likewise.
292 * scripttempl/ft32.sc: Likewise.
293 * scripttempl/ip2k.sc: Likewise.
294 * scripttempl/iq2000.sc: Likewise.
295 * scripttempl/mep.sc: Likewise.
296 * scripttempl/nds32elf.sc: Likewise.
297 * scripttempl/pru.sc: Likewise.
298 * scripttempl/v850.sc: Likewise.
299 * scripttempl/v850_rh850.sc: Likewise.
300 * scripttempl/visium.sc: Likewise.
301 * scripttempl/xstormy16.sc: Likewise.
302 * scripttempl/z80.sc: Likewise.
303 * testsuite/ld-scripts/script.exp: Run new tests.
304 * scripttempl/misc-sections.sc: New file.
305 * testsuite/ld-scripts/ld-version-2.d: New file.
306 * testsuite/ld-scripts/ld-version.d: New file.
307 * testsuite/ld-scripts/ld-version.t: New file.
309 2023-02-23 Fangrui Song <i@maskray.me>
311 * emultempl/riscvelf.em: Add option parsing.
312 * testsuite/ld-riscv-elf/code-model-relax-medlow-01-norelaxgp.d: New.
313 * testsuite/ld-riscv-elf/pcgp-relax-01-norelaxgp.d: New.
314 * testsuite/ld-riscv-elf/pcgp-relax-02.d: Test --relax --relax-gp can be
317 2023-02-20 Nick Clifton <nickc@redhat.com>
320 * pe-dll.c (pe_dll_build_sections): Do not build an edata section
321 if all symbols are being excluded.
323 2023-02-15 Nick Clifton <nickc@redhat.com>
326 * testsuite/ld-elf/merge4b.s: Use .asciz instead of .string in
327 order to avoid the special behaviour of the .string directive on
330 2023-02-14 Nick Clifton <nickc@redhat.com>
332 * ld.texi (Plugins): Mention that the -plugin command line option
333 is used to load plugins.
335 2023-01-27 Nick Clifton <nickc@redhat.com>
338 * pe-dll.c (build_filler_bfd): Initialise the next field of the
339 filler input statement, so that it does not break the file chain.
341 2023-01-24 Nick Clifton <nickc@redhat.com>
344 * pe-dll.c (generate_reloc): Handle sections with no assigned
345 output section. Terminate early of there are no relocs to put in
347 (pe_exe_fill_sections): Do not emit an empty .reloc section.
349 2023-01-06 Nick Clifton <nickc@redhat.com>
351 * po/bg.po: Updated Bulgarian translation.
353 2023-01-05 Nick Clifton <nickc@redhat.com>
355 * configure.tgt: Add arm64pe as an extra emulation for aarch64pe.
356 * Makefile.am (ALL_64_EMULATION_SOURCES): Add earm64pe.c
357 * emultempl/pep.em: Add suppport for arm64pe emulation.
358 * Makefile.in: Regenerate.
359 * po/BLD-POTFILES.in: Regenerate.
360 * po/ld.pot: Regenerate.
362 2023-01-05 Andreas K. Huettel <dilfridge@gentoo.org>
364 * testsuite/ld-elf/shared.exp: un-xfail the PR19710 test for the
365 AArch64 architecture.
367 2023-01-04 Andreas K. Huettel <dilfridge@gentoo.org>
370 * testsuite/ld-aarch64/bti-plt-5.d: Relax regxps slightly to allow
371 for differences in build environments.
372 * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: Likewise.
374 2023-01-03 Nick Clifton <nickc@redhat.com>
376 * po/uk.po: Updated Ukrainian translation.
378 2022-12-31 Nick Clifton <nickc@redhat.com>
380 * 2.40 branch created.
382 2022-12-21 Nick Clifton <nickc@redhat.com>
385 * scripttempl/pe.sc: Keep the .drectve section when performing a
387 * scripttempl/pep.sc: Likewise.
389 2022-12-08 Nick Clifton <nickc@redhat.com>
392 * ld.texi (Output Section Type): Note that setting the output
393 section type only works if the section contains untyped data.
395 2022-12-05 Nick Clifton <nickc@redhat.com>
398 * ldlang.c (spec_match): Check that there is sufficient length in
399 the target name to match the spec's prefix.
401 2022-11-03 Nick Clifton <nickc@redhat.com>
404 * configure.tgt (ac_default_ld_warn_rwx_segments): Set to 0 for
407 2022-11-03 Nick Clifton <nickc@redhat.com>
410 * scripttempl/avr.sc (__DATA_REGION_ORIGIN__): Define. If a value
411 has not been provided on the command line then use DATA_ORIGIN.
412 (MEMORY): Use __DATA_REGION_ORIGIN__ as the start of the data region.
414 2022-10-21 Nick Clifton <nickc@redhat.com>
417 * ld.h (struct ld_config_type): Add no_warnings field.
418 * ldlex.h (enum option_values): Add OPTION_NO_WARNINGS.
419 * lexsup.c (ld_options): Add --no-warnings.
420 (parse_args): Add support for -w and --no-warnings.
421 * ldmisc.c (vfinfo): Return early if the message is a warning and
423 * ld.texi (options): Document new command line option.
424 * NEWS: Mention the new feature.
426 2022-08-30 Nick Clifton <nickc@redhat.com>
429 * testsuite/ld-x86-64/pr27587.err: Update expected output.
431 2022-08-18 Ralf Habacker <ralf.habacker@freenet.de>
434 * testsuite/ld-pe/pe-run2-def.exp: New file.
436 2022-08-03 Alan Modra <amodra@gmail.com>
439 * ldlang.h (lang_input_statement_struct): Add sort_key field.
440 * emultempl/pe.em (after_open): If multiple import libraries refer
441 to the same bfd, store their names in the sort_key field.
442 * emultempl/pep.em (after_open): Likewise.
443 * ldlang.c (sort_filename): New function. Returns the filename to
444 be used when sorting input files.
445 (wild_sort): Use the sort_filename function.
447 2022-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
450 * configure.tgt (ac_default_ld_warn_rwx_segments): Extend to all
451 sparc targets. Expand comment.
453 2022-07-26 Nick Clifton <nickc@redhat.com>
456 * configure.tgt (ac_default_ld_warn_rwx_segments): Disable for
457 sparc-solaris configurations.
459 2022-07-08 Nick Clifton <nickc@redhat.com>
461 * 2.39 branch created.
463 2022-06-27 Nick Clifton <nickc@redhat.com>
466 * configure.ac: Move HPPA specific code from here...
467 * configure.tgt: ... to here. Add similar code for MIPS.
468 Move code for CRIS, MIPS and HPPA to block at start of file.
469 * configure: Regenerate.
471 2022-06-21 Nick Clifton <nickc@redhat.com>
474 * configure.ac (ac_default_ld_warn_execstack): Default to 'no' for
476 (ac_default_ld_warn_rwx_segments): Likewise.
477 * configure: Regenerate.
478 * testsuite/ld-elf/elf.exp: Add the --warn-execstack command line
479 option to the command line when running execstack tests for the
482 2022-05-12 Alan Modra <amodra@gmail.com>
485 * pe-dll.c (dll_name): Delete, replacing with..
486 (dll_filename): ..this, moved earlier in file.
487 (generate_edata): Delete parameters. Don't set up dll_name here..
488 (pe_process_import_defs): ..instead set up dll_filename and
489 dll_symname here before returning.
490 (dll_symname_len): Delete write-only variable.
491 (pe_dll_generate_implib): Don't set up dll_symname here.
493 2022-05-03 Nick Clifton <nickc@redhat.com>
496 * libdep_plugin.c (get_libdeps): Check for overflow when computing
497 amount of memory to allocate.
499 2022-04-27 Nick Clifton <nickc@redhat.com>
502 * pe-dll.c (make_head): Use asprintf to allocate and populate a
503 buffer containing the temporary name.
504 (make_tail, make_one, make_singleton_name_thunk): Likewise.
505 (make_import_fixup_mark, make_import_fixup_entry): Likewise.
506 (make_runtime_pseudo_reloc): Likewise.
507 (pe_create_runtime_relocator_reference): Likewise.
509 2022-04-25 Nick Clifton <nickc@redhat.com>
512 * testsuite/ld-elf/pr29072.b.warn: Update to include the note
513 about the linker's behaviour being depreccated.
515 2022-04-20 Clément Chigot <clement.chigot@atos.net>
517 * emultempl/aix.em (params): New variable.
518 (stub_file): New variable.
519 (xcoff_add_stub_section): New function.
520 (xcoff_layout_sections_again): New function
521 (hook_in_stub): New function.
522 (_after_allocation): Add stub creation.
523 (_create_output_section_statements): Allocate stub file and
524 pass params to backend.
526 2022-04-20 Clément Chigot <clement.chigot@atos.net>
528 * emultempl/aix.em (_after_allocation): New function.
530 2022-04-07 Mark Harmstone <mark@harmstone.com>
532 * testsuite/ld-pe/secidx1.s: New test source file.
533 * testsuite/ld-pe/secidx2.s: New test source file.
534 * testsuite/ld-pe/secidx.d: New test driver file.
535 * testsuite/ld-pe/secidx_64.d: New test driver file.
536 * testsuite/ld-pe/pe.exp: Add new tests.
538 2022-03-01 Nick Clifton <nickc@redhat.com>
541 * testsuite/ld-elf/pr21964-1a.c: Fix array comparisons.
542 * testsuite/ld-elf/pr21964-1b.c: Likewise.
543 * testsuite/ld-elf/pr21964-1c.c: Likewise.
544 * testsuite/ld-elf/pr21964-2a.c: Likewise.
545 * testsuite/ld-elf/pr21964-2b.c: Likewise.
546 * testsuite/ld-elf/pr21964-3a.c: Likewise.
548 2022-02-17 Roland McGrath <mcgrathr@google.com>
550 * ld.texi (Output Section Type): Fix typo in @code syntax.
552 2022-02-17 Nick Clifton <nickc@redhat.com>
554 * po/sr.po: Updated Serbian translation.
556 2022-02-16 Fangrui Song <maskray@google.com>
557 Nick Clifton <nickc@redhat.com>
560 * ld.texi: Document new output section type.
561 * ldlex.l: Add new token TYPE.
562 * ldgram.y: Handle TYPE=exp and READONLY (TYPE=exp).
563 * ldlang.h: Add type_section to list of section types.
564 * ldlang.c (lang_add_section): Handle type_section.
565 (map_input_to_output_sections): Handle type_section.
566 * testsuite/ld-scripts/output-section-types.t: Add tests.
567 * testsuite/ld-scripts/output-section-types.d: Update.
569 2022-02-02 Nick Clifton <nickc@redhat.com>
571 * po/fr.po: Updated French translation.
573 2022-01-24 Nick Clifton <nickc@redhat.com>
575 * po/bg.po: Updated Bulgarian translation.
576 * po/uk.po: Updated Ukranian translation.
578 2022-01-22 Alexander von Gluck IV <kallisti5@unixzen.com>
580 * configure.tgt (arm-haiku): Fix typo.
581 * emulparams/armelf_haiku.su (MAXPAGESIZE): Use the default value.
582 (COMMONPAGESIZE): Likewise.
584 2022-01-22 Nick Clifton <nickc@redhat.com>
586 * configure: Regenerate.
587 * po/ld.pot: Regenerate.
589 2022-01-22 Nick Clifton <nickc@redhat.com>
591 * 2.38 release branch created.
593 2022-01-21 Nick Clifton <nickc@redhat.com>
595 * po/sr.po: Updated Serbian translation.
597 2022-01-17 Nick Clifton <nickc@redhat.com>
599 * Makefile.in: Regenerate.
600 * po/ld.pot: Regenerate.
602 2022-01-11 Martin Storsjö <martin@martin.st>
604 * pe-dll.c (make_head): Prefix the symbol name with the dll name.
605 (make_tail, make_one, make_singleton_name_thunk): Likewise.
606 (make_import_fixup_entry, make_runtime_pseudo_reloc): Likewise.
607 (pe_create_runtime_relocator_reference): Likewise.
608 (pe_dll_generate_implib): Set dll_symname_len.
609 (pe_process_import_defs): Likewise.
611 2021-12-16 Nick Clifton <nickc@redhat.com>
614 * testsuite/ld-avr/avr-prop-7.d: Adjust expected output.
615 * testsuite/ld-avr/avr-prop-8.d: Likewise.
616 * testsuite/ld-avr/pr13402.d: Likewise.
618 2021-11-30 Nick Clifton <nickc@redhat.com>
620 * scripttempl/pru.sc (.pru_irq_map): Define output section.
621 * testsuite/ld-pru/pru_irq_map-1.d: New test.
622 * testsuite/ld-pru/pru_irq_map-2.d: New test.
623 * testsuite/ld-pru/pru_irq_map.s: New test.
625 2021-11-17 Jeremy Drake <cygwin@jdrake.com>
627 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Set to 0 for
629 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Likewise.
631 2021-11-17 Nick Clifton <nickc@redhat.com>
634 * ldgram.y: Add support for PT_GNU_RELRO and PT_GNU_PROPERTY.
635 * ldgram.c: Regenerate.
637 2021-11-15 Roland McGrath <mcgrathr@google.com>
639 * testsuite/ld-aarch64/dt_textrel.d: Pass explicit -z notext in
640 case ld was configured with --enable-textrel-check=error.
641 * testsuite/ld-aarch64/pr22764.d: Likewise.
642 * testsuite/ld-aarch64/pr20402.d: Likewise.
644 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
646 * testsuite/ld-ctf/nonrepresentable-member.*: New test.
648 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
650 * testsuite/ld-ctf/array.d: Change --ctf=.ctf to --ctf.
651 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
652 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
653 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
654 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
655 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
656 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
657 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
658 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
659 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
660 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
661 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
662 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
663 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
664 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
665 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
666 * testsuite/ld-ctf/cycle-1.d: Likewise.
667 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
668 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
669 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
670 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
671 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
672 * testsuite/ld-ctf/diag-cuname.d: Likewise.
673 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
674 * testsuite/ld-ctf/enum-forward.d: Likewise.
675 * testsuite/ld-ctf/enums.d: Likewise.
676 * testsuite/ld-ctf/forward.d: Likewise.
677 * testsuite/ld-ctf/function.d: Likewise.
678 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
679 * testsuite/ld-ctf/slice.d: Likewise.
680 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
682 2021-09-30 Dimitar Dimitrov <dimitar@dinux.eu>
684 * scripttempl/pru.sc (.resource_table): Align the output
685 section, not the first symbol.
687 2021-09-27 Nick Alcock <nick.alcock@oracle.com>
689 * configure: Regenerate.
691 2021-09-21 Nick Clifton <nickc@redhat.com>
693 * ldlang.c (lang_end): When computing the entry point, only
694 try the start address of the entry section when creating an
696 * ld.texi (Entry point): Update description of heuristic used to
697 choose the entry point.
698 testsuite/ld-alpha/tlspic.rd: Update expected entry point address.
699 testsuite/ld-arm/tls-gdesc-got.d: Likewise.
700 testsuite/ld-i386/tlsnopic.rd: Likewise.
701 testsuite/ld-ia64/tlspic.rd: Likewise.
702 testsuite/ld-sparc/gotop32.rd: Likewise.
703 testsuite/ld-sparc/gotop64.rd: Likewise.
704 testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
705 testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
706 testsuite/ld-sparc/tlssunpic32.rd: Likewise.
707 testsuite/ld-sparc/tlssunpic64.rd: Likewise.
708 testsuite/ld-tic6x/shlib-1.rd: Likewise.
709 testsuite/ld-tic6x/shlib-1b.rd: Likewise.
710 testsuite/ld-tic6x/shlib-1r.rd: Likewise.
711 testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
712 testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
713 testsuite/ld-x86-64/pr14207.d: Likewise.
714 testsuite/ld-x86-64/tlsdesc.rd: Likewise.
715 testsuite/ld-x86-64/tlspic.rd: Likewise.
716 testsuite/ld-x86-64/tlspic2.rd: Likewise.
718 2021-09-15 Claudiu Zissulescu <claziss@synopsys.com>
720 * testsuite/ld-arc/got-weak.d: Update file.
722 2021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
724 * ld-arc/got-weak.d: New file.
725 * ld-arc/got-weak.s: Likewise.
727 2021-07-26 Roland McGrath <mcgrathr@google.com>
729 * testsuite/ld-x86-64/x86-64.exp (Build textrel-1): Use --warn-textrel.
731 2021-07-06 Michael Matz <matz@suse.de>
734 * testsuite/ld-riscv-elf/relax-twice.ver: New.
735 * testsuite/ld-riscv-elf/relax-twice-1.s: New.
736 * testsuite/ld-riscv-elf/relax-twice-2.s: New.
737 * testsuite/ld-riscv-elf/ld-riscv-elf.exp
738 (run_relax_twice_test): New, and call it.
740 2021-07-03 Nick Clifton <nickc@redhat.com>
742 * configure: Regenerate.
743 * po/ld.pot: Regenerate.
745 2021-07-03 Nick Clifton <nickc@redhat.com>
747 * 2.37 release branch created.
749 2021-06-22 Nelson Chu <nelson.chu@sifive.com>
751 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
752 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.d: New testcase.
753 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.s: Likewise.
754 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.d: New testcase.
755 Should report error since the %pcrel_lo with addend refers to
757 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.s: Likewise.
758 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.d: New testcase.
759 Should report error since the %got_pcrel_hi with addend.
760 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.s: Likewise.
761 * testsuite/ld-riscv-elf/pcrel-lo-addend-3.ld: Likewise.
763 2021-06-19 H.J. Lu <hongjiu.lu@intel.com>
766 * testsuite/ld-i386/i386.exp: Run PR ld/27998 tests.
767 * testsuite/ld-i386/pr27998a.d: New file.
768 * testsuite/ld-i386/pr27998a.s: Likewise.
769 * testsuite/ld-i386/pr27998b.d: Likewise.
770 * testsuite/ld-i386/pr27998b.s: Likewise.
772 2021-06-19 H.J. Lu <hongjiu.lu@intel.com>
774 * testsuite/ld-x86-64/textrel-1.err: New file.
775 * testsuite/ld-x86-64/textrel-1a.s: Likewise.
776 * testsuite/ld-x86-64/textrel-1b.s: Likewise.
777 * testsuite/ld-x86-64/x86-64.exp: Run textrel-1 tests.
779 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
781 * testsuite/ld-elf/property-and-1.d: Skip am33_2.0, hppa-hpux
783 Pass --generate-missing-build-notes=no to assembler. Allow
784 other note sections for xtensa.
785 * testsuite/ld-elf/property-and-2.d: Likewise.
786 * testsuite/ld-elf/property-and-3.d: Likewise.
787 * testsuite/ld-elf/property-and-4.d: Likewise.
788 * testsuite/ld-elf/property-or-1.d: Likewise.
789 * testsuite/ld-elf/property-or-2.d: Likewise.
790 * testsuite/ld-elf/property-or-3.d: Likewise.
791 * testsuite/ld-elf/property-or-4.d: Likewise.
793 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
795 * ld.texi: Move -z unique-symbol after -z undefs.
797 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
799 * testsuite/ld-elf/property-and-1.d: New file.
800 * testsuite/ld-elf/property-and-1.s: Likewise.
801 * testsuite/ld-elf/property-and-2.d: Likewise.
802 * testsuite/ld-elf/property-and-2.s: Likewise.
803 * testsuite/ld-elf/property-and-3.d: Likewise.
804 * testsuite/ld-elf/property-and-3.s: Likewise.
805 * testsuite/ld-elf/property-and-4.d: Likewise.
806 * testsuite/ld-elf/property-and-empty.s: Likewise.
807 * testsuite/ld-elf/property-or-1.d: Likewise.
808 * testsuite/ld-elf/property-or-1.s: Likewise.
809 * testsuite/ld-elf/property-or-2.d: Likewise.
810 * testsuite/ld-elf/property-or-2.s: Likewise.
811 * testsuite/ld-elf/property-or-3.d: Likewise.
812 * testsuite/ld-elf/property-or-3.s: Likewise.
813 * testsuite/ld-elf/property-or-4.d: Likewise.
814 * testsuite/ld-elf/property-or-empty.s: Likewise.
816 2021-06-17 H.J. Lu <hongjiu.lu@intel.com>
819 * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and
820 $NOPIE_CFLAGS to protected-func-1 without PIE.
822 2021-06-17 H.J. Lu <hongjiu.lu@intel.com>
825 * testsuite/ld-x86-64/x86-64.exp: Run protected function tests.
826 * testsuite/ld-x86-64/protected-func-1.h: New file.
827 * testsuite/ld-x86-64/protected-func-1a.s: Likewise.
828 * testsuite/ld-x86-64/protected-func-1b.c: Likewise.
830 2021-06-17 Fangrui Song <maskray@google.com>
832 * ldlex.h (enum option_values): Add OPTION_NO_PIE.
833 * lexsup.c (struct ld_options): Add -no-pie.
834 (parse_args): Handle -no-pie.
835 * ld.texi: Document -no-pie.
837 2021-06-15 Alan Modra <amodra@gmail.com>
839 * testsuite/ld-pie/vaddr-0.d: Update expected output.
841 2021-06-11 Alan Modra <amodra@gmail.com>
844 * ldelf.c (ldelf_after_open): Error on input PIEs too.
846 2021-06-09 Nick Clifton <nickc@redhat.com>
849 * testsuite/ld-sparc/sparc.exp: Do not run the sparctests or
850 sparc64tests for Solaris2 targets.
852 2021-06-03 Alan Modra <amodra@gmail.com>
855 * ld.texi (link-time runtime library search path): Mention
856 plugin library path. Correct order of search.
858 2021-05-31 Nelson Chu <nelson.chu@sifive.com>
859 Lifang Xia <lifang_xia@c-sky.com>
862 * emultempl/riscvelf.em (after_allocation): Call
863 riscv_set_data_segment_info to set data segment phase before relaxing.
864 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
865 * testsuite/ld-riscv-elf/relro-relax-lui.d: New testcase.
866 * testsuite/ld-riscv-elf/relro-relax-lui.s: Likewise.
867 * testsuite/ld-riscv-elf/relro-relax-pcrel.d: Likewise.
868 * testsuite/ld-riscv-elf/relro-relax-pcrel.s: Likewise.
870 2021-05-28 H.J. Lu <hongjiu.lu@intel.com>
873 * testsuite/ld-i386/pcrel16-2.d: xfail.
874 * testsuite/ld-x86-64/pcrel16-2.d: Likewise.
876 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
879 * testsuite/ld-i386/code16.d: New file.
880 * testsuite/ld-i386/code16.t: Likewise.
881 * testsuite/ld-x86-64/code16.d: Likewise.
882 * testsuite/ld-x86-64/code16.t: Likewise.
883 * testsuite/ld-i386/i386.exp: Run code16.
884 * testsuite/ld-x86-64/x86-64.exp: Likewise.
886 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
888 * testsuite/ld-x86-64/ilp32-12.d: New file.
889 * testsuite/ld-x86-64/ilp32-12.s: Likewise.
890 * testsuite/ld-x86-64/x86-64.exp: Run ilp32-12.
892 2021-05-14 Nelson Chu <nelson.chu@sifive.com>
894 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
895 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d: Renamed from
897 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.s: Likewise.
898 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.d: New testcase.
899 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.s: Likewise.
901 2021-05-13 Fangrui Song <maskray@google.com>
904 * ldlex.h (enum option_values): Add OPTION_NO_SYMBOLIC.
905 * lexsup.c (ld_options): Add -Bno-symbolic.
906 (parse_args): Handle -Bno-symbolic.
907 * ld.texi: Document -Bno-symbolic.
908 * NEWS: Mention -Bno-symbolic.
909 * testsuite/ld-elf/shared.exp: Add a test.
911 2021-05-12 Richard Earnshaw <rearnsha@arm.com>
913 * testsuite/ld-arm/arm-elf.exp (farcall test for v8-m.mainline):
914 Correct expected output.
916 2021-05-11 Roland McGrath <mcgrathr@google.com>
918 * testsuite/ld-x86-64/rela.d: Fix regexp not to presume a specific
919 address layout, so it works for e.g. --target=x86-64-elf.
921 2021-05-11 Nick Clifton <nickc@redhat.com>
924 * Makefile.am (install-data-local): Also delete libdep.dll.a if it
926 * Makefile.in: Regenerate.
928 2021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
930 * testsuite/ld-elf/group8a.d: Remove pru from XFAIL list.
931 * testsuite/ld-elf/group8b.d: Ditto.
932 * testsuite/ld-elf/group9a.d: Ditto.
933 * testsuite/ld-elf/group9b.d: Ditto.
934 * testsuite/ld-elf/pr12851.d: Ditto.
935 * testsuite/ld-elf/pr22677.d: Ditto.
936 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove
939 2021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
941 * scripttempl/pru.sc (.resource_table): Add ALIGN directive.
942 Use symbols for memory sizes.
944 2021-05-08 Mike Frysinger <vapier@gentoo.org>
946 * Makefile.am (html-local, doc/ld/index.html): New targets.
947 * Makefile.in: Regenerate.
949 2021-05-08 Mike Frysinger <vapier@gentoo.org>
951 * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
952 * Makefile.in: Regenerate.
954 2021-05-07 Jan Beulich <jbeulich@suse.com>
956 * testsuite/ld-x86-64/rela.d: New.
957 * testsuite/ld-x86-64/x86-64.exp: Run new test.
959 2021-05-07 Nick Clifton <nickc@redhat.com>
961 * ldelfgen.c (compare_link_order): Ignore section size when
962 performing a relocateable link.
964 2021-05-07 Alan Modra <amodra@gmail.com>
966 * ldexp.c (update_definedness): Don't return false for absolute
968 * ldmain.c (multiple_definition): Print "warning: " in message
969 when not a hard error.
971 2021-05-07 Alan Modra <amodra@gmail.com>
973 * testsuite/ld-elf/pr27825-1.d: Correct xfail.
974 * testsuite/ld-elf/pr27825-2.d: Likewise.
976 2021-05-06 Stafford Horne <shorne@gmail.com>
979 testsuite/ld-or1k/or1k.exp (or1kplttests): Add tests for linking
980 along with gotha() relocations.
981 testsuite/ld-or1k/gotha1.dd: New file.
982 testsuite/ld-or1k/gotha1.s: New file.
983 testsuite/ld-or1k/gotha2.dd: New file.
984 testsuite/ld-or1k/gotha2.s: New file
985 testsuite/ld-or1k/pltlib.s (x): Define size to avoid link
988 2021-05-06 Nick Alcock <nick.alcock@oracle.com>
990 * testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt.
991 * testsuite/lib/ld-lib.exp: Likewise.
992 * testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types.
993 * testsuite/ld-ctf/nonrepresentable-2.c: Likewise.
994 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
995 * testsuite/ld-ctf/array.d: Larger type section.
996 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
997 * testsuite/ld-ctf/enums.d: Likewise.
998 * testsuite/ld-ctf/conflicting-enums.d: Don't compare types.
999 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order.
1000 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1001 * testsuite/ld-ctf/slice.d: Adjust for improved slice emission.
1003 2021-05-05 H.J. Lu <hongjiu.lu@intel.com>
1006 * testsuite/ld-elf/pr27825-1.d: New file.
1007 * testsuite/ld-elf/pr27825-1a.s: Likewise.
1008 * testsuite/ld-elf/pr27825-1b.s: Likewise.
1009 * testsuite/ld-elf/pr27825-2.d: Likewise.
1010 * testsuite/ld-elf/pr27825-2a.s: Likewise.
1011 * testsuite/ld-elf/pr27825-2b.s: Likewise.
1013 2021-05-05 Alan Modra <amodra@gmail.com>
1015 * testsuite/ld-powerpc/empty.s: New file.
1016 * testsuite/ld-powerpc/undefweak.d,
1017 * testsuite/ld-powerpc/undefweak.s: New testcase.
1018 * testsuite/ld-powerpc/powerpc.exp: Run it.
1020 2021-05-03 Alan Modra <amodra@gmail.com>
1022 * testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
1023 named section symbols.
1025 2021-04-28 Nick Clifton <nickc@redhat.com>
1027 * testsuite/ld-elf/anno-sym.s: New test source file.
1028 * testsuite/ld-elf/anno-sym.d: New test driver.
1029 * testsuite/ld-elf/anno-sym.l: New test error output.
1031 2021-04-26 Jan Beulich <jbeulich@suse.com>
1033 * testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d,
1034 testsuite/ld-x86-64/pcrel16-2.d: New.
1035 * testsuite/ld-i386/i386.exp: Run new test.
1036 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1038 2021-04-23 H.J. Lu <hongjiu.lu@intel.com>
1041 * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
1042 to tmpdir/ldscripts only if it doesn't exist.
1044 2021-04-22 Jan Beulich <jbeulich@suse.com>
1047 * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
1049 2021-04-21 Nick Clifton <nickc@redhat.com>
1051 * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
1052 to allow for named section symbols.
1053 * testsuite/ld-aarch64/variant_pcs-r.d: Likewise.
1054 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
1055 * testsuite/ld-alpha/tlsbin.rd: Likewise.
1056 * testsuite/ld-alpha/tlsbinr.rd: Likewise.
1057 * testsuite/ld-alpha/tlspic.rd: Likewise.
1058 * testsuite/ld-arm/rodata-merge-map.sym: Likewise.
1059 * testsuite/ld-arm/script-type.sym: Likewise.
1060 * testsuite/ld-cris/libdso-2.d: Likewise.
1061 * testsuite/ld-cris/pr16044.d: Likewise.
1062 * testsuite/ld-elf/sec64k.exp: Likewise.
1063 * testsuite/ld-ia64/tlsbin.rd: Likewise.
1064 * testsuite/ld-ia64/tlspic.rd: Likewise.
1065 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
1066 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
1067 * testsuite/ld-mmix/bspec1.d: Likewise.
1068 * testsuite/ld-mmix/bspec2.d: Likewise.
1069 * testsuite/ld-mmix/local1.d: Likewise.
1070 * testsuite/ld-mmix/local3.d: Likewise.
1071 * testsuite/ld-mmix/local5.d: Likewise.
1072 * testsuite/ld-mmix/local7.d: Likewise.
1073 * testsuite/ld-mmix/undef-3.d: Likewise.
1074 * testsuite/ld-powerpc/tlsso.r: Likewise.
1075 * testsuite/ld-powerpc/tlsso32.r: Likewise.
1076 * testsuite/ld-powerpc/tlstocso.r: Likewise.
1077 * testsuite/ld-s390/tlsbin.rd: Likewise.
1078 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
1079 * testsuite/ld-s390/tlspic.rd: Likewise.
1080 * testsuite/ld-s390/tlspic_64.rd: Likewise.
1081 * testsuite/ld-sparc/gotop32.rd: Likewise.
1082 * testsuite/ld-sparc/gotop64.rd: Likewise.
1083 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
1084 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
1085 * testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
1086 * testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
1087 * testsuite/ld-sparc/tlssunpic32.rd: Likewise.
1088 * testsuite/ld-sparc/tlssunpic64.rd: Likewise.
1089 * testsuite/ld-tic6x/common.d: Likewise.
1090 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
1091 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
1092 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
1093 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
1094 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
1095 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
1096 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
1097 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
1098 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
1099 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
1100 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
1101 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
1102 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
1104 2021-04-20 Clément Chigot <clement.chigot@atos.net>
1107 * testsuite/ld-powerpc/aix52.exp: Add new test.
1108 * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
1109 * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
1110 * testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
1111 * testsuite/ld-powerpc/aix-neg-reloc.s: New test.
1113 2021-04-13 Nick Clifton <nickc@redhat.com>
1115 * ld.texi (Options): Add note about the effect of --as-needed on
1116 the --rpath and --rpath-link options on Linux based systems.
1118 2021-04-13 Alan Modra <amodra@gmail.com>
1121 * libdep_plugin.c (str2vec): Don't pass a potentially signed char
1124 2021-04-12 Alan Modra <amodra@gmail.com>
1126 * configure.ac (--enable-checking): Add support.
1127 * config.in: Regenerate.
1128 * configure: Regenerate.
1130 2021-04-12 Alan Modra <amodra@gmail.com>
1132 * emultempl/mipself.em (mips_create_output_section_statements):
1133 Pass base type of hash table to is_elf_hash_table.
1134 * ldelf.c (ldelf_after_open): Likewise.
1136 2021-04-12 Alan Modra <amodra@gmail.com>
1139 * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
1140 the symbol hash table is the correct type before accessing
1141 elf_link_hash_entry symbols.
1142 * plugin.c (is_visible_from_outside): Likewise.
1143 * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
1144 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
1146 2021-04-09 Alan Modra <amodra@gmail.com>
1148 * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
1149 * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
1150 * testsuite/ld-powerpc/notoc2.d: Likewise.
1151 * testsuite/ld-powerpc/notoc3.d: Likewise.
1152 * testsuite/ld-powerpc/pcrelopt.d: Likewise.
1153 * testsuite/ld-powerpc/startstop.d: Likewise.
1154 * testsuite/ld-powerpc/tlsget.d: Likewise.
1155 * testsuite/ld-powerpc/tlsget2.d: Likewise.
1156 * testsuite/ld-powerpc/tlsld.d: Likewise.
1157 * testsuite/ld-powerpc/weak1.d: Likewise.
1158 * testsuite/ld-powerpc/weak1so.d: Likewise.
1160 2021-04-06 Jan Beulich <jbeulich@suse.com>
1162 * pe-dll.c (generate_reloc): Bail immediately when .reloc is
1163 being discarded. Warn when relocated entry is above .reloc.
1165 2021-04-05 Alan Modra <amodra@gmail.com>
1167 * configure.ac: Move initfini-array arg handling earlier. Don't
1168 check for string.h, strings.h, stdlib.h, or locale.h. Do check
1169 for inttypes.h, stdint.h, sys/types.h. Don't check for
1170 setlocale, free, getev or strstr.
1171 (AC_ISC_POSIX): Don't invoke.
1172 * sysdep.h: Include string.h and stdlib.h unconditionally. Test
1173 HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and
1174 getenv fallback declarations.
1175 * ld.h: Don't test HAVE_LOCALE_H.
1176 * ldmain.c: Don't test HAVE_SETLOCALE.
1177 * config.in: Regenerate.
1178 * configure: Regenerate.
1180 2021-04-01 Tamar Christina <tamar.christina@arm.com>
1183 * testsuite/ld-pe/pe.exp: Add test.
1184 * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
1185 * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
1187 2021-04-01 Martin Liska <mliska@suse.cz>
1189 * ldbuildid.c (strneq): Remove strneq and use startswith.
1190 (validate_build_id_style): Likewise.
1191 (compute_build_id_size): Likewise.
1193 2021-03-31 Alan Modra <amodra@gmail.com>
1195 * sysdep.h (POISON_BFD_BOOLEAN): Define.
1196 * configure.ac (elf_list_options, elf_shlib_list_options=false),
1197 (elf_plt_unwind_list_options=false): Replace FALSE with false,
1199 * emulparams/call_nop.sh, * emulparams/cet.sh,
1200 * emulparams/dynamic_undefined_weak.sh,
1201 * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
1202 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
1203 * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
1204 * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
1205 * emulparams/reloc_overflow.sh, * emulparams/static.sh,
1206 * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
1207 * emultempl/aix.em, * emultempl/alphaelf.em,
1208 * emultempl/armcoff.em, * emultempl/armelf.em,
1209 * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
1210 * emultempl/cr16elf.em, * emultempl/crxelf.em,
1211 * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
1212 * emultempl/hppaelf.em, * emultempl/linux.em,
1213 * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
1214 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
1215 * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
1216 * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
1217 * emultempl/pep.em, * emultempl/ppc32elf.em,
1218 * emultempl/ppc64elf.em, * emultempl/rxelf.em,
1219 * emultempl/rxlinux.em, * emultempl/scoreelf.em,
1220 * emultempl/solaris2.em, * emultempl/spuelf.em,
1221 * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
1222 * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
1223 * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
1224 * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
1225 * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
1226 * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
1227 * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
1228 * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
1229 * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
1230 bfd_boolean with bool, FALSE with false, and TRUE with true.
1231 * configure: Regenerate.
1233 2021-03-31 Alan Modra <amodra@gmail.com>
1235 * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
1236 * emultempl/nds32elf.em: Likewise.
1237 * testsuite/ld-elf/mbind2b.c: Likewise.
1238 * testsuite/ld-elf/pr18718.c: Likewise.
1239 * testsuite/ld-elf/pr18720a.c: Likewise.
1240 * testsuite/ld-elf/pr25749-1.c: Likewise.
1241 * testsuite/ld-elf/pr25749-1a.c: Likewise.
1242 * testsuite/ld-elf/pr25749-1b.c: Likewise.
1243 * testsuite/ld-elf/pr25749-1c.c: Likewise.
1244 * testsuite/ld-elf/pr25749-1d.c: Likewise.
1245 * testsuite/ld-elf/pr25749-2.c: Likewise.
1246 * testsuite/ld-elf/pr25754-1a.c: Likewise.
1247 * testsuite/ld-elf/pr25754-2a.c: Likewise.
1248 * testsuite/ld-elf/pr25754-3a.c: Likewise.
1249 * testsuite/ld-elf/pr25754-4a.c: Likewise.
1250 * testsuite/ld-elf/pr25754-5a.c: Likewise.
1251 * testsuite/ld-elf/pr25754-6a.c: Likewise.
1253 2021-03-29 Alan Modra <amodra@gmail.com>
1255 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
1257 * lexsup.c (parse_args): Likewise.
1258 * pe-dll.c (pe_dll_id_target): Likewise.
1260 2021-03-25 Nick Alcock <nick.alcock@oracle.com>
1262 * testsuite/ld-ctf/array.d: Only check that the data object
1263 section is nonempty: do not check its exact size.
1264 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1265 * testsuite/ld-ctf/slice.d: Likewise.
1266 * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
1267 func info section too.
1268 * testsuite/ld-ctf/function.d: Likewise, for the func info section.
1270 2021-03-22 Martin Liska <mliska@suse.cz>
1272 * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
1273 * emultempl/beos.em: Likewise.
1274 * emultempl/elf.em: Likewise.
1275 * emultempl/pe.em: Likewise.
1276 * emultempl/pep.em: Likewise.
1277 * emultempl/xtensaelf.em: Likewise.
1278 * ldctor.c (ctor_prio): Likewise.
1279 * ldelf.c (ldelf_try_needed): Likewise.
1280 (ldelf_parse_ld_so_conf): Likewise.
1281 (ldelf_after_open): Likewise.
1282 (output_rel_find): Likewise.
1283 (ldelf_place_orphan): Likewise.
1284 * ldfile.c (ldfile_add_library_path): Likewise.
1285 * ldlang.c (lang_add_input_file): Likewise.
1286 * ldmain.c (get_sysroot): Likewise.
1287 (get_emulation): Likewise.
1288 (add_archive_element): Likewise.
1289 * ldwrite.c (unsplittable_name): Likewise.
1290 (clone_section): Likewise.
1291 * lexsup.c (parse_args): Likewise.
1292 * pe-dll.c (is_import): Likewise.
1293 (pe_implied_import_dll): Likewise.
1295 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
1298 * testsuite/ld-x86-64/pr27590.rd: New file.
1299 * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
1300 * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
1301 * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
1303 2021-03-20 Alan Modra <amodra@gmail.com>
1306 * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
1307 for all sections except .stabstr.
1309 2021-03-19 Alan Modra <amodra@gmail.com>
1312 * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
1314 * testsuite/ld-elf/pr27590b.d: Likewise.
1316 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1319 * testsuite/ld-elf/pr27590.s: New file.
1320 * testsuite/ld-elf/pr27590a.d: Likewise.
1321 * testsuite/ld-elf/pr27590b.d: Likewise.
1322 * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
1323 --reduce-memory-overheads.
1325 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
1328 * testsuite/ld-x86-64/pr27587.err: New file.
1329 * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
1330 * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
1331 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
1333 2021-03-18 Nick Alcock <nick.alcock@oracle.com>
1335 * testsuite/ld-ctf/slice.c: Check slices of enums too.
1336 * testsuite/ld-ctf/slice.d: Results adjusted.
1338 2021-03-16 Nick Clifton <nickc@redhat.com>
1340 * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
1343 2021-03-15 Jan Beulich <jbeulich@suse.com>
1345 * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
1347 2021-03-12 Alan Modra <amodra@gmail.com>
1349 * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
1350 (ALL_64_EMULATION_SOURCES): ..here.
1351 * Makefile.in: Regenerate.
1353 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1355 * emultempl/aix.em: Ensure .tdata section is removed
1356 if empty, even with -r flag.
1357 * scripttempl/aix.sc: Handle TLS sections.
1358 * testsuite/ld-powerpc/aix52.exp: Add new tests.
1359 * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
1360 * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
1361 * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
1362 * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
1363 * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
1364 * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
1365 * testsuite/ld-powerpc/aix-tls-section.ex: New test.
1366 * testsuite/ld-powerpc/aix-tls-section.s: New test.
1368 2021-03-12 Clément Chigot <clement.chigot@atos.net>
1370 * scripttempl/aix.sc: Add .te to .data section.
1371 * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
1372 Add aix-largetoc-1 test.
1373 * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
1374 * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
1375 * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
1376 * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
1378 2021-03-12 Alan Modra <amodra@gmail.com>
1380 * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
1381 arrange to define __main for some run_dump_test tests.
1382 * testsuite/ld-gc/pr13683.d: Accept more symbols.
1383 * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
1384 * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
1385 * testsuite/ld-srec/srec.exp: Likewise.
1386 * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
1388 2021-03-11 Nelson Chu <nelson.chu@sifive.com>
1390 * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
1391 many times if riscv_restart_relax_sections returns TRUE.
1392 * testsuite/ld-riscv-elf/restart-relax.d: New testcase. Before
1393 applying this patch, the call won't be relaxed to jal; But now we
1394 have more chances to do relaxations.
1395 * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
1396 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
1398 2021-03-10 Jan Beulich <jbeulich@suse.com>
1400 * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
1402 * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
1404 * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
1406 2021-03-09 Jan Beulich <jbeulich@suse.com>
1408 * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
1410 * testsuite/ld-pe/reloc.d: xfail for mcore.
1412 2021-03-09 Jan Beulich <jbeulich@suse.com>
1414 * testsuite/ld-scripts/alignof.exp,
1415 testsuite/ld-scripts/data.exp,
1416 testsuite/ld-scripts/default-script.exp,
1417 testsuite/ld-scripts/log2.exp,
1418 testsuite/ld-scripts/print-memory-usage.exp,
1419 testsuite/ld-scripts/sizeof.exp,
1420 testsuite/ld-undefined/weak-undef.exp: Set image base to zero
1422 * testsuite/ld-scripts/default-script1.d,
1423 testsuite/ld-scripts/default-script2.d,
1424 testsuite/ld-scripts/default-script3.d,
1425 testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
1427 2021-03-05 H.J. Lu <hongjiu.lu@intel.com>
1431 * ldelf.c (ldelf_set_output_arch): New function.
1432 * ldelf.h (ldelf_set_output_arch): New prototype.
1433 * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
1434 ldelf_set_output_arch.
1435 * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
1436 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1437 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1438 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1439 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1440 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1441 * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
1442 * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
1443 * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
1445 2021-03-04 Jan Beulich <jbeulich@suse.com>
1447 * testsuite/ld-scripts/map-address.exp: Set image base to zero
1449 * testsuite/ld-scripts/map-address.t: Place .text.
1451 2021-03-04 Jan Beulich <jbeulich@suse.com>
1453 * ldexp.c (ldexp_is_final_sym_absolute): New.
1454 * ldexp.h (ldexp_is_final_sym_absolute): Declare.
1455 * pe-dll.c (generate_reloc): Skip absolute symbols.
1456 * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
1457 * testsuite/ld-pe/pe.exp: Run new test.
1459 2021-03-03 Alan Modra <amodra@gmail.com>
1462 * ldlang.c (insert_undefined): Don't mark symbols here.
1463 (lang_mark_undefineds): Do so here instead, new function.
1464 (lang_process): Call lang_mark_undefineds.
1465 * testsuite/ld-gc/start3.d,
1466 * testsuite/ld-gc/start3.s: New test.
1467 * testsuite/ld-gc/start4.d,
1468 * testsuite/ld-gc/start4.s: New test.
1469 * testsuite/ld-gc/gc.exp: Run them.
1471 2021-03-03 Alan Modra <amodra@gmail.com>
1473 * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
1474 Move tests with ELF section directives to is_elf_format block.
1475 * testsuite/ld-gc/abi-note.d: Run on more targets.
1476 * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
1477 * testsuite/ld-gc/start.d: Likewise.
1478 * testsuite/ld-gc/start2.d: Likewise.
1479 * testsuite/ld-gc/stop.d: Likewise.
1480 * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
1481 * testsuite/ld-gc/start.s: Likewise.
1482 * testsuite/ld-gc/start2.s: Likewise.
1484 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
1486 * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
1488 2021-03-02 Alan Modra <amodra@gmail.com>
1490 * testsuite/ld-powerpc/startstop.d,
1491 * testsuite/ld-powerpc/startstop.r,
1492 * testsuite/ld-powerpc/startstop.s: New test.
1493 * testsuite/ld-powerpc/powerpc.exp: Run it.
1495 2021-03-02 Alan Modra <amodra@gmail.com>
1497 * testsuite/ld-powerpc/weak1.d,
1498 * testsuite/ld-powerpc/weak1.r,
1499 * testsuite/ld-powerpc/weak1.s,
1500 * testsuite/ld-powerpc/weak1so.d,
1501 * testsuite/ld-powerpc/weak1so.r: New tests.
1502 * testsuite/ld-powerpc/powerpc.exp: Run them.
1504 2021-03-01 Hannes Domani <ssbssa@sourceware.org>
1505 Nick Clifton <nickc@redhat.com>
1508 * scripttempl/pe.sc: Add DWARF-5 section names.
1509 * scripttempl/pep.sc: Likewise.
1511 2021-03-01 Alan Modra <amodra@gmail.com>
1512 Fangrui Song <maskray@google.com>
1514 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
1515 * lexsup.c (elf_static_list_options): Display help for them. Move
1516 help for -z stack-size to here from elf_shlib_list_options. Add
1517 help for -z start-stop-visibility and -z undefs.
1518 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
1519 * NEWS: Mention -z start-stop-gc.
1520 * testsuite/ld-gc/start2.s,
1521 * testsuite/ld-gc/start2.d: New test.
1522 * testsuite/ld-gc/gc.exp: Run it.
1524 2021-03-01 Alan Modra <amodra@gmail.com>
1526 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
1527 symbols undefweak if that was how they were referenced. Undo
1530 2021-03-01 Alan Modra <amodra@gmail.com>
1532 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
1533 * testsuite/ld-elf/pr27128a.d: Likewise.
1534 * testsuite/ld-elf/pr27128b.d: Likewise.
1535 * testsuite/ld-elf/pr27128c.d: Likewise.
1536 * testsuite/ld-elf/pr27128d.d: Likewise.
1537 * testsuite/ld-elf/pr27128e.d: Likewise.
1539 2021-02-26 Alan Modra <amodra@gmail.com>
1542 * testsuite/ld-plugin/pr27441a.c,
1543 * testsuite/ld-plugin/pr27441b.c,
1544 * testsuite/ld-plugin/pr27441c.c,
1545 * testsuite/ld-plugin/pr27441c.d: New test.
1546 * testsuite/ld-plugin/lto.exp: Run it.
1548 2021-02-25 Jan Beulich <jbeulich@suse.com>
1550 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
1552 2021-02-21 Alan Modra <amodra@gmail.com>
1554 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
1555 defined in an object file.
1556 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
1557 * testsuite/ld-scripts/defined5.d: Expect a warning.
1559 2021-02-19 Alan Modra <amodra@gmail.com>
1561 * testsuite/lib/ld-lib.exp: Whitespace.
1562 (load_common_lib): Expand single use and delete this proc.
1563 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
1564 Use -B for clang too.
1566 2021-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
1568 * testplugin.c (record_read_length): Remove debug fprintf.
1570 2021-02-14 Alan Modra <amodra@gmail.com>
1572 * testsuite/ld-cdtest/cdtest.exp,
1573 * testsuite/ld-checks/checks.exp,
1574 * testsuite/ld-elf/binutils.exp,
1575 * testsuite/ld-elf/compress.exp,
1576 * testsuite/ld-elf/dwarf.exp,
1577 * testsuite/ld-elf/exclude.exp,
1578 * testsuite/ld-elf/frame.exp,
1579 * testsuite/ld-elf/indirect.exp,
1580 * testsuite/ld-elf/linux-x86.exp,
1581 * testsuite/ld-elf/sec-to-seg.exp,
1582 * testsuite/ld-elf/tls_common.exp,
1583 * testsuite/ld-elfcomm/elfcomm.exp,
1584 * testsuite/ld-elfvers/vers.exp,
1585 * testsuite/ld-elfvsb/elfvsb.exp,
1586 * testsuite/ld-elfweak/elfweak.exp,
1587 * testsuite/ld-ifunc/binutils.exp,
1588 * testsuite/ld-mips-elf/mips-elf-flags.exp,
1589 * testsuite/ld-misc/defsym.exp,
1590 * testsuite/ld-mn10300/mn10300.exp,
1591 * testsuite/ld-plugin/lto.exp,
1592 * testsuite/ld-plugin/plugin.exp,
1593 * testsuite/ld-scripts/align.exp,
1594 * testsuite/ld-scripts/assert.exp,
1595 * testsuite/ld-scripts/crossref.exp,
1596 * testsuite/ld-scripts/defined.exp,
1597 * testsuite/ld-scripts/extern.exp,
1598 * testsuite/ld-scripts/log2.exp,
1599 * testsuite/ld-scripts/map-address.exp,
1600 * testsuite/ld-scripts/phdrs.exp,
1601 * testsuite/ld-scripts/phdrs2.exp,
1602 * testsuite/ld-scripts/script.exp,
1603 * testsuite/ld-scripts/section-flags.exp,
1604 * testsuite/ld-scripts/sizeof.exp,
1605 * testsuite/ld-scripts/weak.exp,
1606 * testsuite/ld-selective/selective.exp,
1607 * testsuite/ld-sh/sh.exp,
1608 * testsuite/ld-shared/shared.exp,
1609 * testsuite/ld-srec/srec.exp,
1610 * testsuite/ld-tic6x/tic6x.exp,
1611 * testsuite/ld-undefined/undefined.exp,
1612 * testsuite/ld-undefined/weak-undef.exp,
1613 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
1614 perror. Instead report "unsupported" or "fail".
1616 2021-02-12 Nick Clifton <nickc@redhat.com>
1618 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
1619 following debug links.
1621 2021-02-11 Alan Modra <amodra@gmail.com>
1623 * NEWS: Mention arm-symbianelf removal.
1625 2021-02-09 Alan Modra <amodra@gmail.com>
1627 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
1628 Don't include symbian dep file.
1629 * configure.tgt: Remove arm*-*-symbianelf* entry.
1630 * emulparams/armsymbian.sh: Delete.
1631 * ld.texi: Don't mention symbian.
1632 * scripttempl/armbpabi.sc: Delete.
1633 * testsuite/ld-arm/symbian-seg1.d: Delete.
1634 * testsuite/ld-arm/symbian-seg1.s: Delete.
1635 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
1636 * Makefile.in: Regenerate.
1637 * po/BLD-POTFILES.in: Regenerate.
1639 2021-02-07 H.J. Lu <hongjiu.lu@intel.com>
1642 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
1644 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1646 2021-01-26 Nick Alcock <nick.alcock@oracle.com>
1648 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
1651 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1654 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
1655 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
1656 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
1657 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
1658 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
1659 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
1660 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
1662 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1665 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
1666 * testsuite/ld-plugin/pr15146.d: Restored.
1667 * testsuite/ld-plugin/pr15146a.c: Likewise.
1668 * testsuite/ld-plugin/pr15146b.c: Likewise.
1669 * testsuite/ld-plugin/pr15146c.c: Likewise.
1670 * testsuite/ld-plugin/pr15146d.c: Likewise.
1672 2021-02-04 Alan Modra <amodra@gmail.com>
1674 * testsuite/ld-plugin/pr27311d.c: New test.
1675 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
1676 and link new test as pr27311-2.
1678 2021-02-03 Alan Modra <amodra@gmail.com>
1680 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
1681 Link with --as-needed.
1683 2021-02-02 Alan Modra <amodra@gmail.com>
1685 * testsuite/ld-plugin/pr27311.d,
1686 * testsuite/ld-plugin/pr27311.ver,
1687 * testsuite/ld-plugin/pr27311a.c,
1688 * testsuite/ld-plugin/pr27311b.c,
1689 * testsuite/ld-plugin/pr27311c.c: New testcase.
1690 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
1693 2021-02-01 Emery Hemingway <ehmry@posteo.net>
1695 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1697 2021-02-01 Alan Modra <amodra@gmail.com>
1699 * ldgram.y (defsym_expr): Use assignment rule.
1700 * ldlex.h (ldlex_defsym): Delete.
1701 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
1703 2021-02-01 Alan Modra <amodra@gmail.com>
1705 * ldgram.y (section): Call ldlex_backup. Remove empty action.
1706 * ldlex.h (ldlex_backup): Declare.
1707 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
1708 chars, use SYMBOLNAMECHAR.
1709 (ldlex_backup): New function.
1711 2021-02-01 Alan Modra <amodra@gmail.com>
1713 * ldgram.y: Whitespace fixes.
1715 2021-02-01 Alan Modra <amodra@gmail.com>
1717 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
1719 2021-01-29 Alan Modra <amodra@gmail.com>
1721 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
1723 2021-01-28 H.J. Lu <hongjiu.lu@intel.com>
1726 * testsuite/ld-elf/pr27259.d: New file.
1727 * testsuite/ld-elf/pr27259.s: Likewise.
1729 2021-01-28 Alan Modra <amodra@gmail.com>
1732 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
1733 prevent endless looping of linked-to sections.
1735 2021-01-26 H.J. Lu <hongjiu.lu@intel.com>
1737 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
1739 2021-01-26 Alan Modra <amodra@gmail.com>
1742 * emulparams/alphavms.sh: Don't set COMPILE_IN.
1743 * emulparams/elf64_ia64_vms.sh: Likewise.
1744 * emulparams/elf64mmix.sh: Likewise.
1745 * emulparams/elf_iamcu.sh: Likewise.
1746 * emulparams/elf_k1om.sh: Likewise.
1747 * emulparams/elf_l1om.sh: Likewise.
1748 * emulparams/mmo.sh: Likewise.
1749 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
1750 * scripttempl/pdp11.sc: Use it.
1751 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
1752 instead use .xe script. Support scripts from file system.
1753 * emultempl/beos.em: Support scripts from file system.
1754 * emultempl/pe.em: Likewise.
1755 * emultempl/pep.em: Likewise.
1756 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
1758 2021-01-25 Fangrui Song <maskray@google.com>
1761 * scripttempl/DWARF.sc: Add .debug_* sections.
1763 2021-01-25 Nick Clifton <nickc@redhat.com>
1765 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
1766 .debug_line_str and .debug_str_offsets. Move .debug_macro and
1767 .debug_addr into DWARF-5 section.
1769 2021-01-21 Alan Modra <amodra@gmail.com>
1771 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
1773 2021-01-20 Alan Modra <amodra@gmail.com>
1775 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
1776 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
1777 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
1778 * testsuite/ld-powerpc/tlsget.wf: Likewise.
1779 * testsuite/ld-powerpc/tlsget2.d: Likewise.
1780 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
1781 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
1782 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
1783 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
1784 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
1785 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
1786 * testsuite/ld-powerpc/tlsexers.r: Likewise.
1787 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
1788 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
1789 * testsuite/ld-powerpc/tlsso.r: Likewise.
1790 * testsuite/ld-powerpc/tlsso32.r: Likewise.
1791 * testsuite/ld-powerpc/tlstocso.r: Likewise.
1793 2021-01-19 Nick Alcock <nick.alcock@oracle.com>
1795 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
1796 symbols by the optimizer.
1797 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
1799 2021-01-19 Nelson Chu <nelson.chu@sifive.com>
1801 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
1802 if target is riscv little endian. Otherwise, return false.
1803 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
1804 targets by [riscv_little_endian].
1806 2021-01-18 Alan Modra <amodra@gmail.com>
1809 * ldlang.c (map_input_to_output_sections): Start with a read-only
1810 section for data statements.
1811 * testsuite/ld-elf/size-2.d: Adjust to suit.
1813 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
1816 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
1817 * testsuite/ld-i386/pr27193.dd: New file.
1818 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
1819 * testsuite/ld-i386/pr27193b.s: Likewise.
1821 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1824 * testsuite/ld-plugin/lto.exp: Increase the max number of open
1825 files to 20 for PR binutils/23460 test.
1827 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1830 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
1831 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
1832 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
1835 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
1837 * NEWS: Mention -z report-relative-reloc.
1838 * ld.texi: Document -z report-relative-reloc.
1839 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
1840 * emulparams/elf_i386.sh: Likewse.
1841 * emulparams/elf_x86_64.sh: Likewse.
1842 * emulparams/x86-report-relative.sh: New file.
1843 * testsuite/ld-i386/report-reloc-1.d: Likewse.
1844 * testsuite/ld-i386/report-reloc-1.l: Likewse.
1845 * testsuite/ld-i386/report-reloc-1.s: Likewse.
1846 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
1847 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
1848 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
1849 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
1850 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
1851 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
1854 2021-01-16 Alan Modra <amodra@gmail.com>
1857 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
1858 unversioned symbols.
1859 * testsuite/ld-elfvers/vers16.dsym: Likewise.
1861 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1863 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
1864 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
1865 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
1866 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
1867 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
1868 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
1870 2021-01-14 Nick Clifton <nickc@redhat.com>
1872 * po/fr.po: Updated French translation.
1874 2021-01-14 Mike Frysinger <vapier@gentoo.org>
1876 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
1878 2021-01-14 Alan Modra <amodra@gmail.com>
1881 * ldelfgen.c (compare_link_order): Protect access of ELF section
1883 (add_link_order_input_section): Remove redundant NULL check.
1884 Use bfd_get_flavour.
1885 (ldelf_map_segments): Use bfd_get_flavour.
1887 2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
1889 * ldelfgen.c (add_link_order_input_section): Check for ELF input
1890 before accessing ELF section data.
1892 2021-01-13 Alan Modra <amodra@gmail.com>
1894 * Makefile.in: Regenerate.
1896 2021-01-13 Alan Modra <amodra@gmail.com>
1899 * ldlang.h (lang_output_section_statement_type): Add data field.
1900 (lang_input_section_type, lang_section_bst_type): Add pattern field.
1901 (statement_list): Declare.
1902 (lang_add_section): Adjust prototype.
1903 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
1904 * emultempl/armelf.em: Likewise.
1905 * emultempl/beos.em: Likewise.
1906 * emultempl/cskyelf.em: Likewise.
1907 * emultempl/hppaelf.em: Likewise.
1908 * emultempl/m68hc1xelf.em: Likewise.
1909 * emultempl/metagelf.em: Likewise.
1910 * emultempl/mipself.em: Likewise.
1911 * emultempl/mmo.em: Likewise.
1912 * emultempl/msp430.em: Likewise.
1913 * emultempl/nios2elf.em: Likewise.
1914 * emultempl/pe.em: Likewise.
1915 * emultempl/pep.em: Likewise.
1916 * emultempl/ppc64elf.em: Likewise.
1917 * emultempl/spuelf.em: Likewise.
1918 * emultempl/vms.em: Likewise.
1919 * ldelf.c: Likewise.
1920 * ldelfgen.c: Include ldctor.h.
1921 (struct os_sections): New.
1922 (add_link_order_input_section, link_order_scan): New functions.
1923 (compare_link_order, fixup_link_order): New functions.
1924 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
1925 * ldlang.c (statement_list): Make global.
1926 (output_section_callback_fast): Save pattern in tree node.
1927 (lang_add_section): Add pattern parameter, save in lang_input_section.
1928 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
1929 (lang_insert_orphan, output_section_callback): Likewise.
1930 (ldlang_place_orphan): Likewise.
1931 (gc_section_callback): Don't set section->pattern.
1932 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
1933 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1934 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
1936 2021-01-13 Alan Modra <amodra@gmail.com>
1938 * ldlang.h (callback_t): Remove flag_info function parameter.
1939 * ldlang.c (walk_wild_consider_section): Adjust to suit.
1940 (walk_wild_section_general): Likewise.
1941 (output_section_callback_fast, output_section_callback): Likewise.
1942 (check_section_callback, gc_section_callback): Likewise.
1943 (find_relro_section_callback): Likewise.
1945 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1948 * configure.ac: Use GNU_MAKE_JOBSERVER.
1949 * aclocal.m4: Regenerated.
1950 * configure: Likewise.
1952 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1955 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
1956 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1957 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1958 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
1960 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1963 * configure: Regenerated.
1965 2021-01-11 Matt Jenkins <matt@majenko.co.uk>
1968 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
1969 and mips64r5 to list of known mips targets.
1971 2021-01-11 Nick Clifton <nickc@redhat.com>matt@majenko.co.uk
1973 * po/pt_BR.po: Updated Brazilian Portuguese translation.
1974 ` * po/uk.po: Updated Ukranian translation.
1976 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1978 * configure: Regenerated.
1980 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1983 * testsuite/ld-x86-64/lam-u48.rd: New file.
1984 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
1985 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
1987 2021-01-09 Nick Clifton <nickc@redhat.com>
1989 * configure: Regenerate.
1990 * po/ld.pot: Regenerate.
1992 2021-01-09 Nick Clifton <nickc@redhat.com>
1994 * 2.36 release branch crated.
1996 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
1998 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
1999 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
2001 2021-01-09 Alan Modra <amodra@gmail.com>
2003 * configure: Regenerate.
2004 * Makefile.in: Regenerate.
2006 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
2008 * configure: Regenerate.
2010 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
2013 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
2014 * testsuite/ld-elf/loadaddr3b.d: Likewise.
2015 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
2016 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
2017 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
2018 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
2019 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
2020 * testsuite/ld-i386/pr19636-1d.d: Likewise.
2021 * testsuite/ld-i386/pr19636-1l.d: Likewise.
2022 * testsuite/ld-i386/pr19636-2c.d: Likewise.
2023 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
2024 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
2025 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
2026 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
2027 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
2028 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
2029 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
2030 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
2031 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
2032 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
2033 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
2034 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
2035 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
2036 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
2037 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
2038 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
2039 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
2040 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
2041 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
2042 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
2043 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
2044 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
2045 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
2046 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
2047 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
2048 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
2049 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
2050 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
2051 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
2052 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
2053 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
2054 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
2055 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
2056 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
2057 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
2058 * testsuite/ld-x86-64/pr21038b.d: Likewise.
2059 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
2060 * testsuite/ld-x86-64/pr21038c.d: Likewise.
2061 * testsuite/ld-x86-64/pr23854.d: Likewise.
2062 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
2063 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
2064 * testsuite/ld-i386/plt-pic.pd: Likewise.
2065 * testsuite/ld-i386/plt-pic2.dd: Likewise.
2066 * testsuite/ld-i386/plt.pd: Likewise.
2067 * testsuite/ld-i386/plt2.dd: Likewise.
2068 * testsuite/ld-i386/tlsbin.rd: Likewise.
2069 * testsuite/ld-i386/tlsbin2.rd: Likewise.
2070 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
2071 * testsuite/ld-i386/tlsdesc.rd: Likewise.
2072 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
2073 * testsuite/ld-i386/tlsnopic.rd: Likewise.
2074 * testsuite/ld-i386/tlspic.rd: Likewise.
2075 * testsuite/ld-i386/tlspic2.rd: Likewise.
2076 * testsuite/ld-x86-64/mpx3.dd: Likewise.
2077 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
2078 * testsuite/ld-x86-64/mpx4.dd: Likewise.
2079 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
2080 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
2081 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
2082 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
2083 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
2084 * testsuite/ld-x86-64/plt.pd: Likewise.
2085 * testsuite/ld-x86-64/plt2.dd: Likewise.
2086 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
2087 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
2088 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
2089 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
2090 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
2091 * testsuite/ld-x86-64/tlspic.rd: Likewise.
2092 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
2093 * testsuite/ld-elf/sec64k.exp: Check
2094 is_elf_unused_section_symbols.
2096 2021-01-07 Alan Modra <amodra@gmail.com>
2098 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
2099 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
2100 * testsuite/ld-scripts/segment-start.d: Likewise.
2102 2021-01-07 Alan Modra <amodra@gmail.com>
2104 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
2105 about dynamic relocations in read-only sections.
2106 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
2107 * testsuite/ld-elf/ehdr_start.d: Likewise.
2108 * testsuite/ld-scripts/pr22267.d: Likewise.
2109 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
2111 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
2113 2021-01-07 Marcus Comstedt <marcus@mc.pp.se>
2115 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
2116 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
2118 2021-01-07 Alan Modra <amodra@gmail.com>
2120 * po/BLD-POTFILES.in: Regenerate.
2122 2021-01-07 Alan Modra <amodra@gmail.com>
2124 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
2125 complain about relocs in read-only sections. Tidy ASFLAGS append.
2127 2021-01-06 Alan Modra <amodra@gmail.com>
2129 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
2130 base for some tests.
2131 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
2132 * testsuite/ld-sparc/gotop32.sd: Likewise.
2133 * testsuite/ld-sparc/gotop32.td: Likewise.
2134 * testsuite/ld-sparc/gotop64.dd: Likewise.
2135 * testsuite/ld-sparc/gotop64.sd: Likewise.
2136 * testsuite/ld-sparc/gotop64.td: Likewise.
2137 * testsuite/ld-sparc/tlsg32.sd: Likewise.
2138 * testsuite/ld-sparc/tlsg64.sd: Likewise.
2139 * testsuite/ld-sparc/tlspie32.dd: Likewise.
2140 * testsuite/ld-sparc/tlspie64.dd: Likewise.
2141 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
2142 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
2143 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
2144 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
2145 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
2146 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
2147 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
2148 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
2149 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
2150 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
2151 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
2152 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
2153 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
2154 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
2155 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
2156 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
2157 * testsuite/ld-sparc/wdispcall.dd: Likewise.
2159 2021-01-06 Alan Modra <amodra@gmail.com>
2161 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
2162 * testsuite/ld-scripts/rgn-at11.d: Likewise.
2164 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
2166 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
2167 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
2168 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
2169 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
2170 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
2171 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
2172 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
2173 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
2174 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
2175 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
2176 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
2177 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
2178 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
2179 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
2181 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
2183 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
2185 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
2186 riscv32be*-*-linux*, and riscv64be*-*-linux*.
2187 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
2188 eelf32briscv_ilp32.c.
2189 * Makefile.in: Regenerate.
2190 * emulparams/elf32briscv.sh: Added.
2191 * emulparams/elf32briscv_ilp32.sh: Likewise.
2192 * emulparams/elf32briscv_ilp32f.sh: Likewise.
2193 * emulparams/elf64briscv.sh: Likewise.
2194 * emulparams/elf64briscv_lp64.sh: Likewise.
2195 * emulparams/elf64briscv_lp64f.sh: Likewise.
2197 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
2199 * testsuite/ld-ctf/enum-forward.c: New test.
2200 * testsuite/ld-ctf/enum-forward.c: New results.
2202 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
2204 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2205 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
2206 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
2207 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
2208 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
2209 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
2210 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
2211 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
2212 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
2213 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
2214 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
2215 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
2216 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2217 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
2218 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
2219 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
2220 * testsuite/ld-ctf/cycle-1.d: Likewise.
2221 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
2222 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
2223 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
2224 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2225 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2226 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2227 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2228 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
2229 * testsuite/ld-ctf/forward.d: Likewise.
2230 * testsuite/ld-ctf/function.d: Likewise.
2231 * testsuite/ld-ctf/slice.d: Likewise.
2232 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
2233 * testsuite/ld-ctf/enums.c: New test.
2234 * testsuite/ld-ctf/enums.d: New test.
2236 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
2238 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
2240 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2241 * testsuite/ld-ctf/forward.c: New test...
2242 * testsuite/ld-ctf/forward.d: ... and results.
2244 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
2246 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2247 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2248 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2249 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2250 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2251 * testsuite/ld-ctf/function.d: Likewise.
2252 * testsuite/ld-ctf/slice.d: Likewise.
2254 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
2256 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
2257 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
2258 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
2259 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
2260 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
2261 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
2262 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
2263 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
2264 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
2265 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
2266 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
2267 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
2268 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
2269 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
2270 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
2271 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
2272 * testsuite/ld-ctf/cycle-1.d: Likewise.
2273 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
2274 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
2275 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
2276 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
2277 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
2278 * testsuite/ld-ctf/diag-cuname.d: Likewise.
2279 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
2280 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
2281 * testsuite/ld-ctf/function.d: Likewise.
2282 * testsuite/ld-ctf/slice.d: Likewise.
2283 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
2285 2021-01-05 Alan Modra <amodra@gmail.com>
2287 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
2289 2021-01-05 Alan Modra <amodra@gmail.com>
2292 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
2293 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
2295 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
2298 * ldlang.c (gc_section_callback): Set pattern.
2299 * testsuite/ld-elf/pr26256-1.s: New file.
2300 * testsuite/ld-elf/pr26256-1.t: Likewise.
2301 * testsuite/ld-elf/pr26256-1a.d: Likewise.
2302 * testsuite/ld-elf/pr26256-1b.d: Likewise.
2303 * testsuite/ld-elf/pr26256-2.s: Likewise.
2304 * testsuite/ld-elf/pr26256-2.t: Likewise.
2305 * testsuite/ld-elf/pr26256-2a.d: Likewise.
2306 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
2307 * testsuite/ld-elf/pr26256-2b.d: Likewise.
2308 * testsuite/ld-elf/pr26256-3.s: Likewise.
2309 * testsuite/ld-elf/pr26256-3a.d: Likewise.
2310 * testsuite/ld-elf/pr26256-3a.t: Likewise.
2311 * testsuite/ld-elf/pr26256-3b.d: Likewise.
2312 * testsuite/ld-elf/pr26256-3b.t: Likewise.
2314 2021-01-04 Alan Modra <amodra@gmail.com>
2317 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
2318 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
2319 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
2320 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
2321 * testsuite/ld-i386/tlsbin.rd: Likewise.
2322 * testsuite/ld-i386/tlsbin2.rd: Likewise.
2323 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
2324 * testsuite/ld-i386/tlsdesc.rd: Likewise.
2325 * testsuite/ld-i386/tlsnopic.rd: Likewise.
2326 * testsuite/ld-i386/tlspic.rd: Likewise.
2327 * testsuite/ld-i386/tlspic2.rd: Likewise.
2328 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
2329 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
2330 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
2331 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
2332 * testsuite/ld-plugin/pr17973.d: Likewise.
2333 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
2334 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
2335 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
2336 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
2337 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
2338 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
2339 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
2340 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
2341 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
2342 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
2343 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
2344 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
2345 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
2346 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
2347 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
2348 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
2349 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
2350 * testsuite/ld-x86-64/tlspic.rd: Likewise.
2351 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
2352 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
2353 * testsuite/ld-xtensa/tlspic.rd: Likewise.
2355 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
2357 * configure.tgt: Correct comment grammar.
2358 * emultempl/m68hc1xelf.em: Likewise.
2359 * ld.texi: Correct grammar.
2361 2021-01-01 Alan Modra <amodra@gmail.com>
2363 Update year range in copyright notice of all files.
2365 For older changes see ChangeLog-2020
2367 Copyright (C) 2021-2023 Free Software Foundation, Inc.
2369 Copying and distribution of this file, with or without modification,
2370 are permitted in any medium without royalty provided the copyright
2371 notice and this notice are preserved.
2377 version-control: never