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