3 * testsuite/ld-pe/secidx1.s: New test source file.
4 * testsuite/ld-pe/secidx2.s: New test source file.
5 * testsuite/ld-pe/secidx.d: New test driver file.
6 * testsuite/ld-pe/secidx_64.d: New test driver file.
7 * testsuite/ld-pe/pe.exp: Add new tests.
12 * testsuite/ld-elf/pr21964-1a.c: Fix array comparisons.
13 * testsuite/ld-elf/pr21964-1b.c: Likewise.
14 * testsuite/ld-elf/pr21964-1c.c: Likewise.
15 * testsuite/ld-elf/pr21964-2a.c: Likewise.
16 * testsuite/ld-elf/pr21964-2b.c: Likewise.
17 * testsuite/ld-elf/pr21964-3a.c: Likewise.
21 * ld.texi (Output Section Type): Fix typo in @code syntax.
25 * po/sr.po: Updated Serbian translation.
31 * ld.texi: Document new output section type.
32 * ldlex.l: Add new token TYPE.
33 * ldgram.y: Handle TYPE=exp and READONLY (TYPE=exp).
34 * ldlang.h: Add type_section to list of section types.
35 * ldlang.c (lang_add_section): Handle type_section.
36 (map_input_to_output_sections): Handle type_section.
37 * testsuite/ld-scripts/output-section-types.t: Add tests.
38 * testsuite/ld-scripts/output-section-types.d: Update.
42 * po/fr.po: Updated French translation.
46 * po/bg.po: Updated Bulgarian translation.
47 * po/uk.po: Updated Ukranian translation.
51 * configure.tgt (arm-haiku): Fix typo.
52 * emulparams/armelf_haiku.su (MAXPAGESIZE): Use the default value.
53 (COMMONPAGESIZE): Likewise.
57 * configure: Regenerate.
58 * po/ld.pot: Regenerate.
62 * 2.38 release branch created.
66 * po/sr.po: Updated Serbian translation.
70 * Makefile.in: Regenerate.
71 * po/ld.pot: Regenerate.
75 * pe-dll.c (make_head): Prefix the symbol name with the dll name.
76 (make_tail, make_one, make_singleton_name_thunk): Likewise.
77 (make_import_fixup_entry, make_runtime_pseudo_reloc): Likewise.
78 (pe_create_runtime_relocator_reference): Likewise.
79 (pe_dll_generate_implib): Set dll_symname_len.
80 (pe_process_import_defs): Likewise.
85 * testsuite/ld-avr/avr-prop-7.d: Adjust expected output.
86 * testsuite/ld-avr/avr-prop-8.d: Likewise.
87 * testsuite/ld-avr/pr13402.d: Likewise.
91 * scripttempl/pru.sc (.pru_irq_map): Define output section.
92 * testsuite/ld-pru/pru_irq_map-1.d: New test.
93 * testsuite/ld-pru/pru_irq_map-2.d: New test.
94 * testsuite/ld-pru/pru_irq_map.s: New test.
98 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Set to 0 for
100 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Likewise.
105 * ldgram.y: Add support for PT_GNU_RELRO and PT_GNU_PROPERTY.
106 * ldgram.c: Regenerate.
110 * testsuite/ld-aarch64/dt_textrel.d: Pass explicit -z notext in
111 case ld was configured with --enable-textrel-check=error.
112 * testsuite/ld-aarch64/pr22764.d: Likewise.
113 * testsuite/ld-aarch64/pr20402.d: Likewise.
117 * testsuite/ld-ctf/nonrepresentable-member.*: New test.
121 * testsuite/ld-ctf/array.d: Change --ctf=.ctf to --ctf.
122 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
123 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
124 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
125 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
126 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
127 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
128 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
129 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
130 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
131 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
132 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
133 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
134 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
135 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
136 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
137 * testsuite/ld-ctf/cycle-1.d: Likewise.
138 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
139 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
140 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
141 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
142 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
143 * testsuite/ld-ctf/diag-cuname.d: Likewise.
144 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
145 * testsuite/ld-ctf/enum-forward.d: Likewise.
146 * testsuite/ld-ctf/enums.d: Likewise.
147 * testsuite/ld-ctf/forward.d: Likewise.
148 * testsuite/ld-ctf/function.d: Likewise.
149 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
150 * testsuite/ld-ctf/slice.d: Likewise.
151 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
155 * scripttempl/pru.sc (.resource_table): Align the output
156 section, not the first symbol.
160 * configure: Regenerate.
164 * ldlang.c (lang_end): When computing the entry point, only
165 try the start address of the entry section when creating an
167 * ld.texi (Entry point): Update description of heuristic used to
168 choose the entry point.
169 testsuite/ld-alpha/tlspic.rd: Update expected entry point address.
170 testsuite/ld-arm/tls-gdesc-got.d: Likewise.
171 testsuite/ld-i386/tlsnopic.rd: Likewise.
172 testsuite/ld-ia64/tlspic.rd: Likewise.
173 testsuite/ld-sparc/gotop32.rd: Likewise.
174 testsuite/ld-sparc/gotop64.rd: Likewise.
175 testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
176 testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
177 testsuite/ld-sparc/tlssunpic32.rd: Likewise.
178 testsuite/ld-sparc/tlssunpic64.rd: Likewise.
179 testsuite/ld-tic6x/shlib-1.rd: Likewise.
180 testsuite/ld-tic6x/shlib-1b.rd: Likewise.
181 testsuite/ld-tic6x/shlib-1r.rd: Likewise.
182 testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
183 testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
184 testsuite/ld-x86-64/pr14207.d: Likewise.
185 testsuite/ld-x86-64/tlsdesc.rd: Likewise.
186 testsuite/ld-x86-64/tlspic.rd: Likewise.
187 testsuite/ld-x86-64/tlspic2.rd: Likewise.
191 * testsuite/ld-arc/got-weak.d: Update file.
195 * ld-arc/got-weak.d: New file.
196 * ld-arc/got-weak.s: Likewise.
200 * testsuite/ld-x86-64/x86-64.exp (Build textrel-1): Use --warn-textrel.
205 * testsuite/ld-riscv-elf/relax-twice.ver: New.
206 * testsuite/ld-riscv-elf/relax-twice-1.s: New.
207 * testsuite/ld-riscv-elf/relax-twice-2.s: New.
208 * testsuite/ld-riscv-elf/ld-riscv-elf.exp
209 (run_relax_twice_test): New, and call it.
213 * configure: Regenerate.
214 * po/ld.pot: Regenerate.
218 * 2.37 release branch created.
222 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
223 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.d: New testcase.
224 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.s: Likewise.
225 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.d: New testcase.
226 Should report error since the %pcrel_lo with addend refers to
228 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.s: Likewise.
229 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.d: New testcase.
230 Should report error since the %got_pcrel_hi with addend.
231 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.s: Likewise.
232 * testsuite/ld-riscv-elf/pcrel-lo-addend-3.ld: Likewise.
237 * testsuite/ld-i386/i386.exp: Run PR ld/27998 tests.
238 * testsuite/ld-i386/pr27998a.d: New file.
239 * testsuite/ld-i386/pr27998a.s: Likewise.
240 * testsuite/ld-i386/pr27998b.d: Likewise.
241 * testsuite/ld-i386/pr27998b.s: Likewise.
245 * testsuite/ld-x86-64/textrel-1.err: New file.
246 * testsuite/ld-x86-64/textrel-1a.s: Likewise.
247 * testsuite/ld-x86-64/textrel-1b.s: Likewise.
248 * testsuite/ld-x86-64/x86-64.exp: Run textrel-1 tests.
252 * testsuite/ld-elf/property-and-1.d: Skip am33_2.0, hppa-hpux
254 Pass --generate-missing-build-notes=no to assembler. Allow
255 other note sections for xtensa.
256 * testsuite/ld-elf/property-and-2.d: Likewise.
257 * testsuite/ld-elf/property-and-3.d: Likewise.
258 * testsuite/ld-elf/property-and-4.d: Likewise.
259 * testsuite/ld-elf/property-or-1.d: Likewise.
260 * testsuite/ld-elf/property-or-2.d: Likewise.
261 * testsuite/ld-elf/property-or-3.d: Likewise.
262 * testsuite/ld-elf/property-or-4.d: Likewise.
266 * ld.texi: Move -z unique-symbol after -z undefs.
270 * testsuite/ld-elf/property-and-1.d: New file.
271 * testsuite/ld-elf/property-and-1.s: Likewise.
272 * testsuite/ld-elf/property-and-2.d: Likewise.
273 * testsuite/ld-elf/property-and-2.s: Likewise.
274 * testsuite/ld-elf/property-and-3.d: Likewise.
275 * testsuite/ld-elf/property-and-3.s: Likewise.
276 * testsuite/ld-elf/property-and-4.d: Likewise.
277 * testsuite/ld-elf/property-and-empty.s: Likewise.
278 * testsuite/ld-elf/property-or-1.d: Likewise.
279 * testsuite/ld-elf/property-or-1.s: Likewise.
280 * testsuite/ld-elf/property-or-2.d: Likewise.
281 * testsuite/ld-elf/property-or-2.s: Likewise.
282 * testsuite/ld-elf/property-or-3.d: Likewise.
283 * testsuite/ld-elf/property-or-3.s: Likewise.
284 * testsuite/ld-elf/property-or-4.d: Likewise.
285 * testsuite/ld-elf/property-or-empty.s: Likewise.
290 * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and
291 $NOPIE_CFLAGS to protected-func-1 without PIE.
296 * testsuite/ld-x86-64/x86-64.exp: Run protected function tests.
297 * testsuite/ld-x86-64/protected-func-1.h: New file.
298 * testsuite/ld-x86-64/protected-func-1a.s: Likewise.
299 * testsuite/ld-x86-64/protected-func-1b.c: Likewise.
303 * ldlex.h (enum option_values): Add OPTION_NO_PIE.
304 * lexsup.c (struct ld_options): Add -no-pie.
305 (parse_args): Handle -no-pie.
306 * ld.texi: Document -no-pie.
310 * testsuite/ld-pie/vaddr-0.d: Update expected output.
315 * ldelf.c (ldelf_after_open): Error on input PIEs too.
320 * testsuite/ld-sparc/sparc.exp: Do not run the sparctests or
321 sparc64tests for Solaris2 targets.
326 * ld.texi (link-time runtime library search path): Mention
327 plugin library path. Correct order of search.
333 * emultempl/riscvelf.em (after_allocation): Call
334 riscv_set_data_segment_info to set data segment phase before relaxing.
335 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
336 * testsuite/ld-riscv-elf/relro-relax-lui.d: New testcase.
337 * testsuite/ld-riscv-elf/relro-relax-lui.s: Likewise.
338 * testsuite/ld-riscv-elf/relro-relax-pcrel.d: Likewise.
339 * testsuite/ld-riscv-elf/relro-relax-pcrel.s: Likewise.
344 * testsuite/ld-i386/pcrel16-2.d: xfail.
345 * testsuite/ld-x86-64/pcrel16-2.d: Likewise.
350 * testsuite/ld-i386/code16.d: New file.
351 * testsuite/ld-i386/code16.t: Likewise.
352 * testsuite/ld-x86-64/code16.d: Likewise.
353 * testsuite/ld-x86-64/code16.t: Likewise.
354 * testsuite/ld-i386/i386.exp: Run code16.
355 * testsuite/ld-x86-64/x86-64.exp: Likewise.
359 * testsuite/ld-x86-64/ilp32-12.d: New file.
360 * testsuite/ld-x86-64/ilp32-12.s: Likewise.
361 * testsuite/ld-x86-64/x86-64.exp: Run ilp32-12.
365 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
366 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d: Renamed from
368 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.s: Likewise.
369 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.d: New testcase.
370 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.s: Likewise.
375 * ldlex.h (enum option_values): Add OPTION_NO_SYMBOLIC.
376 * lexsup.c (ld_options): Add -Bno-symbolic.
377 (parse_args): Handle -Bno-symbolic.
378 * ld.texi: Document -Bno-symbolic.
379 * NEWS: Mention -Bno-symbolic.
380 * testsuite/ld-elf/shared.exp: Add a test.
384 * testsuite/ld-arm/arm-elf.exp (farcall test for v8-m.mainline):
385 Correct expected output.
389 * testsuite/ld-x86-64/rela.d: Fix regexp not to presume a specific
390 address layout, so it works for e.g. --target=x86-64-elf.
395 * Makefile.am (install-data-local): Also delete libdep.dll.a if it
397 * Makefile.in: Regenerate.
401 * testsuite/ld-elf/group8a.d: Remove pru from XFAIL list.
402 * testsuite/ld-elf/group8b.d: Ditto.
403 * testsuite/ld-elf/group9a.d: Ditto.
404 * testsuite/ld-elf/group9b.d: Ditto.
405 * testsuite/ld-elf/pr12851.d: Ditto.
406 * testsuite/ld-elf/pr22677.d: Ditto.
407 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove
412 * scripttempl/pru.sc (.resource_table): Add ALIGN directive.
413 Use symbols for memory sizes.
417 * Makefile.am (html-local, doc/ld/index.html): New targets.
418 * Makefile.in: Regenerate.
422 * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
423 * Makefile.in: Regenerate.
427 * testsuite/ld-x86-64/rela.d: New.
428 * testsuite/ld-x86-64/x86-64.exp: Run new test.
432 * ldelfgen.c (compare_link_order): Ignore section size when
433 performing a relocateable link.
437 * ldexp.c (update_definedness): Don't return false for absolute
439 * ldmain.c (multiple_definition): Print "warning: " in message
440 when not a hard error.
444 * testsuite/ld-elf/pr27825-1.d: Correct xfail.
445 * testsuite/ld-elf/pr27825-2.d: Likewise.
450 testsuite/ld-or1k/or1k.exp (or1kplttests): Add tests for linking
451 along with gotha() relocations.
452 testsuite/ld-or1k/gotha1.dd: New file.
453 testsuite/ld-or1k/gotha1.s: New file.
454 testsuite/ld-or1k/gotha2.dd: New file.
455 testsuite/ld-or1k/gotha2.s: New file
456 testsuite/ld-or1k/pltlib.s (x): Define size to avoid link
461 * testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt.
462 * testsuite/lib/ld-lib.exp: Likewise.
463 * testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types.
464 * testsuite/ld-ctf/nonrepresentable-2.c: Likewise.
465 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
466 * testsuite/ld-ctf/array.d: Larger type section.
467 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
468 * testsuite/ld-ctf/enums.d: Likewise.
469 * testsuite/ld-ctf/conflicting-enums.d: Don't compare types.
470 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order.
471 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
472 * testsuite/ld-ctf/slice.d: Adjust for improved slice emission.
477 * testsuite/ld-elf/pr27825-1.d: New file.
478 * testsuite/ld-elf/pr27825-1a.s: Likewise.
479 * testsuite/ld-elf/pr27825-1b.s: Likewise.
480 * testsuite/ld-elf/pr27825-2.d: Likewise.
481 * testsuite/ld-elf/pr27825-2a.s: Likewise.
482 * testsuite/ld-elf/pr27825-2b.s: Likewise.
486 * testsuite/ld-powerpc/empty.s: New file.
487 * testsuite/ld-powerpc/undefweak.d,
488 * testsuite/ld-powerpc/undefweak.s: New testcase.
489 * testsuite/ld-powerpc/powerpc.exp: Run it.
493 * testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
494 named section symbols.
498 * testsuite/ld-elf/anno-sym.s: New test source file.
499 * testsuite/ld-elf/anno-sym.d: New test driver.
500 * testsuite/ld-elf/anno-sym.l: New test error output.
504 * testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d,
505 testsuite/ld-x86-64/pcrel16-2.d: New.
506 * testsuite/ld-i386/i386.exp: Run new test.
507 * testsuite/ld-x86-64/x86-64.exp: Likewise.
512 * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
513 to tmpdir/ldscripts only if it doesn't exist.
518 * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
522 * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
523 to allow for named section symbols.
524 * testsuite/ld-aarch64/variant_pcs-r.d: Likewise.
525 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
526 * testsuite/ld-alpha/tlsbin.rd: Likewise.
527 * testsuite/ld-alpha/tlsbinr.rd: Likewise.
528 * testsuite/ld-alpha/tlspic.rd: Likewise.
529 * testsuite/ld-arm/rodata-merge-map.sym: Likewise.
530 * testsuite/ld-arm/script-type.sym: Likewise.
531 * testsuite/ld-cris/libdso-2.d: Likewise.
532 * testsuite/ld-cris/pr16044.d: Likewise.
533 * testsuite/ld-elf/sec64k.exp: Likewise.
534 * testsuite/ld-ia64/tlsbin.rd: Likewise.
535 * testsuite/ld-ia64/tlspic.rd: Likewise.
536 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
537 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
538 * testsuite/ld-mmix/bspec1.d: Likewise.
539 * testsuite/ld-mmix/bspec2.d: Likewise.
540 * testsuite/ld-mmix/local1.d: Likewise.
541 * testsuite/ld-mmix/local3.d: Likewise.
542 * testsuite/ld-mmix/local5.d: Likewise.
543 * testsuite/ld-mmix/local7.d: Likewise.
544 * testsuite/ld-mmix/undef-3.d: Likewise.
545 * testsuite/ld-powerpc/tlsso.r: Likewise.
546 * testsuite/ld-powerpc/tlsso32.r: Likewise.
547 * testsuite/ld-powerpc/tlstocso.r: Likewise.
548 * testsuite/ld-s390/tlsbin.rd: Likewise.
549 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
550 * testsuite/ld-s390/tlspic.rd: Likewise.
551 * testsuite/ld-s390/tlspic_64.rd: Likewise.
552 * testsuite/ld-sparc/gotop32.rd: Likewise.
553 * testsuite/ld-sparc/gotop64.rd: Likewise.
554 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
555 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
556 * testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
557 * testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
558 * testsuite/ld-sparc/tlssunpic32.rd: Likewise.
559 * testsuite/ld-sparc/tlssunpic64.rd: Likewise.
560 * testsuite/ld-tic6x/common.d: Likewise.
561 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
562 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
563 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
564 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
565 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
566 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
567 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
568 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
569 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
570 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
571 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
572 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
573 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
578 * testsuite/ld-powerpc/aix52.exp: Add new test.
579 * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
580 * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
581 * testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
582 * testsuite/ld-powerpc/aix-neg-reloc.s: New test.
586 * ld.texi (Options): Add note about the effect of --as-needed on
587 the --rpath and --rpath-link options on Linux based systems.
592 * libdep_plugin.c (str2vec): Don't pass a potentially signed char
597 * configure.ac (--enable-checking): Add support.
598 * config.in: Regenerate.
599 * configure: Regenerate.
603 * emultempl/mipself.em (mips_create_output_section_statements):
604 Pass base type of hash table to is_elf_hash_table.
605 * ldelf.c (ldelf_after_open): Likewise.
610 * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
611 the symbol hash table is the correct type before accessing
612 elf_link_hash_entry symbols.
613 * plugin.c (is_visible_from_outside): Likewise.
614 * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
615 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
619 * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
620 * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
621 * testsuite/ld-powerpc/notoc2.d: Likewise.
622 * testsuite/ld-powerpc/notoc3.d: Likewise.
623 * testsuite/ld-powerpc/pcrelopt.d: Likewise.
624 * testsuite/ld-powerpc/startstop.d: Likewise.
625 * testsuite/ld-powerpc/tlsget.d: Likewise.
626 * testsuite/ld-powerpc/tlsget2.d: Likewise.
627 * testsuite/ld-powerpc/tlsld.d: Likewise.
628 * testsuite/ld-powerpc/weak1.d: Likewise.
629 * testsuite/ld-powerpc/weak1so.d: Likewise.
633 * pe-dll.c (generate_reloc): Bail immediately when .reloc is
634 being discarded. Warn when relocated entry is above .reloc.
638 * configure.ac: Move initfini-array arg handling earlier. Don't
639 check for string.h, strings.h, stdlib.h, or locale.h. Do check
640 for inttypes.h, stdint.h, sys/types.h. Don't check for
641 setlocale, free, getev or strstr.
642 (AC_ISC_POSIX): Don't invoke.
643 * sysdep.h: Include string.h and stdlib.h unconditionally. Test
644 HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and
645 getenv fallback declarations.
646 * ld.h: Don't test HAVE_LOCALE_H.
647 * ldmain.c: Don't test HAVE_SETLOCALE.
648 * config.in: Regenerate.
649 * configure: Regenerate.
654 * testsuite/ld-pe/pe.exp: Add test.
655 * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
656 * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
660 * ldbuildid.c (strneq): Remove strneq and use startswith.
661 (validate_build_id_style): Likewise.
662 (compute_build_id_size): Likewise.
666 * sysdep.h (POISON_BFD_BOOLEAN): Define.
667 * configure.ac (elf_list_options, elf_shlib_list_options=false),
668 (elf_plt_unwind_list_options=false): Replace FALSE with false,
670 * emulparams/call_nop.sh, * emulparams/cet.sh,
671 * emulparams/dynamic_undefined_weak.sh,
672 * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
673 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
674 * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
675 * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
676 * emulparams/reloc_overflow.sh, * emulparams/static.sh,
677 * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
678 * emultempl/aix.em, * emultempl/alphaelf.em,
679 * emultempl/armcoff.em, * emultempl/armelf.em,
680 * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
681 * emultempl/cr16elf.em, * emultempl/crxelf.em,
682 * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
683 * emultempl/hppaelf.em, * emultempl/linux.em,
684 * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
685 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
686 * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
687 * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
688 * emultempl/pep.em, * emultempl/ppc32elf.em,
689 * emultempl/ppc64elf.em, * emultempl/rxelf.em,
690 * emultempl/rxlinux.em, * emultempl/scoreelf.em,
691 * emultempl/solaris2.em, * emultempl/spuelf.em,
692 * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
693 * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
694 * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
695 * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
696 * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
697 * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
698 * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
699 * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
700 * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
701 bfd_boolean with bool, FALSE with false, and TRUE with true.
702 * configure: Regenerate.
706 * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
707 * emultempl/nds32elf.em: Likewise.
708 * testsuite/ld-elf/mbind2b.c: Likewise.
709 * testsuite/ld-elf/pr18718.c: Likewise.
710 * testsuite/ld-elf/pr18720a.c: Likewise.
711 * testsuite/ld-elf/pr25749-1.c: Likewise.
712 * testsuite/ld-elf/pr25749-1a.c: Likewise.
713 * testsuite/ld-elf/pr25749-1b.c: Likewise.
714 * testsuite/ld-elf/pr25749-1c.c: Likewise.
715 * testsuite/ld-elf/pr25749-1d.c: Likewise.
716 * testsuite/ld-elf/pr25749-2.c: Likewise.
717 * testsuite/ld-elf/pr25754-1a.c: Likewise.
718 * testsuite/ld-elf/pr25754-2a.c: Likewise.
719 * testsuite/ld-elf/pr25754-3a.c: Likewise.
720 * testsuite/ld-elf/pr25754-4a.c: Likewise.
721 * testsuite/ld-elf/pr25754-5a.c: Likewise.
722 * testsuite/ld-elf/pr25754-6a.c: Likewise.
726 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
728 * lexsup.c (parse_args): Likewise.
729 * pe-dll.c (pe_dll_id_target): Likewise.
733 * testsuite/ld-ctf/array.d: Only check that the data object
734 section is nonempty: do not check its exact size.
735 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
736 * testsuite/ld-ctf/slice.d: Likewise.
737 * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
738 func info section too.
739 * testsuite/ld-ctf/function.d: Likewise, for the func info section.
743 * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
744 * emultempl/beos.em: Likewise.
745 * emultempl/elf.em: Likewise.
746 * emultempl/pe.em: Likewise.
747 * emultempl/pep.em: Likewise.
748 * emultempl/xtensaelf.em: Likewise.
749 * ldctor.c (ctor_prio): Likewise.
750 * ldelf.c (ldelf_try_needed): Likewise.
751 (ldelf_parse_ld_so_conf): Likewise.
752 (ldelf_after_open): Likewise.
753 (output_rel_find): Likewise.
754 (ldelf_place_orphan): Likewise.
755 * ldfile.c (ldfile_add_library_path): Likewise.
756 * ldlang.c (lang_add_input_file): Likewise.
757 * ldmain.c (get_sysroot): Likewise.
758 (get_emulation): Likewise.
759 (add_archive_element): Likewise.
760 * ldwrite.c (unsplittable_name): Likewise.
761 (clone_section): Likewise.
762 * lexsup.c (parse_args): Likewise.
763 * pe-dll.c (is_import): Likewise.
764 (pe_implied_import_dll): Likewise.
769 * testsuite/ld-x86-64/pr27590.rd: New file.
770 * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
771 * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
772 * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
777 * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
778 for all sections except .stabstr.
783 * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
785 * testsuite/ld-elf/pr27590b.d: Likewise.
790 * testsuite/ld-elf/pr27590.s: New file.
791 * testsuite/ld-elf/pr27590a.d: Likewise.
792 * testsuite/ld-elf/pr27590b.d: Likewise.
793 * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
794 --reduce-memory-overheads.
799 * testsuite/ld-x86-64/pr27587.err: New file.
800 * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
801 * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
802 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
806 * testsuite/ld-ctf/slice.c: Check slices of enums too.
807 * testsuite/ld-ctf/slice.d: Results adjusted.
811 * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
816 * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
820 * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
821 (ALL_64_EMULATION_SOURCES): ..here.
822 * Makefile.in: Regenerate.
826 * emultempl/aix.em: Ensure .tdata section is removed
827 if empty, even with -r flag.
828 * scripttempl/aix.sc: Handle TLS sections.
829 * testsuite/ld-powerpc/aix52.exp: Add new tests.
830 * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
831 * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
832 * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
833 * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
834 * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
835 * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
836 * testsuite/ld-powerpc/aix-tls-section.ex: New test.
837 * testsuite/ld-powerpc/aix-tls-section.s: New test.
841 * scripttempl/aix.sc: Add .te to .data section.
842 * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
843 Add aix-largetoc-1 test.
844 * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
845 * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
846 * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
847 * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
851 * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
852 arrange to define __main for some run_dump_test tests.
853 * testsuite/ld-gc/pr13683.d: Accept more symbols.
854 * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
855 * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
856 * testsuite/ld-srec/srec.exp: Likewise.
857 * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
861 * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
862 many times if riscv_restart_relax_sections returns TRUE.
863 * testsuite/ld-riscv-elf/restart-relax.d: New testcase. Before
864 applying this patch, the call won't be relaxed to jal; But now we
865 have more chances to do relaxations.
866 * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
867 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
871 * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
873 * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
875 * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
879 * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
881 * testsuite/ld-pe/reloc.d: xfail for mcore.
885 * testsuite/ld-scripts/alignof.exp,
886 testsuite/ld-scripts/data.exp,
887 testsuite/ld-scripts/default-script.exp,
888 testsuite/ld-scripts/log2.exp,
889 testsuite/ld-scripts/print-memory-usage.exp,
890 testsuite/ld-scripts/sizeof.exp,
891 testsuite/ld-undefined/weak-undef.exp: Set image base to zero
893 * testsuite/ld-scripts/default-script1.d,
894 testsuite/ld-scripts/default-script2.d,
895 testsuite/ld-scripts/default-script3.d,
896 testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
902 * ldelf.c (ldelf_set_output_arch): New function.
903 * ldelf.h (ldelf_set_output_arch): New prototype.
904 * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
905 ldelf_set_output_arch.
906 * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
907 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
908 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
909 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
910 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
911 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
912 * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
913 * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
914 * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
918 * testsuite/ld-scripts/map-address.exp: Set image base to zero
920 * testsuite/ld-scripts/map-address.t: Place .text.
924 * ldexp.c (ldexp_is_final_sym_absolute): New.
925 * ldexp.h (ldexp_is_final_sym_absolute): Declare.
926 * pe-dll.c (generate_reloc): Skip absolute symbols.
927 * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
928 * testsuite/ld-pe/pe.exp: Run new test.
933 * ldlang.c (insert_undefined): Don't mark symbols here.
934 (lang_mark_undefineds): Do so here instead, new function.
935 (lang_process): Call lang_mark_undefineds.
936 * testsuite/ld-gc/start3.d,
937 * testsuite/ld-gc/start3.s: New test.
938 * testsuite/ld-gc/start4.d,
939 * testsuite/ld-gc/start4.s: New test.
940 * testsuite/ld-gc/gc.exp: Run them.
944 * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
945 Move tests with ELF section directives to is_elf_format block.
946 * testsuite/ld-gc/abi-note.d: Run on more targets.
947 * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
948 * testsuite/ld-gc/start.d: Likewise.
949 * testsuite/ld-gc/start2.d: Likewise.
950 * testsuite/ld-gc/stop.d: Likewise.
951 * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
952 * testsuite/ld-gc/start.s: Likewise.
953 * testsuite/ld-gc/start2.s: Likewise.
957 * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
961 * testsuite/ld-powerpc/startstop.d,
962 * testsuite/ld-powerpc/startstop.r,
963 * testsuite/ld-powerpc/startstop.s: New test.
964 * testsuite/ld-powerpc/powerpc.exp: Run it.
968 * testsuite/ld-powerpc/weak1.d,
969 * testsuite/ld-powerpc/weak1.r,
970 * testsuite/ld-powerpc/weak1.s,
971 * testsuite/ld-powerpc/weak1so.d,
972 * testsuite/ld-powerpc/weak1so.r: New tests.
973 * testsuite/ld-powerpc/powerpc.exp: Run them.
979 * scripttempl/pe.sc: Add DWARF-5 section names.
980 * scripttempl/pep.sc: Likewise.
985 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
986 * lexsup.c (elf_static_list_options): Display help for them. Move
987 help for -z stack-size to here from elf_shlib_list_options. Add
988 help for -z start-stop-visibility and -z undefs.
989 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
990 * NEWS: Mention -z start-stop-gc.
991 * testsuite/ld-gc/start2.s,
992 * testsuite/ld-gc/start2.d: New test.
993 * testsuite/ld-gc/gc.exp: Run it.
997 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
998 symbols undefweak if that was how they were referenced. Undo
1003 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
1004 * testsuite/ld-elf/pr27128a.d: Likewise.
1005 * testsuite/ld-elf/pr27128b.d: Likewise.
1006 * testsuite/ld-elf/pr27128c.d: Likewise.
1007 * testsuite/ld-elf/pr27128d.d: Likewise.
1008 * testsuite/ld-elf/pr27128e.d: Likewise.
1013 * testsuite/ld-plugin/pr27441a.c,
1014 * testsuite/ld-plugin/pr27441b.c,
1015 * testsuite/ld-plugin/pr27441c.c,
1016 * testsuite/ld-plugin/pr27441c.d: New test.
1017 * testsuite/ld-plugin/lto.exp: Run it.
1021 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
1025 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
1026 defined in an object file.
1027 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
1028 * testsuite/ld-scripts/defined5.d: Expect a warning.
1032 * testsuite/lib/ld-lib.exp: Whitespace.
1033 (load_common_lib): Expand single use and delete this proc.
1034 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
1035 Use -B for clang too.
1039 * testplugin.c (record_read_length): Remove debug fprintf.
1043 * testsuite/ld-cdtest/cdtest.exp,
1044 * testsuite/ld-checks/checks.exp,
1045 * testsuite/ld-elf/binutils.exp,
1046 * testsuite/ld-elf/compress.exp,
1047 * testsuite/ld-elf/dwarf.exp,
1048 * testsuite/ld-elf/exclude.exp,
1049 * testsuite/ld-elf/frame.exp,
1050 * testsuite/ld-elf/indirect.exp,
1051 * testsuite/ld-elf/linux-x86.exp,
1052 * testsuite/ld-elf/sec-to-seg.exp,
1053 * testsuite/ld-elf/tls_common.exp,
1054 * testsuite/ld-elfcomm/elfcomm.exp,
1055 * testsuite/ld-elfvers/vers.exp,
1056 * testsuite/ld-elfvsb/elfvsb.exp,
1057 * testsuite/ld-elfweak/elfweak.exp,
1058 * testsuite/ld-ifunc/binutils.exp,
1059 * testsuite/ld-mips-elf/mips-elf-flags.exp,
1060 * testsuite/ld-misc/defsym.exp,
1061 * testsuite/ld-mn10300/mn10300.exp,
1062 * testsuite/ld-plugin/lto.exp,
1063 * testsuite/ld-plugin/plugin.exp,
1064 * testsuite/ld-scripts/align.exp,
1065 * testsuite/ld-scripts/assert.exp,
1066 * testsuite/ld-scripts/crossref.exp,
1067 * testsuite/ld-scripts/defined.exp,
1068 * testsuite/ld-scripts/extern.exp,
1069 * testsuite/ld-scripts/log2.exp,
1070 * testsuite/ld-scripts/map-address.exp,
1071 * testsuite/ld-scripts/phdrs.exp,
1072 * testsuite/ld-scripts/phdrs2.exp,
1073 * testsuite/ld-scripts/script.exp,
1074 * testsuite/ld-scripts/section-flags.exp,
1075 * testsuite/ld-scripts/sizeof.exp,
1076 * testsuite/ld-scripts/weak.exp,
1077 * testsuite/ld-selective/selective.exp,
1078 * testsuite/ld-sh/sh.exp,
1079 * testsuite/ld-shared/shared.exp,
1080 * testsuite/ld-srec/srec.exp,
1081 * testsuite/ld-tic6x/tic6x.exp,
1082 * testsuite/ld-undefined/undefined.exp,
1083 * testsuite/ld-undefined/weak-undef.exp,
1084 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
1085 perror. Instead report "unsupported" or "fail".
1089 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
1090 following debug links.
1094 * NEWS: Mention arm-symbianelf removal.
1098 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
1099 Don't include symbian dep file.
1100 * configure.tgt: Remove arm*-*-symbianelf* entry.
1101 * emulparams/armsymbian.sh: Delete.
1102 * ld.texi: Don't mention symbian.
1103 * scripttempl/armbpabi.sc: Delete.
1104 * testsuite/ld-arm/symbian-seg1.d: Delete.
1105 * testsuite/ld-arm/symbian-seg1.s: Delete.
1106 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
1107 * Makefile.in: Regenerate.
1108 * po/BLD-POTFILES.in: Regenerate.
1113 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
1115 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1119 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
1125 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
1126 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
1127 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
1128 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
1129 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
1130 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
1131 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
1136 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
1137 * testsuite/ld-plugin/pr15146.d: Restored.
1138 * testsuite/ld-plugin/pr15146a.c: Likewise.
1139 * testsuite/ld-plugin/pr15146b.c: Likewise.
1140 * testsuite/ld-plugin/pr15146c.c: Likewise.
1141 * testsuite/ld-plugin/pr15146d.c: Likewise.
1145 * testsuite/ld-plugin/pr27311d.c: New test.
1146 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
1147 and link new test as pr27311-2.
1151 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
1152 Link with --as-needed.
1156 * testsuite/ld-plugin/pr27311.d,
1157 * testsuite/ld-plugin/pr27311.ver,
1158 * testsuite/ld-plugin/pr27311a.c,
1159 * testsuite/ld-plugin/pr27311b.c,
1160 * testsuite/ld-plugin/pr27311c.c: New testcase.
1161 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
1166 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1170 * ldgram.y (defsym_expr): Use assignment rule.
1171 * ldlex.h (ldlex_defsym): Delete.
1172 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
1176 * ldgram.y (section): Call ldlex_backup. Remove empty action.
1177 * ldlex.h (ldlex_backup): Declare.
1178 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
1179 chars, use SYMBOLNAMECHAR.
1180 (ldlex_backup): New function.
1184 * ldgram.y: Whitespace fixes.
1188 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
1192 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
1197 * testsuite/ld-elf/pr27259.d: New file.
1198 * testsuite/ld-elf/pr27259.s: Likewise.
1203 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
1204 prevent endless looping of linked-to sections.
1208 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
1213 * emulparams/alphavms.sh: Don't set COMPILE_IN.
1214 * emulparams/elf64_ia64_vms.sh: Likewise.
1215 * emulparams/elf64mmix.sh: Likewise.
1216 * emulparams/elf_iamcu.sh: Likewise.
1217 * emulparams/elf_k1om.sh: Likewise.
1218 * emulparams/elf_l1om.sh: Likewise.
1219 * emulparams/mmo.sh: Likewise.
1220 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
1221 * scripttempl/pdp11.sc: Use it.
1222 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
1223 instead use .xe script. Support scripts from file system.
1224 * emultempl/beos.em: Support scripts from file system.
1225 * emultempl/pe.em: Likewise.
1226 * emultempl/pep.em: Likewise.
1227 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
1232 * scripttempl/DWARF.sc: Add .debug_* sections.
1236 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
1237 .debug_line_str and .debug_str_offsets. Move .debug_macro and
1238 .debug_addr into DWARF-5 section.
1242 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
1246 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
1247 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
1248 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
1249 * testsuite/ld-powerpc/tlsget.wf: Likewise.
1250 * testsuite/ld-powerpc/tlsget2.d: Likewise.
1251 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
1252 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
1253 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
1254 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
1255 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
1256 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
1257 * testsuite/ld-powerpc/tlsexers.r: Likewise.
1258 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
1259 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
1260 * testsuite/ld-powerpc/tlsso.r: Likewise.
1261 * testsuite/ld-powerpc/tlsso32.r: Likewise.
1262 * testsuite/ld-powerpc/tlstocso.r: Likewise.
1266 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
1267 symbols by the optimizer.
1268 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
1272 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
1273 if target is riscv little endian. Otherwise, return false.
1274 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
1275 targets by [riscv_little_endian].
1280 * ldlang.c (map_input_to_output_sections): Start with a read-only
1281 section for data statements.
1282 * testsuite/ld-elf/size-2.d: Adjust to suit.
1287 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
1288 * testsuite/ld-i386/pr27193.dd: New file.
1289 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
1290 * testsuite/ld-i386/pr27193b.s: Likewise.
1295 * testsuite/ld-plugin/lto.exp: Increase the max number of open
1296 files to 20 for PR binutils/23460 test.
1301 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
1302 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
1303 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
1308 * NEWS: Mention -z report-relative-reloc.
1309 * ld.texi: Document -z report-relative-reloc.
1310 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
1311 * emulparams/elf_i386.sh: Likewse.
1312 * emulparams/elf_x86_64.sh: Likewse.
1313 * emulparams/x86-report-relative.sh: New file.
1314 * testsuite/ld-i386/report-reloc-1.d: Likewse.
1315 * testsuite/ld-i386/report-reloc-1.l: Likewse.
1316 * testsuite/ld-i386/report-reloc-1.s: Likewse.
1317 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
1318 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
1319 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
1320 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
1321 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
1322 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
1328 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
1329 unversioned symbols.
1330 * testsuite/ld-elfvers/vers16.dsym: Likewise.
1334 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
1335 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
1336 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
1337 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
1338 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
1339 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
1343 * po/fr.po: Updated French translation.
1347 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
1352 * ldelfgen.c (compare_link_order): Protect access of ELF section
1354 (add_link_order_input_section): Remove redundant NULL check.
1355 Use bfd_get_flavour.
1356 (ldelf_map_segments): Use bfd_get_flavour.
1360 * ldelfgen.c (add_link_order_input_section): Check for ELF input
1361 before accessing ELF section data.
1365 * Makefile.in: Regenerate.
1370 * ldlang.h (lang_output_section_statement_type): Add data field.
1371 (lang_input_section_type, lang_section_bst_type): Add pattern field.
1372 (statement_list): Declare.
1373 (lang_add_section): Adjust prototype.
1374 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
1375 * emultempl/armelf.em: Likewise.
1376 * emultempl/beos.em: Likewise.
1377 * emultempl/cskyelf.em: Likewise.
1378 * emultempl/hppaelf.em: Likewise.
1379 * emultempl/m68hc1xelf.em: Likewise.
1380 * emultempl/metagelf.em: Likewise.
1381 * emultempl/mipself.em: Likewise.
1382 * emultempl/mmo.em: Likewise.
1383 * emultempl/msp430.em: Likewise.
1384 * emultempl/nios2elf.em: Likewise.
1385 * emultempl/pe.em: Likewise.
1386 * emultempl/pep.em: Likewise.
1387 * emultempl/ppc64elf.em: Likewise.
1388 * emultempl/spuelf.em: Likewise.
1389 * emultempl/vms.em: Likewise.
1390 * ldelf.c: Likewise.
1391 * ldelfgen.c: Include ldctor.h.
1392 (struct os_sections): New.
1393 (add_link_order_input_section, link_order_scan): New functions.
1394 (compare_link_order, fixup_link_order): New functions.
1395 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
1396 * ldlang.c (statement_list): Make global.
1397 (output_section_callback_fast): Save pattern in tree node.
1398 (lang_add_section): Add pattern parameter, save in lang_input_section.
1399 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
1400 (lang_insert_orphan, output_section_callback): Likewise.
1401 (ldlang_place_orphan): Likewise.
1402 (gc_section_callback): Don't set section->pattern.
1403 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
1404 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1405 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
1409 * ldlang.h (callback_t): Remove flag_info function parameter.
1410 * ldlang.c (walk_wild_consider_section): Adjust to suit.
1411 (walk_wild_section_general): Likewise.
1412 (output_section_callback_fast, output_section_callback): Likewise.
1413 (check_section_callback, gc_section_callback): Likewise.
1414 (find_relro_section_callback): Likewise.
1419 * configure.ac: Use GNU_MAKE_JOBSERVER.
1420 * aclocal.m4: Regenerated.
1421 * configure: Likewise.
1426 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
1427 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1428 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1429 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
1434 * configure: Regenerated.
1439 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
1440 and mips64r5 to list of known mips targets.
1444 * po/pt_BR.po: Updated Brazilian Portuguese translation.
1445 ` * po/uk.po: Updated Ukranian translation.
1449 * configure: Regenerated.
1454 * testsuite/ld-x86-64/lam-u48.rd: New file.
1455 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
1456 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
1460 * configure: Regenerate.
1461 * po/ld.pot: Regenerate.
1465 * 2.36 release branch crated.
1469 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
1470 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
1474 * configure: Regenerate.
1475 * Makefile.in: Regenerate.
1479 * configure: Regenerate.
1484 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
1485 * testsuite/ld-elf/loadaddr3b.d: Likewise.
1486 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1487 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1488 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1489 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1490 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1491 * testsuite/ld-i386/pr19636-1d.d: Likewise.
1492 * testsuite/ld-i386/pr19636-1l.d: Likewise.
1493 * testsuite/ld-i386/pr19636-2c.d: Likewise.
1494 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1495 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1496 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1497 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1498 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1499 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1500 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1501 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1502 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1503 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1504 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1505 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1506 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1507 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1508 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1509 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1510 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1511 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1512 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1513 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1514 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1515 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1516 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1517 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1518 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1519 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1520 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
1521 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
1522 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
1523 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
1524 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
1525 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
1526 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1527 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
1528 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1529 * testsuite/ld-x86-64/pr21038b.d: Likewise.
1530 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1531 * testsuite/ld-x86-64/pr21038c.d: Likewise.
1532 * testsuite/ld-x86-64/pr23854.d: Likewise.
1533 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1534 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1535 * testsuite/ld-i386/plt-pic.pd: Likewise.
1536 * testsuite/ld-i386/plt-pic2.dd: Likewise.
1537 * testsuite/ld-i386/plt.pd: Likewise.
1538 * testsuite/ld-i386/plt2.dd: Likewise.
1539 * testsuite/ld-i386/tlsbin.rd: Likewise.
1540 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1541 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1542 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1543 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
1544 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1545 * testsuite/ld-i386/tlspic.rd: Likewise.
1546 * testsuite/ld-i386/tlspic2.rd: Likewise.
1547 * testsuite/ld-x86-64/mpx3.dd: Likewise.
1548 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
1549 * testsuite/ld-x86-64/mpx4.dd: Likewise.
1550 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
1551 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
1552 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1553 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1554 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1555 * testsuite/ld-x86-64/plt.pd: Likewise.
1556 * testsuite/ld-x86-64/plt2.dd: Likewise.
1557 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1558 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1559 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1560 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1561 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
1562 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1563 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1564 * testsuite/ld-elf/sec64k.exp: Check
1565 is_elf_unused_section_symbols.
1569 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
1570 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
1571 * testsuite/ld-scripts/segment-start.d: Likewise.
1575 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
1576 about dynamic relocations in read-only sections.
1577 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1578 * testsuite/ld-elf/ehdr_start.d: Likewise.
1579 * testsuite/ld-scripts/pr22267.d: Likewise.
1580 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
1582 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
1586 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
1587 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
1591 * po/BLD-POTFILES.in: Regenerate.
1595 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
1596 complain about relocs in read-only sections. Tidy ASFLAGS append.
1600 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
1601 base for some tests.
1602 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
1603 * testsuite/ld-sparc/gotop32.sd: Likewise.
1604 * testsuite/ld-sparc/gotop32.td: Likewise.
1605 * testsuite/ld-sparc/gotop64.dd: Likewise.
1606 * testsuite/ld-sparc/gotop64.sd: Likewise.
1607 * testsuite/ld-sparc/gotop64.td: Likewise.
1608 * testsuite/ld-sparc/tlsg32.sd: Likewise.
1609 * testsuite/ld-sparc/tlsg64.sd: Likewise.
1610 * testsuite/ld-sparc/tlspie32.dd: Likewise.
1611 * testsuite/ld-sparc/tlspie64.dd: Likewise.
1612 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
1613 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
1614 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
1615 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
1616 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
1617 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
1618 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
1619 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
1620 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
1621 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
1622 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
1623 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
1624 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
1625 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
1626 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
1627 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
1628 * testsuite/ld-sparc/wdispcall.dd: Likewise.
1632 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
1633 * testsuite/ld-scripts/rgn-at11.d: Likewise.
1637 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
1638 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
1639 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
1640 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
1641 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1642 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1643 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1644 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
1645 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
1646 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
1647 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
1648 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
1649 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
1650 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
1652 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
1656 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
1657 riscv32be*-*-linux*, and riscv64be*-*-linux*.
1658 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
1659 eelf32briscv_ilp32.c.
1660 * Makefile.in: Regenerate.
1661 * emulparams/elf32briscv.sh: Added.
1662 * emulparams/elf32briscv_ilp32.sh: Likewise.
1663 * emulparams/elf32briscv_ilp32f.sh: Likewise.
1664 * emulparams/elf64briscv.sh: Likewise.
1665 * emulparams/elf64briscv_lp64.sh: Likewise.
1666 * emulparams/elf64briscv_lp64f.sh: Likewise.
1670 * testsuite/ld-ctf/enum-forward.c: New test.
1671 * testsuite/ld-ctf/enum-forward.c: New results.
1675 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1676 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1677 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1678 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1679 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1680 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1681 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1682 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1683 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1684 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1685 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1686 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1687 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1688 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1689 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1690 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1691 * testsuite/ld-ctf/cycle-1.d: Likewise.
1692 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1693 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1694 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1695 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1696 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1697 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1698 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1699 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1700 * testsuite/ld-ctf/forward.d: Likewise.
1701 * testsuite/ld-ctf/function.d: Likewise.
1702 * testsuite/ld-ctf/slice.d: Likewise.
1703 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1704 * testsuite/ld-ctf/enums.c: New test.
1705 * testsuite/ld-ctf/enums.d: New test.
1709 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
1711 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1712 * testsuite/ld-ctf/forward.c: New test...
1713 * testsuite/ld-ctf/forward.d: ... and results.
1717 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1718 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1719 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1720 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1721 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1722 * testsuite/ld-ctf/function.d: Likewise.
1723 * testsuite/ld-ctf/slice.d: Likewise.
1727 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1728 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1729 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1730 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1731 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1732 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1733 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1734 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1735 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1736 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1737 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1738 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1739 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1740 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1741 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1742 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1743 * testsuite/ld-ctf/cycle-1.d: Likewise.
1744 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1745 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1746 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1747 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1748 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1749 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1750 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1751 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1752 * testsuite/ld-ctf/function.d: Likewise.
1753 * testsuite/ld-ctf/slice.d: Likewise.
1754 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1758 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
1763 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
1764 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
1769 * ldlang.c (gc_section_callback): Set pattern.
1770 * testsuite/ld-elf/pr26256-1.s: New file.
1771 * testsuite/ld-elf/pr26256-1.t: Likewise.
1772 * testsuite/ld-elf/pr26256-1a.d: Likewise.
1773 * testsuite/ld-elf/pr26256-1b.d: Likewise.
1774 * testsuite/ld-elf/pr26256-2.s: Likewise.
1775 * testsuite/ld-elf/pr26256-2.t: Likewise.
1776 * testsuite/ld-elf/pr26256-2a.d: Likewise.
1777 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
1778 * testsuite/ld-elf/pr26256-2b.d: Likewise.
1779 * testsuite/ld-elf/pr26256-3.s: Likewise.
1780 * testsuite/ld-elf/pr26256-3a.d: Likewise.
1781 * testsuite/ld-elf/pr26256-3a.t: Likewise.
1782 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1783 * testsuite/ld-elf/pr26256-3b.t: Likewise.
1788 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
1789 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
1790 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
1791 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
1792 * testsuite/ld-i386/tlsbin.rd: Likewise.
1793 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1794 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1795 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1796 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1797 * testsuite/ld-i386/tlspic.rd: Likewise.
1798 * testsuite/ld-i386/tlspic2.rd: Likewise.
1799 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
1800 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
1801 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
1802 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
1803 * testsuite/ld-plugin/pr17973.d: Likewise.
1804 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
1805 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
1806 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
1807 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
1808 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
1809 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
1810 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
1811 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
1812 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
1813 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
1814 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
1815 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
1816 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
1817 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1818 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1819 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1820 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1821 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1822 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1823 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
1824 * testsuite/ld-xtensa/tlspic.rd: Likewise.
1828 * configure.tgt: Correct comment grammar.
1829 * emultempl/m68hc1xelf.em: Likewise.
1830 * ld.texi: Correct grammar.
1834 Update year range in copyright notice of all files.
1836 For older changes see ChangeLog-2020
1838 Copyright (C) 2021-2022 Free Software Foundation, Inc.
1840 Copying and distribution of this file, with or without modification,
1841 are permitted in any medium without royalty provided the copyright
1842 notice and this notice are preserved.
1848 version-control: never