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