1 2021-04-13 Nick Clifton <nickc@redhat.com>
3 * ld.texi (Options): Add note about the effect of --as-needed on
4 the --rpath and --rpath-link options on Linux based systems.
6 2021-04-13 Alan Modra <amodra@gmail.com>
9 * libdep_plugin.c (str2vec): Don't pass a potentially signed char
12 2021-04-12 Alan Modra <amodra@gmail.com>
14 * configure.ac (--enable-checking): Add support.
15 * config.in: Regenerate.
16 * configure: Regenerate.
18 2021-04-12 Alan Modra <amodra@gmail.com>
20 * emultempl/mipself.em (mips_create_output_section_statements):
21 Pass base type of hash table to is_elf_hash_table.
22 * ldelf.c (ldelf_after_open): Likewise.
24 2021-04-12 Alan Modra <amodra@gmail.com>
27 * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
28 the symbol hash table is the correct type before accessing
29 elf_link_hash_entry symbols.
30 * plugin.c (is_visible_from_outside): Likewise.
31 * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
32 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
34 2021-04-09 Alan Modra <amodra@gmail.com>
36 * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
37 * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
38 * testsuite/ld-powerpc/notoc2.d: Likewise.
39 * testsuite/ld-powerpc/notoc3.d: Likewise.
40 * testsuite/ld-powerpc/pcrelopt.d: Likewise.
41 * testsuite/ld-powerpc/startstop.d: Likewise.
42 * testsuite/ld-powerpc/tlsget.d: Likewise.
43 * testsuite/ld-powerpc/tlsget2.d: Likewise.
44 * testsuite/ld-powerpc/tlsld.d: Likewise.
45 * testsuite/ld-powerpc/weak1.d: Likewise.
46 * testsuite/ld-powerpc/weak1so.d: Likewise.
48 2021-04-06 Jan Beulich <jbeulich@suse.com>
50 * pe-dll.c (generate_reloc): Bail immediately when .reloc is
51 being discarded. Warn when relocated entry is above .reloc.
53 2021-04-05 Alan Modra <amodra@gmail.com>
55 * configure.ac: Move initfini-array arg handling earlier. Don't
56 check for string.h, strings.h, stdlib.h, or locale.h. Do check
57 for inttypes.h, stdint.h, sys/types.h. Don't check for
58 setlocale, free, getev or strstr.
59 (AC_ISC_POSIX): Don't invoke.
60 * sysdep.h: Include string.h and stdlib.h unconditionally. Test
61 HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and
62 getenv fallback declarations.
63 * ld.h: Don't test HAVE_LOCALE_H.
64 * ldmain.c: Don't test HAVE_SETLOCALE.
65 * config.in: Regenerate.
66 * configure: Regenerate.
68 2021-04-01 Tamar Christina <tamar.christina@arm.com>
71 * testsuite/ld-pe/pe.exp: Add test.
72 * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
73 * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
75 2021-04-01 Martin Liska <mliska@suse.cz>
77 * ldbuildid.c (strneq): Remove strneq and use startswith.
78 (validate_build_id_style): Likewise.
79 (compute_build_id_size): Likewise.
81 2021-03-31 Alan Modra <amodra@gmail.com>
83 * sysdep.h (POISON_BFD_BOOLEAN): Define.
84 * configure.ac (elf_list_options, elf_shlib_list_options=false),
85 (elf_plt_unwind_list_options=false): Replace FALSE with false,
87 * emulparams/call_nop.sh, * emulparams/cet.sh,
88 * emulparams/dynamic_undefined_weak.sh,
89 * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
90 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
91 * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
92 * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
93 * emulparams/reloc_overflow.sh, * emulparams/static.sh,
94 * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
95 * emultempl/aix.em, * emultempl/alphaelf.em,
96 * emultempl/armcoff.em, * emultempl/armelf.em,
97 * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
98 * emultempl/cr16elf.em, * emultempl/crxelf.em,
99 * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
100 * emultempl/hppaelf.em, * emultempl/linux.em,
101 * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
102 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
103 * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
104 * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
105 * emultempl/pep.em, * emultempl/ppc32elf.em,
106 * emultempl/ppc64elf.em, * emultempl/rxelf.em,
107 * emultempl/rxlinux.em, * emultempl/scoreelf.em,
108 * emultempl/solaris2.em, * emultempl/spuelf.em,
109 * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
110 * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
111 * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
112 * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
113 * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
114 * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
115 * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
116 * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
117 * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
118 bfd_boolean with bool, FALSE with false, and TRUE with true.
119 * configure: Regenerate.
121 2021-03-31 Alan Modra <amodra@gmail.com>
123 * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
124 * emultempl/nds32elf.em: Likewise.
125 * testsuite/ld-elf/mbind2b.c: Likewise.
126 * testsuite/ld-elf/pr18718.c: Likewise.
127 * testsuite/ld-elf/pr18720a.c: Likewise.
128 * testsuite/ld-elf/pr25749-1.c: Likewise.
129 * testsuite/ld-elf/pr25749-1a.c: Likewise.
130 * testsuite/ld-elf/pr25749-1b.c: Likewise.
131 * testsuite/ld-elf/pr25749-1c.c: Likewise.
132 * testsuite/ld-elf/pr25749-1d.c: Likewise.
133 * testsuite/ld-elf/pr25749-2.c: Likewise.
134 * testsuite/ld-elf/pr25754-1a.c: Likewise.
135 * testsuite/ld-elf/pr25754-2a.c: Likewise.
136 * testsuite/ld-elf/pr25754-3a.c: Likewise.
137 * testsuite/ld-elf/pr25754-4a.c: Likewise.
138 * testsuite/ld-elf/pr25754-5a.c: Likewise.
139 * testsuite/ld-elf/pr25754-6a.c: Likewise.
141 2021-03-29 Alan Modra <amodra@gmail.com>
143 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
145 * lexsup.c (parse_args): Likewise.
146 * pe-dll.c (pe_dll_id_target): Likewise.
148 2021-03-25 Nick Alcock <nick.alcock@oracle.com>
150 * testsuite/ld-ctf/array.d: Only check that the data object
151 section is nonempty: do not check its exact size.
152 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
153 * testsuite/ld-ctf/slice.d: Likewise.
154 * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
155 func info section too.
156 * testsuite/ld-ctf/function.d: Likewise, for the func info section.
158 2021-03-22 Martin Liska <mliska@suse.cz>
160 * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
161 * emultempl/beos.em: Likewise.
162 * emultempl/elf.em: Likewise.
163 * emultempl/pe.em: Likewise.
164 * emultempl/pep.em: Likewise.
165 * emultempl/xtensaelf.em: Likewise.
166 * ldctor.c (ctor_prio): Likewise.
167 * ldelf.c (ldelf_try_needed): Likewise.
168 (ldelf_parse_ld_so_conf): Likewise.
169 (ldelf_after_open): Likewise.
170 (output_rel_find): Likewise.
171 (ldelf_place_orphan): Likewise.
172 * ldfile.c (ldfile_add_library_path): Likewise.
173 * ldlang.c (lang_add_input_file): Likewise.
174 * ldmain.c (get_sysroot): Likewise.
175 (get_emulation): Likewise.
176 (add_archive_element): Likewise.
177 * ldwrite.c (unsplittable_name): Likewise.
178 (clone_section): Likewise.
179 * lexsup.c (parse_args): Likewise.
180 * pe-dll.c (is_import): Likewise.
181 (pe_implied_import_dll): Likewise.
183 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
186 * testsuite/ld-x86-64/pr27590.rd: New file.
187 * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
188 * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
189 * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
191 2021-03-20 Alan Modra <amodra@gmail.com>
194 * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
195 for all sections except .stabstr.
197 2021-03-19 Alan Modra <amodra@gmail.com>
200 * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
202 * testsuite/ld-elf/pr27590b.d: Likewise.
204 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
207 * testsuite/ld-elf/pr27590.s: New file.
208 * testsuite/ld-elf/pr27590a.d: Likewise.
209 * testsuite/ld-elf/pr27590b.d: Likewise.
210 * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
211 --reduce-memory-overheads.
213 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
216 * testsuite/ld-x86-64/pr27587.err: New file.
217 * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
218 * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
219 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
221 2021-03-18 Nick Alcock <nick.alcock@oracle.com>
223 * testsuite/ld-ctf/slice.c: Check slices of enums too.
224 * testsuite/ld-ctf/slice.d: Results adjusted.
226 2021-03-16 Nick Clifton <nickc@redhat.com>
228 * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
231 2021-03-15 Jan Beulich <jbeulich@suse.com>
233 * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
235 2021-03-12 Alan Modra <amodra@gmail.com>
237 * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
238 (ALL_64_EMULATION_SOURCES): ..here.
239 * Makefile.in: Regenerate.
241 2021-03-12 Clément Chigot <clement.chigot@atos.net>
243 * emultempl/aix.em: Ensure .tdata section is removed
244 if empty, even with -r flag.
245 * scripttempl/aix.sc: Handle TLS sections.
246 * testsuite/ld-powerpc/aix52.exp: Add new tests.
247 * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
248 * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
249 * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
250 * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
251 * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
252 * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
253 * testsuite/ld-powerpc/aix-tls-section.ex: New test.
254 * testsuite/ld-powerpc/aix-tls-section.s: New test.
256 2021-03-12 Clément Chigot <clement.chigot@atos.net>
258 * scripttempl/aix.sc: Add .te to .data section.
259 * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
260 Add aix-largetoc-1 test.
261 * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
262 * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
263 * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
264 * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
266 2021-03-12 Alan Modra <amodra@gmail.com>
268 * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
269 arrange to define __main for some run_dump_test tests.
270 * testsuite/ld-gc/pr13683.d: Accept more symbols.
271 * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
272 * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
273 * testsuite/ld-srec/srec.exp: Likewise.
274 * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
276 2021-03-11 Nelson Chu <nelson.chu@sifive.com>
278 * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
279 many times if riscv_restart_relax_sections returns TRUE.
280 * testsuite/ld-riscv-elf/restart-relax.d: New testcase. Before
281 applying this patch, the call won't be relaxed to jal; But now we
282 have more chances to do relaxations.
283 * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
284 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
286 2021-03-10 Jan Beulich <jbeulich@suse.com>
288 * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
290 * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
292 * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
294 2021-03-09 Jan Beulich <jbeulich@suse.com>
296 * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
298 * testsuite/ld-pe/reloc.d: xfail for mcore.
300 2021-03-09 Jan Beulich <jbeulich@suse.com>
302 * testsuite/ld-scripts/alignof.exp,
303 testsuite/ld-scripts/data.exp,
304 testsuite/ld-scripts/default-script.exp,
305 testsuite/ld-scripts/log2.exp,
306 testsuite/ld-scripts/print-memory-usage.exp,
307 testsuite/ld-scripts/sizeof.exp,
308 testsuite/ld-undefined/weak-undef.exp: Set image base to zero
310 * testsuite/ld-scripts/default-script1.d,
311 testsuite/ld-scripts/default-script2.d,
312 testsuite/ld-scripts/default-script3.d,
313 testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
315 2021-03-05 H.J. Lu <hongjiu.lu@intel.com>
319 * ldelf.c (ldelf_set_output_arch): New function.
320 * ldelf.h (ldelf_set_output_arch): New prototype.
321 * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
322 ldelf_set_output_arch.
323 * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
324 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
325 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
326 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
327 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
328 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
329 * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
330 * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
331 * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
333 2021-03-04 Jan Beulich <jbeulich@suse.com>
335 * testsuite/ld-scripts/map-address.exp: Set image base to zero
337 * testsuite/ld-scripts/map-address.t: Place .text.
339 2021-03-04 Jan Beulich <jbeulich@suse.com>
341 * ldexp.c (ldexp_is_final_sym_absolute): New.
342 * ldexp.h (ldexp_is_final_sym_absolute): Declare.
343 * pe-dll.c (generate_reloc): Skip absolute symbols.
344 * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
345 * testsuite/ld-pe/pe.exp: Run new test.
347 2021-03-03 Alan Modra <amodra@gmail.com>
350 * ldlang.c (insert_undefined): Don't mark symbols here.
351 (lang_mark_undefineds): Do so here instead, new function.
352 (lang_process): Call lang_mark_undefineds.
353 * testsuite/ld-gc/start3.d,
354 * testsuite/ld-gc/start3.s: New test.
355 * testsuite/ld-gc/start4.d,
356 * testsuite/ld-gc/start4.s: New test.
357 * testsuite/ld-gc/gc.exp: Run them.
359 2021-03-03 Alan Modra <amodra@gmail.com>
361 * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
362 Move tests with ELF section directives to is_elf_format block.
363 * testsuite/ld-gc/abi-note.d: Run on more targets.
364 * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
365 * testsuite/ld-gc/start.d: Likewise.
366 * testsuite/ld-gc/start2.d: Likewise.
367 * testsuite/ld-gc/stop.d: Likewise.
368 * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
369 * testsuite/ld-gc/start.s: Likewise.
370 * testsuite/ld-gc/start2.s: Likewise.
372 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
374 * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
376 2021-03-02 Alan Modra <amodra@gmail.com>
378 * testsuite/ld-powerpc/startstop.d,
379 * testsuite/ld-powerpc/startstop.r,
380 * testsuite/ld-powerpc/startstop.s: New test.
381 * testsuite/ld-powerpc/powerpc.exp: Run it.
383 2021-03-02 Alan Modra <amodra@gmail.com>
385 * testsuite/ld-powerpc/weak1.d,
386 * testsuite/ld-powerpc/weak1.r,
387 * testsuite/ld-powerpc/weak1.s,
388 * testsuite/ld-powerpc/weak1so.d,
389 * testsuite/ld-powerpc/weak1so.r: New tests.
390 * testsuite/ld-powerpc/powerpc.exp: Run them.
392 2021-03-01 Hannes Domani <ssbssa@sourceware.org>
393 Nick Clifton <nickc@redhat.com>
396 * scripttempl/pe.sc: Add DWARF-5 section names.
397 * scripttempl/pep.sc: Likewise.
399 2021-03-01 Alan Modra <amodra@gmail.com>
400 Fangrui Song <maskray@google.com>
402 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
403 * lexsup.c (elf_static_list_options): Display help for them. Move
404 help for -z stack-size to here from elf_shlib_list_options. Add
405 help for -z start-stop-visibility and -z undefs.
406 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
407 * NEWS: Mention -z start-stop-gc.
408 * testsuite/ld-gc/start2.s,
409 * testsuite/ld-gc/start2.d: New test.
410 * testsuite/ld-gc/gc.exp: Run it.
412 2021-03-01 Alan Modra <amodra@gmail.com>
414 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
415 symbols undefweak if that was how they were referenced. Undo
418 2021-03-01 Alan Modra <amodra@gmail.com>
420 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
421 * testsuite/ld-elf/pr27128a.d: Likewise.
422 * testsuite/ld-elf/pr27128b.d: Likewise.
423 * testsuite/ld-elf/pr27128c.d: Likewise.
424 * testsuite/ld-elf/pr27128d.d: Likewise.
425 * testsuite/ld-elf/pr27128e.d: Likewise.
427 2021-02-26 Alan Modra <amodra@gmail.com>
430 * testsuite/ld-plugin/pr27441a.c,
431 * testsuite/ld-plugin/pr27441b.c,
432 * testsuite/ld-plugin/pr27441c.c,
433 * testsuite/ld-plugin/pr27441c.d: New test.
434 * testsuite/ld-plugin/lto.exp: Run it.
436 2021-02-25 Jan Beulich <jbeulich@suse.com>
438 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
440 2021-02-21 Alan Modra <amodra@gmail.com>
442 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
443 defined in an object file.
444 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
445 * testsuite/ld-scripts/defined5.d: Expect a warning.
447 2021-02-19 Alan Modra <amodra@gmail.com>
449 * testsuite/lib/ld-lib.exp: Whitespace.
450 (load_common_lib): Expand single use and delete this proc.
451 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
452 Use -B for clang too.
454 2021-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
456 * testplugin.c (record_read_length): Remove debug fprintf.
458 2021-02-14 Alan Modra <amodra@gmail.com>
460 * testsuite/ld-cdtest/cdtest.exp,
461 * testsuite/ld-checks/checks.exp,
462 * testsuite/ld-elf/binutils.exp,
463 * testsuite/ld-elf/compress.exp,
464 * testsuite/ld-elf/dwarf.exp,
465 * testsuite/ld-elf/exclude.exp,
466 * testsuite/ld-elf/frame.exp,
467 * testsuite/ld-elf/indirect.exp,
468 * testsuite/ld-elf/linux-x86.exp,
469 * testsuite/ld-elf/sec-to-seg.exp,
470 * testsuite/ld-elf/tls_common.exp,
471 * testsuite/ld-elfcomm/elfcomm.exp,
472 * testsuite/ld-elfvers/vers.exp,
473 * testsuite/ld-elfvsb/elfvsb.exp,
474 * testsuite/ld-elfweak/elfweak.exp,
475 * testsuite/ld-ifunc/binutils.exp,
476 * testsuite/ld-mips-elf/mips-elf-flags.exp,
477 * testsuite/ld-misc/defsym.exp,
478 * testsuite/ld-mn10300/mn10300.exp,
479 * testsuite/ld-plugin/lto.exp,
480 * testsuite/ld-plugin/plugin.exp,
481 * testsuite/ld-scripts/align.exp,
482 * testsuite/ld-scripts/assert.exp,
483 * testsuite/ld-scripts/crossref.exp,
484 * testsuite/ld-scripts/defined.exp,
485 * testsuite/ld-scripts/extern.exp,
486 * testsuite/ld-scripts/log2.exp,
487 * testsuite/ld-scripts/map-address.exp,
488 * testsuite/ld-scripts/phdrs.exp,
489 * testsuite/ld-scripts/phdrs2.exp,
490 * testsuite/ld-scripts/script.exp,
491 * testsuite/ld-scripts/section-flags.exp,
492 * testsuite/ld-scripts/sizeof.exp,
493 * testsuite/ld-scripts/weak.exp,
494 * testsuite/ld-selective/selective.exp,
495 * testsuite/ld-sh/sh.exp,
496 * testsuite/ld-shared/shared.exp,
497 * testsuite/ld-srec/srec.exp,
498 * testsuite/ld-tic6x/tic6x.exp,
499 * testsuite/ld-undefined/undefined.exp,
500 * testsuite/ld-undefined/weak-undef.exp,
501 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
502 perror. Instead report "unsupported" or "fail".
504 2021-02-12 Nick Clifton <nickc@redhat.com>
506 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
507 following debug links.
509 2021-02-11 Alan Modra <amodra@gmail.com>
511 * NEWS: Mention arm-symbianelf removal.
513 2021-02-09 Alan Modra <amodra@gmail.com>
515 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
516 Don't include symbian dep file.
517 * configure.tgt: Remove arm*-*-symbianelf* entry.
518 * emulparams/armsymbian.sh: Delete.
519 * ld.texi: Don't mention symbian.
520 * scripttempl/armbpabi.sc: Delete.
521 * testsuite/ld-arm/symbian-seg1.d: Delete.
522 * testsuite/ld-arm/symbian-seg1.s: Delete.
523 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
524 * Makefile.in: Regenerate.
525 * po/BLD-POTFILES.in: Regenerate.
527 2021-02-07 H.J. Lu <hongjiu.lu@intel.com>
530 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
532 * testsuite/ld-x86-64/x86-64.exp: Likewise.
534 2021-01-26 Nick Alcock <nick.alcock@oracle.com>
536 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
539 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
542 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
543 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
544 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
545 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
546 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
547 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
548 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
550 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
553 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
554 * testsuite/ld-plugin/pr15146.d: Restored.
555 * testsuite/ld-plugin/pr15146a.c: Likewise.
556 * testsuite/ld-plugin/pr15146b.c: Likewise.
557 * testsuite/ld-plugin/pr15146c.c: Likewise.
558 * testsuite/ld-plugin/pr15146d.c: Likewise.
560 2021-02-04 Alan Modra <amodra@gmail.com>
562 * testsuite/ld-plugin/pr27311d.c: New test.
563 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
564 and link new test as pr27311-2.
566 2021-02-03 Alan Modra <amodra@gmail.com>
568 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
569 Link with --as-needed.
571 2021-02-02 Alan Modra <amodra@gmail.com>
573 * testsuite/ld-plugin/pr27311.d,
574 * testsuite/ld-plugin/pr27311.ver,
575 * testsuite/ld-plugin/pr27311a.c,
576 * testsuite/ld-plugin/pr27311b.c,
577 * testsuite/ld-plugin/pr27311c.c: New testcase.
578 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
581 2021-02-01 Emery Hemingway <ehmry@posteo.net>
583 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
585 2021-02-01 Alan Modra <amodra@gmail.com>
587 * ldgram.y (defsym_expr): Use assignment rule.
588 * ldlex.h (ldlex_defsym): Delete.
589 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
591 2021-02-01 Alan Modra <amodra@gmail.com>
593 * ldgram.y (section): Call ldlex_backup. Remove empty action.
594 * ldlex.h (ldlex_backup): Declare.
595 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
596 chars, use SYMBOLNAMECHAR.
597 (ldlex_backup): New function.
599 2021-02-01 Alan Modra <amodra@gmail.com>
601 * ldgram.y: Whitespace fixes.
603 2021-02-01 Alan Modra <amodra@gmail.com>
605 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
607 2021-01-29 Alan Modra <amodra@gmail.com>
609 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
611 2021-01-28 H.J. Lu <hongjiu.lu@intel.com>
614 * testsuite/ld-elf/pr27259.d: New file.
615 * testsuite/ld-elf/pr27259.s: Likewise.
617 2021-01-28 Alan Modra <amodra@gmail.com>
620 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
621 prevent endless looping of linked-to sections.
623 2021-01-26 H.J. Lu <hongjiu.lu@intel.com>
625 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
627 2021-01-26 Alan Modra <amodra@gmail.com>
630 * emulparams/alphavms.sh: Don't set COMPILE_IN.
631 * emulparams/elf64_ia64_vms.sh: Likewise.
632 * emulparams/elf64mmix.sh: Likewise.
633 * emulparams/elf_iamcu.sh: Likewise.
634 * emulparams/elf_k1om.sh: Likewise.
635 * emulparams/elf_l1om.sh: Likewise.
636 * emulparams/mmo.sh: Likewise.
637 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
638 * scripttempl/pdp11.sc: Use it.
639 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
640 instead use .xe script. Support scripts from file system.
641 * emultempl/beos.em: Support scripts from file system.
642 * emultempl/pe.em: Likewise.
643 * emultempl/pep.em: Likewise.
644 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
646 2021-01-25 Fangrui Song <maskray@google.com>
649 * scripttempl/DWARF.sc: Add .debug_* sections.
651 2021-01-25 Nick Clifton <nickc@redhat.com>
653 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
654 .debug_line_str and .debug_str_offsets. Move .debug_macro and
655 .debug_addr into DWARF-5 section.
657 2021-01-21 Alan Modra <amodra@gmail.com>
659 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
661 2021-01-20 Alan Modra <amodra@gmail.com>
663 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
664 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
665 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
666 * testsuite/ld-powerpc/tlsget.wf: Likewise.
667 * testsuite/ld-powerpc/tlsget2.d: Likewise.
668 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
669 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
670 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
671 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
672 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
673 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
674 * testsuite/ld-powerpc/tlsexers.r: Likewise.
675 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
676 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
677 * testsuite/ld-powerpc/tlsso.r: Likewise.
678 * testsuite/ld-powerpc/tlsso32.r: Likewise.
679 * testsuite/ld-powerpc/tlstocso.r: Likewise.
681 2021-01-19 Nick Alcock <nick.alcock@oracle.com>
683 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
684 symbols by the optimizer.
685 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
687 2021-01-19 Nelson Chu <nelson.chu@sifive.com>
689 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
690 if target is riscv little endian. Otherwise, return false.
691 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
692 targets by [riscv_little_endian].
694 2021-01-18 Alan Modra <amodra@gmail.com>
697 * ldlang.c (map_input_to_output_sections): Start with a read-only
698 section for data statements.
699 * testsuite/ld-elf/size-2.d: Adjust to suit.
701 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
704 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
705 * testsuite/ld-i386/pr27193.dd: New file.
706 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
707 * testsuite/ld-i386/pr27193b.s: Likewise.
709 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
712 * testsuite/ld-plugin/lto.exp: Increase the max number of open
713 files to 20 for PR binutils/23460 test.
715 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
718 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
719 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
720 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
723 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
725 * NEWS: Mention -z report-relative-reloc.
726 * ld.texi: Document -z report-relative-reloc.
727 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
728 * emulparams/elf_i386.sh: Likewse.
729 * emulparams/elf_x86_64.sh: Likewse.
730 * emulparams/x86-report-relative.sh: New file.
731 * testsuite/ld-i386/report-reloc-1.d: Likewse.
732 * testsuite/ld-i386/report-reloc-1.l: Likewse.
733 * testsuite/ld-i386/report-reloc-1.s: Likewse.
734 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
735 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
736 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
737 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
738 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
739 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
742 2021-01-16 Alan Modra <amodra@gmail.com>
745 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
747 * testsuite/ld-elfvers/vers16.dsym: Likewise.
749 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
751 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
752 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
753 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
754 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
755 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
756 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
758 2021-01-14 Nick Clifton <nickc@redhat.com>
760 * po/fr.po: Updated French translation.
762 2021-01-14 Mike Frysinger <vapier@gentoo.org>
764 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
766 2021-01-14 Alan Modra <amodra@gmail.com>
769 * ldelfgen.c (compare_link_order): Protect access of ELF section
771 (add_link_order_input_section): Remove redundant NULL check.
773 (ldelf_map_segments): Use bfd_get_flavour.
775 2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
777 * ldelfgen.c (add_link_order_input_section): Check for ELF input
778 before accessing ELF section data.
780 2021-01-13 Alan Modra <amodra@gmail.com>
782 * Makefile.in: Regenerate.
784 2021-01-13 Alan Modra <amodra@gmail.com>
787 * ldlang.h (lang_output_section_statement_type): Add data field.
788 (lang_input_section_type, lang_section_bst_type): Add pattern field.
789 (statement_list): Declare.
790 (lang_add_section): Adjust prototype.
791 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
792 * emultempl/armelf.em: Likewise.
793 * emultempl/beos.em: Likewise.
794 * emultempl/cskyelf.em: Likewise.
795 * emultempl/hppaelf.em: Likewise.
796 * emultempl/m68hc1xelf.em: Likewise.
797 * emultempl/metagelf.em: Likewise.
798 * emultempl/mipself.em: Likewise.
799 * emultempl/mmo.em: Likewise.
800 * emultempl/msp430.em: Likewise.
801 * emultempl/nios2elf.em: Likewise.
802 * emultempl/pe.em: Likewise.
803 * emultempl/pep.em: Likewise.
804 * emultempl/ppc64elf.em: Likewise.
805 * emultempl/spuelf.em: Likewise.
806 * emultempl/vms.em: Likewise.
808 * ldelfgen.c: Include ldctor.h.
809 (struct os_sections): New.
810 (add_link_order_input_section, link_order_scan): New functions.
811 (compare_link_order, fixup_link_order): New functions.
812 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
813 * ldlang.c (statement_list): Make global.
814 (output_section_callback_fast): Save pattern in tree node.
815 (lang_add_section): Add pattern parameter, save in lang_input_section.
816 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
817 (lang_insert_orphan, output_section_callback): Likewise.
818 (ldlang_place_orphan): Likewise.
819 (gc_section_callback): Don't set section->pattern.
820 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
821 * testsuite/ld-elf/pr26256-3b.d: Likewise.
822 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
824 2021-01-13 Alan Modra <amodra@gmail.com>
826 * ldlang.h (callback_t): Remove flag_info function parameter.
827 * ldlang.c (walk_wild_consider_section): Adjust to suit.
828 (walk_wild_section_general): Likewise.
829 (output_section_callback_fast, output_section_callback): Likewise.
830 (check_section_callback, gc_section_callback): Likewise.
831 (find_relro_section_callback): Likewise.
833 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
836 * configure.ac: Use GNU_MAKE_JOBSERVER.
837 * aclocal.m4: Regenerated.
838 * configure: Likewise.
840 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
843 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
844 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
845 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
846 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
848 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
851 * configure: Regenerated.
853 2021-01-11 Matt Jenkins <matt@majenko.co.uk>
856 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
857 and mips64r5 to list of known mips targets.
859 2021-01-11 Nick Clifton <nickc@redhat.com>matt@majenko.co.uk
861 * po/pt_BR.po: Updated Brazilian Portuguese translation.
862 ` * po/uk.po: Updated Ukranian translation.
864 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
866 * configure: Regenerated.
868 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
871 * testsuite/ld-x86-64/lam-u48.rd: New file.
872 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
873 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
875 2021-01-09 Nick Clifton <nickc@redhat.com>
877 * configure: Regenerate.
878 * po/ld.pot: Regenerate.
880 2021-01-09 Nick Clifton <nickc@redhat.com>
882 * 2.36 release branch crated.
884 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
886 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
887 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
889 2021-01-09 Alan Modra <amodra@gmail.com>
891 * configure: Regenerate.
892 * Makefile.in: Regenerate.
894 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
896 * configure: Regenerate.
898 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
901 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
902 * testsuite/ld-elf/loadaddr3b.d: Likewise.
903 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
904 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
905 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
906 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
907 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
908 * testsuite/ld-i386/pr19636-1d.d: Likewise.
909 * testsuite/ld-i386/pr19636-1l.d: Likewise.
910 * testsuite/ld-i386/pr19636-2c.d: Likewise.
911 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
912 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
913 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
914 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
915 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
916 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
917 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
918 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
919 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
920 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
921 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
922 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
923 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
924 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
925 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
926 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
927 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
928 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
929 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
930 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
931 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
932 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
933 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
934 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
935 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
936 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
937 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
938 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
939 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
940 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
941 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
942 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
943 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
944 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
945 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
946 * testsuite/ld-x86-64/pr21038b.d: Likewise.
947 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
948 * testsuite/ld-x86-64/pr21038c.d: Likewise.
949 * testsuite/ld-x86-64/pr23854.d: Likewise.
950 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
951 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
952 * testsuite/ld-i386/plt-pic.pd: Likewise.
953 * testsuite/ld-i386/plt-pic2.dd: Likewise.
954 * testsuite/ld-i386/plt.pd: Likewise.
955 * testsuite/ld-i386/plt2.dd: Likewise.
956 * testsuite/ld-i386/tlsbin.rd: Likewise.
957 * testsuite/ld-i386/tlsbin2.rd: Likewise.
958 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
959 * testsuite/ld-i386/tlsdesc.rd: Likewise.
960 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
961 * testsuite/ld-i386/tlsnopic.rd: Likewise.
962 * testsuite/ld-i386/tlspic.rd: Likewise.
963 * testsuite/ld-i386/tlspic2.rd: Likewise.
964 * testsuite/ld-x86-64/mpx3.dd: Likewise.
965 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
966 * testsuite/ld-x86-64/mpx4.dd: Likewise.
967 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
968 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
969 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
970 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
971 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
972 * testsuite/ld-x86-64/plt.pd: Likewise.
973 * testsuite/ld-x86-64/plt2.dd: Likewise.
974 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
975 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
976 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
977 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
978 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
979 * testsuite/ld-x86-64/tlspic.rd: Likewise.
980 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
981 * testsuite/ld-elf/sec64k.exp: Check
982 is_elf_unused_section_symbols.
984 2021-01-07 Alan Modra <amodra@gmail.com>
986 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
987 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
988 * testsuite/ld-scripts/segment-start.d: Likewise.
990 2021-01-07 Alan Modra <amodra@gmail.com>
992 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
993 about dynamic relocations in read-only sections.
994 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
995 * testsuite/ld-elf/ehdr_start.d: Likewise.
996 * testsuite/ld-scripts/pr22267.d: Likewise.
997 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
999 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
1001 2021-01-07 Marcus Comstedt <marcus@mc.pp.se>
1003 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
1004 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
1006 2021-01-07 Alan Modra <amodra@gmail.com>
1008 * po/BLD-POTFILES.in: Regenerate.
1010 2021-01-07 Alan Modra <amodra@gmail.com>
1012 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
1013 complain about relocs in read-only sections. Tidy ASFLAGS append.
1015 2021-01-06 Alan Modra <amodra@gmail.com>
1017 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
1018 base for some tests.
1019 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
1020 * testsuite/ld-sparc/gotop32.sd: Likewise.
1021 * testsuite/ld-sparc/gotop32.td: Likewise.
1022 * testsuite/ld-sparc/gotop64.dd: Likewise.
1023 * testsuite/ld-sparc/gotop64.sd: Likewise.
1024 * testsuite/ld-sparc/gotop64.td: Likewise.
1025 * testsuite/ld-sparc/tlsg32.sd: Likewise.
1026 * testsuite/ld-sparc/tlsg64.sd: Likewise.
1027 * testsuite/ld-sparc/tlspie32.dd: Likewise.
1028 * testsuite/ld-sparc/tlspie64.dd: Likewise.
1029 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
1030 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
1031 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
1032 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
1033 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
1034 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
1035 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
1036 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
1037 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
1038 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
1039 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
1040 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
1041 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
1042 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
1043 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
1044 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
1045 * testsuite/ld-sparc/wdispcall.dd: Likewise.
1047 2021-01-06 Alan Modra <amodra@gmail.com>
1049 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
1050 * testsuite/ld-scripts/rgn-at11.d: Likewise.
1052 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1054 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
1055 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
1056 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
1057 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
1058 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1059 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1060 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1061 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
1062 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
1063 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
1064 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
1065 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
1066 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
1067 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
1069 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
1071 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1073 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
1074 riscv32be*-*-linux*, and riscv64be*-*-linux*.
1075 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
1076 eelf32briscv_ilp32.c.
1077 * Makefile.in: Regenerate.
1078 * emulparams/elf32briscv.sh: Added.
1079 * emulparams/elf32briscv_ilp32.sh: Likewise.
1080 * emulparams/elf32briscv_ilp32f.sh: Likewise.
1081 * emulparams/elf64briscv.sh: Likewise.
1082 * emulparams/elf64briscv_lp64.sh: Likewise.
1083 * emulparams/elf64briscv_lp64f.sh: Likewise.
1085 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1087 * testsuite/ld-ctf/enum-forward.c: New test.
1088 * testsuite/ld-ctf/enum-forward.c: New results.
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/forward.d: Likewise.
1118 * testsuite/ld-ctf/function.d: Likewise.
1119 * testsuite/ld-ctf/slice.d: Likewise.
1120 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1121 * testsuite/ld-ctf/enums.c: New test.
1122 * testsuite/ld-ctf/enums.d: New test.
1124 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1126 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
1128 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1129 * testsuite/ld-ctf/forward.c: New test...
1130 * testsuite/ld-ctf/forward.d: ... and results.
1132 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1134 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1135 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1136 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1137 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1138 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1139 * testsuite/ld-ctf/function.d: Likewise.
1140 * testsuite/ld-ctf/slice.d: Likewise.
1142 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1144 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1145 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1146 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1147 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1148 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1149 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1150 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1151 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1152 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1153 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1154 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1155 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1156 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1157 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1158 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1159 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1160 * testsuite/ld-ctf/cycle-1.d: Likewise.
1161 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1162 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1163 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1164 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1165 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1166 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1167 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1168 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1169 * testsuite/ld-ctf/function.d: Likewise.
1170 * testsuite/ld-ctf/slice.d: Likewise.
1171 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1173 2021-01-05 Alan Modra <amodra@gmail.com>
1175 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
1177 2021-01-05 Alan Modra <amodra@gmail.com>
1180 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
1181 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
1183 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
1186 * ldlang.c (gc_section_callback): Set pattern.
1187 * testsuite/ld-elf/pr26256-1.s: New file.
1188 * testsuite/ld-elf/pr26256-1.t: Likewise.
1189 * testsuite/ld-elf/pr26256-1a.d: Likewise.
1190 * testsuite/ld-elf/pr26256-1b.d: Likewise.
1191 * testsuite/ld-elf/pr26256-2.s: Likewise.
1192 * testsuite/ld-elf/pr26256-2.t: Likewise.
1193 * testsuite/ld-elf/pr26256-2a.d: Likewise.
1194 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
1195 * testsuite/ld-elf/pr26256-2b.d: Likewise.
1196 * testsuite/ld-elf/pr26256-3.s: Likewise.
1197 * testsuite/ld-elf/pr26256-3a.d: Likewise.
1198 * testsuite/ld-elf/pr26256-3a.t: Likewise.
1199 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1200 * testsuite/ld-elf/pr26256-3b.t: Likewise.
1202 2021-01-04 Alan Modra <amodra@gmail.com>
1205 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
1206 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
1207 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
1208 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
1209 * testsuite/ld-i386/tlsbin.rd: Likewise.
1210 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1211 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1212 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1213 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1214 * testsuite/ld-i386/tlspic.rd: Likewise.
1215 * testsuite/ld-i386/tlspic2.rd: Likewise.
1216 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
1217 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
1218 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
1219 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
1220 * testsuite/ld-plugin/pr17973.d: Likewise.
1221 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
1222 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
1223 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
1224 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
1225 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
1226 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
1227 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
1228 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
1229 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
1230 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
1231 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
1232 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
1233 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
1234 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1235 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1236 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1237 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1238 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1239 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1240 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
1241 * testsuite/ld-xtensa/tlspic.rd: Likewise.
1243 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1245 * configure.tgt: Correct comment grammar.
1246 * emultempl/m68hc1xelf.em: Likewise.
1247 * ld.texi: Correct grammar.
1249 2021-01-01 Alan Modra <amodra@gmail.com>
1251 Update year range in copyright notice of all files.
1253 For older changes see ChangeLog-2020
1255 Copyright (C) 2021 Free Software Foundation, Inc.
1257 Copying and distribution of this file, with or without modification,
1258 are permitted in any medium without royalty provided the copyright
1259 notice and this notice are preserved.
1265 version-control: never