3 * Makefile.am (html-local, doc/ld/index.html): New targets.
4 * Makefile.in: Regenerate.
8 * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
9 * Makefile.in: Regenerate.
13 * testsuite/ld-x86-64/rela.d: New.
14 * testsuite/ld-x86-64/x86-64.exp: Run new test.
18 * ldelfgen.c (compare_link_order): Ignore section size when
19 performing a relocateable link.
23 * ldexp.c (update_definedness): Don't return false for absolute
25 * ldmain.c (multiple_definition): Print "warning: " in message
26 when not a hard error.
30 * testsuite/ld-elf/pr27825-1.d: Correct xfail.
31 * testsuite/ld-elf/pr27825-2.d: Likewise.
36 testsuite/ld-or1k/or1k.exp (or1kplttests): Add tests for linking
37 along with gotha() relocations.
38 testsuite/ld-or1k/gotha1.dd: New file.
39 testsuite/ld-or1k/gotha1.s: New file.
40 testsuite/ld-or1k/gotha2.dd: New file.
41 testsuite/ld-or1k/gotha2.s: New file
42 testsuite/ld-or1k/pltlib.s (x): Define size to avoid link
47 * testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt.
48 * testsuite/lib/ld-lib.exp: Likewise.
49 * testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types.
50 * testsuite/ld-ctf/nonrepresentable-2.c: Likewise.
51 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
52 * testsuite/ld-ctf/array.d: Larger type section.
53 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
54 * testsuite/ld-ctf/enums.d: Likewise.
55 * testsuite/ld-ctf/conflicting-enums.d: Don't compare types.
56 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order.
57 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
58 * testsuite/ld-ctf/slice.d: Adjust for improved slice emission.
63 * testsuite/ld-elf/pr27825-1.d: New file.
64 * testsuite/ld-elf/pr27825-1a.s: Likewise.
65 * testsuite/ld-elf/pr27825-1b.s: Likewise.
66 * testsuite/ld-elf/pr27825-2.d: Likewise.
67 * testsuite/ld-elf/pr27825-2a.s: Likewise.
68 * testsuite/ld-elf/pr27825-2b.s: Likewise.
72 * testsuite/ld-powerpc/empty.s: New file.
73 * testsuite/ld-powerpc/undefweak.d,
74 * testsuite/ld-powerpc/undefweak.s: New testcase.
75 * testsuite/ld-powerpc/powerpc.exp: Run it.
79 * testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
80 named section symbols.
84 * testsuite/ld-elf/anno-sym.s: New test source file.
85 * testsuite/ld-elf/anno-sym.d: New test driver.
86 * testsuite/ld-elf/anno-sym.l: New test error output.
90 * testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d,
91 testsuite/ld-x86-64/pcrel16-2.d: New.
92 * testsuite/ld-i386/i386.exp: Run new test.
93 * testsuite/ld-x86-64/x86-64.exp: Likewise.
98 * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
99 to tmpdir/ldscripts only if it doesn't exist.
104 * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
108 * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
109 to allow for named section symbols.
110 * testsuite/ld-aarch64/variant_pcs-r.d: Likewise.
111 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
112 * testsuite/ld-alpha/tlsbin.rd: Likewise.
113 * testsuite/ld-alpha/tlsbinr.rd: Likewise.
114 * testsuite/ld-alpha/tlspic.rd: Likewise.
115 * testsuite/ld-arm/rodata-merge-map.sym: Likewise.
116 * testsuite/ld-arm/script-type.sym: Likewise.
117 * testsuite/ld-cris/libdso-2.d: Likewise.
118 * testsuite/ld-cris/pr16044.d: Likewise.
119 * testsuite/ld-elf/sec64k.exp: Likewise.
120 * testsuite/ld-ia64/tlsbin.rd: Likewise.
121 * testsuite/ld-ia64/tlspic.rd: Likewise.
122 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
123 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
124 * testsuite/ld-mmix/bspec1.d: Likewise.
125 * testsuite/ld-mmix/bspec2.d: Likewise.
126 * testsuite/ld-mmix/local1.d: Likewise.
127 * testsuite/ld-mmix/local3.d: Likewise.
128 * testsuite/ld-mmix/local5.d: Likewise.
129 * testsuite/ld-mmix/local7.d: Likewise.
130 * testsuite/ld-mmix/undef-3.d: Likewise.
131 * testsuite/ld-powerpc/tlsso.r: Likewise.
132 * testsuite/ld-powerpc/tlsso32.r: Likewise.
133 * testsuite/ld-powerpc/tlstocso.r: Likewise.
134 * testsuite/ld-s390/tlsbin.rd: Likewise.
135 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
136 * testsuite/ld-s390/tlspic.rd: Likewise.
137 * testsuite/ld-s390/tlspic_64.rd: Likewise.
138 * testsuite/ld-sparc/gotop32.rd: Likewise.
139 * testsuite/ld-sparc/gotop64.rd: Likewise.
140 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
141 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
142 * testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
143 * testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
144 * testsuite/ld-sparc/tlssunpic32.rd: Likewise.
145 * testsuite/ld-sparc/tlssunpic64.rd: Likewise.
146 * testsuite/ld-tic6x/common.d: Likewise.
147 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
148 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
149 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
150 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
151 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
152 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
153 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
154 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
155 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
156 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
157 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
158 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
159 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
164 * testsuite/ld-powerpc/aix52.exp: Add new test.
165 * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
166 * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
167 * testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
168 * testsuite/ld-powerpc/aix-neg-reloc.s: New test.
172 * ld.texi (Options): Add note about the effect of --as-needed on
173 the --rpath and --rpath-link options on Linux based systems.
178 * libdep_plugin.c (str2vec): Don't pass a potentially signed char
183 * configure.ac (--enable-checking): Add support.
184 * config.in: Regenerate.
185 * configure: Regenerate.
189 * emultempl/mipself.em (mips_create_output_section_statements):
190 Pass base type of hash table to is_elf_hash_table.
191 * ldelf.c (ldelf_after_open): Likewise.
196 * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
197 the symbol hash table is the correct type before accessing
198 elf_link_hash_entry symbols.
199 * plugin.c (is_visible_from_outside): Likewise.
200 * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
201 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
205 * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
206 * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
207 * testsuite/ld-powerpc/notoc2.d: Likewise.
208 * testsuite/ld-powerpc/notoc3.d: Likewise.
209 * testsuite/ld-powerpc/pcrelopt.d: Likewise.
210 * testsuite/ld-powerpc/startstop.d: Likewise.
211 * testsuite/ld-powerpc/tlsget.d: Likewise.
212 * testsuite/ld-powerpc/tlsget2.d: Likewise.
213 * testsuite/ld-powerpc/tlsld.d: Likewise.
214 * testsuite/ld-powerpc/weak1.d: Likewise.
215 * testsuite/ld-powerpc/weak1so.d: Likewise.
219 * pe-dll.c (generate_reloc): Bail immediately when .reloc is
220 being discarded. Warn when relocated entry is above .reloc.
224 * configure.ac: Move initfini-array arg handling earlier. Don't
225 check for string.h, strings.h, stdlib.h, or locale.h. Do check
226 for inttypes.h, stdint.h, sys/types.h. Don't check for
227 setlocale, free, getev or strstr.
228 (AC_ISC_POSIX): Don't invoke.
229 * sysdep.h: Include string.h and stdlib.h unconditionally. Test
230 HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and
231 getenv fallback declarations.
232 * ld.h: Don't test HAVE_LOCALE_H.
233 * ldmain.c: Don't test HAVE_SETLOCALE.
234 * config.in: Regenerate.
235 * configure: Regenerate.
240 * testsuite/ld-pe/pe.exp: Add test.
241 * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
242 * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
246 * ldbuildid.c (strneq): Remove strneq and use startswith.
247 (validate_build_id_style): Likewise.
248 (compute_build_id_size): Likewise.
252 * sysdep.h (POISON_BFD_BOOLEAN): Define.
253 * configure.ac (elf_list_options, elf_shlib_list_options=false),
254 (elf_plt_unwind_list_options=false): Replace FALSE with false,
256 * emulparams/call_nop.sh, * emulparams/cet.sh,
257 * emulparams/dynamic_undefined_weak.sh,
258 * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
259 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
260 * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
261 * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
262 * emulparams/reloc_overflow.sh, * emulparams/static.sh,
263 * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
264 * emultempl/aix.em, * emultempl/alphaelf.em,
265 * emultempl/armcoff.em, * emultempl/armelf.em,
266 * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
267 * emultempl/cr16elf.em, * emultempl/crxelf.em,
268 * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
269 * emultempl/hppaelf.em, * emultempl/linux.em,
270 * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
271 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
272 * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
273 * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
274 * emultempl/pep.em, * emultempl/ppc32elf.em,
275 * emultempl/ppc64elf.em, * emultempl/rxelf.em,
276 * emultempl/rxlinux.em, * emultempl/scoreelf.em,
277 * emultempl/solaris2.em, * emultempl/spuelf.em,
278 * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
279 * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
280 * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
281 * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
282 * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
283 * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
284 * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
285 * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
286 * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
287 bfd_boolean with bool, FALSE with false, and TRUE with true.
288 * configure: Regenerate.
292 * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
293 * emultempl/nds32elf.em: Likewise.
294 * testsuite/ld-elf/mbind2b.c: Likewise.
295 * testsuite/ld-elf/pr18718.c: Likewise.
296 * testsuite/ld-elf/pr18720a.c: Likewise.
297 * testsuite/ld-elf/pr25749-1.c: Likewise.
298 * testsuite/ld-elf/pr25749-1a.c: Likewise.
299 * testsuite/ld-elf/pr25749-1b.c: Likewise.
300 * testsuite/ld-elf/pr25749-1c.c: Likewise.
301 * testsuite/ld-elf/pr25749-1d.c: Likewise.
302 * testsuite/ld-elf/pr25749-2.c: Likewise.
303 * testsuite/ld-elf/pr25754-1a.c: Likewise.
304 * testsuite/ld-elf/pr25754-2a.c: Likewise.
305 * testsuite/ld-elf/pr25754-3a.c: Likewise.
306 * testsuite/ld-elf/pr25754-4a.c: Likewise.
307 * testsuite/ld-elf/pr25754-5a.c: Likewise.
308 * testsuite/ld-elf/pr25754-6a.c: Likewise.
312 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
314 * lexsup.c (parse_args): Likewise.
315 * pe-dll.c (pe_dll_id_target): Likewise.
319 * testsuite/ld-ctf/array.d: Only check that the data object
320 section is nonempty: do not check its exact size.
321 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
322 * testsuite/ld-ctf/slice.d: Likewise.
323 * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
324 func info section too.
325 * testsuite/ld-ctf/function.d: Likewise, for the func info section.
329 * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
330 * emultempl/beos.em: Likewise.
331 * emultempl/elf.em: Likewise.
332 * emultempl/pe.em: Likewise.
333 * emultempl/pep.em: Likewise.
334 * emultempl/xtensaelf.em: Likewise.
335 * ldctor.c (ctor_prio): Likewise.
336 * ldelf.c (ldelf_try_needed): Likewise.
337 (ldelf_parse_ld_so_conf): Likewise.
338 (ldelf_after_open): Likewise.
339 (output_rel_find): Likewise.
340 (ldelf_place_orphan): Likewise.
341 * ldfile.c (ldfile_add_library_path): Likewise.
342 * ldlang.c (lang_add_input_file): Likewise.
343 * ldmain.c (get_sysroot): Likewise.
344 (get_emulation): Likewise.
345 (add_archive_element): Likewise.
346 * ldwrite.c (unsplittable_name): Likewise.
347 (clone_section): Likewise.
348 * lexsup.c (parse_args): Likewise.
349 * pe-dll.c (is_import): Likewise.
350 (pe_implied_import_dll): Likewise.
355 * testsuite/ld-x86-64/pr27590.rd: New file.
356 * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
357 * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
358 * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
363 * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
364 for all sections except .stabstr.
369 * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
371 * testsuite/ld-elf/pr27590b.d: Likewise.
376 * testsuite/ld-elf/pr27590.s: New file.
377 * testsuite/ld-elf/pr27590a.d: Likewise.
378 * testsuite/ld-elf/pr27590b.d: Likewise.
379 * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
380 --reduce-memory-overheads.
385 * testsuite/ld-x86-64/pr27587.err: New file.
386 * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
387 * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
388 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
392 * testsuite/ld-ctf/slice.c: Check slices of enums too.
393 * testsuite/ld-ctf/slice.d: Results adjusted.
397 * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
402 * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
406 * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
407 (ALL_64_EMULATION_SOURCES): ..here.
408 * Makefile.in: Regenerate.
412 * emultempl/aix.em: Ensure .tdata section is removed
413 if empty, even with -r flag.
414 * scripttempl/aix.sc: Handle TLS sections.
415 * testsuite/ld-powerpc/aix52.exp: Add new tests.
416 * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
417 * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
418 * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
419 * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
420 * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
421 * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
422 * testsuite/ld-powerpc/aix-tls-section.ex: New test.
423 * testsuite/ld-powerpc/aix-tls-section.s: New test.
427 * scripttempl/aix.sc: Add .te to .data section.
428 * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
429 Add aix-largetoc-1 test.
430 * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
431 * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
432 * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
433 * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
437 * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
438 arrange to define __main for some run_dump_test tests.
439 * testsuite/ld-gc/pr13683.d: Accept more symbols.
440 * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
441 * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
442 * testsuite/ld-srec/srec.exp: Likewise.
443 * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
447 * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
448 many times if riscv_restart_relax_sections returns TRUE.
449 * testsuite/ld-riscv-elf/restart-relax.d: New testcase. Before
450 applying this patch, the call won't be relaxed to jal; But now we
451 have more chances to do relaxations.
452 * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
453 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
457 * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
459 * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
461 * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
465 * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
467 * testsuite/ld-pe/reloc.d: xfail for mcore.
471 * testsuite/ld-scripts/alignof.exp,
472 testsuite/ld-scripts/data.exp,
473 testsuite/ld-scripts/default-script.exp,
474 testsuite/ld-scripts/log2.exp,
475 testsuite/ld-scripts/print-memory-usage.exp,
476 testsuite/ld-scripts/sizeof.exp,
477 testsuite/ld-undefined/weak-undef.exp: Set image base to zero
479 * testsuite/ld-scripts/default-script1.d,
480 testsuite/ld-scripts/default-script2.d,
481 testsuite/ld-scripts/default-script3.d,
482 testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
488 * ldelf.c (ldelf_set_output_arch): New function.
489 * ldelf.h (ldelf_set_output_arch): New prototype.
490 * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
491 ldelf_set_output_arch.
492 * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
493 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
494 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
495 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
496 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
497 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
498 * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
499 * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
500 * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
504 * testsuite/ld-scripts/map-address.exp: Set image base to zero
506 * testsuite/ld-scripts/map-address.t: Place .text.
510 * ldexp.c (ldexp_is_final_sym_absolute): New.
511 * ldexp.h (ldexp_is_final_sym_absolute): Declare.
512 * pe-dll.c (generate_reloc): Skip absolute symbols.
513 * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
514 * testsuite/ld-pe/pe.exp: Run new test.
519 * ldlang.c (insert_undefined): Don't mark symbols here.
520 (lang_mark_undefineds): Do so here instead, new function.
521 (lang_process): Call lang_mark_undefineds.
522 * testsuite/ld-gc/start3.d,
523 * testsuite/ld-gc/start3.s: New test.
524 * testsuite/ld-gc/start4.d,
525 * testsuite/ld-gc/start4.s: New test.
526 * testsuite/ld-gc/gc.exp: Run them.
530 * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
531 Move tests with ELF section directives to is_elf_format block.
532 * testsuite/ld-gc/abi-note.d: Run on more targets.
533 * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
534 * testsuite/ld-gc/start.d: Likewise.
535 * testsuite/ld-gc/start2.d: Likewise.
536 * testsuite/ld-gc/stop.d: Likewise.
537 * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
538 * testsuite/ld-gc/start.s: Likewise.
539 * testsuite/ld-gc/start2.s: Likewise.
543 * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
547 * testsuite/ld-powerpc/startstop.d,
548 * testsuite/ld-powerpc/startstop.r,
549 * testsuite/ld-powerpc/startstop.s: New test.
550 * testsuite/ld-powerpc/powerpc.exp: Run it.
554 * testsuite/ld-powerpc/weak1.d,
555 * testsuite/ld-powerpc/weak1.r,
556 * testsuite/ld-powerpc/weak1.s,
557 * testsuite/ld-powerpc/weak1so.d,
558 * testsuite/ld-powerpc/weak1so.r: New tests.
559 * testsuite/ld-powerpc/powerpc.exp: Run them.
565 * scripttempl/pe.sc: Add DWARF-5 section names.
566 * scripttempl/pep.sc: Likewise.
571 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
572 * lexsup.c (elf_static_list_options): Display help for them. Move
573 help for -z stack-size to here from elf_shlib_list_options. Add
574 help for -z start-stop-visibility and -z undefs.
575 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
576 * NEWS: Mention -z start-stop-gc.
577 * testsuite/ld-gc/start2.s,
578 * testsuite/ld-gc/start2.d: New test.
579 * testsuite/ld-gc/gc.exp: Run it.
583 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
584 symbols undefweak if that was how they were referenced. Undo
589 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
590 * testsuite/ld-elf/pr27128a.d: Likewise.
591 * testsuite/ld-elf/pr27128b.d: Likewise.
592 * testsuite/ld-elf/pr27128c.d: Likewise.
593 * testsuite/ld-elf/pr27128d.d: Likewise.
594 * testsuite/ld-elf/pr27128e.d: Likewise.
599 * testsuite/ld-plugin/pr27441a.c,
600 * testsuite/ld-plugin/pr27441b.c,
601 * testsuite/ld-plugin/pr27441c.c,
602 * testsuite/ld-plugin/pr27441c.d: New test.
603 * testsuite/ld-plugin/lto.exp: Run it.
607 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
611 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
612 defined in an object file.
613 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
614 * testsuite/ld-scripts/defined5.d: Expect a warning.
618 * testsuite/lib/ld-lib.exp: Whitespace.
619 (load_common_lib): Expand single use and delete this proc.
620 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
621 Use -B for clang too.
625 * testplugin.c (record_read_length): Remove debug fprintf.
629 * testsuite/ld-cdtest/cdtest.exp,
630 * testsuite/ld-checks/checks.exp,
631 * testsuite/ld-elf/binutils.exp,
632 * testsuite/ld-elf/compress.exp,
633 * testsuite/ld-elf/dwarf.exp,
634 * testsuite/ld-elf/exclude.exp,
635 * testsuite/ld-elf/frame.exp,
636 * testsuite/ld-elf/indirect.exp,
637 * testsuite/ld-elf/linux-x86.exp,
638 * testsuite/ld-elf/sec-to-seg.exp,
639 * testsuite/ld-elf/tls_common.exp,
640 * testsuite/ld-elfcomm/elfcomm.exp,
641 * testsuite/ld-elfvers/vers.exp,
642 * testsuite/ld-elfvsb/elfvsb.exp,
643 * testsuite/ld-elfweak/elfweak.exp,
644 * testsuite/ld-ifunc/binutils.exp,
645 * testsuite/ld-mips-elf/mips-elf-flags.exp,
646 * testsuite/ld-misc/defsym.exp,
647 * testsuite/ld-mn10300/mn10300.exp,
648 * testsuite/ld-plugin/lto.exp,
649 * testsuite/ld-plugin/plugin.exp,
650 * testsuite/ld-scripts/align.exp,
651 * testsuite/ld-scripts/assert.exp,
652 * testsuite/ld-scripts/crossref.exp,
653 * testsuite/ld-scripts/defined.exp,
654 * testsuite/ld-scripts/extern.exp,
655 * testsuite/ld-scripts/log2.exp,
656 * testsuite/ld-scripts/map-address.exp,
657 * testsuite/ld-scripts/phdrs.exp,
658 * testsuite/ld-scripts/phdrs2.exp,
659 * testsuite/ld-scripts/script.exp,
660 * testsuite/ld-scripts/section-flags.exp,
661 * testsuite/ld-scripts/sizeof.exp,
662 * testsuite/ld-scripts/weak.exp,
663 * testsuite/ld-selective/selective.exp,
664 * testsuite/ld-sh/sh.exp,
665 * testsuite/ld-shared/shared.exp,
666 * testsuite/ld-srec/srec.exp,
667 * testsuite/ld-tic6x/tic6x.exp,
668 * testsuite/ld-undefined/undefined.exp,
669 * testsuite/ld-undefined/weak-undef.exp,
670 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
671 perror. Instead report "unsupported" or "fail".
675 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
676 following debug links.
680 * NEWS: Mention arm-symbianelf removal.
684 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
685 Don't include symbian dep file.
686 * configure.tgt: Remove arm*-*-symbianelf* entry.
687 * emulparams/armsymbian.sh: Delete.
688 * ld.texi: Don't mention symbian.
689 * scripttempl/armbpabi.sc: Delete.
690 * testsuite/ld-arm/symbian-seg1.d: Delete.
691 * testsuite/ld-arm/symbian-seg1.s: Delete.
692 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
693 * Makefile.in: Regenerate.
694 * po/BLD-POTFILES.in: Regenerate.
699 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
701 * testsuite/ld-x86-64/x86-64.exp: Likewise.
705 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
711 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
712 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
713 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
714 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
715 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
716 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
717 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
722 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
723 * testsuite/ld-plugin/pr15146.d: Restored.
724 * testsuite/ld-plugin/pr15146a.c: Likewise.
725 * testsuite/ld-plugin/pr15146b.c: Likewise.
726 * testsuite/ld-plugin/pr15146c.c: Likewise.
727 * testsuite/ld-plugin/pr15146d.c: Likewise.
731 * testsuite/ld-plugin/pr27311d.c: New test.
732 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
733 and link new test as pr27311-2.
737 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
738 Link with --as-needed.
742 * testsuite/ld-plugin/pr27311.d,
743 * testsuite/ld-plugin/pr27311.ver,
744 * testsuite/ld-plugin/pr27311a.c,
745 * testsuite/ld-plugin/pr27311b.c,
746 * testsuite/ld-plugin/pr27311c.c: New testcase.
747 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
752 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
756 * ldgram.y (defsym_expr): Use assignment rule.
757 * ldlex.h (ldlex_defsym): Delete.
758 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
762 * ldgram.y (section): Call ldlex_backup. Remove empty action.
763 * ldlex.h (ldlex_backup): Declare.
764 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
765 chars, use SYMBOLNAMECHAR.
766 (ldlex_backup): New function.
770 * ldgram.y: Whitespace fixes.
774 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
778 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
783 * testsuite/ld-elf/pr27259.d: New file.
784 * testsuite/ld-elf/pr27259.s: Likewise.
789 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
790 prevent endless looping of linked-to sections.
794 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
799 * emulparams/alphavms.sh: Don't set COMPILE_IN.
800 * emulparams/elf64_ia64_vms.sh: Likewise.
801 * emulparams/elf64mmix.sh: Likewise.
802 * emulparams/elf_iamcu.sh: Likewise.
803 * emulparams/elf_k1om.sh: Likewise.
804 * emulparams/elf_l1om.sh: Likewise.
805 * emulparams/mmo.sh: Likewise.
806 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
807 * scripttempl/pdp11.sc: Use it.
808 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
809 instead use .xe script. Support scripts from file system.
810 * emultempl/beos.em: Support scripts from file system.
811 * emultempl/pe.em: Likewise.
812 * emultempl/pep.em: Likewise.
813 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
818 * scripttempl/DWARF.sc: Add .debug_* sections.
822 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
823 .debug_line_str and .debug_str_offsets. Move .debug_macro and
824 .debug_addr into DWARF-5 section.
828 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
832 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
833 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
834 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
835 * testsuite/ld-powerpc/tlsget.wf: Likewise.
836 * testsuite/ld-powerpc/tlsget2.d: Likewise.
837 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
838 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
839 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
840 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
841 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
842 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
843 * testsuite/ld-powerpc/tlsexers.r: Likewise.
844 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
845 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
846 * testsuite/ld-powerpc/tlsso.r: Likewise.
847 * testsuite/ld-powerpc/tlsso32.r: Likewise.
848 * testsuite/ld-powerpc/tlstocso.r: Likewise.
852 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
853 symbols by the optimizer.
854 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
858 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
859 if target is riscv little endian. Otherwise, return false.
860 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
861 targets by [riscv_little_endian].
866 * ldlang.c (map_input_to_output_sections): Start with a read-only
867 section for data statements.
868 * testsuite/ld-elf/size-2.d: Adjust to suit.
873 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
874 * testsuite/ld-i386/pr27193.dd: New file.
875 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
876 * testsuite/ld-i386/pr27193b.s: Likewise.
881 * testsuite/ld-plugin/lto.exp: Increase the max number of open
882 files to 20 for PR binutils/23460 test.
887 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
888 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
889 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
894 * NEWS: Mention -z report-relative-reloc.
895 * ld.texi: Document -z report-relative-reloc.
896 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
897 * emulparams/elf_i386.sh: Likewse.
898 * emulparams/elf_x86_64.sh: Likewse.
899 * emulparams/x86-report-relative.sh: New file.
900 * testsuite/ld-i386/report-reloc-1.d: Likewse.
901 * testsuite/ld-i386/report-reloc-1.l: Likewse.
902 * testsuite/ld-i386/report-reloc-1.s: Likewse.
903 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
904 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
905 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
906 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
907 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
908 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
914 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
916 * testsuite/ld-elfvers/vers16.dsym: Likewise.
920 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
921 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
922 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
923 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
924 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
925 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
929 * po/fr.po: Updated French translation.
933 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
938 * ldelfgen.c (compare_link_order): Protect access of ELF section
940 (add_link_order_input_section): Remove redundant NULL check.
942 (ldelf_map_segments): Use bfd_get_flavour.
946 * ldelfgen.c (add_link_order_input_section): Check for ELF input
947 before accessing ELF section data.
951 * Makefile.in: Regenerate.
956 * ldlang.h (lang_output_section_statement_type): Add data field.
957 (lang_input_section_type, lang_section_bst_type): Add pattern field.
958 (statement_list): Declare.
959 (lang_add_section): Adjust prototype.
960 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
961 * emultempl/armelf.em: Likewise.
962 * emultempl/beos.em: Likewise.
963 * emultempl/cskyelf.em: Likewise.
964 * emultempl/hppaelf.em: Likewise.
965 * emultempl/m68hc1xelf.em: Likewise.
966 * emultempl/metagelf.em: Likewise.
967 * emultempl/mipself.em: Likewise.
968 * emultempl/mmo.em: Likewise.
969 * emultempl/msp430.em: Likewise.
970 * emultempl/nios2elf.em: Likewise.
971 * emultempl/pe.em: Likewise.
972 * emultempl/pep.em: Likewise.
973 * emultempl/ppc64elf.em: Likewise.
974 * emultempl/spuelf.em: Likewise.
975 * emultempl/vms.em: Likewise.
977 * ldelfgen.c: Include ldctor.h.
978 (struct os_sections): New.
979 (add_link_order_input_section, link_order_scan): New functions.
980 (compare_link_order, fixup_link_order): New functions.
981 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
982 * ldlang.c (statement_list): Make global.
983 (output_section_callback_fast): Save pattern in tree node.
984 (lang_add_section): Add pattern parameter, save in lang_input_section.
985 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
986 (lang_insert_orphan, output_section_callback): Likewise.
987 (ldlang_place_orphan): Likewise.
988 (gc_section_callback): Don't set section->pattern.
989 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
990 * testsuite/ld-elf/pr26256-3b.d: Likewise.
991 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
995 * ldlang.h (callback_t): Remove flag_info function parameter.
996 * ldlang.c (walk_wild_consider_section): Adjust to suit.
997 (walk_wild_section_general): Likewise.
998 (output_section_callback_fast, output_section_callback): Likewise.
999 (check_section_callback, gc_section_callback): Likewise.
1000 (find_relro_section_callback): Likewise.
1005 * configure.ac: Use GNU_MAKE_JOBSERVER.
1006 * aclocal.m4: Regenerated.
1007 * configure: Likewise.
1012 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
1013 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1014 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1015 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
1020 * configure: Regenerated.
1025 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
1026 and mips64r5 to list of known mips targets.
1030 * po/pt_BR.po: Updated Brazilian Portuguese translation.
1031 ` * po/uk.po: Updated Ukranian translation.
1035 * configure: Regenerated.
1040 * testsuite/ld-x86-64/lam-u48.rd: New file.
1041 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
1042 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
1046 * configure: Regenerate.
1047 * po/ld.pot: Regenerate.
1051 * 2.36 release branch crated.
1055 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
1056 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
1060 * configure: Regenerate.
1061 * Makefile.in: Regenerate.
1065 * configure: Regenerate.
1070 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
1071 * testsuite/ld-elf/loadaddr3b.d: Likewise.
1072 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1073 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1074 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1075 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1076 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1077 * testsuite/ld-i386/pr19636-1d.d: Likewise.
1078 * testsuite/ld-i386/pr19636-1l.d: Likewise.
1079 * testsuite/ld-i386/pr19636-2c.d: Likewise.
1080 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1081 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1082 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1083 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1084 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1085 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1086 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1087 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1088 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1089 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1090 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1091 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1092 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1093 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1094 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1095 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1096 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1097 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1098 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1099 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1100 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1101 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1102 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1103 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1104 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1105 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1106 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
1107 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
1108 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
1109 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
1110 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
1111 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
1112 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1113 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
1114 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1115 * testsuite/ld-x86-64/pr21038b.d: Likewise.
1116 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1117 * testsuite/ld-x86-64/pr21038c.d: Likewise.
1118 * testsuite/ld-x86-64/pr23854.d: Likewise.
1119 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1120 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1121 * testsuite/ld-i386/plt-pic.pd: Likewise.
1122 * testsuite/ld-i386/plt-pic2.dd: Likewise.
1123 * testsuite/ld-i386/plt.pd: Likewise.
1124 * testsuite/ld-i386/plt2.dd: Likewise.
1125 * testsuite/ld-i386/tlsbin.rd: Likewise.
1126 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1127 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1128 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1129 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
1130 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1131 * testsuite/ld-i386/tlspic.rd: Likewise.
1132 * testsuite/ld-i386/tlspic2.rd: Likewise.
1133 * testsuite/ld-x86-64/mpx3.dd: Likewise.
1134 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
1135 * testsuite/ld-x86-64/mpx4.dd: Likewise.
1136 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
1137 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
1138 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1139 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1140 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1141 * testsuite/ld-x86-64/plt.pd: Likewise.
1142 * testsuite/ld-x86-64/plt2.dd: Likewise.
1143 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1144 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1145 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1146 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1147 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
1148 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1149 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1150 * testsuite/ld-elf/sec64k.exp: Check
1151 is_elf_unused_section_symbols.
1155 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
1156 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
1157 * testsuite/ld-scripts/segment-start.d: Likewise.
1161 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
1162 about dynamic relocations in read-only sections.
1163 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1164 * testsuite/ld-elf/ehdr_start.d: Likewise.
1165 * testsuite/ld-scripts/pr22267.d: Likewise.
1166 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
1168 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
1172 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
1173 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
1177 * po/BLD-POTFILES.in: Regenerate.
1181 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
1182 complain about relocs in read-only sections. Tidy ASFLAGS append.
1186 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
1187 base for some tests.
1188 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
1189 * testsuite/ld-sparc/gotop32.sd: Likewise.
1190 * testsuite/ld-sparc/gotop32.td: Likewise.
1191 * testsuite/ld-sparc/gotop64.dd: Likewise.
1192 * testsuite/ld-sparc/gotop64.sd: Likewise.
1193 * testsuite/ld-sparc/gotop64.td: Likewise.
1194 * testsuite/ld-sparc/tlsg32.sd: Likewise.
1195 * testsuite/ld-sparc/tlsg64.sd: Likewise.
1196 * testsuite/ld-sparc/tlspie32.dd: Likewise.
1197 * testsuite/ld-sparc/tlspie64.dd: Likewise.
1198 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
1199 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
1200 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
1201 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
1202 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
1203 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
1204 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
1205 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
1206 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
1207 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
1208 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
1209 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
1210 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
1211 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
1212 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
1213 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
1214 * testsuite/ld-sparc/wdispcall.dd: Likewise.
1218 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
1219 * testsuite/ld-scripts/rgn-at11.d: Likewise.
1223 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
1224 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
1225 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
1226 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
1227 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1228 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1229 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1230 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
1231 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
1232 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
1233 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
1234 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
1235 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
1236 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
1238 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
1242 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
1243 riscv32be*-*-linux*, and riscv64be*-*-linux*.
1244 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
1245 eelf32briscv_ilp32.c.
1246 * Makefile.in: Regenerate.
1247 * emulparams/elf32briscv.sh: Added.
1248 * emulparams/elf32briscv_ilp32.sh: Likewise.
1249 * emulparams/elf32briscv_ilp32f.sh: Likewise.
1250 * emulparams/elf64briscv.sh: Likewise.
1251 * emulparams/elf64briscv_lp64.sh: Likewise.
1252 * emulparams/elf64briscv_lp64f.sh: Likewise.
1256 * testsuite/ld-ctf/enum-forward.c: New test.
1257 * testsuite/ld-ctf/enum-forward.c: New results.
1261 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1262 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1263 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1264 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1265 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1266 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1267 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1268 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1269 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1270 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1271 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1272 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1273 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1274 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1275 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1276 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1277 * testsuite/ld-ctf/cycle-1.d: Likewise.
1278 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1279 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1280 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1281 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1282 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1283 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1284 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1285 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1286 * testsuite/ld-ctf/forward.d: Likewise.
1287 * testsuite/ld-ctf/function.d: Likewise.
1288 * testsuite/ld-ctf/slice.d: Likewise.
1289 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1290 * testsuite/ld-ctf/enums.c: New test.
1291 * testsuite/ld-ctf/enums.d: New test.
1295 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
1297 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1298 * testsuite/ld-ctf/forward.c: New test...
1299 * testsuite/ld-ctf/forward.d: ... and results.
1303 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1304 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1305 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1306 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1307 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1308 * testsuite/ld-ctf/function.d: Likewise.
1309 * testsuite/ld-ctf/slice.d: Likewise.
1313 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1314 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1315 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1316 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1317 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1318 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1319 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1320 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1321 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1322 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1323 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1324 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1325 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1326 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1327 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1328 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1329 * testsuite/ld-ctf/cycle-1.d: Likewise.
1330 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1331 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1332 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1333 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1334 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1335 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1336 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1337 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1338 * testsuite/ld-ctf/function.d: Likewise.
1339 * testsuite/ld-ctf/slice.d: Likewise.
1340 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1344 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
1349 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
1350 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
1355 * ldlang.c (gc_section_callback): Set pattern.
1356 * testsuite/ld-elf/pr26256-1.s: New file.
1357 * testsuite/ld-elf/pr26256-1.t: Likewise.
1358 * testsuite/ld-elf/pr26256-1a.d: Likewise.
1359 * testsuite/ld-elf/pr26256-1b.d: Likewise.
1360 * testsuite/ld-elf/pr26256-2.s: Likewise.
1361 * testsuite/ld-elf/pr26256-2.t: Likewise.
1362 * testsuite/ld-elf/pr26256-2a.d: Likewise.
1363 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
1364 * testsuite/ld-elf/pr26256-2b.d: Likewise.
1365 * testsuite/ld-elf/pr26256-3.s: Likewise.
1366 * testsuite/ld-elf/pr26256-3a.d: Likewise.
1367 * testsuite/ld-elf/pr26256-3a.t: Likewise.
1368 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1369 * testsuite/ld-elf/pr26256-3b.t: Likewise.
1374 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
1375 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
1376 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
1377 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
1378 * testsuite/ld-i386/tlsbin.rd: Likewise.
1379 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1380 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1381 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1382 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1383 * testsuite/ld-i386/tlspic.rd: Likewise.
1384 * testsuite/ld-i386/tlspic2.rd: Likewise.
1385 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
1386 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
1387 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
1388 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
1389 * testsuite/ld-plugin/pr17973.d: Likewise.
1390 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
1391 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
1392 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
1393 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
1394 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
1395 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
1396 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
1397 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
1398 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
1399 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
1400 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
1401 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
1402 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
1403 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1404 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1405 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1406 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1407 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1408 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1409 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
1410 * testsuite/ld-xtensa/tlspic.rd: Likewise.
1414 * configure.tgt: Correct comment grammar.
1415 * emultempl/m68hc1xelf.em: Likewise.
1416 * ld.texi: Correct grammar.
1420 Update year range in copyright notice of all files.
1422 For older changes see ChangeLog-2020
1424 Copyright (C) 2021 Free Software Foundation, Inc.
1426 Copying and distribution of this file, with or without modification,
1427 are permitted in any medium without royalty provided the copyright
1428 notice and this notice are preserved.
1434 version-control: never