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