3 * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
5 * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
7 * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
11 * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
13 * testsuite/ld-pe/reloc.d: xfail for mcore.
17 * testsuite/ld-scripts/alignof.exp,
18 testsuite/ld-scripts/data.exp,
19 testsuite/ld-scripts/default-script.exp,
20 testsuite/ld-scripts/log2.exp,
21 testsuite/ld-scripts/print-memory-usage.exp,
22 testsuite/ld-scripts/sizeof.exp,
23 testsuite/ld-undefined/weak-undef.exp: Set image base to zero
25 * testsuite/ld-scripts/default-script1.d,
26 testsuite/ld-scripts/default-script2.d,
27 testsuite/ld-scripts/default-script3.d,
28 testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
34 * ldelf.c (ldelf_set_output_arch): New function.
35 * ldelf.h (ldelf_set_output_arch): New prototype.
36 * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
37 ldelf_set_output_arch.
38 * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
39 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
40 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
41 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
42 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
43 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
44 * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
45 * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
46 * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
50 * testsuite/ld-scripts/map-address.exp: Set image base to zero
52 * testsuite/ld-scripts/map-address.t: Place .text.
56 * ldexp.c (ldexp_is_final_sym_absolute): New.
57 * ldexp.h (ldexp_is_final_sym_absolute): Declare.
58 * pe-dll.c (generate_reloc): Skip absolute symbols.
59 * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
60 * testsuite/ld-pe/pe.exp: Run new test.
65 * ldlang.c (insert_undefined): Don't mark symbols here.
66 (lang_mark_undefineds): Do so here instead, new function.
67 (lang_process): Call lang_mark_undefineds.
68 * testsuite/ld-gc/start3.d,
69 * testsuite/ld-gc/start3.s: New test.
70 * testsuite/ld-gc/start4.d,
71 * testsuite/ld-gc/start4.s: New test.
72 * testsuite/ld-gc/gc.exp: Run them.
76 * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
77 Move tests with ELF section directives to is_elf_format block.
78 * testsuite/ld-gc/abi-note.d: Run on more targets.
79 * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
80 * testsuite/ld-gc/start.d: Likewise.
81 * testsuite/ld-gc/start2.d: Likewise.
82 * testsuite/ld-gc/stop.d: Likewise.
83 * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
84 * testsuite/ld-gc/start.s: Likewise.
85 * testsuite/ld-gc/start2.s: Likewise.
89 * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
93 * testsuite/ld-powerpc/startstop.d,
94 * testsuite/ld-powerpc/startstop.r,
95 * testsuite/ld-powerpc/startstop.s: New test.
96 * testsuite/ld-powerpc/powerpc.exp: Run it.
100 * testsuite/ld-powerpc/weak1.d,
101 * testsuite/ld-powerpc/weak1.r,
102 * testsuite/ld-powerpc/weak1.s,
103 * testsuite/ld-powerpc/weak1so.d,
104 * testsuite/ld-powerpc/weak1so.r: New tests.
105 * testsuite/ld-powerpc/powerpc.exp: Run them.
111 * scripttempl/pe.sc: Add DWARF-5 section names.
112 * scripttempl/pep.sc: Likewise.
117 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
118 * lexsup.c (elf_static_list_options): Display help for them. Move
119 help for -z stack-size to here from elf_shlib_list_options. Add
120 help for -z start-stop-visibility and -z undefs.
121 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
122 * NEWS: Mention -z start-stop-gc.
123 * testsuite/ld-gc/start2.s,
124 * testsuite/ld-gc/start2.d: New test.
125 * testsuite/ld-gc/gc.exp: Run it.
129 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
130 symbols undefweak if that was how they were referenced. Undo
135 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
136 * testsuite/ld-elf/pr27128a.d: Likewise.
137 * testsuite/ld-elf/pr27128b.d: Likewise.
138 * testsuite/ld-elf/pr27128c.d: Likewise.
139 * testsuite/ld-elf/pr27128d.d: Likewise.
140 * testsuite/ld-elf/pr27128e.d: Likewise.
145 * testsuite/ld-plugin/pr27441a.c,
146 * testsuite/ld-plugin/pr27441b.c,
147 * testsuite/ld-plugin/pr27441c.c,
148 * testsuite/ld-plugin/pr27441c.d: New test.
149 * testsuite/ld-plugin/lto.exp: Run it.
153 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
157 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
158 defined in an object file.
159 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
160 * testsuite/ld-scripts/defined5.d: Expect a warning.
164 * testsuite/lib/ld-lib.exp: Whitespace.
165 (load_common_lib): Expand single use and delete this proc.
166 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
167 Use -B for clang too.
171 * testplugin.c (record_read_length): Remove debug fprintf.
175 * testsuite/ld-cdtest/cdtest.exp,
176 * testsuite/ld-checks/checks.exp,
177 * testsuite/ld-elf/binutils.exp,
178 * testsuite/ld-elf/compress.exp,
179 * testsuite/ld-elf/dwarf.exp,
180 * testsuite/ld-elf/exclude.exp,
181 * testsuite/ld-elf/frame.exp,
182 * testsuite/ld-elf/indirect.exp,
183 * testsuite/ld-elf/linux-x86.exp,
184 * testsuite/ld-elf/sec-to-seg.exp,
185 * testsuite/ld-elf/tls_common.exp,
186 * testsuite/ld-elfcomm/elfcomm.exp,
187 * testsuite/ld-elfvers/vers.exp,
188 * testsuite/ld-elfvsb/elfvsb.exp,
189 * testsuite/ld-elfweak/elfweak.exp,
190 * testsuite/ld-ifunc/binutils.exp,
191 * testsuite/ld-mips-elf/mips-elf-flags.exp,
192 * testsuite/ld-misc/defsym.exp,
193 * testsuite/ld-mn10300/mn10300.exp,
194 * testsuite/ld-plugin/lto.exp,
195 * testsuite/ld-plugin/plugin.exp,
196 * testsuite/ld-scripts/align.exp,
197 * testsuite/ld-scripts/assert.exp,
198 * testsuite/ld-scripts/crossref.exp,
199 * testsuite/ld-scripts/defined.exp,
200 * testsuite/ld-scripts/extern.exp,
201 * testsuite/ld-scripts/log2.exp,
202 * testsuite/ld-scripts/map-address.exp,
203 * testsuite/ld-scripts/phdrs.exp,
204 * testsuite/ld-scripts/phdrs2.exp,
205 * testsuite/ld-scripts/script.exp,
206 * testsuite/ld-scripts/section-flags.exp,
207 * testsuite/ld-scripts/sizeof.exp,
208 * testsuite/ld-scripts/weak.exp,
209 * testsuite/ld-selective/selective.exp,
210 * testsuite/ld-sh/sh.exp,
211 * testsuite/ld-shared/shared.exp,
212 * testsuite/ld-srec/srec.exp,
213 * testsuite/ld-tic6x/tic6x.exp,
214 * testsuite/ld-undefined/undefined.exp,
215 * testsuite/ld-undefined/weak-undef.exp,
216 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
217 perror. Instead report "unsupported" or "fail".
221 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
222 following debug links.
226 * NEWS: Mention arm-symbianelf removal.
230 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
231 Don't include symbian dep file.
232 * configure.tgt: Remove arm*-*-symbianelf* entry.
233 * emulparams/armsymbian.sh: Delete.
234 * ld.texi: Don't mention symbian.
235 * scripttempl/armbpabi.sc: Delete.
236 * testsuite/ld-arm/symbian-seg1.d: Delete.
237 * testsuite/ld-arm/symbian-seg1.s: Delete.
238 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
239 * Makefile.in: Regenerate.
240 * po/BLD-POTFILES.in: Regenerate.
245 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
247 * testsuite/ld-x86-64/x86-64.exp: Likewise.
251 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
257 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
258 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
259 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
260 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
261 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
262 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
263 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
268 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
269 * testsuite/ld-plugin/pr15146.d: Restored.
270 * testsuite/ld-plugin/pr15146a.c: Likewise.
271 * testsuite/ld-plugin/pr15146b.c: Likewise.
272 * testsuite/ld-plugin/pr15146c.c: Likewise.
273 * testsuite/ld-plugin/pr15146d.c: Likewise.
277 * testsuite/ld-plugin/pr27311d.c: New test.
278 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
279 and link new test as pr27311-2.
283 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
284 Link with --as-needed.
288 * testsuite/ld-plugin/pr27311.d,
289 * testsuite/ld-plugin/pr27311.ver,
290 * testsuite/ld-plugin/pr27311a.c,
291 * testsuite/ld-plugin/pr27311b.c,
292 * testsuite/ld-plugin/pr27311c.c: New testcase.
293 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
298 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
302 * ldgram.y (defsym_expr): Use assignment rule.
303 * ldlex.h (ldlex_defsym): Delete.
304 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
308 * ldgram.y (section): Call ldlex_backup. Remove empty action.
309 * ldlex.h (ldlex_backup): Declare.
310 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
311 chars, use SYMBOLNAMECHAR.
312 (ldlex_backup): New function.
316 * ldgram.y: Whitespace fixes.
320 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
324 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
329 * testsuite/ld-elf/pr27259.d: New file.
330 * testsuite/ld-elf/pr27259.s: Likewise.
335 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
336 prevent endless looping of linked-to sections.
340 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
345 * emulparams/alphavms.sh: Don't set COMPILE_IN.
346 * emulparams/elf64_ia64_vms.sh: Likewise.
347 * emulparams/elf64mmix.sh: Likewise.
348 * emulparams/elf_iamcu.sh: Likewise.
349 * emulparams/elf_k1om.sh: Likewise.
350 * emulparams/elf_l1om.sh: Likewise.
351 * emulparams/mmo.sh: Likewise.
352 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
353 * scripttempl/pdp11.sc: Use it.
354 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
355 instead use .xe script. Support scripts from file system.
356 * emultempl/beos.em: Support scripts from file system.
357 * emultempl/pe.em: Likewise.
358 * emultempl/pep.em: Likewise.
359 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
364 * scripttempl/DWARF.sc: Add .debug_* sections.
368 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
369 .debug_line_str and .debug_str_offsets. Move .debug_macro and
370 .debug_addr into DWARF-5 section.
374 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
378 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
379 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
380 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
381 * testsuite/ld-powerpc/tlsget.wf: Likewise.
382 * testsuite/ld-powerpc/tlsget2.d: Likewise.
383 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
384 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
385 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
386 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
387 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
388 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
389 * testsuite/ld-powerpc/tlsexers.r: Likewise.
390 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
391 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
392 * testsuite/ld-powerpc/tlsso.r: Likewise.
393 * testsuite/ld-powerpc/tlsso32.r: Likewise.
394 * testsuite/ld-powerpc/tlstocso.r: Likewise.
398 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
399 symbols by the optimizer.
400 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
404 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
405 if target is riscv little endian. Otherwise, return false.
406 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
407 targets by [riscv_little_endian].
412 * ldlang.c (map_input_to_output_sections): Start with a read-only
413 section for data statements.
414 * testsuite/ld-elf/size-2.d: Adjust to suit.
419 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
420 * testsuite/ld-i386/pr27193.dd: New file.
421 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
422 * testsuite/ld-i386/pr27193b.s: Likewise.
427 * testsuite/ld-plugin/lto.exp: Increase the max number of open
428 files to 20 for PR binutils/23460 test.
433 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
434 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
435 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
440 * NEWS: Mention -z report-relative-reloc.
441 * ld.texi: Document -z report-relative-reloc.
442 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
443 * emulparams/elf_i386.sh: Likewse.
444 * emulparams/elf_x86_64.sh: Likewse.
445 * emulparams/x86-report-relative.sh: New file.
446 * testsuite/ld-i386/report-reloc-1.d: Likewse.
447 * testsuite/ld-i386/report-reloc-1.l: Likewse.
448 * testsuite/ld-i386/report-reloc-1.s: Likewse.
449 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
450 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
451 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
452 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
453 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
454 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
460 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
462 * testsuite/ld-elfvers/vers16.dsym: Likewise.
466 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
467 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
468 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
469 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
470 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
471 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
475 * po/fr.po: Updated French translation.
479 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
484 * ldelfgen.c (compare_link_order): Protect access of ELF section
486 (add_link_order_input_section): Remove redundant NULL check.
488 (ldelf_map_segments): Use bfd_get_flavour.
492 * ldelfgen.c (add_link_order_input_section): Check for ELF input
493 before accessing ELF section data.
497 * Makefile.in: Regenerate.
502 * ldlang.h (lang_output_section_statement_type): Add data field.
503 (lang_input_section_type, lang_section_bst_type): Add pattern field.
504 (statement_list): Declare.
505 (lang_add_section): Adjust prototype.
506 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
507 * emultempl/armelf.em: Likewise.
508 * emultempl/beos.em: Likewise.
509 * emultempl/cskyelf.em: Likewise.
510 * emultempl/hppaelf.em: Likewise.
511 * emultempl/m68hc1xelf.em: Likewise.
512 * emultempl/metagelf.em: Likewise.
513 * emultempl/mipself.em: Likewise.
514 * emultempl/mmo.em: Likewise.
515 * emultempl/msp430.em: Likewise.
516 * emultempl/nios2elf.em: Likewise.
517 * emultempl/pe.em: Likewise.
518 * emultempl/pep.em: Likewise.
519 * emultempl/ppc64elf.em: Likewise.
520 * emultempl/spuelf.em: Likewise.
521 * emultempl/vms.em: Likewise.
523 * ldelfgen.c: Include ldctor.h.
524 (struct os_sections): New.
525 (add_link_order_input_section, link_order_scan): New functions.
526 (compare_link_order, fixup_link_order): New functions.
527 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
528 * ldlang.c (statement_list): Make global.
529 (output_section_callback_fast): Save pattern in tree node.
530 (lang_add_section): Add pattern parameter, save in lang_input_section.
531 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
532 (lang_insert_orphan, output_section_callback): Likewise.
533 (ldlang_place_orphan): Likewise.
534 (gc_section_callback): Don't set section->pattern.
535 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
536 * testsuite/ld-elf/pr26256-3b.d: Likewise.
537 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
541 * ldlang.h (callback_t): Remove flag_info function parameter.
542 * ldlang.c (walk_wild_consider_section): Adjust to suit.
543 (walk_wild_section_general): Likewise.
544 (output_section_callback_fast, output_section_callback): Likewise.
545 (check_section_callback, gc_section_callback): Likewise.
546 (find_relro_section_callback): Likewise.
551 * configure.ac: Use GNU_MAKE_JOBSERVER.
552 * aclocal.m4: Regenerated.
553 * configure: Likewise.
558 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
559 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
560 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
561 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
566 * configure: Regenerated.
571 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
572 and mips64r5 to list of known mips targets.
576 * po/pt_BR.po: Updated Brazilian Portuguese translation.
577 ` * po/uk.po: Updated Ukranian translation.
581 * configure: Regenerated.
586 * testsuite/ld-x86-64/lam-u48.rd: New file.
587 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
588 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
592 * configure: Regenerate.
593 * po/ld.pot: Regenerate.
597 * 2.36 release branch crated.
601 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
602 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
606 * configure: Regenerate.
607 * Makefile.in: Regenerate.
611 * configure: Regenerate.
616 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
617 * testsuite/ld-elf/loadaddr3b.d: Likewise.
618 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
619 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
620 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
621 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
622 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
623 * testsuite/ld-i386/pr19636-1d.d: Likewise.
624 * testsuite/ld-i386/pr19636-1l.d: Likewise.
625 * testsuite/ld-i386/pr19636-2c.d: Likewise.
626 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
627 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
628 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
629 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
630 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
631 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
632 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
633 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
634 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
635 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
636 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
637 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
638 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
639 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
640 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
641 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
642 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
643 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
644 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
645 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
646 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
647 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
648 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
649 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
650 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
651 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
652 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
653 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
654 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
655 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
656 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
657 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
658 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
659 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
660 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
661 * testsuite/ld-x86-64/pr21038b.d: Likewise.
662 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
663 * testsuite/ld-x86-64/pr21038c.d: Likewise.
664 * testsuite/ld-x86-64/pr23854.d: Likewise.
665 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
666 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
667 * testsuite/ld-i386/plt-pic.pd: Likewise.
668 * testsuite/ld-i386/plt-pic2.dd: Likewise.
669 * testsuite/ld-i386/plt.pd: Likewise.
670 * testsuite/ld-i386/plt2.dd: Likewise.
671 * testsuite/ld-i386/tlsbin.rd: Likewise.
672 * testsuite/ld-i386/tlsbin2.rd: Likewise.
673 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
674 * testsuite/ld-i386/tlsdesc.rd: Likewise.
675 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
676 * testsuite/ld-i386/tlsnopic.rd: Likewise.
677 * testsuite/ld-i386/tlspic.rd: Likewise.
678 * testsuite/ld-i386/tlspic2.rd: Likewise.
679 * testsuite/ld-x86-64/mpx3.dd: Likewise.
680 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
681 * testsuite/ld-x86-64/mpx4.dd: Likewise.
682 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
683 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
684 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
685 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
686 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
687 * testsuite/ld-x86-64/plt.pd: Likewise.
688 * testsuite/ld-x86-64/plt2.dd: Likewise.
689 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
690 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
691 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
692 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
693 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
694 * testsuite/ld-x86-64/tlspic.rd: Likewise.
695 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
696 * testsuite/ld-elf/sec64k.exp: Check
697 is_elf_unused_section_symbols.
701 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
702 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
703 * testsuite/ld-scripts/segment-start.d: Likewise.
707 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
708 about dynamic relocations in read-only sections.
709 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
710 * testsuite/ld-elf/ehdr_start.d: Likewise.
711 * testsuite/ld-scripts/pr22267.d: Likewise.
712 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
714 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
718 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
719 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
723 * po/BLD-POTFILES.in: Regenerate.
727 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
728 complain about relocs in read-only sections. Tidy ASFLAGS append.
732 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
734 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
735 * testsuite/ld-sparc/gotop32.sd: Likewise.
736 * testsuite/ld-sparc/gotop32.td: Likewise.
737 * testsuite/ld-sparc/gotop64.dd: Likewise.
738 * testsuite/ld-sparc/gotop64.sd: Likewise.
739 * testsuite/ld-sparc/gotop64.td: Likewise.
740 * testsuite/ld-sparc/tlsg32.sd: Likewise.
741 * testsuite/ld-sparc/tlsg64.sd: Likewise.
742 * testsuite/ld-sparc/tlspie32.dd: Likewise.
743 * testsuite/ld-sparc/tlspie64.dd: Likewise.
744 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
745 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
746 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
747 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
748 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
749 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
750 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
751 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
752 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
753 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
754 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
755 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
756 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
757 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
758 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
759 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
760 * testsuite/ld-sparc/wdispcall.dd: Likewise.
764 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
765 * testsuite/ld-scripts/rgn-at11.d: Likewise.
769 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
770 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
771 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
772 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
773 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
774 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
775 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
776 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
777 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
778 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
779 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
780 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
781 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
782 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
784 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
788 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
789 riscv32be*-*-linux*, and riscv64be*-*-linux*.
790 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
791 eelf32briscv_ilp32.c.
792 * Makefile.in: Regenerate.
793 * emulparams/elf32briscv.sh: Added.
794 * emulparams/elf32briscv_ilp32.sh: Likewise.
795 * emulparams/elf32briscv_ilp32f.sh: Likewise.
796 * emulparams/elf64briscv.sh: Likewise.
797 * emulparams/elf64briscv_lp64.sh: Likewise.
798 * emulparams/elf64briscv_lp64f.sh: Likewise.
802 * testsuite/ld-ctf/enum-forward.c: New test.
803 * testsuite/ld-ctf/enum-forward.c: New results.
807 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
808 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
809 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
810 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
811 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
812 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
813 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
814 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
815 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
816 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
817 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
818 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
819 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
820 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
821 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
822 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
823 * testsuite/ld-ctf/cycle-1.d: Likewise.
824 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
825 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
826 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
827 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
828 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
829 * testsuite/ld-ctf/diag-cuname.d: Likewise.
830 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
831 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
832 * testsuite/ld-ctf/forward.d: Likewise.
833 * testsuite/ld-ctf/function.d: Likewise.
834 * testsuite/ld-ctf/slice.d: Likewise.
835 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
836 * testsuite/ld-ctf/enums.c: New test.
837 * testsuite/ld-ctf/enums.d: New test.
841 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
843 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
844 * testsuite/ld-ctf/forward.c: New test...
845 * testsuite/ld-ctf/forward.d: ... and results.
849 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
850 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
851 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
852 * testsuite/ld-ctf/diag-cuname.d: Likewise.
853 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
854 * testsuite/ld-ctf/function.d: Likewise.
855 * testsuite/ld-ctf/slice.d: Likewise.
859 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
860 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
861 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
862 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
863 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
864 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
865 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
866 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
867 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
868 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
869 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
870 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
871 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
872 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
873 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
874 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
875 * testsuite/ld-ctf/cycle-1.d: Likewise.
876 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
877 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
878 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
879 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
880 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
881 * testsuite/ld-ctf/diag-cuname.d: Likewise.
882 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
883 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
884 * testsuite/ld-ctf/function.d: Likewise.
885 * testsuite/ld-ctf/slice.d: Likewise.
886 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
890 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
895 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
896 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
901 * ldlang.c (gc_section_callback): Set pattern.
902 * testsuite/ld-elf/pr26256-1.s: New file.
903 * testsuite/ld-elf/pr26256-1.t: Likewise.
904 * testsuite/ld-elf/pr26256-1a.d: Likewise.
905 * testsuite/ld-elf/pr26256-1b.d: Likewise.
906 * testsuite/ld-elf/pr26256-2.s: Likewise.
907 * testsuite/ld-elf/pr26256-2.t: Likewise.
908 * testsuite/ld-elf/pr26256-2a.d: Likewise.
909 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
910 * testsuite/ld-elf/pr26256-2b.d: Likewise.
911 * testsuite/ld-elf/pr26256-3.s: Likewise.
912 * testsuite/ld-elf/pr26256-3a.d: Likewise.
913 * testsuite/ld-elf/pr26256-3a.t: Likewise.
914 * testsuite/ld-elf/pr26256-3b.d: Likewise.
915 * testsuite/ld-elf/pr26256-3b.t: Likewise.
920 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
921 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
922 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
923 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
924 * testsuite/ld-i386/tlsbin.rd: Likewise.
925 * testsuite/ld-i386/tlsbin2.rd: Likewise.
926 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
927 * testsuite/ld-i386/tlsdesc.rd: Likewise.
928 * testsuite/ld-i386/tlsnopic.rd: Likewise.
929 * testsuite/ld-i386/tlspic.rd: Likewise.
930 * testsuite/ld-i386/tlspic2.rd: Likewise.
931 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
932 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
933 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
934 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
935 * testsuite/ld-plugin/pr17973.d: Likewise.
936 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
937 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
938 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
939 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
940 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
941 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
942 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
943 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
944 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
945 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
946 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
947 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
948 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
949 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
950 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
951 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
952 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
953 * testsuite/ld-x86-64/tlspic.rd: Likewise.
954 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
955 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
956 * testsuite/ld-xtensa/tlspic.rd: Likewise.
960 * configure.tgt: Correct comment grammar.
961 * emultempl/m68hc1xelf.em: Likewise.
962 * ld.texi: Correct grammar.
966 Update year range in copyright notice of all files.
968 For older changes see ChangeLog-2020
970 Copyright (C) 2021 Free Software Foundation, Inc.
972 Copying and distribution of this file, with or without modification,
973 are permitted in any medium without royalty provided the copyright
974 notice and this notice are preserved.
980 version-control: never