Add DWARF-5 section names to PE and PEP linker scripts.
[binutils-gdb.git] / ld / ChangeLog
1 2021-03-01 Hannes Domani <ssbssa@sourceware.org>
2 Nick Clifton <nickc@redhat.com>
3
4 PR 27268
5 * scripttempl/pe.sc: Add DWARF-5 section names.
6 * scripttempl/pep.sc: Likewise.
7
8 2021-03-01 Alan Modra <amodra@gmail.com>
9 Fangrui Song <maskray@google.com>
10
11 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
12 * lexsup.c (elf_static_list_options): Display help for them. Move
13 help for -z stack-size to here from elf_shlib_list_options. Add
14 help for -z start-stop-visibility and -z undefs.
15 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
16 * NEWS: Mention -z start-stop-gc.
17 * testsuite/ld-gc/start2.s,
18 * testsuite/ld-gc/start2.d: New test.
19 * testsuite/ld-gc/gc.exp: Run it.
20
21 2021-03-01 Alan Modra <amodra@gmail.com>
22
23 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
24 symbols undefweak if that was how they were referenced. Undo
25 dynamic state too.
26
27 2021-03-01 Alan Modra <amodra@gmail.com>
28
29 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
30 * testsuite/ld-elf/pr27128a.d: Likewise.
31 * testsuite/ld-elf/pr27128b.d: Likewise.
32 * testsuite/ld-elf/pr27128c.d: Likewise.
33 * testsuite/ld-elf/pr27128d.d: Likewise.
34 * testsuite/ld-elf/pr27128e.d: Likewise.
35
36 2021-02-26 Alan Modra <amodra@gmail.com>
37
38 PR 27441
39 * testsuite/ld-plugin/pr27441a.c,
40 * testsuite/ld-plugin/pr27441b.c,
41 * testsuite/ld-plugin/pr27441c.c,
42 * testsuite/ld-plugin/pr27441c.d: New test.
43 * testsuite/ld-plugin/lto.exp: Run it.
44
45 2021-02-25 Jan Beulich <jbeulich@suse.com>
46
47 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
48
49 2021-02-21 Alan Modra <amodra@gmail.com>
50
51 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
52 defined in an object file.
53 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
54 * testsuite/ld-scripts/defined5.d: Expect a warning.
55
56 2021-02-19 Alan Modra <amodra@gmail.com>
57
58 * testsuite/lib/ld-lib.exp: Whitespace.
59 (load_common_lib): Expand single use and delete this proc.
60 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
61 Use -B for clang too.
62
63 2021-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
64
65 * testplugin.c (record_read_length): Remove debug fprintf.
66
67 2021-02-14 Alan Modra <amodra@gmail.com>
68
69 * testsuite/ld-cdtest/cdtest.exp,
70 * testsuite/ld-checks/checks.exp,
71 * testsuite/ld-elf/binutils.exp,
72 * testsuite/ld-elf/compress.exp,
73 * testsuite/ld-elf/dwarf.exp,
74 * testsuite/ld-elf/exclude.exp,
75 * testsuite/ld-elf/frame.exp,
76 * testsuite/ld-elf/indirect.exp,
77 * testsuite/ld-elf/linux-x86.exp,
78 * testsuite/ld-elf/sec-to-seg.exp,
79 * testsuite/ld-elf/tls_common.exp,
80 * testsuite/ld-elfcomm/elfcomm.exp,
81 * testsuite/ld-elfvers/vers.exp,
82 * testsuite/ld-elfvsb/elfvsb.exp,
83 * testsuite/ld-elfweak/elfweak.exp,
84 * testsuite/ld-ifunc/binutils.exp,
85 * testsuite/ld-mips-elf/mips-elf-flags.exp,
86 * testsuite/ld-misc/defsym.exp,
87 * testsuite/ld-mn10300/mn10300.exp,
88 * testsuite/ld-plugin/lto.exp,
89 * testsuite/ld-plugin/plugin.exp,
90 * testsuite/ld-scripts/align.exp,
91 * testsuite/ld-scripts/assert.exp,
92 * testsuite/ld-scripts/crossref.exp,
93 * testsuite/ld-scripts/defined.exp,
94 * testsuite/ld-scripts/extern.exp,
95 * testsuite/ld-scripts/log2.exp,
96 * testsuite/ld-scripts/map-address.exp,
97 * testsuite/ld-scripts/phdrs.exp,
98 * testsuite/ld-scripts/phdrs2.exp,
99 * testsuite/ld-scripts/script.exp,
100 * testsuite/ld-scripts/section-flags.exp,
101 * testsuite/ld-scripts/sizeof.exp,
102 * testsuite/ld-scripts/weak.exp,
103 * testsuite/ld-selective/selective.exp,
104 * testsuite/ld-sh/sh.exp,
105 * testsuite/ld-shared/shared.exp,
106 * testsuite/ld-srec/srec.exp,
107 * testsuite/ld-tic6x/tic6x.exp,
108 * testsuite/ld-undefined/undefined.exp,
109 * testsuite/ld-undefined/weak-undef.exp,
110 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
111 perror. Instead report "unsupported" or "fail".
112
113 2021-02-12 Nick Clifton <nickc@redhat.com>
114
115 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
116 following debug links.
117
118 2021-02-11 Alan Modra <amodra@gmail.com>
119
120 * NEWS: Mention arm-symbianelf removal.
121
122 2021-02-09 Alan Modra <amodra@gmail.com>
123
124 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
125 Don't include symbian dep file.
126 * configure.tgt: Remove arm*-*-symbianelf* entry.
127 * emulparams/armsymbian.sh: Delete.
128 * ld.texi: Don't mention symbian.
129 * scripttempl/armbpabi.sc: Delete.
130 * testsuite/ld-arm/symbian-seg1.d: Delete.
131 * testsuite/ld-arm/symbian-seg1.s: Delete.
132 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
133 * Makefile.in: Regenerate.
134 * po/BLD-POTFILES.in: Regenerate.
135
136 2021-02-07 H.J. Lu <hongjiu.lu@intel.com>
137
138 PR ld/27358
139 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
140 tests.
141 * testsuite/ld-x86-64/x86-64.exp: Likewise.
142
143 2021-01-26 Nick Alcock <nick.alcock@oracle.com>
144
145 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
146 when appropriate.
147
148 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
149
150 PR ld/19609
151 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
152 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
153 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
154 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
155 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
156 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
157 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
158
159 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
160
161 PR ld/15146
162 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
163 * testsuite/ld-plugin/pr15146.d: Restored.
164 * testsuite/ld-plugin/pr15146a.c: Likewise.
165 * testsuite/ld-plugin/pr15146b.c: Likewise.
166 * testsuite/ld-plugin/pr15146c.c: Likewise.
167 * testsuite/ld-plugin/pr15146d.c: Likewise.
168
169 2021-02-04 Alan Modra <amodra@gmail.com>
170
171 * testsuite/ld-plugin/pr27311d.c: New test.
172 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
173 and link new test as pr27311-2.
174
175 2021-02-03 Alan Modra <amodra@gmail.com>
176
177 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
178 Link with --as-needed.
179
180 2021-02-02 Alan Modra <amodra@gmail.com>
181
182 * testsuite/ld-plugin/pr27311.d,
183 * testsuite/ld-plugin/pr27311.ver,
184 * testsuite/ld-plugin/pr27311a.c,
185 * testsuite/ld-plugin/pr27311b.c,
186 * testsuite/ld-plugin/pr27311c.c: New testcase.
187 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
188 PR12982 entries.
189
190 2021-02-01 Emery Hemingway <ehmry@posteo.net>
191
192 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
193
194 2021-02-01 Alan Modra <amodra@gmail.com>
195
196 * ldgram.y (defsym_expr): Use assignment rule.
197 * ldlex.h (ldlex_defsym): Delete.
198 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
199
200 2021-02-01 Alan Modra <amodra@gmail.com>
201
202 * ldgram.y (section): Call ldlex_backup. Remove empty action.
203 * ldlex.h (ldlex_backup): Declare.
204 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
205 chars, use SYMBOLNAMECHAR.
206 (ldlex_backup): New function.
207
208 2021-02-01 Alan Modra <amodra@gmail.com>
209
210 * ldgram.y: Whitespace fixes.
211
212 2021-02-01 Alan Modra <amodra@gmail.com>
213
214 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
215
216 2021-01-29 Alan Modra <amodra@gmail.com>
217
218 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
219
220 2021-01-28 H.J. Lu <hongjiu.lu@intel.com>
221
222 PR ld/27259
223 * testsuite/ld-elf/pr27259.d: New file.
224 * testsuite/ld-elf/pr27259.s: Likewise.
225
226 2021-01-28 Alan Modra <amodra@gmail.com>
227
228 PR 27259
229 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
230 prevent endless looping of linked-to sections.
231
232 2021-01-26 H.J. Lu <hongjiu.lu@intel.com>
233
234 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
235
236 2021-01-26 Alan Modra <amodra@gmail.com>
237
238 PR 27226
239 * emulparams/alphavms.sh: Don't set COMPILE_IN.
240 * emulparams/elf64_ia64_vms.sh: Likewise.
241 * emulparams/elf64mmix.sh: Likewise.
242 * emulparams/elf_iamcu.sh: Likewise.
243 * emulparams/elf_k1om.sh: Likewise.
244 * emulparams/elf_l1om.sh: Likewise.
245 * emulparams/mmo.sh: Likewise.
246 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
247 * scripttempl/pdp11.sc: Use it.
248 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
249 instead use .xe script. Support scripts from file system.
250 * emultempl/beos.em: Support scripts from file system.
251 * emultempl/pe.em: Likewise.
252 * emultempl/pep.em: Likewise.
253 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
254
255 2021-01-25 Fangrui Song <maskray@google.com>
256
257 PR ld/27230
258 * scripttempl/DWARF.sc: Add .debug_* sections.
259
260 2021-01-25 Nick Clifton <nickc@redhat.com>
261
262 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
263 .debug_line_str and .debug_str_offsets. Move .debug_macro and
264 .debug_addr into DWARF-5 section.
265
266 2021-01-21 Alan Modra <amodra@gmail.com>
267
268 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
269
270 2021-01-20 Alan Modra <amodra@gmail.com>
271
272 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
273 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
274 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
275 * testsuite/ld-powerpc/tlsget.wf: Likewise.
276 * testsuite/ld-powerpc/tlsget2.d: Likewise.
277 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
278 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
279 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
280 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
281 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
282 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
283 * testsuite/ld-powerpc/tlsexers.r: Likewise.
284 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
285 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
286 * testsuite/ld-powerpc/tlsso.r: Likewise.
287 * testsuite/ld-powerpc/tlsso32.r: Likewise.
288 * testsuite/ld-powerpc/tlstocso.r: Likewise.
289
290 2021-01-19 Nick Alcock <nick.alcock@oracle.com>
291
292 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
293 symbols by the optimizer.
294 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
295
296 2021-01-19 Nelson Chu <nelson.chu@sifive.com>
297
298 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
299 if target is riscv little endian. Otherwise, return false.
300 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
301 targets by [riscv_little_endian].
302
303 2021-01-18 Alan Modra <amodra@gmail.com>
304
305 PR 26378
306 * ldlang.c (map_input_to_output_sections): Start with a read-only
307 section for data statements.
308 * testsuite/ld-elf/size-2.d: Adjust to suit.
309
310 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
311
312 PR ld/27193
313 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
314 * testsuite/ld-i386/pr27193.dd: New file.
315 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
316 * testsuite/ld-i386/pr27193b.s: Likewise.
317
318 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
319
320 PR binutils/23460
321 * testsuite/ld-plugin/lto.exp: Increase the max number of open
322 files to 20 for PR binutils/23460 test.
323
324 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
325
326 PR ld/23169
327 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
328 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
329 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
330 address.
331
332 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
333
334 * NEWS: Mention -z report-relative-reloc.
335 * ld.texi: Document -z report-relative-reloc.
336 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
337 * emulparams/elf_i386.sh: Likewse.
338 * emulparams/elf_x86_64.sh: Likewse.
339 * emulparams/x86-report-relative.sh: New file.
340 * testsuite/ld-i386/report-reloc-1.d: Likewse.
341 * testsuite/ld-i386/report-reloc-1.l: Likewse.
342 * testsuite/ld-i386/report-reloc-1.s: Likewse.
343 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
344 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
345 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
346 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
347 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
348 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
349 report-reloc-1-x32.
350
351 2021-01-16 Alan Modra <amodra@gmail.com>
352
353 PR 26002
354 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
355 unversioned symbols.
356 * testsuite/ld-elfvers/vers16.dsym: Likewise.
357
358 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
359
360 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
361 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
362 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
363 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
364 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
365 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
366
367 2021-01-14 Nick Clifton <nickc@redhat.com>
368
369 * po/fr.po: Updated French translation.
370
371 2021-01-14 Mike Frysinger <vapier@gentoo.org>
372
373 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
374
375 2021-01-14 Alan Modra <amodra@gmail.com>
376
377 PR 27160
378 * ldelfgen.c (compare_link_order): Protect access of ELF section
379 data.
380 (add_link_order_input_section): Remove redundant NULL check.
381 Use bfd_get_flavour.
382 (ldelf_map_segments): Use bfd_get_flavour.
383
384 2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
385
386 * ldelfgen.c (add_link_order_input_section): Check for ELF input
387 before accessing ELF section data.
388
389 2021-01-13 Alan Modra <amodra@gmail.com>
390
391 * Makefile.in: Regenerate.
392
393 2021-01-13 Alan Modra <amodra@gmail.com>
394
395 PR 27160
396 * ldlang.h (lang_output_section_statement_type): Add data field.
397 (lang_input_section_type, lang_section_bst_type): Add pattern field.
398 (statement_list): Declare.
399 (lang_add_section): Adjust prototype.
400 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
401 * emultempl/armelf.em: Likewise.
402 * emultempl/beos.em: Likewise.
403 * emultempl/cskyelf.em: Likewise.
404 * emultempl/hppaelf.em: Likewise.
405 * emultempl/m68hc1xelf.em: Likewise.
406 * emultempl/metagelf.em: Likewise.
407 * emultempl/mipself.em: Likewise.
408 * emultempl/mmo.em: Likewise.
409 * emultempl/msp430.em: Likewise.
410 * emultempl/nios2elf.em: Likewise.
411 * emultempl/pe.em: Likewise.
412 * emultempl/pep.em: Likewise.
413 * emultempl/ppc64elf.em: Likewise.
414 * emultempl/spuelf.em: Likewise.
415 * emultempl/vms.em: Likewise.
416 * ldelf.c: Likewise.
417 * ldelfgen.c: Include ldctor.h.
418 (struct os_sections): New.
419 (add_link_order_input_section, link_order_scan): New functions.
420 (compare_link_order, fixup_link_order): New functions.
421 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
422 * ldlang.c (statement_list): Make global.
423 (output_section_callback_fast): Save pattern in tree node.
424 (lang_add_section): Add pattern parameter, save in lang_input_section.
425 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
426 (lang_insert_orphan, output_section_callback): Likewise.
427 (ldlang_place_orphan): Likewise.
428 (gc_section_callback): Don't set section->pattern.
429 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
430 * testsuite/ld-elf/pr26256-3b.d: Likewise.
431 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
432
433 2021-01-13 Alan Modra <amodra@gmail.com>
434
435 * ldlang.h (callback_t): Remove flag_info function parameter.
436 * ldlang.c (walk_wild_consider_section): Adjust to suit.
437 (walk_wild_section_general): Likewise.
438 (output_section_callback_fast, output_section_callback): Likewise.
439 (check_section_callback, gc_section_callback): Likewise.
440 (find_relro_section_callback): Likewise.
441
442 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
443
444 PR binutils/26792
445 * configure.ac: Use GNU_MAKE_JOBSERVER.
446 * aclocal.m4: Regenerated.
447 * configure: Likewise.
448
449 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
450
451 PR ld/27171
452 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
453 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
454 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
455 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
456
457 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
458
459 PR ld/27173
460 * configure: Regenerated.
461
462 2021-01-11 Matt Jenkins <matt@majenko.co.uk>
463
464 PR ld/27167
465 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
466 and mips64r5 to list of known mips targets.
467
468 2021-01-11 Nick Clifton <nickc@redhat.com>matt@majenko.co.uk
469
470 * po/pt_BR.po: Updated Brazilian Portuguese translation.
471 ` * po/uk.po: Updated Ukranian translation.
472
473 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
474
475 * configure: Regenerated.
476
477 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
478
479 PR ld/27166
480 * testsuite/ld-x86-64/lam-u48.rd: New file.
481 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
482 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
483
484 2021-01-09 Nick Clifton <nickc@redhat.com>
485
486 * configure: Regenerate.
487 * po/ld.pot: Regenerate.
488
489 2021-01-09 Nick Clifton <nickc@redhat.com>
490
491 * 2.36 release branch crated.
492
493 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
494
495 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
496 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
497
498 2021-01-09 Alan Modra <amodra@gmail.com>
499
500 * configure: Regenerate.
501 * Makefile.in: Regenerate.
502
503 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
504
505 * configure: Regenerate.
506
507 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
508
509 PR 27109
510 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
511 * testsuite/ld-elf/loadaddr3b.d: Likewise.
512 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
513 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
514 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
515 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
516 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
517 * testsuite/ld-i386/pr19636-1d.d: Likewise.
518 * testsuite/ld-i386/pr19636-1l.d: Likewise.
519 * testsuite/ld-i386/pr19636-2c.d: Likewise.
520 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
521 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
522 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
523 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
524 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
525 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
526 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
527 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
528 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
529 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
530 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
531 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
532 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
533 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
534 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
535 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
536 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
537 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
538 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
539 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
540 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
541 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
542 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
543 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
544 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
545 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
546 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
547 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
548 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
549 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
550 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
551 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
552 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
553 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
554 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
555 * testsuite/ld-x86-64/pr21038b.d: Likewise.
556 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
557 * testsuite/ld-x86-64/pr21038c.d: Likewise.
558 * testsuite/ld-x86-64/pr23854.d: Likewise.
559 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
560 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
561 * testsuite/ld-i386/plt-pic.pd: Likewise.
562 * testsuite/ld-i386/plt-pic2.dd: Likewise.
563 * testsuite/ld-i386/plt.pd: Likewise.
564 * testsuite/ld-i386/plt2.dd: Likewise.
565 * testsuite/ld-i386/tlsbin.rd: Likewise.
566 * testsuite/ld-i386/tlsbin2.rd: Likewise.
567 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
568 * testsuite/ld-i386/tlsdesc.rd: Likewise.
569 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
570 * testsuite/ld-i386/tlsnopic.rd: Likewise.
571 * testsuite/ld-i386/tlspic.rd: Likewise.
572 * testsuite/ld-i386/tlspic2.rd: Likewise.
573 * testsuite/ld-x86-64/mpx3.dd: Likewise.
574 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
575 * testsuite/ld-x86-64/mpx4.dd: Likewise.
576 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
577 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
578 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
579 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
580 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
581 * testsuite/ld-x86-64/plt.pd: Likewise.
582 * testsuite/ld-x86-64/plt2.dd: Likewise.
583 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
584 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
585 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
586 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
587 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
588 * testsuite/ld-x86-64/tlspic.rd: Likewise.
589 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
590 * testsuite/ld-elf/sec64k.exp: Check
591 is_elf_unused_section_symbols.
592
593 2021-01-07 Alan Modra <amodra@gmail.com>
594
595 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
596 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
597 * testsuite/ld-scripts/segment-start.d: Likewise.
598
599 2021-01-07 Alan Modra <amodra@gmail.com>
600
601 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
602 about dynamic relocations in read-only sections.
603 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
604 * testsuite/ld-elf/ehdr_start.d: Likewise.
605 * testsuite/ld-scripts/pr22267.d: Likewise.
606 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
607 pr20995 text.
608 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
609
610 2021-01-07 Marcus Comstedt <marcus@mc.pp.se>
611
612 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
613 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
614
615 2021-01-07 Alan Modra <amodra@gmail.com>
616
617 * po/BLD-POTFILES.in: Regenerate.
618
619 2021-01-07 Alan Modra <amodra@gmail.com>
620
621 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
622 complain about relocs in read-only sections. Tidy ASFLAGS append.
623
624 2021-01-06 Alan Modra <amodra@gmail.com>
625
626 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
627 base for some tests.
628 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
629 * testsuite/ld-sparc/gotop32.sd: Likewise.
630 * testsuite/ld-sparc/gotop32.td: Likewise.
631 * testsuite/ld-sparc/gotop64.dd: Likewise.
632 * testsuite/ld-sparc/gotop64.sd: Likewise.
633 * testsuite/ld-sparc/gotop64.td: Likewise.
634 * testsuite/ld-sparc/tlsg32.sd: Likewise.
635 * testsuite/ld-sparc/tlsg64.sd: Likewise.
636 * testsuite/ld-sparc/tlspie32.dd: Likewise.
637 * testsuite/ld-sparc/tlspie64.dd: Likewise.
638 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
639 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
640 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
641 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
642 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
643 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
644 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
645 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
646 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
647 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
648 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
649 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
650 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
651 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
652 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
653 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
654 * testsuite/ld-sparc/wdispcall.dd: Likewise.
655
656 2021-01-06 Alan Modra <amodra@gmail.com>
657
658 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
659 * testsuite/ld-scripts/rgn-at11.d: Likewise.
660
661 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
662
663 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
664 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
665 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
666 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
667 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
668 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
669 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
670 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
671 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
672 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
673 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
674 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
675 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
676 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
677 to littleriscv.
678 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
679
680 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
681
682 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
683 riscv32be*-*-linux*, and riscv64be*-*-linux*.
684 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
685 eelf32briscv_ilp32.c.
686 * Makefile.in: Regenerate.
687 * emulparams/elf32briscv.sh: Added.
688 * emulparams/elf32briscv_ilp32.sh: Likewise.
689 * emulparams/elf32briscv_ilp32f.sh: Likewise.
690 * emulparams/elf64briscv.sh: Likewise.
691 * emulparams/elf64briscv_lp64.sh: Likewise.
692 * emulparams/elf64briscv_lp64f.sh: Likewise.
693
694 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
695
696 * testsuite/ld-ctf/enum-forward.c: New test.
697 * testsuite/ld-ctf/enum-forward.c: New results.
698
699 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
700
701 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
702 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
703 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
704 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
705 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
706 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
707 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
708 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
709 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
710 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
711 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
712 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
713 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
714 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
715 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
716 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
717 * testsuite/ld-ctf/cycle-1.d: Likewise.
718 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
719 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
720 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
721 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
722 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
723 * testsuite/ld-ctf/diag-cuname.d: Likewise.
724 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
725 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
726 * testsuite/ld-ctf/forward.d: Likewise.
727 * testsuite/ld-ctf/function.d: Likewise.
728 * testsuite/ld-ctf/slice.d: Likewise.
729 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
730 * testsuite/ld-ctf/enums.c: New test.
731 * testsuite/ld-ctf/enums.d: New test.
732
733 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
734
735 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
736 changes.
737 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
738 * testsuite/ld-ctf/forward.c: New test...
739 * testsuite/ld-ctf/forward.d: ... and results.
740
741 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
742
743 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
744 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
745 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
746 * testsuite/ld-ctf/diag-cuname.d: Likewise.
747 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
748 * testsuite/ld-ctf/function.d: Likewise.
749 * testsuite/ld-ctf/slice.d: Likewise.
750
751 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
752
753 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
754 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
755 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
756 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
757 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
758 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
759 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
760 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
761 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
762 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
763 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
764 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
765 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
766 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
767 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
768 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
769 * testsuite/ld-ctf/cycle-1.d: Likewise.
770 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
771 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
772 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
773 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
774 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
775 * testsuite/ld-ctf/diag-cuname.d: Likewise.
776 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
777 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
778 * testsuite/ld-ctf/function.d: Likewise.
779 * testsuite/ld-ctf/slice.d: Likewise.
780 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
781
782 2021-01-05 Alan Modra <amodra@gmail.com>
783
784 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
785
786 2021-01-05 Alan Modra <amodra@gmail.com>
787
788 PR ld/26256
789 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
790 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
791
792 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
793
794 PR ld/26256
795 * ldlang.c (gc_section_callback): Set pattern.
796 * testsuite/ld-elf/pr26256-1.s: New file.
797 * testsuite/ld-elf/pr26256-1.t: Likewise.
798 * testsuite/ld-elf/pr26256-1a.d: Likewise.
799 * testsuite/ld-elf/pr26256-1b.d: Likewise.
800 * testsuite/ld-elf/pr26256-2.s: Likewise.
801 * testsuite/ld-elf/pr26256-2.t: Likewise.
802 * testsuite/ld-elf/pr26256-2a.d: Likewise.
803 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
804 * testsuite/ld-elf/pr26256-2b.d: Likewise.
805 * testsuite/ld-elf/pr26256-3.s: Likewise.
806 * testsuite/ld-elf/pr26256-3a.d: Likewise.
807 * testsuite/ld-elf/pr26256-3a.t: Likewise.
808 * testsuite/ld-elf/pr26256-3b.d: Likewise.
809 * testsuite/ld-elf/pr26256-3b.t: Likewise.
810
811 2021-01-04 Alan Modra <amodra@gmail.com>
812
813 PR 26822
814 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
815 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
816 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
817 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
818 * testsuite/ld-i386/tlsbin.rd: Likewise.
819 * testsuite/ld-i386/tlsbin2.rd: Likewise.
820 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
821 * testsuite/ld-i386/tlsdesc.rd: Likewise.
822 * testsuite/ld-i386/tlsnopic.rd: Likewise.
823 * testsuite/ld-i386/tlspic.rd: Likewise.
824 * testsuite/ld-i386/tlspic2.rd: Likewise.
825 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
826 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
827 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
828 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
829 * testsuite/ld-plugin/pr17973.d: Likewise.
830 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
831 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
832 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
833 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
834 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
835 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
836 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
837 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
838 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
839 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
840 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
841 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
842 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
843 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
844 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
845 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
846 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
847 * testsuite/ld-x86-64/tlspic.rd: Likewise.
848 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
849 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
850 * testsuite/ld-xtensa/tlspic.rd: Likewise.
851
852 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
853
854 * configure.tgt: Correct comment grammar.
855 * emultempl/m68hc1xelf.em: Likewise.
856 * ld.texi: Correct grammar.
857
858 2021-01-01 Alan Modra <amodra@gmail.com>
859
860 Update year range in copyright notice of all files.
861
862 For older changes see ChangeLog-2020
863 \f
864 Copyright (C) 2021 Free Software Foundation, Inc.
865
866 Copying and distribution of this file, with or without modification,
867 are permitted in any medium without royalty provided the copyright
868 notice and this notice are preserved.
869
870 Local Variables:
871 mode: change-log
872 left-margin: 8
873 fill-column: 74
874 version-control: never
875 End: