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