1 2021-04-28 Nick Clifton <nickc@redhat.com>
3 * testsuite/ld-elf/anno-sym.s: New test source file.
4 * testsuite/ld-elf/anno-sym.d: New test driver.
5 * testsuite/ld-elf/anno-sym.l: New test error output.
7 2021-04-26 Jan Beulich <jbeulich@suse.com>
9 * testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d,
10 testsuite/ld-x86-64/pcrel16-2.d: New.
11 * testsuite/ld-i386/i386.exp: Run new test.
12 * testsuite/ld-x86-64/x86-64.exp: Likewise.
14 2021-04-23 H.J. Lu <hongjiu.lu@intel.com>
17 * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
18 to tmpdir/ldscripts only if it doesn't exist.
20 2021-04-22 Jan Beulich <jbeulich@suse.com>
23 * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
25 2021-04-21 Nick Clifton <nickc@redhat.com>
27 * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
28 to allow for named section symbols.
29 * testsuite/ld-aarch64/variant_pcs-r.d: Likewise.
30 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
31 * testsuite/ld-alpha/tlsbin.rd: Likewise.
32 * testsuite/ld-alpha/tlsbinr.rd: Likewise.
33 * testsuite/ld-alpha/tlspic.rd: Likewise.
34 * testsuite/ld-arm/rodata-merge-map.sym: Likewise.
35 * testsuite/ld-arm/script-type.sym: Likewise.
36 * testsuite/ld-cris/libdso-2.d: Likewise.
37 * testsuite/ld-cris/pr16044.d: Likewise.
38 * testsuite/ld-elf/sec64k.exp: Likewise.
39 * testsuite/ld-ia64/tlsbin.rd: Likewise.
40 * testsuite/ld-ia64/tlspic.rd: Likewise.
41 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
42 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
43 * testsuite/ld-mmix/bspec1.d: Likewise.
44 * testsuite/ld-mmix/bspec2.d: Likewise.
45 * testsuite/ld-mmix/local1.d: Likewise.
46 * testsuite/ld-mmix/local3.d: Likewise.
47 * testsuite/ld-mmix/local5.d: Likewise.
48 * testsuite/ld-mmix/local7.d: Likewise.
49 * testsuite/ld-mmix/undef-3.d: Likewise.
50 * testsuite/ld-powerpc/tlsso.r: Likewise.
51 * testsuite/ld-powerpc/tlsso32.r: Likewise.
52 * testsuite/ld-powerpc/tlstocso.r: Likewise.
53 * testsuite/ld-s390/tlsbin.rd: Likewise.
54 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
55 * testsuite/ld-s390/tlspic.rd: Likewise.
56 * testsuite/ld-s390/tlspic_64.rd: Likewise.
57 * testsuite/ld-sparc/gotop32.rd: Likewise.
58 * testsuite/ld-sparc/gotop64.rd: Likewise.
59 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
60 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
61 * testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
62 * testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
63 * testsuite/ld-sparc/tlssunpic32.rd: Likewise.
64 * testsuite/ld-sparc/tlssunpic64.rd: Likewise.
65 * testsuite/ld-tic6x/common.d: Likewise.
66 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
67 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
68 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
69 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
70 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
71 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
72 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
73 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
74 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
75 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
76 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
77 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
78 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
80 2021-04-20 Clément Chigot <clement.chigot@atos.net>
83 * testsuite/ld-powerpc/aix52.exp: Add new test.
84 * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
85 * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
86 * testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
87 * testsuite/ld-powerpc/aix-neg-reloc.s: New test.
89 2021-04-13 Nick Clifton <nickc@redhat.com>
91 * ld.texi (Options): Add note about the effect of --as-needed on
92 the --rpath and --rpath-link options on Linux based systems.
94 2021-04-13 Alan Modra <amodra@gmail.com>
97 * libdep_plugin.c (str2vec): Don't pass a potentially signed char
100 2021-04-12 Alan Modra <amodra@gmail.com>
102 * configure.ac (--enable-checking): Add support.
103 * config.in: Regenerate.
104 * configure: Regenerate.
106 2021-04-12 Alan Modra <amodra@gmail.com>
108 * emultempl/mipself.em (mips_create_output_section_statements):
109 Pass base type of hash table to is_elf_hash_table.
110 * ldelf.c (ldelf_after_open): Likewise.
112 2021-04-12 Alan Modra <amodra@gmail.com>
115 * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
116 the symbol hash table is the correct type before accessing
117 elf_link_hash_entry symbols.
118 * plugin.c (is_visible_from_outside): Likewise.
119 * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
120 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
122 2021-04-09 Alan Modra <amodra@gmail.com>
124 * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
125 * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
126 * testsuite/ld-powerpc/notoc2.d: Likewise.
127 * testsuite/ld-powerpc/notoc3.d: Likewise.
128 * testsuite/ld-powerpc/pcrelopt.d: Likewise.
129 * testsuite/ld-powerpc/startstop.d: Likewise.
130 * testsuite/ld-powerpc/tlsget.d: Likewise.
131 * testsuite/ld-powerpc/tlsget2.d: Likewise.
132 * testsuite/ld-powerpc/tlsld.d: Likewise.
133 * testsuite/ld-powerpc/weak1.d: Likewise.
134 * testsuite/ld-powerpc/weak1so.d: Likewise.
136 2021-04-06 Jan Beulich <jbeulich@suse.com>
138 * pe-dll.c (generate_reloc): Bail immediately when .reloc is
139 being discarded. Warn when relocated entry is above .reloc.
141 2021-04-05 Alan Modra <amodra@gmail.com>
143 * configure.ac: Move initfini-array arg handling earlier. Don't
144 check for string.h, strings.h, stdlib.h, or locale.h. Do check
145 for inttypes.h, stdint.h, sys/types.h. Don't check for
146 setlocale, free, getev or strstr.
147 (AC_ISC_POSIX): Don't invoke.
148 * sysdep.h: Include string.h and stdlib.h unconditionally. Test
149 HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and
150 getenv fallback declarations.
151 * ld.h: Don't test HAVE_LOCALE_H.
152 * ldmain.c: Don't test HAVE_SETLOCALE.
153 * config.in: Regenerate.
154 * configure: Regenerate.
156 2021-04-01 Tamar Christina <tamar.christina@arm.com>
159 * testsuite/ld-pe/pe.exp: Add test.
160 * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
161 * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
163 2021-04-01 Martin Liska <mliska@suse.cz>
165 * ldbuildid.c (strneq): Remove strneq and use startswith.
166 (validate_build_id_style): Likewise.
167 (compute_build_id_size): Likewise.
169 2021-03-31 Alan Modra <amodra@gmail.com>
171 * sysdep.h (POISON_BFD_BOOLEAN): Define.
172 * configure.ac (elf_list_options, elf_shlib_list_options=false),
173 (elf_plt_unwind_list_options=false): Replace FALSE with false,
175 * emulparams/call_nop.sh, * emulparams/cet.sh,
176 * emulparams/dynamic_undefined_weak.sh,
177 * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
178 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
179 * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
180 * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
181 * emulparams/reloc_overflow.sh, * emulparams/static.sh,
182 * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
183 * emultempl/aix.em, * emultempl/alphaelf.em,
184 * emultempl/armcoff.em, * emultempl/armelf.em,
185 * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
186 * emultempl/cr16elf.em, * emultempl/crxelf.em,
187 * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
188 * emultempl/hppaelf.em, * emultempl/linux.em,
189 * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
190 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
191 * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
192 * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
193 * emultempl/pep.em, * emultempl/ppc32elf.em,
194 * emultempl/ppc64elf.em, * emultempl/rxelf.em,
195 * emultempl/rxlinux.em, * emultempl/scoreelf.em,
196 * emultempl/solaris2.em, * emultempl/spuelf.em,
197 * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
198 * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
199 * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
200 * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
201 * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
202 * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
203 * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
204 * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
205 * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
206 bfd_boolean with bool, FALSE with false, and TRUE with true.
207 * configure: Regenerate.
209 2021-03-31 Alan Modra <amodra@gmail.com>
211 * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
212 * emultempl/nds32elf.em: Likewise.
213 * testsuite/ld-elf/mbind2b.c: Likewise.
214 * testsuite/ld-elf/pr18718.c: Likewise.
215 * testsuite/ld-elf/pr18720a.c: Likewise.
216 * testsuite/ld-elf/pr25749-1.c: Likewise.
217 * testsuite/ld-elf/pr25749-1a.c: Likewise.
218 * testsuite/ld-elf/pr25749-1b.c: Likewise.
219 * testsuite/ld-elf/pr25749-1c.c: Likewise.
220 * testsuite/ld-elf/pr25749-1d.c: Likewise.
221 * testsuite/ld-elf/pr25749-2.c: Likewise.
222 * testsuite/ld-elf/pr25754-1a.c: Likewise.
223 * testsuite/ld-elf/pr25754-2a.c: Likewise.
224 * testsuite/ld-elf/pr25754-3a.c: Likewise.
225 * testsuite/ld-elf/pr25754-4a.c: Likewise.
226 * testsuite/ld-elf/pr25754-5a.c: Likewise.
227 * testsuite/ld-elf/pr25754-6a.c: Likewise.
229 2021-03-29 Alan Modra <amodra@gmail.com>
231 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
233 * lexsup.c (parse_args): Likewise.
234 * pe-dll.c (pe_dll_id_target): Likewise.
236 2021-03-25 Nick Alcock <nick.alcock@oracle.com>
238 * testsuite/ld-ctf/array.d: Only check that the data object
239 section is nonempty: do not check its exact size.
240 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
241 * testsuite/ld-ctf/slice.d: Likewise.
242 * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
243 func info section too.
244 * testsuite/ld-ctf/function.d: Likewise, for the func info section.
246 2021-03-22 Martin Liska <mliska@suse.cz>
248 * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
249 * emultempl/beos.em: Likewise.
250 * emultempl/elf.em: Likewise.
251 * emultempl/pe.em: Likewise.
252 * emultempl/pep.em: Likewise.
253 * emultempl/xtensaelf.em: Likewise.
254 * ldctor.c (ctor_prio): Likewise.
255 * ldelf.c (ldelf_try_needed): Likewise.
256 (ldelf_parse_ld_so_conf): Likewise.
257 (ldelf_after_open): Likewise.
258 (output_rel_find): Likewise.
259 (ldelf_place_orphan): Likewise.
260 * ldfile.c (ldfile_add_library_path): Likewise.
261 * ldlang.c (lang_add_input_file): Likewise.
262 * ldmain.c (get_sysroot): Likewise.
263 (get_emulation): Likewise.
264 (add_archive_element): Likewise.
265 * ldwrite.c (unsplittable_name): Likewise.
266 (clone_section): Likewise.
267 * lexsup.c (parse_args): Likewise.
268 * pe-dll.c (is_import): Likewise.
269 (pe_implied_import_dll): Likewise.
271 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
274 * testsuite/ld-x86-64/pr27590.rd: New file.
275 * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
276 * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
277 * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
279 2021-03-20 Alan Modra <amodra@gmail.com>
282 * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
283 for all sections except .stabstr.
285 2021-03-19 Alan Modra <amodra@gmail.com>
288 * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
290 * testsuite/ld-elf/pr27590b.d: Likewise.
292 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
295 * testsuite/ld-elf/pr27590.s: New file.
296 * testsuite/ld-elf/pr27590a.d: Likewise.
297 * testsuite/ld-elf/pr27590b.d: Likewise.
298 * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
299 --reduce-memory-overheads.
301 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
304 * testsuite/ld-x86-64/pr27587.err: New file.
305 * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
306 * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
307 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
309 2021-03-18 Nick Alcock <nick.alcock@oracle.com>
311 * testsuite/ld-ctf/slice.c: Check slices of enums too.
312 * testsuite/ld-ctf/slice.d: Results adjusted.
314 2021-03-16 Nick Clifton <nickc@redhat.com>
316 * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
319 2021-03-15 Jan Beulich <jbeulich@suse.com>
321 * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
323 2021-03-12 Alan Modra <amodra@gmail.com>
325 * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
326 (ALL_64_EMULATION_SOURCES): ..here.
327 * Makefile.in: Regenerate.
329 2021-03-12 Clément Chigot <clement.chigot@atos.net>
331 * emultempl/aix.em: Ensure .tdata section is removed
332 if empty, even with -r flag.
333 * scripttempl/aix.sc: Handle TLS sections.
334 * testsuite/ld-powerpc/aix52.exp: Add new tests.
335 * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
336 * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
337 * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
338 * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
339 * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
340 * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
341 * testsuite/ld-powerpc/aix-tls-section.ex: New test.
342 * testsuite/ld-powerpc/aix-tls-section.s: New test.
344 2021-03-12 Clément Chigot <clement.chigot@atos.net>
346 * scripttempl/aix.sc: Add .te to .data section.
347 * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
348 Add aix-largetoc-1 test.
349 * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
350 * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
351 * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
352 * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
354 2021-03-12 Alan Modra <amodra@gmail.com>
356 * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
357 arrange to define __main for some run_dump_test tests.
358 * testsuite/ld-gc/pr13683.d: Accept more symbols.
359 * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
360 * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
361 * testsuite/ld-srec/srec.exp: Likewise.
362 * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
364 2021-03-11 Nelson Chu <nelson.chu@sifive.com>
366 * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
367 many times if riscv_restart_relax_sections returns TRUE.
368 * testsuite/ld-riscv-elf/restart-relax.d: New testcase. Before
369 applying this patch, the call won't be relaxed to jal; But now we
370 have more chances to do relaxations.
371 * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
372 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
374 2021-03-10 Jan Beulich <jbeulich@suse.com>
376 * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
378 * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
380 * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
382 2021-03-09 Jan Beulich <jbeulich@suse.com>
384 * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
386 * testsuite/ld-pe/reloc.d: xfail for mcore.
388 2021-03-09 Jan Beulich <jbeulich@suse.com>
390 * testsuite/ld-scripts/alignof.exp,
391 testsuite/ld-scripts/data.exp,
392 testsuite/ld-scripts/default-script.exp,
393 testsuite/ld-scripts/log2.exp,
394 testsuite/ld-scripts/print-memory-usage.exp,
395 testsuite/ld-scripts/sizeof.exp,
396 testsuite/ld-undefined/weak-undef.exp: Set image base to zero
398 * testsuite/ld-scripts/default-script1.d,
399 testsuite/ld-scripts/default-script2.d,
400 testsuite/ld-scripts/default-script3.d,
401 testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
403 2021-03-05 H.J. Lu <hongjiu.lu@intel.com>
407 * ldelf.c (ldelf_set_output_arch): New function.
408 * ldelf.h (ldelf_set_output_arch): New prototype.
409 * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
410 ldelf_set_output_arch.
411 * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
412 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
413 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
414 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
415 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
416 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
417 * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
418 * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
419 * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
421 2021-03-04 Jan Beulich <jbeulich@suse.com>
423 * testsuite/ld-scripts/map-address.exp: Set image base to zero
425 * testsuite/ld-scripts/map-address.t: Place .text.
427 2021-03-04 Jan Beulich <jbeulich@suse.com>
429 * ldexp.c (ldexp_is_final_sym_absolute): New.
430 * ldexp.h (ldexp_is_final_sym_absolute): Declare.
431 * pe-dll.c (generate_reloc): Skip absolute symbols.
432 * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
433 * testsuite/ld-pe/pe.exp: Run new test.
435 2021-03-03 Alan Modra <amodra@gmail.com>
438 * ldlang.c (insert_undefined): Don't mark symbols here.
439 (lang_mark_undefineds): Do so here instead, new function.
440 (lang_process): Call lang_mark_undefineds.
441 * testsuite/ld-gc/start3.d,
442 * testsuite/ld-gc/start3.s: New test.
443 * testsuite/ld-gc/start4.d,
444 * testsuite/ld-gc/start4.s: New test.
445 * testsuite/ld-gc/gc.exp: Run them.
447 2021-03-03 Alan Modra <amodra@gmail.com>
449 * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
450 Move tests with ELF section directives to is_elf_format block.
451 * testsuite/ld-gc/abi-note.d: Run on more targets.
452 * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
453 * testsuite/ld-gc/start.d: Likewise.
454 * testsuite/ld-gc/start2.d: Likewise.
455 * testsuite/ld-gc/stop.d: Likewise.
456 * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
457 * testsuite/ld-gc/start.s: Likewise.
458 * testsuite/ld-gc/start2.s: Likewise.
460 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
462 * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
464 2021-03-02 Alan Modra <amodra@gmail.com>
466 * testsuite/ld-powerpc/startstop.d,
467 * testsuite/ld-powerpc/startstop.r,
468 * testsuite/ld-powerpc/startstop.s: New test.
469 * testsuite/ld-powerpc/powerpc.exp: Run it.
471 2021-03-02 Alan Modra <amodra@gmail.com>
473 * testsuite/ld-powerpc/weak1.d,
474 * testsuite/ld-powerpc/weak1.r,
475 * testsuite/ld-powerpc/weak1.s,
476 * testsuite/ld-powerpc/weak1so.d,
477 * testsuite/ld-powerpc/weak1so.r: New tests.
478 * testsuite/ld-powerpc/powerpc.exp: Run them.
480 2021-03-01 Hannes Domani <ssbssa@sourceware.org>
481 Nick Clifton <nickc@redhat.com>
484 * scripttempl/pe.sc: Add DWARF-5 section names.
485 * scripttempl/pep.sc: Likewise.
487 2021-03-01 Alan Modra <amodra@gmail.com>
488 Fangrui Song <maskray@google.com>
490 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
491 * lexsup.c (elf_static_list_options): Display help for them. Move
492 help for -z stack-size to here from elf_shlib_list_options. Add
493 help for -z start-stop-visibility and -z undefs.
494 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
495 * NEWS: Mention -z start-stop-gc.
496 * testsuite/ld-gc/start2.s,
497 * testsuite/ld-gc/start2.d: New test.
498 * testsuite/ld-gc/gc.exp: Run it.
500 2021-03-01 Alan Modra <amodra@gmail.com>
502 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
503 symbols undefweak if that was how they were referenced. Undo
506 2021-03-01 Alan Modra <amodra@gmail.com>
508 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
509 * testsuite/ld-elf/pr27128a.d: Likewise.
510 * testsuite/ld-elf/pr27128b.d: Likewise.
511 * testsuite/ld-elf/pr27128c.d: Likewise.
512 * testsuite/ld-elf/pr27128d.d: Likewise.
513 * testsuite/ld-elf/pr27128e.d: Likewise.
515 2021-02-26 Alan Modra <amodra@gmail.com>
518 * testsuite/ld-plugin/pr27441a.c,
519 * testsuite/ld-plugin/pr27441b.c,
520 * testsuite/ld-plugin/pr27441c.c,
521 * testsuite/ld-plugin/pr27441c.d: New test.
522 * testsuite/ld-plugin/lto.exp: Run it.
524 2021-02-25 Jan Beulich <jbeulich@suse.com>
526 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
528 2021-02-21 Alan Modra <amodra@gmail.com>
530 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
531 defined in an object file.
532 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
533 * testsuite/ld-scripts/defined5.d: Expect a warning.
535 2021-02-19 Alan Modra <amodra@gmail.com>
537 * testsuite/lib/ld-lib.exp: Whitespace.
538 (load_common_lib): Expand single use and delete this proc.
539 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
540 Use -B for clang too.
542 2021-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
544 * testplugin.c (record_read_length): Remove debug fprintf.
546 2021-02-14 Alan Modra <amodra@gmail.com>
548 * testsuite/ld-cdtest/cdtest.exp,
549 * testsuite/ld-checks/checks.exp,
550 * testsuite/ld-elf/binutils.exp,
551 * testsuite/ld-elf/compress.exp,
552 * testsuite/ld-elf/dwarf.exp,
553 * testsuite/ld-elf/exclude.exp,
554 * testsuite/ld-elf/frame.exp,
555 * testsuite/ld-elf/indirect.exp,
556 * testsuite/ld-elf/linux-x86.exp,
557 * testsuite/ld-elf/sec-to-seg.exp,
558 * testsuite/ld-elf/tls_common.exp,
559 * testsuite/ld-elfcomm/elfcomm.exp,
560 * testsuite/ld-elfvers/vers.exp,
561 * testsuite/ld-elfvsb/elfvsb.exp,
562 * testsuite/ld-elfweak/elfweak.exp,
563 * testsuite/ld-ifunc/binutils.exp,
564 * testsuite/ld-mips-elf/mips-elf-flags.exp,
565 * testsuite/ld-misc/defsym.exp,
566 * testsuite/ld-mn10300/mn10300.exp,
567 * testsuite/ld-plugin/lto.exp,
568 * testsuite/ld-plugin/plugin.exp,
569 * testsuite/ld-scripts/align.exp,
570 * testsuite/ld-scripts/assert.exp,
571 * testsuite/ld-scripts/crossref.exp,
572 * testsuite/ld-scripts/defined.exp,
573 * testsuite/ld-scripts/extern.exp,
574 * testsuite/ld-scripts/log2.exp,
575 * testsuite/ld-scripts/map-address.exp,
576 * testsuite/ld-scripts/phdrs.exp,
577 * testsuite/ld-scripts/phdrs2.exp,
578 * testsuite/ld-scripts/script.exp,
579 * testsuite/ld-scripts/section-flags.exp,
580 * testsuite/ld-scripts/sizeof.exp,
581 * testsuite/ld-scripts/weak.exp,
582 * testsuite/ld-selective/selective.exp,
583 * testsuite/ld-sh/sh.exp,
584 * testsuite/ld-shared/shared.exp,
585 * testsuite/ld-srec/srec.exp,
586 * testsuite/ld-tic6x/tic6x.exp,
587 * testsuite/ld-undefined/undefined.exp,
588 * testsuite/ld-undefined/weak-undef.exp,
589 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
590 perror. Instead report "unsupported" or "fail".
592 2021-02-12 Nick Clifton <nickc@redhat.com>
594 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
595 following debug links.
597 2021-02-11 Alan Modra <amodra@gmail.com>
599 * NEWS: Mention arm-symbianelf removal.
601 2021-02-09 Alan Modra <amodra@gmail.com>
603 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
604 Don't include symbian dep file.
605 * configure.tgt: Remove arm*-*-symbianelf* entry.
606 * emulparams/armsymbian.sh: Delete.
607 * ld.texi: Don't mention symbian.
608 * scripttempl/armbpabi.sc: Delete.
609 * testsuite/ld-arm/symbian-seg1.d: Delete.
610 * testsuite/ld-arm/symbian-seg1.s: Delete.
611 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
612 * Makefile.in: Regenerate.
613 * po/BLD-POTFILES.in: Regenerate.
615 2021-02-07 H.J. Lu <hongjiu.lu@intel.com>
618 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
620 * testsuite/ld-x86-64/x86-64.exp: Likewise.
622 2021-01-26 Nick Alcock <nick.alcock@oracle.com>
624 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
627 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
630 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
631 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
632 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
633 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
634 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
635 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
636 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
638 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
641 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
642 * testsuite/ld-plugin/pr15146.d: Restored.
643 * testsuite/ld-plugin/pr15146a.c: Likewise.
644 * testsuite/ld-plugin/pr15146b.c: Likewise.
645 * testsuite/ld-plugin/pr15146c.c: Likewise.
646 * testsuite/ld-plugin/pr15146d.c: Likewise.
648 2021-02-04 Alan Modra <amodra@gmail.com>
650 * testsuite/ld-plugin/pr27311d.c: New test.
651 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
652 and link new test as pr27311-2.
654 2021-02-03 Alan Modra <amodra@gmail.com>
656 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
657 Link with --as-needed.
659 2021-02-02 Alan Modra <amodra@gmail.com>
661 * testsuite/ld-plugin/pr27311.d,
662 * testsuite/ld-plugin/pr27311.ver,
663 * testsuite/ld-plugin/pr27311a.c,
664 * testsuite/ld-plugin/pr27311b.c,
665 * testsuite/ld-plugin/pr27311c.c: New testcase.
666 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
669 2021-02-01 Emery Hemingway <ehmry@posteo.net>
671 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
673 2021-02-01 Alan Modra <amodra@gmail.com>
675 * ldgram.y (defsym_expr): Use assignment rule.
676 * ldlex.h (ldlex_defsym): Delete.
677 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
679 2021-02-01 Alan Modra <amodra@gmail.com>
681 * ldgram.y (section): Call ldlex_backup. Remove empty action.
682 * ldlex.h (ldlex_backup): Declare.
683 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
684 chars, use SYMBOLNAMECHAR.
685 (ldlex_backup): New function.
687 2021-02-01 Alan Modra <amodra@gmail.com>
689 * ldgram.y: Whitespace fixes.
691 2021-02-01 Alan Modra <amodra@gmail.com>
693 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
695 2021-01-29 Alan Modra <amodra@gmail.com>
697 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
699 2021-01-28 H.J. Lu <hongjiu.lu@intel.com>
702 * testsuite/ld-elf/pr27259.d: New file.
703 * testsuite/ld-elf/pr27259.s: Likewise.
705 2021-01-28 Alan Modra <amodra@gmail.com>
708 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
709 prevent endless looping of linked-to sections.
711 2021-01-26 H.J. Lu <hongjiu.lu@intel.com>
713 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
715 2021-01-26 Alan Modra <amodra@gmail.com>
718 * emulparams/alphavms.sh: Don't set COMPILE_IN.
719 * emulparams/elf64_ia64_vms.sh: Likewise.
720 * emulparams/elf64mmix.sh: Likewise.
721 * emulparams/elf_iamcu.sh: Likewise.
722 * emulparams/elf_k1om.sh: Likewise.
723 * emulparams/elf_l1om.sh: Likewise.
724 * emulparams/mmo.sh: Likewise.
725 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
726 * scripttempl/pdp11.sc: Use it.
727 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
728 instead use .xe script. Support scripts from file system.
729 * emultempl/beos.em: Support scripts from file system.
730 * emultempl/pe.em: Likewise.
731 * emultempl/pep.em: Likewise.
732 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
734 2021-01-25 Fangrui Song <maskray@google.com>
737 * scripttempl/DWARF.sc: Add .debug_* sections.
739 2021-01-25 Nick Clifton <nickc@redhat.com>
741 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
742 .debug_line_str and .debug_str_offsets. Move .debug_macro and
743 .debug_addr into DWARF-5 section.
745 2021-01-21 Alan Modra <amodra@gmail.com>
747 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
749 2021-01-20 Alan Modra <amodra@gmail.com>
751 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
752 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
753 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
754 * testsuite/ld-powerpc/tlsget.wf: Likewise.
755 * testsuite/ld-powerpc/tlsget2.d: Likewise.
756 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
757 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
758 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
759 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
760 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
761 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
762 * testsuite/ld-powerpc/tlsexers.r: Likewise.
763 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
764 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
765 * testsuite/ld-powerpc/tlsso.r: Likewise.
766 * testsuite/ld-powerpc/tlsso32.r: Likewise.
767 * testsuite/ld-powerpc/tlstocso.r: Likewise.
769 2021-01-19 Nick Alcock <nick.alcock@oracle.com>
771 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
772 symbols by the optimizer.
773 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
775 2021-01-19 Nelson Chu <nelson.chu@sifive.com>
777 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
778 if target is riscv little endian. Otherwise, return false.
779 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
780 targets by [riscv_little_endian].
782 2021-01-18 Alan Modra <amodra@gmail.com>
785 * ldlang.c (map_input_to_output_sections): Start with a read-only
786 section for data statements.
787 * testsuite/ld-elf/size-2.d: Adjust to suit.
789 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
792 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
793 * testsuite/ld-i386/pr27193.dd: New file.
794 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
795 * testsuite/ld-i386/pr27193b.s: Likewise.
797 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
800 * testsuite/ld-plugin/lto.exp: Increase the max number of open
801 files to 20 for PR binutils/23460 test.
803 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
806 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
807 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
808 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
811 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
813 * NEWS: Mention -z report-relative-reloc.
814 * ld.texi: Document -z report-relative-reloc.
815 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
816 * emulparams/elf_i386.sh: Likewse.
817 * emulparams/elf_x86_64.sh: Likewse.
818 * emulparams/x86-report-relative.sh: New file.
819 * testsuite/ld-i386/report-reloc-1.d: Likewse.
820 * testsuite/ld-i386/report-reloc-1.l: Likewse.
821 * testsuite/ld-i386/report-reloc-1.s: Likewse.
822 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
823 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
824 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
825 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
826 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
827 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
830 2021-01-16 Alan Modra <amodra@gmail.com>
833 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
835 * testsuite/ld-elfvers/vers16.dsym: Likewise.
837 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
839 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
840 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
841 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
842 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
843 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
844 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
846 2021-01-14 Nick Clifton <nickc@redhat.com>
848 * po/fr.po: Updated French translation.
850 2021-01-14 Mike Frysinger <vapier@gentoo.org>
852 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
854 2021-01-14 Alan Modra <amodra@gmail.com>
857 * ldelfgen.c (compare_link_order): Protect access of ELF section
859 (add_link_order_input_section): Remove redundant NULL check.
861 (ldelf_map_segments): Use bfd_get_flavour.
863 2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
865 * ldelfgen.c (add_link_order_input_section): Check for ELF input
866 before accessing ELF section data.
868 2021-01-13 Alan Modra <amodra@gmail.com>
870 * Makefile.in: Regenerate.
872 2021-01-13 Alan Modra <amodra@gmail.com>
875 * ldlang.h (lang_output_section_statement_type): Add data field.
876 (lang_input_section_type, lang_section_bst_type): Add pattern field.
877 (statement_list): Declare.
878 (lang_add_section): Adjust prototype.
879 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
880 * emultempl/armelf.em: Likewise.
881 * emultempl/beos.em: Likewise.
882 * emultempl/cskyelf.em: Likewise.
883 * emultempl/hppaelf.em: Likewise.
884 * emultempl/m68hc1xelf.em: Likewise.
885 * emultempl/metagelf.em: Likewise.
886 * emultempl/mipself.em: Likewise.
887 * emultempl/mmo.em: Likewise.
888 * emultempl/msp430.em: Likewise.
889 * emultempl/nios2elf.em: Likewise.
890 * emultempl/pe.em: Likewise.
891 * emultempl/pep.em: Likewise.
892 * emultempl/ppc64elf.em: Likewise.
893 * emultempl/spuelf.em: Likewise.
894 * emultempl/vms.em: Likewise.
896 * ldelfgen.c: Include ldctor.h.
897 (struct os_sections): New.
898 (add_link_order_input_section, link_order_scan): New functions.
899 (compare_link_order, fixup_link_order): New functions.
900 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
901 * ldlang.c (statement_list): Make global.
902 (output_section_callback_fast): Save pattern in tree node.
903 (lang_add_section): Add pattern parameter, save in lang_input_section.
904 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
905 (lang_insert_orphan, output_section_callback): Likewise.
906 (ldlang_place_orphan): Likewise.
907 (gc_section_callback): Don't set section->pattern.
908 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
909 * testsuite/ld-elf/pr26256-3b.d: Likewise.
910 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
912 2021-01-13 Alan Modra <amodra@gmail.com>
914 * ldlang.h (callback_t): Remove flag_info function parameter.
915 * ldlang.c (walk_wild_consider_section): Adjust to suit.
916 (walk_wild_section_general): Likewise.
917 (output_section_callback_fast, output_section_callback): Likewise.
918 (check_section_callback, gc_section_callback): Likewise.
919 (find_relro_section_callback): Likewise.
921 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
924 * configure.ac: Use GNU_MAKE_JOBSERVER.
925 * aclocal.m4: Regenerated.
926 * configure: Likewise.
928 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
931 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
932 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
933 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
934 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
936 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
939 * configure: Regenerated.
941 2021-01-11 Matt Jenkins <matt@majenko.co.uk>
944 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
945 and mips64r5 to list of known mips targets.
947 2021-01-11 Nick Clifton <nickc@redhat.com>matt@majenko.co.uk
949 * po/pt_BR.po: Updated Brazilian Portuguese translation.
950 ` * po/uk.po: Updated Ukranian translation.
952 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
954 * configure: Regenerated.
956 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
959 * testsuite/ld-x86-64/lam-u48.rd: New file.
960 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
961 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
963 2021-01-09 Nick Clifton <nickc@redhat.com>
965 * configure: Regenerate.
966 * po/ld.pot: Regenerate.
968 2021-01-09 Nick Clifton <nickc@redhat.com>
970 * 2.36 release branch crated.
972 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
974 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
975 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
977 2021-01-09 Alan Modra <amodra@gmail.com>
979 * configure: Regenerate.
980 * Makefile.in: Regenerate.
982 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
984 * configure: Regenerate.
986 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
989 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
990 * testsuite/ld-elf/loadaddr3b.d: Likewise.
991 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
992 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
993 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
994 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
995 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
996 * testsuite/ld-i386/pr19636-1d.d: Likewise.
997 * testsuite/ld-i386/pr19636-1l.d: Likewise.
998 * testsuite/ld-i386/pr19636-2c.d: Likewise.
999 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1000 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1001 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1002 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1003 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1004 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1005 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1006 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1007 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1008 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1009 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1010 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1011 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1012 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1013 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1014 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1015 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1016 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1017 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1018 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1019 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1020 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1021 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1022 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1023 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1024 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1025 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
1026 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
1027 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
1028 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
1029 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
1030 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
1031 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1032 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
1033 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1034 * testsuite/ld-x86-64/pr21038b.d: Likewise.
1035 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1036 * testsuite/ld-x86-64/pr21038c.d: Likewise.
1037 * testsuite/ld-x86-64/pr23854.d: Likewise.
1038 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1039 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1040 * testsuite/ld-i386/plt-pic.pd: Likewise.
1041 * testsuite/ld-i386/plt-pic2.dd: Likewise.
1042 * testsuite/ld-i386/plt.pd: Likewise.
1043 * testsuite/ld-i386/plt2.dd: Likewise.
1044 * testsuite/ld-i386/tlsbin.rd: Likewise.
1045 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1046 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1047 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1048 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
1049 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1050 * testsuite/ld-i386/tlspic.rd: Likewise.
1051 * testsuite/ld-i386/tlspic2.rd: Likewise.
1052 * testsuite/ld-x86-64/mpx3.dd: Likewise.
1053 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
1054 * testsuite/ld-x86-64/mpx4.dd: Likewise.
1055 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
1056 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
1057 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1058 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1059 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1060 * testsuite/ld-x86-64/plt.pd: Likewise.
1061 * testsuite/ld-x86-64/plt2.dd: Likewise.
1062 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1063 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1064 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1065 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1066 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
1067 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1068 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1069 * testsuite/ld-elf/sec64k.exp: Check
1070 is_elf_unused_section_symbols.
1072 2021-01-07 Alan Modra <amodra@gmail.com>
1074 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
1075 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
1076 * testsuite/ld-scripts/segment-start.d: Likewise.
1078 2021-01-07 Alan Modra <amodra@gmail.com>
1080 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
1081 about dynamic relocations in read-only sections.
1082 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1083 * testsuite/ld-elf/ehdr_start.d: Likewise.
1084 * testsuite/ld-scripts/pr22267.d: Likewise.
1085 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
1087 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
1089 2021-01-07 Marcus Comstedt <marcus@mc.pp.se>
1091 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
1092 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
1094 2021-01-07 Alan Modra <amodra@gmail.com>
1096 * po/BLD-POTFILES.in: Regenerate.
1098 2021-01-07 Alan Modra <amodra@gmail.com>
1100 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
1101 complain about relocs in read-only sections. Tidy ASFLAGS append.
1103 2021-01-06 Alan Modra <amodra@gmail.com>
1105 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
1106 base for some tests.
1107 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
1108 * testsuite/ld-sparc/gotop32.sd: Likewise.
1109 * testsuite/ld-sparc/gotop32.td: Likewise.
1110 * testsuite/ld-sparc/gotop64.dd: Likewise.
1111 * testsuite/ld-sparc/gotop64.sd: Likewise.
1112 * testsuite/ld-sparc/gotop64.td: Likewise.
1113 * testsuite/ld-sparc/tlsg32.sd: Likewise.
1114 * testsuite/ld-sparc/tlsg64.sd: Likewise.
1115 * testsuite/ld-sparc/tlspie32.dd: Likewise.
1116 * testsuite/ld-sparc/tlspie64.dd: Likewise.
1117 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
1118 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
1119 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
1120 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
1121 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
1122 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
1123 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
1124 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
1125 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
1126 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
1127 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
1128 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
1129 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
1130 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
1131 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
1132 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
1133 * testsuite/ld-sparc/wdispcall.dd: Likewise.
1135 2021-01-06 Alan Modra <amodra@gmail.com>
1137 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
1138 * testsuite/ld-scripts/rgn-at11.d: Likewise.
1140 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1142 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
1143 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
1144 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
1145 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
1146 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1147 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1148 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1149 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
1150 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
1151 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
1152 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
1153 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
1154 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
1155 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
1157 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
1159 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1161 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
1162 riscv32be*-*-linux*, and riscv64be*-*-linux*.
1163 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
1164 eelf32briscv_ilp32.c.
1165 * Makefile.in: Regenerate.
1166 * emulparams/elf32briscv.sh: Added.
1167 * emulparams/elf32briscv_ilp32.sh: Likewise.
1168 * emulparams/elf32briscv_ilp32f.sh: Likewise.
1169 * emulparams/elf64briscv.sh: Likewise.
1170 * emulparams/elf64briscv_lp64.sh: Likewise.
1171 * emulparams/elf64briscv_lp64f.sh: Likewise.
1173 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1175 * testsuite/ld-ctf/enum-forward.c: New test.
1176 * testsuite/ld-ctf/enum-forward.c: New results.
1178 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1180 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1181 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1182 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1183 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1184 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1185 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1186 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1187 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1188 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1189 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1190 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1191 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1192 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1193 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1194 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1195 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1196 * testsuite/ld-ctf/cycle-1.d: Likewise.
1197 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1198 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1199 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1200 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1201 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1202 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1203 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1204 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1205 * testsuite/ld-ctf/forward.d: Likewise.
1206 * testsuite/ld-ctf/function.d: Likewise.
1207 * testsuite/ld-ctf/slice.d: Likewise.
1208 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1209 * testsuite/ld-ctf/enums.c: New test.
1210 * testsuite/ld-ctf/enums.d: New test.
1212 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1214 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
1216 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1217 * testsuite/ld-ctf/forward.c: New test...
1218 * testsuite/ld-ctf/forward.d: ... and results.
1220 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1222 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1223 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1224 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1225 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1226 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1227 * testsuite/ld-ctf/function.d: Likewise.
1228 * testsuite/ld-ctf/slice.d: Likewise.
1230 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1232 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1233 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1234 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1235 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1236 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1237 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1238 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1239 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1240 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1241 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1242 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1243 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1244 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1245 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1246 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1247 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1248 * testsuite/ld-ctf/cycle-1.d: Likewise.
1249 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1250 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1251 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1252 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1253 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1254 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1255 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1256 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1257 * testsuite/ld-ctf/function.d: Likewise.
1258 * testsuite/ld-ctf/slice.d: Likewise.
1259 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1261 2021-01-05 Alan Modra <amodra@gmail.com>
1263 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
1265 2021-01-05 Alan Modra <amodra@gmail.com>
1268 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
1269 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
1271 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
1274 * ldlang.c (gc_section_callback): Set pattern.
1275 * testsuite/ld-elf/pr26256-1.s: New file.
1276 * testsuite/ld-elf/pr26256-1.t: Likewise.
1277 * testsuite/ld-elf/pr26256-1a.d: Likewise.
1278 * testsuite/ld-elf/pr26256-1b.d: Likewise.
1279 * testsuite/ld-elf/pr26256-2.s: Likewise.
1280 * testsuite/ld-elf/pr26256-2.t: Likewise.
1281 * testsuite/ld-elf/pr26256-2a.d: Likewise.
1282 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
1283 * testsuite/ld-elf/pr26256-2b.d: Likewise.
1284 * testsuite/ld-elf/pr26256-3.s: Likewise.
1285 * testsuite/ld-elf/pr26256-3a.d: Likewise.
1286 * testsuite/ld-elf/pr26256-3a.t: Likewise.
1287 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1288 * testsuite/ld-elf/pr26256-3b.t: Likewise.
1290 2021-01-04 Alan Modra <amodra@gmail.com>
1293 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
1294 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
1295 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
1296 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
1297 * testsuite/ld-i386/tlsbin.rd: Likewise.
1298 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1299 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1300 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1301 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1302 * testsuite/ld-i386/tlspic.rd: Likewise.
1303 * testsuite/ld-i386/tlspic2.rd: Likewise.
1304 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
1305 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
1306 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
1307 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
1308 * testsuite/ld-plugin/pr17973.d: Likewise.
1309 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
1310 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
1311 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
1312 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
1313 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
1314 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
1315 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
1316 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
1317 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
1318 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
1319 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
1320 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
1321 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
1322 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1323 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1324 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1325 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1326 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1327 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1328 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
1329 * testsuite/ld-xtensa/tlspic.rd: Likewise.
1331 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1333 * configure.tgt: Correct comment grammar.
1334 * emultempl/m68hc1xelf.em: Likewise.
1335 * ld.texi: Correct grammar.
1337 2021-01-01 Alan Modra <amodra@gmail.com>
1339 Update year range in copyright notice of all files.
1341 For older changes see ChangeLog-2020
1343 Copyright (C) 2021 Free Software Foundation, Inc.
1345 Copying and distribution of this file, with or without modification,
1346 are permitted in any medium without royalty provided the copyright
1347 notice and this notice are preserved.
1353 version-control: never