]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/ChangeLog
Include string.h in bfd.h and delete LITMEMCPY, LITSTRCPY
[thirdparty/binutils-gdb.git] / ld / ChangeLog
CommitLineData
63b4cc53
AM
12021-03-29 Alan Modra <amodra@gmail.com>
2
3 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
4 boolean expression.
5 * lexsup.c (parse_args): Likewise.
6 * pe-dll.c (pe_dll_id_target): Likewise.
7
8592be8c
NA
82021-03-25 Nick Alcock <nick.alcock@oracle.com>
9
10 * testsuite/ld-ctf/array.d: Only check that the data object
11 section is nonempty: do not check its exact size.
12 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
13 * testsuite/ld-ctf/slice.d: Likewise.
14 * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
15 func info section too.
16 * testsuite/ld-ctf/function.d: Likewise, for the func info section.
17
08dedd66
ML
182021-03-22 Martin Liska <mliska@suse.cz>
19
20 * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
21 * emultempl/beos.em: Likewise.
22 * emultempl/elf.em: Likewise.
23 * emultempl/pe.em: Likewise.
24 * emultempl/pep.em: Likewise.
25 * emultempl/xtensaelf.em: Likewise.
26 * ldctor.c (ctor_prio): Likewise.
27 * ldelf.c (ldelf_try_needed): Likewise.
28 (ldelf_parse_ld_so_conf): Likewise.
29 (ldelf_after_open): Likewise.
30 (output_rel_find): Likewise.
31 (ldelf_place_orphan): Likewise.
32 * ldfile.c (ldfile_add_library_path): Likewise.
33 * ldlang.c (lang_add_input_file): Likewise.
34 * ldmain.c (get_sysroot): Likewise.
35 (get_emulation): Likewise.
36 (add_archive_element): Likewise.
37 * ldwrite.c (unsplittable_name): Likewise.
38 (clone_section): Likewise.
39 * lexsup.c (parse_args): Likewise.
40 * pe-dll.c (is_import): Likewise.
41 (pe_implied_import_dll): Likewise.
42
1de96e5d
L
432021-03-19 H.J. Lu <hongjiu.lu@intel.com>
44
45 PR ld/27590
46 * testsuite/ld-x86-64/pr27590.rd: New file.
47 * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
48 * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
49 * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
50
15407e7e
AM
512021-03-20 Alan Modra <amodra@gmail.com>
52
53 PR 27590
54 * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
55 for all sections except .stabstr.
56
fba7f753
AM
572021-03-19 Alan Modra <amodra@gmail.com>
58
59 PR 27590
60 * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
61 R_MIPS_NONE.
62 * testsuite/ld-elf/pr27590b.d: Likewise.
63
3818d4ab
L
642021-03-18 H.J. Lu <hongjiu.lu@intel.com>
65
66 PR ld/27590
67 * testsuite/ld-elf/pr27590.s: New file.
68 * testsuite/ld-elf/pr27590a.d: Likewise.
69 * testsuite/ld-elf/pr27590b.d: Likewise.
70 * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
71 --reduce-memory-overheads.
72
51f6e7a9
L
732021-03-18 H.J. Lu <hongjiu.lu@intel.com>
74
75 PR ld/27587
76 * testsuite/ld-x86-64/pr27587.err: New file.
77 * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
78 * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
79 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
80
69a28486
NA
812021-03-18 Nick Alcock <nick.alcock@oracle.com>
82
83 * testsuite/ld-ctf/slice.c: Check slices of enums too.
84 * testsuite/ld-ctf/slice.d: Results adjusted.
85
ee42883c
NC
862021-03-16 Nick Clifton <nickc@redhat.com>
87
88 * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
89 lname string.
90
c68b1842
JB
912021-03-15 Jan Beulich <jbeulich@suse.com>
92
93 * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
94
203a206d
AM
952021-03-12 Alan Modra <amodra@gmail.com>
96
97 * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
98 (ALL_64_EMULATION_SOURCES): ..here.
99 * Makefile.in: Regenerate.
100
1b2cb8e2
CC
1012021-03-12 Clément Chigot <clement.chigot@atos.net>
102
103 * emultempl/aix.em: Ensure .tdata section is removed
104 if empty, even with -r flag.
105 * scripttempl/aix.sc: Handle TLS sections.
106 * testsuite/ld-powerpc/aix52.exp: Add new tests.
107 * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
108 * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
109 * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
110 * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
111 * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
112 * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
113 * testsuite/ld-powerpc/aix-tls-section.ex: New test.
114 * testsuite/ld-powerpc/aix-tls-section.s: New test.
115
4a403be0
CC
1162021-03-12 Clément Chigot <clement.chigot@atos.net>
117
118 * scripttempl/aix.sc: Add .te to .data section.
119 * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
120 Add aix-largetoc-1 test.
121 * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
122 * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
123 * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
124 * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
125
68cb2183
AM
1262021-03-12 Alan Modra <amodra@gmail.com>
127
128 * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
129 arrange to define __main for some run_dump_test tests.
130 * testsuite/ld-gc/pr13683.d: Accept more symbols.
131 * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
132 * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
133 * testsuite/ld-srec/srec.exp: Likewise.
134 * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
135
ebdcad3f
NC
1362021-03-11 Nelson Chu <nelson.chu@sifive.com>
137
138 * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
139 many times if riscv_restart_relax_sections returns TRUE.
140 * testsuite/ld-riscv-elf/restart-relax.d: New testcase. Before
141 applying this patch, the call won't be relaxed to jal; But now we
142 have more chances to do relaxations.
143 * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
144 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
145
67b0f684
JB
1462021-03-10 Jan Beulich <jbeulich@suse.com>
147
148 * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
149 than 32 set bits.
150 * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
151 comment.
152 * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
153
5dc75cf3
JB
1542021-03-09 Jan Beulich <jbeulich@suse.com>
155
156 * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
157 alignment to 4k.
158 * testsuite/ld-pe/reloc.d: xfail for mcore.
159
87fa7d56
JB
1602021-03-09 Jan Beulich <jbeulich@suse.com>
161
162 * testsuite/ld-scripts/alignof.exp,
163 testsuite/ld-scripts/data.exp,
164 testsuite/ld-scripts/default-script.exp,
165 testsuite/ld-scripts/log2.exp,
166 testsuite/ld-scripts/print-memory-usage.exp,
167 testsuite/ld-scripts/sizeof.exp,
168 testsuite/ld-undefined/weak-undef.exp: Set image base to zero
169 for PE/COFF.
170 * testsuite/ld-scripts/default-script1.d,
171 testsuite/ld-scripts/default-script2.d,
172 testsuite/ld-scripts/default-script3.d,
173 testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
174
8c0546e9
L
1752021-03-05 H.J. Lu <hongjiu.lu@intel.com>
176
177 PR ld/27425
178 PR ld/27432
179 * ldelf.c (ldelf_set_output_arch): New function.
180 * ldelf.h (ldelf_set_output_arch): New prototype.
181 * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
182 ldelf_set_output_arch.
183 * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
184 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
185 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
186 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
187 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
188 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
189 * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
190 * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
191 * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
192
d4e5db4e
JB
1932021-03-04 Jan Beulich <jbeulich@suse.com>
194
195 * testsuite/ld-scripts/map-address.exp: Set image base to zero
196 for PE/COFF.
197 * testsuite/ld-scripts/map-address.t: Place .text.
198
6fa7408d
JB
1992021-03-04 Jan Beulich <jbeulich@suse.com>
200
201 * ldexp.c (ldexp_is_final_sym_absolute): New.
202 * ldexp.h (ldexp_is_final_sym_absolute): Declare.
203 * pe-dll.c (generate_reloc): Skip absolute symbols.
204 * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
205 * testsuite/ld-pe/pe.exp: Run new test.
206
5789f845
AM
2072021-03-03 Alan Modra <amodra@gmail.com>
208
209 PR 27500
210 * ldlang.c (insert_undefined): Don't mark symbols here.
211 (lang_mark_undefineds): Do so here instead, new function.
212 (lang_process): Call lang_mark_undefineds.
213 * testsuite/ld-gc/start3.d,
214 * testsuite/ld-gc/start3.s: New test.
215 * testsuite/ld-gc/start4.d,
216 * testsuite/ld-gc/start4.s: New test.
217 * testsuite/ld-gc/gc.exp: Run them.
218
270f32fc
AM
2192021-03-03 Alan Modra <amodra@gmail.com>
220
221 * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
222 Move tests with ELF section directives to is_elf_format block.
223 * testsuite/ld-gc/abi-note.d: Run on more targets.
224 * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
225 * testsuite/ld-gc/start.d: Likewise.
226 * testsuite/ld-gc/start2.d: Likewise.
227 * testsuite/ld-gc/stop.d: Likewise.
228 * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
229 * testsuite/ld-gc/start.s: Likewise.
230 * testsuite/ld-gc/start2.s: Likewise.
231
211bcd01
NA
2322021-03-02 Nick Alcock <nick.alcock@oracle.com>
233
234 * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
235
b80e421f
AM
2362021-03-02 Alan Modra <amodra@gmail.com>
237
238 * testsuite/ld-powerpc/startstop.d,
239 * testsuite/ld-powerpc/startstop.r,
240 * testsuite/ld-powerpc/startstop.s: New test.
241 * testsuite/ld-powerpc/powerpc.exp: Run it.
242
f5b9c288
AM
2432021-03-02 Alan Modra <amodra@gmail.com>
244
245 * testsuite/ld-powerpc/weak1.d,
246 * testsuite/ld-powerpc/weak1.r,
247 * testsuite/ld-powerpc/weak1.s,
248 * testsuite/ld-powerpc/weak1so.d,
249 * testsuite/ld-powerpc/weak1so.r: New tests.
250 * testsuite/ld-powerpc/powerpc.exp: Run them.
251
ba6eb62f
NC
2522021-03-01 Hannes Domani <ssbssa@sourceware.org>
253 Nick Clifton <nickc@redhat.com>
254
255 PR 27268
256 * scripttempl/pe.sc: Add DWARF-5 section names.
257 * scripttempl/pep.sc: Likewise.
258
8ee10e86
AM
2592021-03-01 Alan Modra <amodra@gmail.com>
260 Fangrui Song <maskray@google.com>
261
262 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
263 * lexsup.c (elf_static_list_options): Display help for them. Move
264 help for -z stack-size to here from elf_shlib_list_options. Add
265 help for -z start-stop-visibility and -z undefs.
266 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
267 * NEWS: Mention -z start-stop-gc.
268 * testsuite/ld-gc/start2.s,
269 * testsuite/ld-gc/start2.d: New test.
270 * testsuite/ld-gc/gc.exp: Run it.
271
7824c1d2
AM
2722021-03-01 Alan Modra <amodra@gmail.com>
273
274 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
275 symbols undefweak if that was how they were referenced. Undo
276 dynamic state too.
277
6a1224ec
AM
2782021-03-01 Alan Modra <amodra@gmail.com>
279
280 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
281 * testsuite/ld-elf/pr27128a.d: Likewise.
282 * testsuite/ld-elf/pr27128b.d: Likewise.
283 * testsuite/ld-elf/pr27128c.d: Likewise.
284 * testsuite/ld-elf/pr27128d.d: Likewise.
285 * testsuite/ld-elf/pr27128e.d: Likewise.
286
bfece756
AM
2872021-02-26 Alan Modra <amodra@gmail.com>
288
289 PR 27441
290 * testsuite/ld-plugin/pr27441a.c,
291 * testsuite/ld-plugin/pr27441b.c,
292 * testsuite/ld-plugin/pr27441c.c,
293 * testsuite/ld-plugin/pr27441c.d: New test.
294 * testsuite/ld-plugin/lto.exp: Run it.
295
3c27360b
JB
2962021-02-25 Jan Beulich <jbeulich@suse.com>
297
298 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
299
89753bbf
AM
3002021-02-21 Alan Modra <amodra@gmail.com>
301
302 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
303 defined in an object file.
304 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
305 * testsuite/ld-scripts/defined5.d: Expect a warning.
306
2f973f13
AM
3072021-02-19 Alan Modra <amodra@gmail.com>
308
309 * testsuite/lib/ld-lib.exp: Whitespace.
310 (load_common_lib): Expand single use and delete this proc.
311 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
312 Use -B for clang too.
313
a364a116
AB
3142021-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
315
316 * testplugin.c (record_read_length): Remove debug fprintf.
317
5b1f6c95
AM
3182021-02-14 Alan Modra <amodra@gmail.com>
319
320 * testsuite/ld-cdtest/cdtest.exp,
321 * testsuite/ld-checks/checks.exp,
322 * testsuite/ld-elf/binutils.exp,
323 * testsuite/ld-elf/compress.exp,
324 * testsuite/ld-elf/dwarf.exp,
325 * testsuite/ld-elf/exclude.exp,
326 * testsuite/ld-elf/frame.exp,
327 * testsuite/ld-elf/indirect.exp,
328 * testsuite/ld-elf/linux-x86.exp,
329 * testsuite/ld-elf/sec-to-seg.exp,
330 * testsuite/ld-elf/tls_common.exp,
331 * testsuite/ld-elfcomm/elfcomm.exp,
332 * testsuite/ld-elfvers/vers.exp,
333 * testsuite/ld-elfvsb/elfvsb.exp,
334 * testsuite/ld-elfweak/elfweak.exp,
335 * testsuite/ld-ifunc/binutils.exp,
336 * testsuite/ld-mips-elf/mips-elf-flags.exp,
337 * testsuite/ld-misc/defsym.exp,
338 * testsuite/ld-mn10300/mn10300.exp,
339 * testsuite/ld-plugin/lto.exp,
340 * testsuite/ld-plugin/plugin.exp,
341 * testsuite/ld-scripts/align.exp,
342 * testsuite/ld-scripts/assert.exp,
343 * testsuite/ld-scripts/crossref.exp,
344 * testsuite/ld-scripts/defined.exp,
345 * testsuite/ld-scripts/extern.exp,
346 * testsuite/ld-scripts/log2.exp,
347 * testsuite/ld-scripts/map-address.exp,
348 * testsuite/ld-scripts/phdrs.exp,
349 * testsuite/ld-scripts/phdrs2.exp,
350 * testsuite/ld-scripts/script.exp,
351 * testsuite/ld-scripts/section-flags.exp,
352 * testsuite/ld-scripts/sizeof.exp,
353 * testsuite/ld-scripts/weak.exp,
354 * testsuite/ld-selective/selective.exp,
355 * testsuite/ld-sh/sh.exp,
356 * testsuite/ld-shared/shared.exp,
357 * testsuite/ld-srec/srec.exp,
358 * testsuite/ld-tic6x/tic6x.exp,
359 * testsuite/ld-undefined/undefined.exp,
360 * testsuite/ld-undefined/weak-undef.exp,
361 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
362 perror. Instead report "unsupported" or "fail".
363
c46b7066
NC
3642021-02-12 Nick Clifton <nickc@redhat.com>
365
366 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
367 following debug links.
368
933feaf3
AM
3692021-02-11 Alan Modra <amodra@gmail.com>
370
371 * NEWS: Mention arm-symbianelf removal.
372
a57d1773
AM
3732021-02-09 Alan Modra <amodra@gmail.com>
374
375 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
376 Don't include symbian dep file.
377 * configure.tgt: Remove arm*-*-symbianelf* entry.
378 * emulparams/armsymbian.sh: Delete.
379 * ld.texi: Don't mention symbian.
380 * scripttempl/armbpabi.sc: Delete.
381 * testsuite/ld-arm/symbian-seg1.d: Delete.
382 * testsuite/ld-arm/symbian-seg1.s: Delete.
383 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
384 * Makefile.in: Regenerate.
385 * po/BLD-POTFILES.in: Regenerate.
386
38a143aa
L
3872021-02-07 H.J. Lu <hongjiu.lu@intel.com>
388
389 PR ld/27358
390 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
391 tests.
392 * testsuite/ld-x86-64/x86-64.exp: Likewise.
393
35a01a04
NA
3942021-01-26 Nick Alcock <nick.alcock@oracle.com>
395
396 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
397 when appropriate.
398
1a2f1b54
L
3992021-02-04 H.J. Lu <hongjiu.lu@intel.com>
400
401 PR ld/19609
402 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
403 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
404 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
405 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
406 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
407 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
408 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
409
37707bd8
L
4102021-02-04 H.J. Lu <hongjiu.lu@intel.com>
411
412 PR ld/15146
413 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
414 * testsuite/ld-plugin/pr15146.d: Restored.
415 * testsuite/ld-plugin/pr15146a.c: Likewise.
416 * testsuite/ld-plugin/pr15146b.c: Likewise.
417 * testsuite/ld-plugin/pr15146c.c: Likewise.
418 * testsuite/ld-plugin/pr15146d.c: Likewise.
419
7d409ac0
AM
4202021-02-04 Alan Modra <amodra@gmail.com>
421
422 * testsuite/ld-plugin/pr27311d.c: New test.
423 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
424 and link new test as pr27311-2.
425
69551367
AM
4262021-02-03 Alan Modra <amodra@gmail.com>
427
428 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
429 Link with --as-needed.
430
9918bff7
AM
4312021-02-02 Alan Modra <amodra@gmail.com>
432
433 * testsuite/ld-plugin/pr27311.d,
434 * testsuite/ld-plugin/pr27311.ver,
435 * testsuite/ld-plugin/pr27311a.c,
436 * testsuite/ld-plugin/pr27311b.c,
437 * testsuite/ld-plugin/pr27311c.c: New testcase.
438 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
439 PR12982 entries.
440
1f568f9a
EH
4412021-02-01 Emery Hemingway <ehmry@posteo.net>
442
443 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
444
fb6c220e
AM
4452021-02-01 Alan Modra <amodra@gmail.com>
446
447 * ldgram.y (defsym_expr): Use assignment rule.
448 * ldlex.h (ldlex_defsym): Delete.
449 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
450
40726f16
AM
4512021-02-01 Alan Modra <amodra@gmail.com>
452
453 * ldgram.y (section): Call ldlex_backup. Remove empty action.
454 * ldlex.h (ldlex_backup): Declare.
455 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
456 chars, use SYMBOLNAMECHAR.
457 (ldlex_backup): New function.
458
a5f92c67
AM
4592021-02-01 Alan Modra <amodra@gmail.com>
460
461 * ldgram.y: Whitespace fixes.
462
49daa38f
AM
4632021-02-01 Alan Modra <amodra@gmail.com>
464
465 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
466
c4566785
AM
4672021-01-29 Alan Modra <amodra@gmail.com>
468
469 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
470
53e556e5
L
4712021-01-28 H.J. Lu <hongjiu.lu@intel.com>
472
473 PR ld/27259
474 * testsuite/ld-elf/pr27259.d: New file.
475 * testsuite/ld-elf/pr27259.s: Likewise.
476
def97fb9
AM
4772021-01-28 Alan Modra <amodra@gmail.com>
478
479 PR 27259
480 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
481 prevent endless looping of linked-to sections.
482
2eda57ef
L
4832021-01-26 H.J. Lu <hongjiu.lu@intel.com>
484
485 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
486
1c9c9b9b
AM
4872021-01-26 Alan Modra <amodra@gmail.com>
488
489 PR 27226
490 * emulparams/alphavms.sh: Don't set COMPILE_IN.
491 * emulparams/elf64_ia64_vms.sh: Likewise.
492 * emulparams/elf64mmix.sh: Likewise.
493 * emulparams/elf_iamcu.sh: Likewise.
494 * emulparams/elf_k1om.sh: Likewise.
495 * emulparams/elf_l1om.sh: Likewise.
496 * emulparams/mmo.sh: Likewise.
497 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
498 * scripttempl/pdp11.sc: Use it.
499 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
500 instead use .xe script. Support scripts from file system.
501 * emultempl/beos.em: Support scripts from file system.
502 * emultempl/pe.em: Likewise.
503 * emultempl/pep.em: Likewise.
504 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
505
9e42b976
FS
5062021-01-25 Fangrui Song <maskray@google.com>
507
508 PR ld/27230
509 * scripttempl/DWARF.sc: Add .debug_* sections.
510
b8df6900
NC
5112021-01-25 Nick Clifton <nickc@redhat.com>
512
513 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
514 .debug_line_str and .debug_str_offsets. Move .debug_macro and
515 .debug_addr into DWARF-5 section.
516
c78eec44
AM
5172021-01-21 Alan Modra <amodra@gmail.com>
518
519 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
520
4bd7c902
AM
5212021-01-20 Alan Modra <amodra@gmail.com>
522
523 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
524 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
525 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
526 * testsuite/ld-powerpc/tlsget.wf: Likewise.
527 * testsuite/ld-powerpc/tlsget2.d: Likewise.
528 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
529 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
530 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
531 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
532 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
533 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
534 * testsuite/ld-powerpc/tlsexers.r: Likewise.
535 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
536 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
537 * testsuite/ld-powerpc/tlsso.r: Likewise.
538 * testsuite/ld-powerpc/tlsso32.r: Likewise.
539 * testsuite/ld-powerpc/tlstocso.r: Likewise.
540
c98de297
NA
5412021-01-19 Nick Alcock <nick.alcock@oracle.com>
542
543 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
544 symbols by the optimizer.
545 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
546
85e963f1
NC
5472021-01-19 Nelson Chu <nelson.chu@sifive.com>
548
549 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
550 if target is riscv little endian. Otherwise, return false.
551 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
552 targets by [riscv_little_endian].
553
326adec3
AM
5542021-01-18 Alan Modra <amodra@gmail.com>
555
556 PR 26378
557 * ldlang.c (map_input_to_output_sections): Start with a read-only
558 section for data statements.
559 * testsuite/ld-elf/size-2.d: Adjust to suit.
560
994b2513
L
5612021-01-17 H.J. Lu <hongjiu.lu@intel.com>
562
563 PR ld/27193
564 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
565 * testsuite/ld-i386/pr27193.dd: New file.
566 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
567 * testsuite/ld-i386/pr27193b.s: Likewise.
568
edf0f284
L
5692021-01-16 H.J. Lu <hongjiu.lu@intel.com>
570
571 PR binutils/23460
572 * testsuite/ld-plugin/lto.exp: Increase the max number of open
573 files to 20 for PR binutils/23460 test.
574
75a933f3
L
5752021-01-16 H.J. Lu <hongjiu.lu@intel.com>
576
577 PR ld/23169
578 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
579 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
580 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
581 address.
582
68b00778
L
5832021-01-15 H.J. Lu <hongjiu.lu@intel.com>
584
585 * NEWS: Mention -z report-relative-reloc.
586 * ld.texi: Document -z report-relative-reloc.
587 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
588 * emulparams/elf_i386.sh: Likewse.
589 * emulparams/elf_x86_64.sh: Likewse.
590 * emulparams/x86-report-relative.sh: New file.
591 * testsuite/ld-i386/report-reloc-1.d: Likewse.
592 * testsuite/ld-i386/report-reloc-1.l: Likewse.
593 * testsuite/ld-i386/report-reloc-1.s: Likewse.
594 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
595 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
596 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
597 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
598 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
599 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
600 report-reloc-1-x32.
601
eb6e6af8
AM
6022021-01-16 Alan Modra <amodra@gmail.com>
603
604 PR 26002
605 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
606 unversioned symbols.
607 * testsuite/ld-elfvers/vers16.dsym: Likewise.
608
b800637e
NC
6092021-01-15 Nelson Chu <nelson.chu@sifive.com>
610
611 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
612 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
613 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
614 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
615 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
616 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
617
5a10699f
NC
6182021-01-14 Nick Clifton <nickc@redhat.com>
619
620 * po/fr.po: Updated French translation.
621
271bea6a
MF
6222021-01-14 Mike Frysinger <vapier@gentoo.org>
623
624 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
625
4120e488
AM
6262021-01-14 Alan Modra <amodra@gmail.com>
627
628 PR 27160
629 * ldelfgen.c (compare_link_order): Protect access of ELF section
630 data.
631 (add_link_order_input_section): Remove redundant NULL check.
632 Use bfd_get_flavour.
633 (ldelf_map_segments): Use bfd_get_flavour.
634
b634d11d
L
6352021-01-13 H.J. Lu <hongjiu.lu@intel.com>
636
637 * ldelfgen.c (add_link_order_input_section): Check for ELF input
638 before accessing ELF section data.
639
5347ed60
AM
6402021-01-13 Alan Modra <amodra@gmail.com>
641
642 * Makefile.in: Regenerate.
643
b209b5a6
AM
6442021-01-13 Alan Modra <amodra@gmail.com>
645
646 PR 27160
647 * ldlang.h (lang_output_section_statement_type): Add data field.
648 (lang_input_section_type, lang_section_bst_type): Add pattern field.
649 (statement_list): Declare.
650 (lang_add_section): Adjust prototype.
651 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
652 * emultempl/armelf.em: Likewise.
653 * emultempl/beos.em: Likewise.
654 * emultempl/cskyelf.em: Likewise.
655 * emultempl/hppaelf.em: Likewise.
656 * emultempl/m68hc1xelf.em: Likewise.
657 * emultempl/metagelf.em: Likewise.
658 * emultempl/mipself.em: Likewise.
659 * emultempl/mmo.em: Likewise.
660 * emultempl/msp430.em: Likewise.
661 * emultempl/nios2elf.em: Likewise.
662 * emultempl/pe.em: Likewise.
663 * emultempl/pep.em: Likewise.
664 * emultempl/ppc64elf.em: Likewise.
665 * emultempl/spuelf.em: Likewise.
666 * emultempl/vms.em: Likewise.
667 * ldelf.c: Likewise.
668 * ldelfgen.c: Include ldctor.h.
669 (struct os_sections): New.
670 (add_link_order_input_section, link_order_scan): New functions.
671 (compare_link_order, fixup_link_order): New functions.
672 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
673 * ldlang.c (statement_list): Make global.
674 (output_section_callback_fast): Save pattern in tree node.
675 (lang_add_section): Add pattern parameter, save in lang_input_section.
676 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
677 (lang_insert_orphan, output_section_callback): Likewise.
678 (ldlang_place_orphan): Likewise.
679 (gc_section_callback): Don't set section->pattern.
680 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
681 * testsuite/ld-elf/pr26256-3b.d: Likewise.
682 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
683
8c4645b4
AM
6842021-01-13 Alan Modra <amodra@gmail.com>
685
686 * ldlang.h (callback_t): Remove flag_info function parameter.
687 * ldlang.c (walk_wild_consider_section): Adjust to suit.
688 (walk_wild_section_general): Likewise.
689 (output_section_callback_fast, output_section_callback): Likewise.
690 (check_section_callback, gc_section_callback): Likewise.
691 (find_relro_section_callback): Likewise.
692
d546b610
L
6932021-01-12 H.J. Lu <hongjiu.lu@intel.com>
694
695 PR binutils/26792
696 * configure.ac: Use GNU_MAKE_JOBSERVER.
697 * aclocal.m4: Regenerated.
698 * configure: Likewise.
699
c2e9a4a3
L
7002021-01-12 H.J. Lu <hongjiu.lu@intel.com>
701
702 PR ld/27171
703 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
704 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
705 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
706 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
707
83b33c6c
L
7082021-01-11 H.J. Lu <hongjiu.lu@intel.com>
709
710 PR ld/27173
711 * configure: Regenerated.
712
c0f6e439
MJ
7132021-01-11 Matt Jenkins <matt@majenko.co.uk>
714
715 PR ld/27167
716 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
717 and mips64r5 to list of known mips targets.
718
7192021-01-11 Nick Clifton <nickc@redhat.com>matt@majenko.co.uk
a8aa72b9
NC
720
721 * po/pt_BR.po: Updated Brazilian Portuguese translation.
722` * po/uk.po: Updated Ukranian translation.
723
a4966cd9
L
7242021-01-09 H.J. Lu <hongjiu.lu@intel.com>
725
726 * configure: Regenerated.
727
0a94990b
L
7282021-01-09 H.J. Lu <hongjiu.lu@intel.com>
729
730 PR ld/27166
731 * testsuite/ld-x86-64/lam-u48.rd: New file.
732 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
733 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
734
573fe3fb
NC
7352021-01-09 Nick Clifton <nickc@redhat.com>
736
737 * configure: Regenerate.
738 * po/ld.pot: Regenerate.
739
055bc77a
NC
7402021-01-09 Nick Clifton <nickc@redhat.com>
741
742 * 2.36 release branch crated.
743
ba9e922f
L
7442021-01-08 H.J. Lu <hongjiu.lu@intel.com>
745
746 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
747 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
748
64307045
AM
7492021-01-09 Alan Modra <amodra@gmail.com>
750
751 * configure: Regenerate.
752 * Makefile.in: Regenerate.
753
f4782128
ST
7542021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
755
756 * configure: Regenerate.
757
d1bcae83
L
7582021-01-07 H.J. Lu <hongjiu.lu@intel.com>
759
760 PR 27109
761 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
762 * testsuite/ld-elf/loadaddr3b.d: Likewise.
763 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
764 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
765 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
766 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
767 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
768 * testsuite/ld-i386/pr19636-1d.d: Likewise.
769 * testsuite/ld-i386/pr19636-1l.d: Likewise.
770 * testsuite/ld-i386/pr19636-2c.d: Likewise.
771 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
772 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
773 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
774 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
775 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
776 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
777 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
778 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
779 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
780 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
781 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
782 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
783 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
784 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
785 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
786 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
787 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
788 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
789 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
790 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
791 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
792 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
793 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
794 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
795 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
796 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
797 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
798 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
799 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
800 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
801 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
802 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
803 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
804 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
805 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
806 * testsuite/ld-x86-64/pr21038b.d: Likewise.
807 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
808 * testsuite/ld-x86-64/pr21038c.d: Likewise.
809 * testsuite/ld-x86-64/pr23854.d: Likewise.
810 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
811 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
812 * testsuite/ld-i386/plt-pic.pd: Likewise.
813 * testsuite/ld-i386/plt-pic2.dd: Likewise.
814 * testsuite/ld-i386/plt.pd: Likewise.
815 * testsuite/ld-i386/plt2.dd: Likewise.
816 * testsuite/ld-i386/tlsbin.rd: Likewise.
817 * testsuite/ld-i386/tlsbin2.rd: Likewise.
818 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
819 * testsuite/ld-i386/tlsdesc.rd: Likewise.
820 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
821 * testsuite/ld-i386/tlsnopic.rd: Likewise.
822 * testsuite/ld-i386/tlspic.rd: Likewise.
823 * testsuite/ld-i386/tlspic2.rd: Likewise.
824 * testsuite/ld-x86-64/mpx3.dd: Likewise.
825 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
826 * testsuite/ld-x86-64/mpx4.dd: Likewise.
827 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
828 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
829 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
830 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
831 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
832 * testsuite/ld-x86-64/plt.pd: Likewise.
833 * testsuite/ld-x86-64/plt2.dd: Likewise.
834 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
835 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
836 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
837 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
838 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
839 * testsuite/ld-x86-64/tlspic.rd: Likewise.
840 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
841 * testsuite/ld-elf/sec64k.exp: Check
842 is_elf_unused_section_symbols.
843
dc200613
AM
8442021-01-07 Alan Modra <amodra@gmail.com>
845
846 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
847 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
848 * testsuite/ld-scripts/segment-start.d: Likewise.
849
8e604ff0
AM
8502021-01-07 Alan Modra <amodra@gmail.com>
851
852 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
853 about dynamic relocations in read-only sections.
854 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
855 * testsuite/ld-elf/ehdr_start.d: Likewise.
856 * testsuite/ld-scripts/pr22267.d: Likewise.
857 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
858 pr20995 text.
859 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
860
4d4490b8
MC
8612021-01-07 Marcus Comstedt <marcus@mc.pp.se>
862
863 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
864 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
865
f526791a
AM
8662021-01-07 Alan Modra <amodra@gmail.com>
867
868 * po/BLD-POTFILES.in: Regenerate.
869
4018f4e0
AM
8702021-01-07 Alan Modra <amodra@gmail.com>
871
872 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
873 complain about relocs in read-only sections. Tidy ASFLAGS append.
874
3677b729
AM
8752021-01-06 Alan Modra <amodra@gmail.com>
876
877 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
878 base for some tests.
879 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
880 * testsuite/ld-sparc/gotop32.sd: Likewise.
881 * testsuite/ld-sparc/gotop32.td: Likewise.
882 * testsuite/ld-sparc/gotop64.dd: Likewise.
883 * testsuite/ld-sparc/gotop64.sd: Likewise.
884 * testsuite/ld-sparc/gotop64.td: Likewise.
885 * testsuite/ld-sparc/tlsg32.sd: Likewise.
886 * testsuite/ld-sparc/tlsg64.sd: Likewise.
887 * testsuite/ld-sparc/tlspie32.dd: Likewise.
888 * testsuite/ld-sparc/tlspie64.dd: Likewise.
889 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
890 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
891 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
892 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
893 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
894 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
895 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
896 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
897 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
898 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
899 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
900 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
901 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
902 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
903 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
904 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
905 * testsuite/ld-sparc/wdispcall.dd: Likewise.
906
73624512
AM
9072021-01-06 Alan Modra <amodra@gmail.com>
908
909 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
910 * testsuite/ld-scripts/rgn-at11.d: Likewise.
911
f36ce378
MC
9122021-01-06 Marcus Comstedt <marcus@mc.pp.se>
913
914 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
915 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
916 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
917 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
918 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
919 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
920 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
921 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
922 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
923 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
924 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
925 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
926 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
927 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
928 to littleriscv.
929 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
930
fbc09e7a
MC
9312021-01-06 Marcus Comstedt <marcus@mc.pp.se>
932
933 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
934 riscv32be*-*-linux*, and riscv64be*-*-linux*.
935 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
936 eelf32briscv_ilp32.c.
937 * Makefile.in: Regenerate.
938 * emulparams/elf32briscv.sh: Added.
939 * emulparams/elf32briscv_ilp32.sh: Likewise.
940 * emulparams/elf32briscv_ilp32f.sh: Likewise.
941 * emulparams/elf64briscv.sh: Likewise.
942 * emulparams/elf64briscv_lp64.sh: Likewise.
943 * emulparams/elf64briscv_lp64f.sh: Likewise.
944
b4b6ea46
NA
9452021-01-05 Nick Alcock <nick.alcock@oracle.com>
946
947 * testsuite/ld-ctf/enum-forward.c: New test.
948 * testsuite/ld-ctf/enum-forward.c: New results.
949
37002871
NA
9502021-01-05 Nick Alcock <nick.alcock@oracle.com>
951
952 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
953 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
954 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
955 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
956 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
957 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
958 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
959 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
960 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
961 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
962 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
963 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
964 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
965 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
966 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
967 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
968 * testsuite/ld-ctf/cycle-1.d: Likewise.
969 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
970 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
971 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
972 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
973 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
974 * testsuite/ld-ctf/diag-cuname.d: Likewise.
975 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
976 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
977 * testsuite/ld-ctf/forward.d: Likewise.
978 * testsuite/ld-ctf/function.d: Likewise.
979 * testsuite/ld-ctf/slice.d: Likewise.
980 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
981 * testsuite/ld-ctf/enums.c: New test.
982 * testsuite/ld-ctf/enums.d: New test.
983
ffeece6a
NA
9842021-01-05 Nick Alcock <nick.alcock@oracle.com>
985
986 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
987 changes.
988 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
989 * testsuite/ld-ctf/forward.c: New test...
990 * testsuite/ld-ctf/forward.d: ... and results.
991
91e7ce2f
NA
9922021-01-05 Nick Alcock <nick.alcock@oracle.com>
993
994 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
995 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
996 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
997 * testsuite/ld-ctf/diag-cuname.d: Likewise.
998 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
999 * testsuite/ld-ctf/function.d: Likewise.
1000 * testsuite/ld-ctf/slice.d: Likewise.
1001
57f97d0e
NA
10022021-01-05 Nick Alcock <nick.alcock@oracle.com>
1003
1004 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1005 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1006 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1007 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1008 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1009 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1010 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1011 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1012 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1013 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1014 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1015 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1016 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1017 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1018 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1019 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1020 * testsuite/ld-ctf/cycle-1.d: Likewise.
1021 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1022 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1023 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1024 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1025 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1026 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1027 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1028 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1029 * testsuite/ld-ctf/function.d: Likewise.
1030 * testsuite/ld-ctf/slice.d: Likewise.
1031 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1032
b281a04f
AM
10332021-01-05 Alan Modra <amodra@gmail.com>
1034
1035 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
1036
40b11930
AM
10372021-01-05 Alan Modra <amodra@gmail.com>
1038
1039 PR ld/26256
1040 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
1041 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
1042
cd6d537c
L
10432021-01-04 H.J. Lu <hongjiu.lu@intel.com>
1044
1045 PR ld/26256
1046 * ldlang.c (gc_section_callback): Set pattern.
1047 * testsuite/ld-elf/pr26256-1.s: New file.
1048 * testsuite/ld-elf/pr26256-1.t: Likewise.
1049 * testsuite/ld-elf/pr26256-1a.d: Likewise.
1050 * testsuite/ld-elf/pr26256-1b.d: Likewise.
1051 * testsuite/ld-elf/pr26256-2.s: Likewise.
1052 * testsuite/ld-elf/pr26256-2.t: Likewise.
1053 * testsuite/ld-elf/pr26256-2a.d: Likewise.
1054 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
1055 * testsuite/ld-elf/pr26256-2b.d: Likewise.
1056 * testsuite/ld-elf/pr26256-3.s: Likewise.
1057 * testsuite/ld-elf/pr26256-3a.d: Likewise.
1058 * testsuite/ld-elf/pr26256-3a.t: Likewise.
1059 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1060 * testsuite/ld-elf/pr26256-3b.t: Likewise.
1061
5b4293ba
AM
10622021-01-04 Alan Modra <amodra@gmail.com>
1063
1064 PR 26822
1065 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
1066 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
1067 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
1068 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
1069 * testsuite/ld-i386/tlsbin.rd: Likewise.
1070 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1071 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1072 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1073 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1074 * testsuite/ld-i386/tlspic.rd: Likewise.
1075 * testsuite/ld-i386/tlspic2.rd: Likewise.
1076 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
1077 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
1078 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
1079 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
1080 * testsuite/ld-plugin/pr17973.d: Likewise.
1081 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
1082 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
1083 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
1084 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
1085 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
1086 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
1087 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
1088 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
1089 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
1090 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
1091 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
1092 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
1093 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
1094 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1095 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1096 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1097 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1098 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1099 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1100 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
1101 * testsuite/ld-xtensa/tlspic.rd: Likewise.
1102
f9a6a8f0
AM
11032021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1104
1105 * configure.tgt: Correct comment grammar.
1106 * emultempl/m68hc1xelf.em: Likewise.
1107 * ld.texi: Correct grammar.
1108
250d07de
AM
11092021-01-01 Alan Modra <amodra@gmail.com>
1110
1111 Update year range in copyright notice of all files.
1112
c2795844 1113For older changes see ChangeLog-2020
3499769a 1114\f
c2795844 1115Copyright (C) 2021 Free Software Foundation, Inc.
3499769a
AM
1116
1117Copying and distribution of this file, with or without modification,
1118are permitted in any medium without royalty provided the copyright
1119notice and this notice are preserved.
1120
1121Local Variables:
1122mode: change-log
1123left-margin: 8
1124fill-column: 74
1125version-control: never
1126End: