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