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