1 2021-04-05 Alan Modra <amodra@gmail.com>
3 * configure.ac: Move initfini-array arg handling earlier. Don't
4 check for string.h, strings.h, stdlib.h, or locale.h. Do check
5 for inttypes.h, stdint.h, sys/types.h. Don't check for
6 setlocale, free, getev or strstr.
7 (AC_ISC_POSIX): Don't invoke.
8 * sysdep.h: Include string.h and stdlib.h unconditionally. Test
9 HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and
10 getenv fallback declarations.
11 * ld.h: Don't test HAVE_LOCALE_H.
12 * ldmain.c: Don't test HAVE_SETLOCALE.
13 * config.in: Regenerate.
14 * configure: Regenerate.
16 2021-04-01 Tamar Christina <tamar.christina@arm.com>
19 * testsuite/ld-pe/pe.exp: Add test.
20 * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
21 * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
23 2021-04-01 Martin Liska <mliska@suse.cz>
25 * ldbuildid.c (strneq): Remove strneq and use startswith.
26 (validate_build_id_style): Likewise.
27 (compute_build_id_size): Likewise.
29 2021-03-31 Alan Modra <amodra@gmail.com>
31 * sysdep.h (POISON_BFD_BOOLEAN): Define.
32 * configure.ac (elf_list_options, elf_shlib_list_options=false),
33 (elf_plt_unwind_list_options=false): Replace FALSE with false,
35 * emulparams/call_nop.sh, * emulparams/cet.sh,
36 * emulparams/dynamic_undefined_weak.sh,
37 * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
38 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
39 * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
40 * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
41 * emulparams/reloc_overflow.sh, * emulparams/static.sh,
42 * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
43 * emultempl/aix.em, * emultempl/alphaelf.em,
44 * emultempl/armcoff.em, * emultempl/armelf.em,
45 * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
46 * emultempl/cr16elf.em, * emultempl/crxelf.em,
47 * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
48 * emultempl/hppaelf.em, * emultempl/linux.em,
49 * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
50 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
51 * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
52 * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
53 * emultempl/pep.em, * emultempl/ppc32elf.em,
54 * emultempl/ppc64elf.em, * emultempl/rxelf.em,
55 * emultempl/rxlinux.em, * emultempl/scoreelf.em,
56 * emultempl/solaris2.em, * emultempl/spuelf.em,
57 * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
58 * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
59 * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
60 * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
61 * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
62 * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
63 * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
64 * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
65 * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
66 bfd_boolean with bool, FALSE with false, and TRUE with true.
67 * configure: Regenerate.
69 2021-03-31 Alan Modra <amodra@gmail.com>
71 * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
72 * emultempl/nds32elf.em: Likewise.
73 * testsuite/ld-elf/mbind2b.c: Likewise.
74 * testsuite/ld-elf/pr18718.c: Likewise.
75 * testsuite/ld-elf/pr18720a.c: Likewise.
76 * testsuite/ld-elf/pr25749-1.c: Likewise.
77 * testsuite/ld-elf/pr25749-1a.c: Likewise.
78 * testsuite/ld-elf/pr25749-1b.c: Likewise.
79 * testsuite/ld-elf/pr25749-1c.c: Likewise.
80 * testsuite/ld-elf/pr25749-1d.c: Likewise.
81 * testsuite/ld-elf/pr25749-2.c: Likewise.
82 * testsuite/ld-elf/pr25754-1a.c: Likewise.
83 * testsuite/ld-elf/pr25754-2a.c: Likewise.
84 * testsuite/ld-elf/pr25754-3a.c: Likewise.
85 * testsuite/ld-elf/pr25754-4a.c: Likewise.
86 * testsuite/ld-elf/pr25754-5a.c: Likewise.
87 * testsuite/ld-elf/pr25754-6a.c: Likewise.
89 2021-03-29 Alan Modra <amodra@gmail.com>
91 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
93 * lexsup.c (parse_args): Likewise.
94 * pe-dll.c (pe_dll_id_target): Likewise.
96 2021-03-25 Nick Alcock <nick.alcock@oracle.com>
98 * testsuite/ld-ctf/array.d: Only check that the data object
99 section is nonempty: do not check its exact size.
100 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
101 * testsuite/ld-ctf/slice.d: Likewise.
102 * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
103 func info section too.
104 * testsuite/ld-ctf/function.d: Likewise, for the func info section.
106 2021-03-22 Martin Liska <mliska@suse.cz>
108 * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
109 * emultempl/beos.em: Likewise.
110 * emultempl/elf.em: Likewise.
111 * emultempl/pe.em: Likewise.
112 * emultempl/pep.em: Likewise.
113 * emultempl/xtensaelf.em: Likewise.
114 * ldctor.c (ctor_prio): Likewise.
115 * ldelf.c (ldelf_try_needed): Likewise.
116 (ldelf_parse_ld_so_conf): Likewise.
117 (ldelf_after_open): Likewise.
118 (output_rel_find): Likewise.
119 (ldelf_place_orphan): Likewise.
120 * ldfile.c (ldfile_add_library_path): Likewise.
121 * ldlang.c (lang_add_input_file): Likewise.
122 * ldmain.c (get_sysroot): Likewise.
123 (get_emulation): Likewise.
124 (add_archive_element): Likewise.
125 * ldwrite.c (unsplittable_name): Likewise.
126 (clone_section): Likewise.
127 * lexsup.c (parse_args): Likewise.
128 * pe-dll.c (is_import): Likewise.
129 (pe_implied_import_dll): Likewise.
131 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
134 * testsuite/ld-x86-64/pr27590.rd: New file.
135 * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
136 * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
137 * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
139 2021-03-20 Alan Modra <amodra@gmail.com>
142 * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
143 for all sections except .stabstr.
145 2021-03-19 Alan Modra <amodra@gmail.com>
148 * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
150 * testsuite/ld-elf/pr27590b.d: Likewise.
152 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
155 * testsuite/ld-elf/pr27590.s: New file.
156 * testsuite/ld-elf/pr27590a.d: Likewise.
157 * testsuite/ld-elf/pr27590b.d: Likewise.
158 * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
159 --reduce-memory-overheads.
161 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
164 * testsuite/ld-x86-64/pr27587.err: New file.
165 * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
166 * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
167 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
169 2021-03-18 Nick Alcock <nick.alcock@oracle.com>
171 * testsuite/ld-ctf/slice.c: Check slices of enums too.
172 * testsuite/ld-ctf/slice.d: Results adjusted.
174 2021-03-16 Nick Clifton <nickc@redhat.com>
176 * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
179 2021-03-15 Jan Beulich <jbeulich@suse.com>
181 * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
183 2021-03-12 Alan Modra <amodra@gmail.com>
185 * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
186 (ALL_64_EMULATION_SOURCES): ..here.
187 * Makefile.in: Regenerate.
189 2021-03-12 Clément Chigot <clement.chigot@atos.net>
191 * emultempl/aix.em: Ensure .tdata section is removed
192 if empty, even with -r flag.
193 * scripttempl/aix.sc: Handle TLS sections.
194 * testsuite/ld-powerpc/aix52.exp: Add new tests.
195 * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
196 * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
197 * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
198 * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
199 * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
200 * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
201 * testsuite/ld-powerpc/aix-tls-section.ex: New test.
202 * testsuite/ld-powerpc/aix-tls-section.s: New test.
204 2021-03-12 Clément Chigot <clement.chigot@atos.net>
206 * scripttempl/aix.sc: Add .te to .data section.
207 * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
208 Add aix-largetoc-1 test.
209 * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
210 * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
211 * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
212 * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
214 2021-03-12 Alan Modra <amodra@gmail.com>
216 * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
217 arrange to define __main for some run_dump_test tests.
218 * testsuite/ld-gc/pr13683.d: Accept more symbols.
219 * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
220 * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
221 * testsuite/ld-srec/srec.exp: Likewise.
222 * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
224 2021-03-11 Nelson Chu <nelson.chu@sifive.com>
226 * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
227 many times if riscv_restart_relax_sections returns TRUE.
228 * testsuite/ld-riscv-elf/restart-relax.d: New testcase. Before
229 applying this patch, the call won't be relaxed to jal; But now we
230 have more chances to do relaxations.
231 * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
232 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
234 2021-03-10 Jan Beulich <jbeulich@suse.com>
236 * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
238 * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
240 * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
242 2021-03-09 Jan Beulich <jbeulich@suse.com>
244 * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
246 * testsuite/ld-pe/reloc.d: xfail for mcore.
248 2021-03-09 Jan Beulich <jbeulich@suse.com>
250 * testsuite/ld-scripts/alignof.exp,
251 testsuite/ld-scripts/data.exp,
252 testsuite/ld-scripts/default-script.exp,
253 testsuite/ld-scripts/log2.exp,
254 testsuite/ld-scripts/print-memory-usage.exp,
255 testsuite/ld-scripts/sizeof.exp,
256 testsuite/ld-undefined/weak-undef.exp: Set image base to zero
258 * testsuite/ld-scripts/default-script1.d,
259 testsuite/ld-scripts/default-script2.d,
260 testsuite/ld-scripts/default-script3.d,
261 testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
263 2021-03-05 H.J. Lu <hongjiu.lu@intel.com>
267 * ldelf.c (ldelf_set_output_arch): New function.
268 * ldelf.h (ldelf_set_output_arch): New prototype.
269 * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
270 ldelf_set_output_arch.
271 * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
272 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
273 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
274 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
275 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
276 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
277 * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
278 * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
279 * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
281 2021-03-04 Jan Beulich <jbeulich@suse.com>
283 * testsuite/ld-scripts/map-address.exp: Set image base to zero
285 * testsuite/ld-scripts/map-address.t: Place .text.
287 2021-03-04 Jan Beulich <jbeulich@suse.com>
289 * ldexp.c (ldexp_is_final_sym_absolute): New.
290 * ldexp.h (ldexp_is_final_sym_absolute): Declare.
291 * pe-dll.c (generate_reloc): Skip absolute symbols.
292 * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
293 * testsuite/ld-pe/pe.exp: Run new test.
295 2021-03-03 Alan Modra <amodra@gmail.com>
298 * ldlang.c (insert_undefined): Don't mark symbols here.
299 (lang_mark_undefineds): Do so here instead, new function.
300 (lang_process): Call lang_mark_undefineds.
301 * testsuite/ld-gc/start3.d,
302 * testsuite/ld-gc/start3.s: New test.
303 * testsuite/ld-gc/start4.d,
304 * testsuite/ld-gc/start4.s: New test.
305 * testsuite/ld-gc/gc.exp: Run them.
307 2021-03-03 Alan Modra <amodra@gmail.com>
309 * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
310 Move tests with ELF section directives to is_elf_format block.
311 * testsuite/ld-gc/abi-note.d: Run on more targets.
312 * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
313 * testsuite/ld-gc/start.d: Likewise.
314 * testsuite/ld-gc/start2.d: Likewise.
315 * testsuite/ld-gc/stop.d: Likewise.
316 * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
317 * testsuite/ld-gc/start.s: Likewise.
318 * testsuite/ld-gc/start2.s: Likewise.
320 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
322 * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
324 2021-03-02 Alan Modra <amodra@gmail.com>
326 * testsuite/ld-powerpc/startstop.d,
327 * testsuite/ld-powerpc/startstop.r,
328 * testsuite/ld-powerpc/startstop.s: New test.
329 * testsuite/ld-powerpc/powerpc.exp: Run it.
331 2021-03-02 Alan Modra <amodra@gmail.com>
333 * testsuite/ld-powerpc/weak1.d,
334 * testsuite/ld-powerpc/weak1.r,
335 * testsuite/ld-powerpc/weak1.s,
336 * testsuite/ld-powerpc/weak1so.d,
337 * testsuite/ld-powerpc/weak1so.r: New tests.
338 * testsuite/ld-powerpc/powerpc.exp: Run them.
340 2021-03-01 Hannes Domani <ssbssa@sourceware.org>
341 Nick Clifton <nickc@redhat.com>
344 * scripttempl/pe.sc: Add DWARF-5 section names.
345 * scripttempl/pep.sc: Likewise.
347 2021-03-01 Alan Modra <amodra@gmail.com>
348 Fangrui Song <maskray@google.com>
350 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
351 * lexsup.c (elf_static_list_options): Display help for them. Move
352 help for -z stack-size to here from elf_shlib_list_options. Add
353 help for -z start-stop-visibility and -z undefs.
354 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
355 * NEWS: Mention -z start-stop-gc.
356 * testsuite/ld-gc/start2.s,
357 * testsuite/ld-gc/start2.d: New test.
358 * testsuite/ld-gc/gc.exp: Run it.
360 2021-03-01 Alan Modra <amodra@gmail.com>
362 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
363 symbols undefweak if that was how they were referenced. Undo
366 2021-03-01 Alan Modra <amodra@gmail.com>
368 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
369 * testsuite/ld-elf/pr27128a.d: Likewise.
370 * testsuite/ld-elf/pr27128b.d: Likewise.
371 * testsuite/ld-elf/pr27128c.d: Likewise.
372 * testsuite/ld-elf/pr27128d.d: Likewise.
373 * testsuite/ld-elf/pr27128e.d: Likewise.
375 2021-02-26 Alan Modra <amodra@gmail.com>
378 * testsuite/ld-plugin/pr27441a.c,
379 * testsuite/ld-plugin/pr27441b.c,
380 * testsuite/ld-plugin/pr27441c.c,
381 * testsuite/ld-plugin/pr27441c.d: New test.
382 * testsuite/ld-plugin/lto.exp: Run it.
384 2021-02-25 Jan Beulich <jbeulich@suse.com>
386 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
388 2021-02-21 Alan Modra <amodra@gmail.com>
390 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
391 defined in an object file.
392 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
393 * testsuite/ld-scripts/defined5.d: Expect a warning.
395 2021-02-19 Alan Modra <amodra@gmail.com>
397 * testsuite/lib/ld-lib.exp: Whitespace.
398 (load_common_lib): Expand single use and delete this proc.
399 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
400 Use -B for clang too.
402 2021-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
404 * testplugin.c (record_read_length): Remove debug fprintf.
406 2021-02-14 Alan Modra <amodra@gmail.com>
408 * testsuite/ld-cdtest/cdtest.exp,
409 * testsuite/ld-checks/checks.exp,
410 * testsuite/ld-elf/binutils.exp,
411 * testsuite/ld-elf/compress.exp,
412 * testsuite/ld-elf/dwarf.exp,
413 * testsuite/ld-elf/exclude.exp,
414 * testsuite/ld-elf/frame.exp,
415 * testsuite/ld-elf/indirect.exp,
416 * testsuite/ld-elf/linux-x86.exp,
417 * testsuite/ld-elf/sec-to-seg.exp,
418 * testsuite/ld-elf/tls_common.exp,
419 * testsuite/ld-elfcomm/elfcomm.exp,
420 * testsuite/ld-elfvers/vers.exp,
421 * testsuite/ld-elfvsb/elfvsb.exp,
422 * testsuite/ld-elfweak/elfweak.exp,
423 * testsuite/ld-ifunc/binutils.exp,
424 * testsuite/ld-mips-elf/mips-elf-flags.exp,
425 * testsuite/ld-misc/defsym.exp,
426 * testsuite/ld-mn10300/mn10300.exp,
427 * testsuite/ld-plugin/lto.exp,
428 * testsuite/ld-plugin/plugin.exp,
429 * testsuite/ld-scripts/align.exp,
430 * testsuite/ld-scripts/assert.exp,
431 * testsuite/ld-scripts/crossref.exp,
432 * testsuite/ld-scripts/defined.exp,
433 * testsuite/ld-scripts/extern.exp,
434 * testsuite/ld-scripts/log2.exp,
435 * testsuite/ld-scripts/map-address.exp,
436 * testsuite/ld-scripts/phdrs.exp,
437 * testsuite/ld-scripts/phdrs2.exp,
438 * testsuite/ld-scripts/script.exp,
439 * testsuite/ld-scripts/section-flags.exp,
440 * testsuite/ld-scripts/sizeof.exp,
441 * testsuite/ld-scripts/weak.exp,
442 * testsuite/ld-selective/selective.exp,
443 * testsuite/ld-sh/sh.exp,
444 * testsuite/ld-shared/shared.exp,
445 * testsuite/ld-srec/srec.exp,
446 * testsuite/ld-tic6x/tic6x.exp,
447 * testsuite/ld-undefined/undefined.exp,
448 * testsuite/ld-undefined/weak-undef.exp,
449 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
450 perror. Instead report "unsupported" or "fail".
452 2021-02-12 Nick Clifton <nickc@redhat.com>
454 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
455 following debug links.
457 2021-02-11 Alan Modra <amodra@gmail.com>
459 * NEWS: Mention arm-symbianelf removal.
461 2021-02-09 Alan Modra <amodra@gmail.com>
463 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
464 Don't include symbian dep file.
465 * configure.tgt: Remove arm*-*-symbianelf* entry.
466 * emulparams/armsymbian.sh: Delete.
467 * ld.texi: Don't mention symbian.
468 * scripttempl/armbpabi.sc: Delete.
469 * testsuite/ld-arm/symbian-seg1.d: Delete.
470 * testsuite/ld-arm/symbian-seg1.s: Delete.
471 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
472 * Makefile.in: Regenerate.
473 * po/BLD-POTFILES.in: Regenerate.
475 2021-02-07 H.J. Lu <hongjiu.lu@intel.com>
478 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
480 * testsuite/ld-x86-64/x86-64.exp: Likewise.
482 2021-01-26 Nick Alcock <nick.alcock@oracle.com>
484 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
487 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
490 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
491 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
492 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
493 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
494 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
495 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
496 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
498 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
501 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
502 * testsuite/ld-plugin/pr15146.d: Restored.
503 * testsuite/ld-plugin/pr15146a.c: Likewise.
504 * testsuite/ld-plugin/pr15146b.c: Likewise.
505 * testsuite/ld-plugin/pr15146c.c: Likewise.
506 * testsuite/ld-plugin/pr15146d.c: Likewise.
508 2021-02-04 Alan Modra <amodra@gmail.com>
510 * testsuite/ld-plugin/pr27311d.c: New test.
511 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
512 and link new test as pr27311-2.
514 2021-02-03 Alan Modra <amodra@gmail.com>
516 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
517 Link with --as-needed.
519 2021-02-02 Alan Modra <amodra@gmail.com>
521 * testsuite/ld-plugin/pr27311.d,
522 * testsuite/ld-plugin/pr27311.ver,
523 * testsuite/ld-plugin/pr27311a.c,
524 * testsuite/ld-plugin/pr27311b.c,
525 * testsuite/ld-plugin/pr27311c.c: New testcase.
526 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
529 2021-02-01 Emery Hemingway <ehmry@posteo.net>
531 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
533 2021-02-01 Alan Modra <amodra@gmail.com>
535 * ldgram.y (defsym_expr): Use assignment rule.
536 * ldlex.h (ldlex_defsym): Delete.
537 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
539 2021-02-01 Alan Modra <amodra@gmail.com>
541 * ldgram.y (section): Call ldlex_backup. Remove empty action.
542 * ldlex.h (ldlex_backup): Declare.
543 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
544 chars, use SYMBOLNAMECHAR.
545 (ldlex_backup): New function.
547 2021-02-01 Alan Modra <amodra@gmail.com>
549 * ldgram.y: Whitespace fixes.
551 2021-02-01 Alan Modra <amodra@gmail.com>
553 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
555 2021-01-29 Alan Modra <amodra@gmail.com>
557 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
559 2021-01-28 H.J. Lu <hongjiu.lu@intel.com>
562 * testsuite/ld-elf/pr27259.d: New file.
563 * testsuite/ld-elf/pr27259.s: Likewise.
565 2021-01-28 Alan Modra <amodra@gmail.com>
568 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
569 prevent endless looping of linked-to sections.
571 2021-01-26 H.J. Lu <hongjiu.lu@intel.com>
573 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
575 2021-01-26 Alan Modra <amodra@gmail.com>
578 * emulparams/alphavms.sh: Don't set COMPILE_IN.
579 * emulparams/elf64_ia64_vms.sh: Likewise.
580 * emulparams/elf64mmix.sh: Likewise.
581 * emulparams/elf_iamcu.sh: Likewise.
582 * emulparams/elf_k1om.sh: Likewise.
583 * emulparams/elf_l1om.sh: Likewise.
584 * emulparams/mmo.sh: Likewise.
585 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
586 * scripttempl/pdp11.sc: Use it.
587 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
588 instead use .xe script. Support scripts from file system.
589 * emultempl/beos.em: Support scripts from file system.
590 * emultempl/pe.em: Likewise.
591 * emultempl/pep.em: Likewise.
592 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
594 2021-01-25 Fangrui Song <maskray@google.com>
597 * scripttempl/DWARF.sc: Add .debug_* sections.
599 2021-01-25 Nick Clifton <nickc@redhat.com>
601 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
602 .debug_line_str and .debug_str_offsets. Move .debug_macro and
603 .debug_addr into DWARF-5 section.
605 2021-01-21 Alan Modra <amodra@gmail.com>
607 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
609 2021-01-20 Alan Modra <amodra@gmail.com>
611 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
612 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
613 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
614 * testsuite/ld-powerpc/tlsget.wf: Likewise.
615 * testsuite/ld-powerpc/tlsget2.d: Likewise.
616 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
617 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
618 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
619 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
620 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
621 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
622 * testsuite/ld-powerpc/tlsexers.r: Likewise.
623 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
624 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
625 * testsuite/ld-powerpc/tlsso.r: Likewise.
626 * testsuite/ld-powerpc/tlsso32.r: Likewise.
627 * testsuite/ld-powerpc/tlstocso.r: Likewise.
629 2021-01-19 Nick Alcock <nick.alcock@oracle.com>
631 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
632 symbols by the optimizer.
633 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
635 2021-01-19 Nelson Chu <nelson.chu@sifive.com>
637 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
638 if target is riscv little endian. Otherwise, return false.
639 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
640 targets by [riscv_little_endian].
642 2021-01-18 Alan Modra <amodra@gmail.com>
645 * ldlang.c (map_input_to_output_sections): Start with a read-only
646 section for data statements.
647 * testsuite/ld-elf/size-2.d: Adjust to suit.
649 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
652 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
653 * testsuite/ld-i386/pr27193.dd: New file.
654 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
655 * testsuite/ld-i386/pr27193b.s: Likewise.
657 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
660 * testsuite/ld-plugin/lto.exp: Increase the max number of open
661 files to 20 for PR binutils/23460 test.
663 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
666 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
667 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
668 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
671 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
673 * NEWS: Mention -z report-relative-reloc.
674 * ld.texi: Document -z report-relative-reloc.
675 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
676 * emulparams/elf_i386.sh: Likewse.
677 * emulparams/elf_x86_64.sh: Likewse.
678 * emulparams/x86-report-relative.sh: New file.
679 * testsuite/ld-i386/report-reloc-1.d: Likewse.
680 * testsuite/ld-i386/report-reloc-1.l: Likewse.
681 * testsuite/ld-i386/report-reloc-1.s: Likewse.
682 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
683 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
684 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
685 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
686 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
687 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
690 2021-01-16 Alan Modra <amodra@gmail.com>
693 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
695 * testsuite/ld-elfvers/vers16.dsym: Likewise.
697 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
699 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
700 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
701 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
702 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
703 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
704 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
706 2021-01-14 Nick Clifton <nickc@redhat.com>
708 * po/fr.po: Updated French translation.
710 2021-01-14 Mike Frysinger <vapier@gentoo.org>
712 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
714 2021-01-14 Alan Modra <amodra@gmail.com>
717 * ldelfgen.c (compare_link_order): Protect access of ELF section
719 (add_link_order_input_section): Remove redundant NULL check.
721 (ldelf_map_segments): Use bfd_get_flavour.
723 2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
725 * ldelfgen.c (add_link_order_input_section): Check for ELF input
726 before accessing ELF section data.
728 2021-01-13 Alan Modra <amodra@gmail.com>
730 * Makefile.in: Regenerate.
732 2021-01-13 Alan Modra <amodra@gmail.com>
735 * ldlang.h (lang_output_section_statement_type): Add data field.
736 (lang_input_section_type, lang_section_bst_type): Add pattern field.
737 (statement_list): Declare.
738 (lang_add_section): Adjust prototype.
739 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
740 * emultempl/armelf.em: Likewise.
741 * emultempl/beos.em: Likewise.
742 * emultempl/cskyelf.em: Likewise.
743 * emultempl/hppaelf.em: Likewise.
744 * emultempl/m68hc1xelf.em: Likewise.
745 * emultempl/metagelf.em: Likewise.
746 * emultempl/mipself.em: Likewise.
747 * emultempl/mmo.em: Likewise.
748 * emultempl/msp430.em: Likewise.
749 * emultempl/nios2elf.em: Likewise.
750 * emultempl/pe.em: Likewise.
751 * emultempl/pep.em: Likewise.
752 * emultempl/ppc64elf.em: Likewise.
753 * emultempl/spuelf.em: Likewise.
754 * emultempl/vms.em: Likewise.
756 * ldelfgen.c: Include ldctor.h.
757 (struct os_sections): New.
758 (add_link_order_input_section, link_order_scan): New functions.
759 (compare_link_order, fixup_link_order): New functions.
760 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
761 * ldlang.c (statement_list): Make global.
762 (output_section_callback_fast): Save pattern in tree node.
763 (lang_add_section): Add pattern parameter, save in lang_input_section.
764 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
765 (lang_insert_orphan, output_section_callback): Likewise.
766 (ldlang_place_orphan): Likewise.
767 (gc_section_callback): Don't set section->pattern.
768 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
769 * testsuite/ld-elf/pr26256-3b.d: Likewise.
770 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
772 2021-01-13 Alan Modra <amodra@gmail.com>
774 * ldlang.h (callback_t): Remove flag_info function parameter.
775 * ldlang.c (walk_wild_consider_section): Adjust to suit.
776 (walk_wild_section_general): Likewise.
777 (output_section_callback_fast, output_section_callback): Likewise.
778 (check_section_callback, gc_section_callback): Likewise.
779 (find_relro_section_callback): Likewise.
781 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
784 * configure.ac: Use GNU_MAKE_JOBSERVER.
785 * aclocal.m4: Regenerated.
786 * configure: Likewise.
788 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
791 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
792 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
793 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
794 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
796 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
799 * configure: Regenerated.
801 2021-01-11 Matt Jenkins <matt@majenko.co.uk>
804 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
805 and mips64r5 to list of known mips targets.
807 2021-01-11 Nick Clifton <nickc@redhat.com>matt@majenko.co.uk
809 * po/pt_BR.po: Updated Brazilian Portuguese translation.
810 ` * po/uk.po: Updated Ukranian translation.
812 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
814 * configure: Regenerated.
816 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
819 * testsuite/ld-x86-64/lam-u48.rd: New file.
820 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
821 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
823 2021-01-09 Nick Clifton <nickc@redhat.com>
825 * configure: Regenerate.
826 * po/ld.pot: Regenerate.
828 2021-01-09 Nick Clifton <nickc@redhat.com>
830 * 2.36 release branch crated.
832 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
834 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
835 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
837 2021-01-09 Alan Modra <amodra@gmail.com>
839 * configure: Regenerate.
840 * Makefile.in: Regenerate.
842 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
844 * configure: Regenerate.
846 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
849 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
850 * testsuite/ld-elf/loadaddr3b.d: Likewise.
851 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
852 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
853 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
854 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
855 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
856 * testsuite/ld-i386/pr19636-1d.d: Likewise.
857 * testsuite/ld-i386/pr19636-1l.d: Likewise.
858 * testsuite/ld-i386/pr19636-2c.d: Likewise.
859 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
860 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
861 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
862 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
863 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
864 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
865 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
866 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
867 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
868 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
869 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
870 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
871 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
872 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
873 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
874 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
875 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
876 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
877 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
878 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
879 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
880 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
881 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
882 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
883 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
884 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
885 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
886 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
887 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
888 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
889 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
890 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
891 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
892 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
893 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
894 * testsuite/ld-x86-64/pr21038b.d: Likewise.
895 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
896 * testsuite/ld-x86-64/pr21038c.d: Likewise.
897 * testsuite/ld-x86-64/pr23854.d: Likewise.
898 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
899 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
900 * testsuite/ld-i386/plt-pic.pd: Likewise.
901 * testsuite/ld-i386/plt-pic2.dd: Likewise.
902 * testsuite/ld-i386/plt.pd: Likewise.
903 * testsuite/ld-i386/plt2.dd: Likewise.
904 * testsuite/ld-i386/tlsbin.rd: Likewise.
905 * testsuite/ld-i386/tlsbin2.rd: Likewise.
906 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
907 * testsuite/ld-i386/tlsdesc.rd: Likewise.
908 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
909 * testsuite/ld-i386/tlsnopic.rd: Likewise.
910 * testsuite/ld-i386/tlspic.rd: Likewise.
911 * testsuite/ld-i386/tlspic2.rd: Likewise.
912 * testsuite/ld-x86-64/mpx3.dd: Likewise.
913 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
914 * testsuite/ld-x86-64/mpx4.dd: Likewise.
915 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
916 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
917 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
918 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
919 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
920 * testsuite/ld-x86-64/plt.pd: Likewise.
921 * testsuite/ld-x86-64/plt2.dd: Likewise.
922 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
923 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
924 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
925 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
926 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
927 * testsuite/ld-x86-64/tlspic.rd: Likewise.
928 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
929 * testsuite/ld-elf/sec64k.exp: Check
930 is_elf_unused_section_symbols.
932 2021-01-07 Alan Modra <amodra@gmail.com>
934 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
935 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
936 * testsuite/ld-scripts/segment-start.d: Likewise.
938 2021-01-07 Alan Modra <amodra@gmail.com>
940 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
941 about dynamic relocations in read-only sections.
942 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
943 * testsuite/ld-elf/ehdr_start.d: Likewise.
944 * testsuite/ld-scripts/pr22267.d: Likewise.
945 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
947 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
949 2021-01-07 Marcus Comstedt <marcus@mc.pp.se>
951 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
952 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
954 2021-01-07 Alan Modra <amodra@gmail.com>
956 * po/BLD-POTFILES.in: Regenerate.
958 2021-01-07 Alan Modra <amodra@gmail.com>
960 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
961 complain about relocs in read-only sections. Tidy ASFLAGS append.
963 2021-01-06 Alan Modra <amodra@gmail.com>
965 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
967 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
968 * testsuite/ld-sparc/gotop32.sd: Likewise.
969 * testsuite/ld-sparc/gotop32.td: Likewise.
970 * testsuite/ld-sparc/gotop64.dd: Likewise.
971 * testsuite/ld-sparc/gotop64.sd: Likewise.
972 * testsuite/ld-sparc/gotop64.td: Likewise.
973 * testsuite/ld-sparc/tlsg32.sd: Likewise.
974 * testsuite/ld-sparc/tlsg64.sd: Likewise.
975 * testsuite/ld-sparc/tlspie32.dd: Likewise.
976 * testsuite/ld-sparc/tlspie64.dd: Likewise.
977 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
978 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
979 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
980 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
981 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
982 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
983 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
984 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
985 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
986 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
987 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
988 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
989 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
990 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
991 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
992 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
993 * testsuite/ld-sparc/wdispcall.dd: Likewise.
995 2021-01-06 Alan Modra <amodra@gmail.com>
997 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
998 * testsuite/ld-scripts/rgn-at11.d: Likewise.
1000 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1002 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
1003 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
1004 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
1005 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
1006 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1007 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1008 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1009 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
1010 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
1011 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
1012 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
1013 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
1014 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
1015 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
1017 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
1019 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1021 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
1022 riscv32be*-*-linux*, and riscv64be*-*-linux*.
1023 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
1024 eelf32briscv_ilp32.c.
1025 * Makefile.in: Regenerate.
1026 * emulparams/elf32briscv.sh: Added.
1027 * emulparams/elf32briscv_ilp32.sh: Likewise.
1028 * emulparams/elf32briscv_ilp32f.sh: Likewise.
1029 * emulparams/elf64briscv.sh: Likewise.
1030 * emulparams/elf64briscv_lp64.sh: Likewise.
1031 * emulparams/elf64briscv_lp64f.sh: Likewise.
1033 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1035 * testsuite/ld-ctf/enum-forward.c: New test.
1036 * testsuite/ld-ctf/enum-forward.c: New results.
1038 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1040 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1041 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1042 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1043 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1044 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1045 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1046 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1047 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1048 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1049 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1050 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1051 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1052 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1053 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1054 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1055 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1056 * testsuite/ld-ctf/cycle-1.d: Likewise.
1057 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1058 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1059 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1060 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1061 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1062 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1063 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1064 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1065 * testsuite/ld-ctf/forward.d: Likewise.
1066 * testsuite/ld-ctf/function.d: Likewise.
1067 * testsuite/ld-ctf/slice.d: Likewise.
1068 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1069 * testsuite/ld-ctf/enums.c: New test.
1070 * testsuite/ld-ctf/enums.d: New test.
1072 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1074 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
1076 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1077 * testsuite/ld-ctf/forward.c: New test...
1078 * testsuite/ld-ctf/forward.d: ... and results.
1080 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1082 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1083 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1084 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1085 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1086 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1087 * testsuite/ld-ctf/function.d: Likewise.
1088 * testsuite/ld-ctf/slice.d: Likewise.
1090 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1092 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1093 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1094 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1095 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1096 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1097 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1098 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1099 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1100 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1101 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1102 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1103 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1104 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1105 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1106 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1107 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1108 * testsuite/ld-ctf/cycle-1.d: Likewise.
1109 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1110 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1111 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1112 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1113 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1114 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1115 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1116 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1117 * testsuite/ld-ctf/function.d: Likewise.
1118 * testsuite/ld-ctf/slice.d: Likewise.
1119 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1121 2021-01-05 Alan Modra <amodra@gmail.com>
1123 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
1125 2021-01-05 Alan Modra <amodra@gmail.com>
1128 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
1129 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
1131 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
1134 * ldlang.c (gc_section_callback): Set pattern.
1135 * testsuite/ld-elf/pr26256-1.s: New file.
1136 * testsuite/ld-elf/pr26256-1.t: Likewise.
1137 * testsuite/ld-elf/pr26256-1a.d: Likewise.
1138 * testsuite/ld-elf/pr26256-1b.d: Likewise.
1139 * testsuite/ld-elf/pr26256-2.s: Likewise.
1140 * testsuite/ld-elf/pr26256-2.t: Likewise.
1141 * testsuite/ld-elf/pr26256-2a.d: Likewise.
1142 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
1143 * testsuite/ld-elf/pr26256-2b.d: Likewise.
1144 * testsuite/ld-elf/pr26256-3.s: Likewise.
1145 * testsuite/ld-elf/pr26256-3a.d: Likewise.
1146 * testsuite/ld-elf/pr26256-3a.t: Likewise.
1147 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1148 * testsuite/ld-elf/pr26256-3b.t: Likewise.
1150 2021-01-04 Alan Modra <amodra@gmail.com>
1153 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
1154 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
1155 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
1156 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
1157 * testsuite/ld-i386/tlsbin.rd: Likewise.
1158 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1159 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1160 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1161 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1162 * testsuite/ld-i386/tlspic.rd: Likewise.
1163 * testsuite/ld-i386/tlspic2.rd: Likewise.
1164 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
1165 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
1166 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
1167 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
1168 * testsuite/ld-plugin/pr17973.d: Likewise.
1169 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
1170 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
1171 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
1172 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
1173 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
1174 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
1175 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
1176 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
1177 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
1178 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
1179 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
1180 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
1181 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
1182 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1183 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1184 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1185 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1186 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1187 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1188 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
1189 * testsuite/ld-xtensa/tlspic.rd: Likewise.
1191 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1193 * configure.tgt: Correct comment grammar.
1194 * emultempl/m68hc1xelf.em: Likewise.
1195 * ld.texi: Correct grammar.
1197 2021-01-01 Alan Modra <amodra@gmail.com>
1199 Update year range in copyright notice of all files.
1201 For older changes see ChangeLog-2020
1203 Copyright (C) 2021 Free Software Foundation, Inc.
1205 Copying and distribution of this file, with or without modification,
1206 are permitted in any medium without royalty provided the copyright
1207 notice and this notice are preserved.
1213 version-control: never