]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/ChangeLog
elf_backend_archive_symbol_lookup
[thirdparty/binutils-gdb.git] / ld / ChangeLog
CommitLineData
fc304b88
AM
12021-04-12 Alan Modra <amodra@gmail.com>
2
3 PR 27719
4 * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
5 the symbol hash table is the correct type before accessing
6 elf_link_hash_entry symbols.
7 * plugin.c (is_visible_from_outside): Likewise.
8 * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
9 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
10
c3f72de4
AM
112021-04-09 Alan Modra <amodra@gmail.com>
12
13 * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
14 * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
15 * testsuite/ld-powerpc/notoc2.d: Likewise.
16 * testsuite/ld-powerpc/notoc3.d: Likewise.
17 * testsuite/ld-powerpc/pcrelopt.d: Likewise.
18 * testsuite/ld-powerpc/startstop.d: Likewise.
19 * testsuite/ld-powerpc/tlsget.d: Likewise.
20 * testsuite/ld-powerpc/tlsget2.d: Likewise.
21 * testsuite/ld-powerpc/tlsld.d: Likewise.
22 * testsuite/ld-powerpc/weak1.d: Likewise.
23 * testsuite/ld-powerpc/weak1so.d: Likewise.
24
bd3d1480
JB
252021-04-06 Jan Beulich <jbeulich@suse.com>
26
27 * pe-dll.c (generate_reloc): Bail immediately when .reloc is
28 being discarded. Warn when relocated entry is above .reloc.
29
c774eab1
AM
302021-04-05 Alan Modra <amodra@gmail.com>
31
32 * configure.ac: Move initfini-array arg handling earlier. Don't
33 check for string.h, strings.h, stdlib.h, or locale.h. Do check
34 for inttypes.h, stdint.h, sys/types.h. Don't check for
35 setlocale, free, getev or strstr.
36 (AC_ISC_POSIX): Don't invoke.
37 * sysdep.h: Include string.h and stdlib.h unconditionally. Test
38 HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and
39 getenv fallback declarations.
40 * ld.h: Don't test HAVE_LOCALE_H.
41 * ldmain.c: Don't test HAVE_SETLOCALE.
42 * config.in: Regenerate.
43 * configure: Regenerate.
44
74edb473
TC
452021-04-01 Tamar Christina <tamar.christina@arm.com>
46
47 PR ld/26659
48 * testsuite/ld-pe/pe.exp: Add test.
49 * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
50 * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
51
e9b095a5
ML
522021-04-01 Martin Liska <mliska@suse.cz>
53
54 * ldbuildid.c (strneq): Remove strneq and use startswith.
55 (validate_build_id_style): Likewise.
56 (compute_build_id_size): Likewise.
57
f38a2680
AM
582021-03-31 Alan Modra <amodra@gmail.com>
59
60 * sysdep.h (POISON_BFD_BOOLEAN): Define.
61 * configure.ac (elf_list_options, elf_shlib_list_options=false),
62 (elf_plt_unwind_list_options=false): Replace FALSE with false,
63 and TRUE with true.
64 * emulparams/call_nop.sh, * emulparams/cet.sh,
65 * emulparams/dynamic_undefined_weak.sh,
66 * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
67 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
68 * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
69 * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
70 * emulparams/reloc_overflow.sh, * emulparams/static.sh,
71 * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
72 * emultempl/aix.em, * emultempl/alphaelf.em,
73 * emultempl/armcoff.em, * emultempl/armelf.em,
74 * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
75 * emultempl/cr16elf.em, * emultempl/crxelf.em,
76 * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
77 * emultempl/hppaelf.em, * emultempl/linux.em,
78 * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
79 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
80 * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
81 * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
82 * emultempl/pep.em, * emultempl/ppc32elf.em,
83 * emultempl/ppc64elf.em, * emultempl/rxelf.em,
84 * emultempl/rxlinux.em, * emultempl/scoreelf.em,
85 * emultempl/solaris2.em, * emultempl/spuelf.em,
86 * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
87 * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
88 * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
89 * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
90 * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
91 * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
92 * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
93 * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
94 * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
95 bfd_boolean with bool, FALSE with false, and TRUE with true.
96 * configure: Regenerate.
97
3dfb1b6d
AM
982021-03-31 Alan Modra <amodra@gmail.com>
99
100 * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
101 * emultempl/nds32elf.em: Likewise.
102 * testsuite/ld-elf/mbind2b.c: Likewise.
103 * testsuite/ld-elf/pr18718.c: Likewise.
104 * testsuite/ld-elf/pr18720a.c: Likewise.
105 * testsuite/ld-elf/pr25749-1.c: Likewise.
106 * testsuite/ld-elf/pr25749-1a.c: Likewise.
107 * testsuite/ld-elf/pr25749-1b.c: Likewise.
108 * testsuite/ld-elf/pr25749-1c.c: Likewise.
109 * testsuite/ld-elf/pr25749-1d.c: Likewise.
110 * testsuite/ld-elf/pr25749-2.c: Likewise.
111 * testsuite/ld-elf/pr25754-1a.c: Likewise.
112 * testsuite/ld-elf/pr25754-2a.c: Likewise.
113 * testsuite/ld-elf/pr25754-3a.c: Likewise.
114 * testsuite/ld-elf/pr25754-4a.c: Likewise.
115 * testsuite/ld-elf/pr25754-5a.c: Likewise.
116 * testsuite/ld-elf/pr25754-6a.c: Likewise.
117
63b4cc53
AM
1182021-03-29 Alan Modra <amodra@gmail.com>
119
120 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
121 boolean expression.
122 * lexsup.c (parse_args): Likewise.
123 * pe-dll.c (pe_dll_id_target): Likewise.
124
8592be8c
NA
1252021-03-25 Nick Alcock <nick.alcock@oracle.com>
126
127 * testsuite/ld-ctf/array.d: Only check that the data object
128 section is nonempty: do not check its exact size.
129 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
130 * testsuite/ld-ctf/slice.d: Likewise.
131 * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
132 func info section too.
133 * testsuite/ld-ctf/function.d: Likewise, for the func info section.
134
08dedd66
ML
1352021-03-22 Martin Liska <mliska@suse.cz>
136
137 * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
138 * emultempl/beos.em: Likewise.
139 * emultempl/elf.em: Likewise.
140 * emultempl/pe.em: Likewise.
141 * emultempl/pep.em: Likewise.
142 * emultempl/xtensaelf.em: Likewise.
143 * ldctor.c (ctor_prio): Likewise.
144 * ldelf.c (ldelf_try_needed): Likewise.
145 (ldelf_parse_ld_so_conf): Likewise.
146 (ldelf_after_open): Likewise.
147 (output_rel_find): Likewise.
148 (ldelf_place_orphan): Likewise.
149 * ldfile.c (ldfile_add_library_path): Likewise.
150 * ldlang.c (lang_add_input_file): Likewise.
151 * ldmain.c (get_sysroot): Likewise.
152 (get_emulation): Likewise.
153 (add_archive_element): Likewise.
154 * ldwrite.c (unsplittable_name): Likewise.
155 (clone_section): Likewise.
156 * lexsup.c (parse_args): Likewise.
157 * pe-dll.c (is_import): Likewise.
158 (pe_implied_import_dll): Likewise.
159
1de96e5d
L
1602021-03-19 H.J. Lu <hongjiu.lu@intel.com>
161
162 PR ld/27590
163 * testsuite/ld-x86-64/pr27590.rd: New file.
164 * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
165 * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
166 * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
167
15407e7e
AM
1682021-03-20 Alan Modra <amodra@gmail.com>
169
170 PR 27590
171 * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
172 for all sections except .stabstr.
173
fba7f753
AM
1742021-03-19 Alan Modra <amodra@gmail.com>
175
176 PR 27590
177 * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
178 R_MIPS_NONE.
179 * testsuite/ld-elf/pr27590b.d: Likewise.
180
3818d4ab
L
1812021-03-18 H.J. Lu <hongjiu.lu@intel.com>
182
183 PR ld/27590
184 * testsuite/ld-elf/pr27590.s: New file.
185 * testsuite/ld-elf/pr27590a.d: Likewise.
186 * testsuite/ld-elf/pr27590b.d: Likewise.
187 * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
188 --reduce-memory-overheads.
189
51f6e7a9
L
1902021-03-18 H.J. Lu <hongjiu.lu@intel.com>
191
192 PR ld/27587
193 * testsuite/ld-x86-64/pr27587.err: New file.
194 * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
195 * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
196 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
197
69a28486
NA
1982021-03-18 Nick Alcock <nick.alcock@oracle.com>
199
200 * testsuite/ld-ctf/slice.c: Check slices of enums too.
201 * testsuite/ld-ctf/slice.d: Results adjusted.
202
ee42883c
NC
2032021-03-16 Nick Clifton <nickc@redhat.com>
204
205 * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
206 lname string.
207
c68b1842
JB
2082021-03-15 Jan Beulich <jbeulich@suse.com>
209
210 * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
211
203a206d
AM
2122021-03-12 Alan Modra <amodra@gmail.com>
213
214 * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
215 (ALL_64_EMULATION_SOURCES): ..here.
216 * Makefile.in: Regenerate.
217
1b2cb8e2
CC
2182021-03-12 Clément Chigot <clement.chigot@atos.net>
219
220 * emultempl/aix.em: Ensure .tdata section is removed
221 if empty, even with -r flag.
222 * scripttempl/aix.sc: Handle TLS sections.
223 * testsuite/ld-powerpc/aix52.exp: Add new tests.
224 * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
225 * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
226 * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
227 * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
228 * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
229 * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
230 * testsuite/ld-powerpc/aix-tls-section.ex: New test.
231 * testsuite/ld-powerpc/aix-tls-section.s: New test.
232
4a403be0
CC
2332021-03-12 Clément Chigot <clement.chigot@atos.net>
234
235 * scripttempl/aix.sc: Add .te to .data section.
236 * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
237 Add aix-largetoc-1 test.
238 * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
239 * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
240 * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
241 * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
242
68cb2183
AM
2432021-03-12 Alan Modra <amodra@gmail.com>
244
245 * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
246 arrange to define __main for some run_dump_test tests.
247 * testsuite/ld-gc/pr13683.d: Accept more symbols.
248 * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
249 * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
250 * testsuite/ld-srec/srec.exp: Likewise.
251 * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
252
ebdcad3f
NC
2532021-03-11 Nelson Chu <nelson.chu@sifive.com>
254
255 * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
256 many times if riscv_restart_relax_sections returns TRUE.
257 * testsuite/ld-riscv-elf/restart-relax.d: New testcase. Before
258 applying this patch, the call won't be relaxed to jal; But now we
259 have more chances to do relaxations.
260 * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
261 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
262
67b0f684
JB
2632021-03-10 Jan Beulich <jbeulich@suse.com>
264
265 * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
266 than 32 set bits.
267 * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
268 comment.
269 * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
270
5dc75cf3
JB
2712021-03-09 Jan Beulich <jbeulich@suse.com>
272
273 * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
274 alignment to 4k.
275 * testsuite/ld-pe/reloc.d: xfail for mcore.
276
87fa7d56
JB
2772021-03-09 Jan Beulich <jbeulich@suse.com>
278
279 * testsuite/ld-scripts/alignof.exp,
280 testsuite/ld-scripts/data.exp,
281 testsuite/ld-scripts/default-script.exp,
282 testsuite/ld-scripts/log2.exp,
283 testsuite/ld-scripts/print-memory-usage.exp,
284 testsuite/ld-scripts/sizeof.exp,
285 testsuite/ld-undefined/weak-undef.exp: Set image base to zero
286 for PE/COFF.
287 * testsuite/ld-scripts/default-script1.d,
288 testsuite/ld-scripts/default-script2.d,
289 testsuite/ld-scripts/default-script3.d,
290 testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
291
8c0546e9
L
2922021-03-05 H.J. Lu <hongjiu.lu@intel.com>
293
294 PR ld/27425
295 PR ld/27432
296 * ldelf.c (ldelf_set_output_arch): New function.
297 * ldelf.h (ldelf_set_output_arch): New prototype.
298 * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
299 ldelf_set_output_arch.
300 * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
301 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
302 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
303 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
304 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
305 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
306 * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
307 * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
308 * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
309
d4e5db4e
JB
3102021-03-04 Jan Beulich <jbeulich@suse.com>
311
312 * testsuite/ld-scripts/map-address.exp: Set image base to zero
313 for PE/COFF.
314 * testsuite/ld-scripts/map-address.t: Place .text.
315
6fa7408d
JB
3162021-03-04 Jan Beulich <jbeulich@suse.com>
317
318 * ldexp.c (ldexp_is_final_sym_absolute): New.
319 * ldexp.h (ldexp_is_final_sym_absolute): Declare.
320 * pe-dll.c (generate_reloc): Skip absolute symbols.
321 * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
322 * testsuite/ld-pe/pe.exp: Run new test.
323
5789f845
AM
3242021-03-03 Alan Modra <amodra@gmail.com>
325
326 PR 27500
327 * ldlang.c (insert_undefined): Don't mark symbols here.
328 (lang_mark_undefineds): Do so here instead, new function.
329 (lang_process): Call lang_mark_undefineds.
330 * testsuite/ld-gc/start3.d,
331 * testsuite/ld-gc/start3.s: New test.
332 * testsuite/ld-gc/start4.d,
333 * testsuite/ld-gc/start4.s: New test.
334 * testsuite/ld-gc/gc.exp: Run them.
335
270f32fc
AM
3362021-03-03 Alan Modra <amodra@gmail.com>
337
338 * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
339 Move tests with ELF section directives to is_elf_format block.
340 * testsuite/ld-gc/abi-note.d: Run on more targets.
341 * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
342 * testsuite/ld-gc/start.d: Likewise.
343 * testsuite/ld-gc/start2.d: Likewise.
344 * testsuite/ld-gc/stop.d: Likewise.
345 * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
346 * testsuite/ld-gc/start.s: Likewise.
347 * testsuite/ld-gc/start2.s: Likewise.
348
211bcd01
NA
3492021-03-02 Nick Alcock <nick.alcock@oracle.com>
350
351 * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
352
b80e421f
AM
3532021-03-02 Alan Modra <amodra@gmail.com>
354
355 * testsuite/ld-powerpc/startstop.d,
356 * testsuite/ld-powerpc/startstop.r,
357 * testsuite/ld-powerpc/startstop.s: New test.
358 * testsuite/ld-powerpc/powerpc.exp: Run it.
359
f5b9c288
AM
3602021-03-02 Alan Modra <amodra@gmail.com>
361
362 * testsuite/ld-powerpc/weak1.d,
363 * testsuite/ld-powerpc/weak1.r,
364 * testsuite/ld-powerpc/weak1.s,
365 * testsuite/ld-powerpc/weak1so.d,
366 * testsuite/ld-powerpc/weak1so.r: New tests.
367 * testsuite/ld-powerpc/powerpc.exp: Run them.
368
ba6eb62f
NC
3692021-03-01 Hannes Domani <ssbssa@sourceware.org>
370 Nick Clifton <nickc@redhat.com>
371
372 PR 27268
373 * scripttempl/pe.sc: Add DWARF-5 section names.
374 * scripttempl/pep.sc: Likewise.
375
8ee10e86
AM
3762021-03-01 Alan Modra <amodra@gmail.com>
377 Fangrui Song <maskray@google.com>
378
379 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
380 * lexsup.c (elf_static_list_options): Display help for them. Move
381 help for -z stack-size to here from elf_shlib_list_options. Add
382 help for -z start-stop-visibility and -z undefs.
383 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
384 * NEWS: Mention -z start-stop-gc.
385 * testsuite/ld-gc/start2.s,
386 * testsuite/ld-gc/start2.d: New test.
387 * testsuite/ld-gc/gc.exp: Run it.
388
7824c1d2
AM
3892021-03-01 Alan Modra <amodra@gmail.com>
390
391 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
392 symbols undefweak if that was how they were referenced. Undo
393 dynamic state too.
394
6a1224ec
AM
3952021-03-01 Alan Modra <amodra@gmail.com>
396
397 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
398 * testsuite/ld-elf/pr27128a.d: Likewise.
399 * testsuite/ld-elf/pr27128b.d: Likewise.
400 * testsuite/ld-elf/pr27128c.d: Likewise.
401 * testsuite/ld-elf/pr27128d.d: Likewise.
402 * testsuite/ld-elf/pr27128e.d: Likewise.
403
bfece756
AM
4042021-02-26 Alan Modra <amodra@gmail.com>
405
406 PR 27441
407 * testsuite/ld-plugin/pr27441a.c,
408 * testsuite/ld-plugin/pr27441b.c,
409 * testsuite/ld-plugin/pr27441c.c,
410 * testsuite/ld-plugin/pr27441c.d: New test.
411 * testsuite/ld-plugin/lto.exp: Run it.
412
3c27360b
JB
4132021-02-25 Jan Beulich <jbeulich@suse.com>
414
415 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
416
89753bbf
AM
4172021-02-21 Alan Modra <amodra@gmail.com>
418
419 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
420 defined in an object file.
421 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
422 * testsuite/ld-scripts/defined5.d: Expect a warning.
423
2f973f13
AM
4242021-02-19 Alan Modra <amodra@gmail.com>
425
426 * testsuite/lib/ld-lib.exp: Whitespace.
427 (load_common_lib): Expand single use and delete this proc.
428 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
429 Use -B for clang too.
430
a364a116
AB
4312021-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
432
433 * testplugin.c (record_read_length): Remove debug fprintf.
434
5b1f6c95
AM
4352021-02-14 Alan Modra <amodra@gmail.com>
436
437 * testsuite/ld-cdtest/cdtest.exp,
438 * testsuite/ld-checks/checks.exp,
439 * testsuite/ld-elf/binutils.exp,
440 * testsuite/ld-elf/compress.exp,
441 * testsuite/ld-elf/dwarf.exp,
442 * testsuite/ld-elf/exclude.exp,
443 * testsuite/ld-elf/frame.exp,
444 * testsuite/ld-elf/indirect.exp,
445 * testsuite/ld-elf/linux-x86.exp,
446 * testsuite/ld-elf/sec-to-seg.exp,
447 * testsuite/ld-elf/tls_common.exp,
448 * testsuite/ld-elfcomm/elfcomm.exp,
449 * testsuite/ld-elfvers/vers.exp,
450 * testsuite/ld-elfvsb/elfvsb.exp,
451 * testsuite/ld-elfweak/elfweak.exp,
452 * testsuite/ld-ifunc/binutils.exp,
453 * testsuite/ld-mips-elf/mips-elf-flags.exp,
454 * testsuite/ld-misc/defsym.exp,
455 * testsuite/ld-mn10300/mn10300.exp,
456 * testsuite/ld-plugin/lto.exp,
457 * testsuite/ld-plugin/plugin.exp,
458 * testsuite/ld-scripts/align.exp,
459 * testsuite/ld-scripts/assert.exp,
460 * testsuite/ld-scripts/crossref.exp,
461 * testsuite/ld-scripts/defined.exp,
462 * testsuite/ld-scripts/extern.exp,
463 * testsuite/ld-scripts/log2.exp,
464 * testsuite/ld-scripts/map-address.exp,
465 * testsuite/ld-scripts/phdrs.exp,
466 * testsuite/ld-scripts/phdrs2.exp,
467 * testsuite/ld-scripts/script.exp,
468 * testsuite/ld-scripts/section-flags.exp,
469 * testsuite/ld-scripts/sizeof.exp,
470 * testsuite/ld-scripts/weak.exp,
471 * testsuite/ld-selective/selective.exp,
472 * testsuite/ld-sh/sh.exp,
473 * testsuite/ld-shared/shared.exp,
474 * testsuite/ld-srec/srec.exp,
475 * testsuite/ld-tic6x/tic6x.exp,
476 * testsuite/ld-undefined/undefined.exp,
477 * testsuite/ld-undefined/weak-undef.exp,
478 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
479 perror. Instead report "unsupported" or "fail".
480
c46b7066
NC
4812021-02-12 Nick Clifton <nickc@redhat.com>
482
483 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
484 following debug links.
485
933feaf3
AM
4862021-02-11 Alan Modra <amodra@gmail.com>
487
488 * NEWS: Mention arm-symbianelf removal.
489
a57d1773
AM
4902021-02-09 Alan Modra <amodra@gmail.com>
491
492 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
493 Don't include symbian dep file.
494 * configure.tgt: Remove arm*-*-symbianelf* entry.
495 * emulparams/armsymbian.sh: Delete.
496 * ld.texi: Don't mention symbian.
497 * scripttempl/armbpabi.sc: Delete.
498 * testsuite/ld-arm/symbian-seg1.d: Delete.
499 * testsuite/ld-arm/symbian-seg1.s: Delete.
500 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
501 * Makefile.in: Regenerate.
502 * po/BLD-POTFILES.in: Regenerate.
503
38a143aa
L
5042021-02-07 H.J. Lu <hongjiu.lu@intel.com>
505
506 PR ld/27358
507 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
508 tests.
509 * testsuite/ld-x86-64/x86-64.exp: Likewise.
510
35a01a04
NA
5112021-01-26 Nick Alcock <nick.alcock@oracle.com>
512
513 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
514 when appropriate.
515
1a2f1b54
L
5162021-02-04 H.J. Lu <hongjiu.lu@intel.com>
517
518 PR ld/19609
519 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
520 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
521 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
522 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
523 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
524 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
525 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
526
37707bd8
L
5272021-02-04 H.J. Lu <hongjiu.lu@intel.com>
528
529 PR ld/15146
530 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
531 * testsuite/ld-plugin/pr15146.d: Restored.
532 * testsuite/ld-plugin/pr15146a.c: Likewise.
533 * testsuite/ld-plugin/pr15146b.c: Likewise.
534 * testsuite/ld-plugin/pr15146c.c: Likewise.
535 * testsuite/ld-plugin/pr15146d.c: Likewise.
536
7d409ac0
AM
5372021-02-04 Alan Modra <amodra@gmail.com>
538
539 * testsuite/ld-plugin/pr27311d.c: New test.
540 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
541 and link new test as pr27311-2.
542
69551367
AM
5432021-02-03 Alan Modra <amodra@gmail.com>
544
545 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
546 Link with --as-needed.
547
9918bff7
AM
5482021-02-02 Alan Modra <amodra@gmail.com>
549
550 * testsuite/ld-plugin/pr27311.d,
551 * testsuite/ld-plugin/pr27311.ver,
552 * testsuite/ld-plugin/pr27311a.c,
553 * testsuite/ld-plugin/pr27311b.c,
554 * testsuite/ld-plugin/pr27311c.c: New testcase.
555 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
556 PR12982 entries.
557
1f568f9a
EH
5582021-02-01 Emery Hemingway <ehmry@posteo.net>
559
560 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
561
fb6c220e
AM
5622021-02-01 Alan Modra <amodra@gmail.com>
563
564 * ldgram.y (defsym_expr): Use assignment rule.
565 * ldlex.h (ldlex_defsym): Delete.
566 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
567
40726f16
AM
5682021-02-01 Alan Modra <amodra@gmail.com>
569
570 * ldgram.y (section): Call ldlex_backup. Remove empty action.
571 * ldlex.h (ldlex_backup): Declare.
572 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
573 chars, use SYMBOLNAMECHAR.
574 (ldlex_backup): New function.
575
a5f92c67
AM
5762021-02-01 Alan Modra <amodra@gmail.com>
577
578 * ldgram.y: Whitespace fixes.
579
49daa38f
AM
5802021-02-01 Alan Modra <amodra@gmail.com>
581
582 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
583
c4566785
AM
5842021-01-29 Alan Modra <amodra@gmail.com>
585
586 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
587
53e556e5
L
5882021-01-28 H.J. Lu <hongjiu.lu@intel.com>
589
590 PR ld/27259
591 * testsuite/ld-elf/pr27259.d: New file.
592 * testsuite/ld-elf/pr27259.s: Likewise.
593
def97fb9
AM
5942021-01-28 Alan Modra <amodra@gmail.com>
595
596 PR 27259
597 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
598 prevent endless looping of linked-to sections.
599
2eda57ef
L
6002021-01-26 H.J. Lu <hongjiu.lu@intel.com>
601
602 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
603
1c9c9b9b
AM
6042021-01-26 Alan Modra <amodra@gmail.com>
605
606 PR 27226
607 * emulparams/alphavms.sh: Don't set COMPILE_IN.
608 * emulparams/elf64_ia64_vms.sh: Likewise.
609 * emulparams/elf64mmix.sh: Likewise.
610 * emulparams/elf_iamcu.sh: Likewise.
611 * emulparams/elf_k1om.sh: Likewise.
612 * emulparams/elf_l1om.sh: Likewise.
613 * emulparams/mmo.sh: Likewise.
614 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
615 * scripttempl/pdp11.sc: Use it.
616 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
617 instead use .xe script. Support scripts from file system.
618 * emultempl/beos.em: Support scripts from file system.
619 * emultempl/pe.em: Likewise.
620 * emultempl/pep.em: Likewise.
621 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
622
9e42b976
FS
6232021-01-25 Fangrui Song <maskray@google.com>
624
625 PR ld/27230
626 * scripttempl/DWARF.sc: Add .debug_* sections.
627
b8df6900
NC
6282021-01-25 Nick Clifton <nickc@redhat.com>
629
630 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
631 .debug_line_str and .debug_str_offsets. Move .debug_macro and
632 .debug_addr into DWARF-5 section.
633
c78eec44
AM
6342021-01-21 Alan Modra <amodra@gmail.com>
635
636 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
637
4bd7c902
AM
6382021-01-20 Alan Modra <amodra@gmail.com>
639
640 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
641 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
642 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
643 * testsuite/ld-powerpc/tlsget.wf: Likewise.
644 * testsuite/ld-powerpc/tlsget2.d: Likewise.
645 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
646 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
647 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
648 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
649 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
650 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
651 * testsuite/ld-powerpc/tlsexers.r: Likewise.
652 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
653 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
654 * testsuite/ld-powerpc/tlsso.r: Likewise.
655 * testsuite/ld-powerpc/tlsso32.r: Likewise.
656 * testsuite/ld-powerpc/tlstocso.r: Likewise.
657
c98de297
NA
6582021-01-19 Nick Alcock <nick.alcock@oracle.com>
659
660 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
661 symbols by the optimizer.
662 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
663
85e963f1
NC
6642021-01-19 Nelson Chu <nelson.chu@sifive.com>
665
666 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
667 if target is riscv little endian. Otherwise, return false.
668 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
669 targets by [riscv_little_endian].
670
326adec3
AM
6712021-01-18 Alan Modra <amodra@gmail.com>
672
673 PR 26378
674 * ldlang.c (map_input_to_output_sections): Start with a read-only
675 section for data statements.
676 * testsuite/ld-elf/size-2.d: Adjust to suit.
677
994b2513
L
6782021-01-17 H.J. Lu <hongjiu.lu@intel.com>
679
680 PR ld/27193
681 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
682 * testsuite/ld-i386/pr27193.dd: New file.
683 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
684 * testsuite/ld-i386/pr27193b.s: Likewise.
685
edf0f284
L
6862021-01-16 H.J. Lu <hongjiu.lu@intel.com>
687
688 PR binutils/23460
689 * testsuite/ld-plugin/lto.exp: Increase the max number of open
690 files to 20 for PR binutils/23460 test.
691
75a933f3
L
6922021-01-16 H.J. Lu <hongjiu.lu@intel.com>
693
694 PR ld/23169
695 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
696 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
697 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
698 address.
699
68b00778
L
7002021-01-15 H.J. Lu <hongjiu.lu@intel.com>
701
702 * NEWS: Mention -z report-relative-reloc.
703 * ld.texi: Document -z report-relative-reloc.
704 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
705 * emulparams/elf_i386.sh: Likewse.
706 * emulparams/elf_x86_64.sh: Likewse.
707 * emulparams/x86-report-relative.sh: New file.
708 * testsuite/ld-i386/report-reloc-1.d: Likewse.
709 * testsuite/ld-i386/report-reloc-1.l: Likewse.
710 * testsuite/ld-i386/report-reloc-1.s: Likewse.
711 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
712 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
713 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
714 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
715 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
716 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
717 report-reloc-1-x32.
718
eb6e6af8
AM
7192021-01-16 Alan Modra <amodra@gmail.com>
720
721 PR 26002
722 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
723 unversioned symbols.
724 * testsuite/ld-elfvers/vers16.dsym: Likewise.
725
b800637e
NC
7262021-01-15 Nelson Chu <nelson.chu@sifive.com>
727
728 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
729 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
730 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
731 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
732 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
733 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
734
5a10699f
NC
7352021-01-14 Nick Clifton <nickc@redhat.com>
736
737 * po/fr.po: Updated French translation.
738
271bea6a
MF
7392021-01-14 Mike Frysinger <vapier@gentoo.org>
740
741 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
742
4120e488
AM
7432021-01-14 Alan Modra <amodra@gmail.com>
744
745 PR 27160
746 * ldelfgen.c (compare_link_order): Protect access of ELF section
747 data.
748 (add_link_order_input_section): Remove redundant NULL check.
749 Use bfd_get_flavour.
750 (ldelf_map_segments): Use bfd_get_flavour.
751
b634d11d
L
7522021-01-13 H.J. Lu <hongjiu.lu@intel.com>
753
754 * ldelfgen.c (add_link_order_input_section): Check for ELF input
755 before accessing ELF section data.
756
5347ed60
AM
7572021-01-13 Alan Modra <amodra@gmail.com>
758
759 * Makefile.in: Regenerate.
760
b209b5a6
AM
7612021-01-13 Alan Modra <amodra@gmail.com>
762
763 PR 27160
764 * ldlang.h (lang_output_section_statement_type): Add data field.
765 (lang_input_section_type, lang_section_bst_type): Add pattern field.
766 (statement_list): Declare.
767 (lang_add_section): Adjust prototype.
768 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
769 * emultempl/armelf.em: Likewise.
770 * emultempl/beos.em: Likewise.
771 * emultempl/cskyelf.em: Likewise.
772 * emultempl/hppaelf.em: Likewise.
773 * emultempl/m68hc1xelf.em: Likewise.
774 * emultempl/metagelf.em: Likewise.
775 * emultempl/mipself.em: Likewise.
776 * emultempl/mmo.em: Likewise.
777 * emultempl/msp430.em: Likewise.
778 * emultempl/nios2elf.em: Likewise.
779 * emultempl/pe.em: Likewise.
780 * emultempl/pep.em: Likewise.
781 * emultempl/ppc64elf.em: Likewise.
782 * emultempl/spuelf.em: Likewise.
783 * emultempl/vms.em: Likewise.
784 * ldelf.c: Likewise.
785 * ldelfgen.c: Include ldctor.h.
786 (struct os_sections): New.
787 (add_link_order_input_section, link_order_scan): New functions.
788 (compare_link_order, fixup_link_order): New functions.
789 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
790 * ldlang.c (statement_list): Make global.
791 (output_section_callback_fast): Save pattern in tree node.
792 (lang_add_section): Add pattern parameter, save in lang_input_section.
793 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
794 (lang_insert_orphan, output_section_callback): Likewise.
795 (ldlang_place_orphan): Likewise.
796 (gc_section_callback): Don't set section->pattern.
797 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
798 * testsuite/ld-elf/pr26256-3b.d: Likewise.
799 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
800
8c4645b4
AM
8012021-01-13 Alan Modra <amodra@gmail.com>
802
803 * ldlang.h (callback_t): Remove flag_info function parameter.
804 * ldlang.c (walk_wild_consider_section): Adjust to suit.
805 (walk_wild_section_general): Likewise.
806 (output_section_callback_fast, output_section_callback): Likewise.
807 (check_section_callback, gc_section_callback): Likewise.
808 (find_relro_section_callback): Likewise.
809
d546b610
L
8102021-01-12 H.J. Lu <hongjiu.lu@intel.com>
811
812 PR binutils/26792
813 * configure.ac: Use GNU_MAKE_JOBSERVER.
814 * aclocal.m4: Regenerated.
815 * configure: Likewise.
816
c2e9a4a3
L
8172021-01-12 H.J. Lu <hongjiu.lu@intel.com>
818
819 PR ld/27171
820 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
821 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
822 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
823 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
824
83b33c6c
L
8252021-01-11 H.J. Lu <hongjiu.lu@intel.com>
826
827 PR ld/27173
828 * configure: Regenerated.
829
c0f6e439
MJ
8302021-01-11 Matt Jenkins <matt@majenko.co.uk>
831
832 PR ld/27167
833 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
834 and mips64r5 to list of known mips targets.
835
8362021-01-11 Nick Clifton <nickc@redhat.com>matt@majenko.co.uk
a8aa72b9
NC
837
838 * po/pt_BR.po: Updated Brazilian Portuguese translation.
839` * po/uk.po: Updated Ukranian translation.
840
a4966cd9
L
8412021-01-09 H.J. Lu <hongjiu.lu@intel.com>
842
843 * configure: Regenerated.
844
0a94990b
L
8452021-01-09 H.J. Lu <hongjiu.lu@intel.com>
846
847 PR ld/27166
848 * testsuite/ld-x86-64/lam-u48.rd: New file.
849 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
850 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
851
573fe3fb
NC
8522021-01-09 Nick Clifton <nickc@redhat.com>
853
854 * configure: Regenerate.
855 * po/ld.pot: Regenerate.
856
055bc77a
NC
8572021-01-09 Nick Clifton <nickc@redhat.com>
858
859 * 2.36 release branch crated.
860
ba9e922f
L
8612021-01-08 H.J. Lu <hongjiu.lu@intel.com>
862
863 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
864 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
865
64307045
AM
8662021-01-09 Alan Modra <amodra@gmail.com>
867
868 * configure: Regenerate.
869 * Makefile.in: Regenerate.
870
f4782128
ST
8712021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
872
873 * configure: Regenerate.
874
d1bcae83
L
8752021-01-07 H.J. Lu <hongjiu.lu@intel.com>
876
877 PR 27109
878 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
879 * testsuite/ld-elf/loadaddr3b.d: Likewise.
880 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
881 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
882 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
883 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
884 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
885 * testsuite/ld-i386/pr19636-1d.d: Likewise.
886 * testsuite/ld-i386/pr19636-1l.d: Likewise.
887 * testsuite/ld-i386/pr19636-2c.d: Likewise.
888 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
889 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
890 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
891 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
892 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
893 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
894 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
895 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
896 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
897 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
898 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
899 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
900 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
901 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
902 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
903 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
904 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
905 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
906 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
907 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
908 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
909 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
910 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
911 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
912 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
913 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
914 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
915 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
916 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
917 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
918 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
919 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
920 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
921 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
922 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
923 * testsuite/ld-x86-64/pr21038b.d: Likewise.
924 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
925 * testsuite/ld-x86-64/pr21038c.d: Likewise.
926 * testsuite/ld-x86-64/pr23854.d: Likewise.
927 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
928 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
929 * testsuite/ld-i386/plt-pic.pd: Likewise.
930 * testsuite/ld-i386/plt-pic2.dd: Likewise.
931 * testsuite/ld-i386/plt.pd: Likewise.
932 * testsuite/ld-i386/plt2.dd: Likewise.
933 * testsuite/ld-i386/tlsbin.rd: Likewise.
934 * testsuite/ld-i386/tlsbin2.rd: Likewise.
935 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
936 * testsuite/ld-i386/tlsdesc.rd: Likewise.
937 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
938 * testsuite/ld-i386/tlsnopic.rd: Likewise.
939 * testsuite/ld-i386/tlspic.rd: Likewise.
940 * testsuite/ld-i386/tlspic2.rd: Likewise.
941 * testsuite/ld-x86-64/mpx3.dd: Likewise.
942 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
943 * testsuite/ld-x86-64/mpx4.dd: Likewise.
944 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
945 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
946 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
947 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
948 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
949 * testsuite/ld-x86-64/plt.pd: Likewise.
950 * testsuite/ld-x86-64/plt2.dd: Likewise.
951 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
952 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
953 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
954 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
955 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
956 * testsuite/ld-x86-64/tlspic.rd: Likewise.
957 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
958 * testsuite/ld-elf/sec64k.exp: Check
959 is_elf_unused_section_symbols.
960
dc200613
AM
9612021-01-07 Alan Modra <amodra@gmail.com>
962
963 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
964 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
965 * testsuite/ld-scripts/segment-start.d: Likewise.
966
8e604ff0
AM
9672021-01-07 Alan Modra <amodra@gmail.com>
968
969 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
970 about dynamic relocations in read-only sections.
971 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
972 * testsuite/ld-elf/ehdr_start.d: Likewise.
973 * testsuite/ld-scripts/pr22267.d: Likewise.
974 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
975 pr20995 text.
976 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
977
4d4490b8
MC
9782021-01-07 Marcus Comstedt <marcus@mc.pp.se>
979
980 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
981 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
982
f526791a
AM
9832021-01-07 Alan Modra <amodra@gmail.com>
984
985 * po/BLD-POTFILES.in: Regenerate.
986
4018f4e0
AM
9872021-01-07 Alan Modra <amodra@gmail.com>
988
989 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
990 complain about relocs in read-only sections. Tidy ASFLAGS append.
991
3677b729
AM
9922021-01-06 Alan Modra <amodra@gmail.com>
993
994 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
995 base for some tests.
996 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
997 * testsuite/ld-sparc/gotop32.sd: Likewise.
998 * testsuite/ld-sparc/gotop32.td: Likewise.
999 * testsuite/ld-sparc/gotop64.dd: Likewise.
1000 * testsuite/ld-sparc/gotop64.sd: Likewise.
1001 * testsuite/ld-sparc/gotop64.td: Likewise.
1002 * testsuite/ld-sparc/tlsg32.sd: Likewise.
1003 * testsuite/ld-sparc/tlsg64.sd: Likewise.
1004 * testsuite/ld-sparc/tlspie32.dd: Likewise.
1005 * testsuite/ld-sparc/tlspie64.dd: Likewise.
1006 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
1007 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
1008 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
1009 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
1010 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
1011 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
1012 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
1013 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
1014 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
1015 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
1016 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
1017 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
1018 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
1019 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
1020 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
1021 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
1022 * testsuite/ld-sparc/wdispcall.dd: Likewise.
1023
73624512
AM
10242021-01-06 Alan Modra <amodra@gmail.com>
1025
1026 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
1027 * testsuite/ld-scripts/rgn-at11.d: Likewise.
1028
f36ce378
MC
10292021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1030
1031 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
1032 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
1033 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
1034 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
1035 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1036 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1037 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1038 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
1039 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
1040 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
1041 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
1042 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
1043 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
1044 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
1045 to littleriscv.
1046 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
1047
fbc09e7a
MC
10482021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1049
1050 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
1051 riscv32be*-*-linux*, and riscv64be*-*-linux*.
1052 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
1053 eelf32briscv_ilp32.c.
1054 * Makefile.in: Regenerate.
1055 * emulparams/elf32briscv.sh: Added.
1056 * emulparams/elf32briscv_ilp32.sh: Likewise.
1057 * emulparams/elf32briscv_ilp32f.sh: Likewise.
1058 * emulparams/elf64briscv.sh: Likewise.
1059 * emulparams/elf64briscv_lp64.sh: Likewise.
1060 * emulparams/elf64briscv_lp64f.sh: Likewise.
1061
b4b6ea46
NA
10622021-01-05 Nick Alcock <nick.alcock@oracle.com>
1063
1064 * testsuite/ld-ctf/enum-forward.c: New test.
1065 * testsuite/ld-ctf/enum-forward.c: New results.
1066
37002871
NA
10672021-01-05 Nick Alcock <nick.alcock@oracle.com>
1068
1069 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1070 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1071 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1072 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1073 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1074 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1075 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1076 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1077 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1078 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1079 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1080 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1081 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1082 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1083 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1084 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1085 * testsuite/ld-ctf/cycle-1.d: Likewise.
1086 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1087 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1088 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1089 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1090 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1091 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1092 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1093 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1094 * testsuite/ld-ctf/forward.d: Likewise.
1095 * testsuite/ld-ctf/function.d: Likewise.
1096 * testsuite/ld-ctf/slice.d: Likewise.
1097 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1098 * testsuite/ld-ctf/enums.c: New test.
1099 * testsuite/ld-ctf/enums.d: New test.
1100
ffeece6a
NA
11012021-01-05 Nick Alcock <nick.alcock@oracle.com>
1102
1103 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
1104 changes.
1105 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1106 * testsuite/ld-ctf/forward.c: New test...
1107 * testsuite/ld-ctf/forward.d: ... and results.
1108
91e7ce2f
NA
11092021-01-05 Nick Alcock <nick.alcock@oracle.com>
1110
1111 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1112 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1113 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1114 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1115 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1116 * testsuite/ld-ctf/function.d: Likewise.
1117 * testsuite/ld-ctf/slice.d: Likewise.
1118
57f97d0e
NA
11192021-01-05 Nick Alcock <nick.alcock@oracle.com>
1120
1121 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1122 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1123 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1124 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1125 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1126 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1127 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1128 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1129 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1130 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1131 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1132 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1133 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1134 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1135 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1136 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1137 * testsuite/ld-ctf/cycle-1.d: Likewise.
1138 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1139 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1140 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1141 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1142 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1143 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1144 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1145 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1146 * testsuite/ld-ctf/function.d: Likewise.
1147 * testsuite/ld-ctf/slice.d: Likewise.
1148 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1149
b281a04f
AM
11502021-01-05 Alan Modra <amodra@gmail.com>
1151
1152 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
1153
40b11930
AM
11542021-01-05 Alan Modra <amodra@gmail.com>
1155
1156 PR ld/26256
1157 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
1158 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
1159
cd6d537c
L
11602021-01-04 H.J. Lu <hongjiu.lu@intel.com>
1161
1162 PR ld/26256
1163 * ldlang.c (gc_section_callback): Set pattern.
1164 * testsuite/ld-elf/pr26256-1.s: New file.
1165 * testsuite/ld-elf/pr26256-1.t: Likewise.
1166 * testsuite/ld-elf/pr26256-1a.d: Likewise.
1167 * testsuite/ld-elf/pr26256-1b.d: Likewise.
1168 * testsuite/ld-elf/pr26256-2.s: Likewise.
1169 * testsuite/ld-elf/pr26256-2.t: Likewise.
1170 * testsuite/ld-elf/pr26256-2a.d: Likewise.
1171 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
1172 * testsuite/ld-elf/pr26256-2b.d: Likewise.
1173 * testsuite/ld-elf/pr26256-3.s: Likewise.
1174 * testsuite/ld-elf/pr26256-3a.d: Likewise.
1175 * testsuite/ld-elf/pr26256-3a.t: Likewise.
1176 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1177 * testsuite/ld-elf/pr26256-3b.t: Likewise.
1178
5b4293ba
AM
11792021-01-04 Alan Modra <amodra@gmail.com>
1180
1181 PR 26822
1182 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
1183 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
1184 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
1185 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
1186 * testsuite/ld-i386/tlsbin.rd: Likewise.
1187 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1188 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1189 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1190 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1191 * testsuite/ld-i386/tlspic.rd: Likewise.
1192 * testsuite/ld-i386/tlspic2.rd: Likewise.
1193 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
1194 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
1195 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
1196 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
1197 * testsuite/ld-plugin/pr17973.d: Likewise.
1198 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
1199 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
1200 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
1201 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
1202 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
1203 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
1204 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
1205 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
1206 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
1207 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
1208 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
1209 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
1210 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
1211 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1212 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1213 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1214 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1215 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1216 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1217 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
1218 * testsuite/ld-xtensa/tlspic.rd: Likewise.
1219
f9a6a8f0
AM
12202021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1221
1222 * configure.tgt: Correct comment grammar.
1223 * emultempl/m68hc1xelf.em: Likewise.
1224 * ld.texi: Correct grammar.
1225
250d07de
AM
12262021-01-01 Alan Modra <amodra@gmail.com>
1227
1228 Update year range in copyright notice of all files.
1229
c2795844 1230For older changes see ChangeLog-2020
3499769a 1231\f
c2795844 1232Copyright (C) 2021 Free Software Foundation, Inc.
3499769a
AM
1233
1234Copying and distribution of this file, with or without modification,
1235are permitted in any medium without royalty provided the copyright
1236notice and this notice are preserved.
1237
1238Local Variables:
1239mode: change-log
1240left-margin: 8
1241fill-column: 74
1242version-control: never
1243End: