]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/ChangeLog
Disable execstack and rwx segments warnings for MIPS targets.
[thirdparty/binutils-gdb.git] / ld / ChangeLog
1 2022-06-27 Nick Clifton <nickc@redhat.com>
2
3 PR 29263
4 * configure.ac: Move HPPA specific code from here...
5 * configure.tgt: ... to here. Add similar code for MIPS.
6 Move code for CRIS, MIPS and HPPA to block at start of file.
7 * configure: Regenerate.
8
9 2022-06-21 Nick Clifton <nickc@redhat.com>
10
11 PR 29263
12 * configure.ac (ac_default_ld_warn_execstack): Default to 'no' for
13 HPPA targets.
14 (ac_default_ld_warn_rwx_segments): Likewise.
15 * configure: Regenerate.
16 * testsuite/ld-elf/elf.exp: Add the --warn-execstack command line
17 option to the command line when running execstack tests for the
18 HPPA target.
19
20 2022-05-12 Alan Modra <amodra@gmail.com>
21
22 PR 29006
23 * pe-dll.c (dll_name): Delete, replacing with..
24 (dll_filename): ..this, moved earlier in file.
25 (generate_edata): Delete parameters. Don't set up dll_name here..
26 (pe_process_import_defs): ..instead set up dll_filename and
27 dll_symname here before returning.
28 (dll_symname_len): Delete write-only variable.
29 (pe_dll_generate_implib): Don't set up dll_symname here.
30
31 2022-05-03 Nick Clifton <nickc@redhat.com>
32
33 PR 29101
34 * libdep_plugin.c (get_libdeps): Check for overflow when computing
35 amount of memory to allocate.
36
37 2022-04-27 Nick Clifton <nickc@redhat.com>
38
39 PR 29006
40 * pe-dll.c (make_head): Use asprintf to allocate and populate a
41 buffer containing the temporary name.
42 (make_tail, make_one, make_singleton_name_thunk): Likewise.
43 (make_import_fixup_mark, make_import_fixup_entry): Likewise.
44 (make_runtime_pseudo_reloc): Likewise.
45 (pe_create_runtime_relocator_reference): Likewise.
46
47 2022-04-25 Nick Clifton <nickc@redhat.com>
48
49 PR 29072
50 * testsuite/ld-elf/pr29072.b.warn: Update to include the note
51 about the linker's behaviour being depreccated.
52
53 2022-04-20 Clément Chigot <clement.chigot@atos.net>
54
55 * emultempl/aix.em (params): New variable.
56 (stub_file): New variable.
57 (xcoff_add_stub_section): New function.
58 (xcoff_layout_sections_again): New function
59 (hook_in_stub): New function.
60 (_after_allocation): Add stub creation.
61 (_create_output_section_statements): Allocate stub file and
62 pass params to backend.
63
64 2022-04-20 Clément Chigot <clement.chigot@atos.net>
65
66 * emultempl/aix.em (_after_allocation): New function.
67
68 2022-04-07 Mark Harmstone <mark@harmstone.com>
69
70 * testsuite/ld-pe/secidx1.s: New test source file.
71 * testsuite/ld-pe/secidx2.s: New test source file.
72 * testsuite/ld-pe/secidx.d: New test driver file.
73 * testsuite/ld-pe/secidx_64.d: New test driver file.
74 * testsuite/ld-pe/pe.exp: Add new tests.
75
76 2022-03-01 Nick Clifton <nickc@redhat.com>
77
78 PR 21964
79 * testsuite/ld-elf/pr21964-1a.c: Fix array comparisons.
80 * testsuite/ld-elf/pr21964-1b.c: Likewise.
81 * testsuite/ld-elf/pr21964-1c.c: Likewise.
82 * testsuite/ld-elf/pr21964-2a.c: Likewise.
83 * testsuite/ld-elf/pr21964-2b.c: Likewise.
84 * testsuite/ld-elf/pr21964-3a.c: Likewise.
85
86 2022-02-17 Roland McGrath <mcgrathr@google.com>
87
88 * ld.texi (Output Section Type): Fix typo in @code syntax.
89
90 2022-02-17 Nick Clifton <nickc@redhat.com>
91
92 * po/sr.po: Updated Serbian translation.
93
94 2022-02-16 Fangrui Song <maskray@google.com>
95 Nick Clifton <nickc@redhat.com>
96
97 PR ld/28841
98 * ld.texi: Document new output section type.
99 * ldlex.l: Add new token TYPE.
100 * ldgram.y: Handle TYPE=exp and READONLY (TYPE=exp).
101 * ldlang.h: Add type_section to list of section types.
102 * ldlang.c (lang_add_section): Handle type_section.
103 (map_input_to_output_sections): Handle type_section.
104 * testsuite/ld-scripts/output-section-types.t: Add tests.
105 * testsuite/ld-scripts/output-section-types.d: Update.
106
107 2022-02-02 Nick Clifton <nickc@redhat.com>
108
109 * po/fr.po: Updated French translation.
110
111 2022-01-24 Nick Clifton <nickc@redhat.com>
112
113 * po/bg.po: Updated Bulgarian translation.
114 * po/uk.po: Updated Ukranian translation.
115
116 2022-01-22 Alexander von Gluck IV <kallisti5@unixzen.com>
117
118 * configure.tgt (arm-haiku): Fix typo.
119 * emulparams/armelf_haiku.su (MAXPAGESIZE): Use the default value.
120 (COMMONPAGESIZE): Likewise.
121
122 2022-01-22 Nick Clifton <nickc@redhat.com>
123
124 * configure: Regenerate.
125 * po/ld.pot: Regenerate.
126
127 2022-01-22 Nick Clifton <nickc@redhat.com>
128
129 * 2.38 release branch created.
130
131 2022-01-21 Nick Clifton <nickc@redhat.com>
132
133 * po/sr.po: Updated Serbian translation.
134
135 2022-01-17 Nick Clifton <nickc@redhat.com>
136
137 * Makefile.in: Regenerate.
138 * po/ld.pot: Regenerate.
139
140 2022-01-11 Martin Storsjö <martin@martin.st>
141
142 * pe-dll.c (make_head): Prefix the symbol name with the dll name.
143 (make_tail, make_one, make_singleton_name_thunk): Likewise.
144 (make_import_fixup_entry, make_runtime_pseudo_reloc): Likewise.
145 (pe_create_runtime_relocator_reference): Likewise.
146 (pe_dll_generate_implib): Set dll_symname_len.
147 (pe_process_import_defs): Likewise.
148
149 2021-12-16 Nick Clifton <nickc@redhat.com>
150
151 PR 28686
152 * testsuite/ld-avr/avr-prop-7.d: Adjust expected output.
153 * testsuite/ld-avr/avr-prop-8.d: Likewise.
154 * testsuite/ld-avr/pr13402.d: Likewise.
155
156 2021-11-30 Nick Clifton <nickc@redhat.com>
157
158 * scripttempl/pru.sc (.pru_irq_map): Define output section.
159 * testsuite/ld-pru/pru_irq_map-1.d: New test.
160 * testsuite/ld-pru/pru_irq_map-2.d: New test.
161 * testsuite/ld-pru/pru_irq_map.s: New test.
162
163 2021-11-17 Jeremy Drake <cygwin@jdrake.com>
164
165 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Set to 0 for
166 Cygwin targets.
167 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Likewise.
168
169 2021-11-17 Nick Clifton <nickc@redhat.com>
170
171 PR 28452
172 * ldgram.y: Add support for PT_GNU_RELRO and PT_GNU_PROPERTY.
173 * ldgram.c: Regenerate.
174
175 2021-11-15 Roland McGrath <mcgrathr@google.com>
176
177 * testsuite/ld-aarch64/dt_textrel.d: Pass explicit -z notext in
178 case ld was configured with --enable-textrel-check=error.
179 * testsuite/ld-aarch64/pr22764.d: Likewise.
180 * testsuite/ld-aarch64/pr20402.d: Likewise.
181
182 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
183
184 * testsuite/ld-ctf/nonrepresentable-member.*: New test.
185
186 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
187
188 * testsuite/ld-ctf/array.d: Change --ctf=.ctf to --ctf.
189 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
190 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
191 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
192 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
193 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
194 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
195 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
196 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
197 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
198 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
199 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
200 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
201 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
202 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
203 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
204 * testsuite/ld-ctf/cycle-1.d: Likewise.
205 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
206 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
207 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
208 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
209 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
210 * testsuite/ld-ctf/diag-cuname.d: Likewise.
211 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
212 * testsuite/ld-ctf/enum-forward.d: Likewise.
213 * testsuite/ld-ctf/enums.d: Likewise.
214 * testsuite/ld-ctf/forward.d: Likewise.
215 * testsuite/ld-ctf/function.d: Likewise.
216 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
217 * testsuite/ld-ctf/slice.d: Likewise.
218 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
219
220 2021-09-30 Dimitar Dimitrov <dimitar@dinux.eu>
221
222 * scripttempl/pru.sc (.resource_table): Align the output
223 section, not the first symbol.
224
225 2021-09-27 Nick Alcock <nick.alcock@oracle.com>
226
227 * configure: Regenerate.
228
229 2021-09-21 Nick Clifton <nickc@redhat.com>
230
231 * ldlang.c (lang_end): When computing the entry point, only
232 try the start address of the entry section when creating an
233 executable.
234 * ld.texi (Entry point): Update description of heuristic used to
235 choose the entry point.
236 testsuite/ld-alpha/tlspic.rd: Update expected entry point address.
237 testsuite/ld-arm/tls-gdesc-got.d: Likewise.
238 testsuite/ld-i386/tlsnopic.rd: Likewise.
239 testsuite/ld-ia64/tlspic.rd: Likewise.
240 testsuite/ld-sparc/gotop32.rd: Likewise.
241 testsuite/ld-sparc/gotop64.rd: Likewise.
242 testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
243 testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
244 testsuite/ld-sparc/tlssunpic32.rd: Likewise.
245 testsuite/ld-sparc/tlssunpic64.rd: Likewise.
246 testsuite/ld-tic6x/shlib-1.rd: Likewise.
247 testsuite/ld-tic6x/shlib-1b.rd: Likewise.
248 testsuite/ld-tic6x/shlib-1r.rd: Likewise.
249 testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
250 testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
251 testsuite/ld-x86-64/pr14207.d: Likewise.
252 testsuite/ld-x86-64/tlsdesc.rd: Likewise.
253 testsuite/ld-x86-64/tlspic.rd: Likewise.
254 testsuite/ld-x86-64/tlspic2.rd: Likewise.
255
256 2021-09-15 Claudiu Zissulescu <claziss@synopsys.com>
257
258 * testsuite/ld-arc/got-weak.d: Update file.
259
260 2021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
261
262 * ld-arc/got-weak.d: New file.
263 * ld-arc/got-weak.s: Likewise.
264
265 2021-07-26 Roland McGrath <mcgrathr@google.com>
266
267 * testsuite/ld-x86-64/x86-64.exp (Build textrel-1): Use --warn-textrel.
268
269 2021-07-06 Michael Matz <matz@suse.de>
270
271 PR ld/28021
272 * testsuite/ld-riscv-elf/relax-twice.ver: New.
273 * testsuite/ld-riscv-elf/relax-twice-1.s: New.
274 * testsuite/ld-riscv-elf/relax-twice-2.s: New.
275 * testsuite/ld-riscv-elf/ld-riscv-elf.exp
276 (run_relax_twice_test): New, and call it.
277
278 2021-07-03 Nick Clifton <nickc@redhat.com>
279
280 * configure: Regenerate.
281 * po/ld.pot: Regenerate.
282
283 2021-07-03 Nick Clifton <nickc@redhat.com>
284
285 * 2.37 release branch created.
286
287 2021-06-22 Nelson Chu <nelson.chu@sifive.com>
288
289 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
290 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.d: New testcase.
291 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.s: Likewise.
292 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.d: New testcase.
293 Should report error since the %pcrel_lo with addend refers to
294 %got_pcrel_hi.
295 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.s: Likewise.
296 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.d: New testcase.
297 Should report error since the %got_pcrel_hi with addend.
298 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.s: Likewise.
299 * testsuite/ld-riscv-elf/pcrel-lo-addend-3.ld: Likewise.
300
301 2021-06-19 H.J. Lu <hongjiu.lu@intel.com>
302
303 PR ld/27998
304 * testsuite/ld-i386/i386.exp: Run PR ld/27998 tests.
305 * testsuite/ld-i386/pr27998a.d: New file.
306 * testsuite/ld-i386/pr27998a.s: Likewise.
307 * testsuite/ld-i386/pr27998b.d: Likewise.
308 * testsuite/ld-i386/pr27998b.s: Likewise.
309
310 2021-06-19 H.J. Lu <hongjiu.lu@intel.com>
311
312 * testsuite/ld-x86-64/textrel-1.err: New file.
313 * testsuite/ld-x86-64/textrel-1a.s: Likewise.
314 * testsuite/ld-x86-64/textrel-1b.s: Likewise.
315 * testsuite/ld-x86-64/x86-64.exp: Run textrel-1 tests.
316
317 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
318
319 * testsuite/ld-elf/property-and-1.d: Skip am33_2.0, hppa-hpux
320 and mn10300.
321 Pass --generate-missing-build-notes=no to assembler. Allow
322 other note sections for xtensa.
323 * testsuite/ld-elf/property-and-2.d: Likewise.
324 * testsuite/ld-elf/property-and-3.d: Likewise.
325 * testsuite/ld-elf/property-and-4.d: Likewise.
326 * testsuite/ld-elf/property-or-1.d: Likewise.
327 * testsuite/ld-elf/property-or-2.d: Likewise.
328 * testsuite/ld-elf/property-or-3.d: Likewise.
329 * testsuite/ld-elf/property-or-4.d: Likewise.
330
331 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
332
333 * ld.texi: Move -z unique-symbol after -z undefs.
334
335 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
336
337 * testsuite/ld-elf/property-and-1.d: New file.
338 * testsuite/ld-elf/property-and-1.s: Likewise.
339 * testsuite/ld-elf/property-and-2.d: Likewise.
340 * testsuite/ld-elf/property-and-2.s: Likewise.
341 * testsuite/ld-elf/property-and-3.d: Likewise.
342 * testsuite/ld-elf/property-and-3.s: Likewise.
343 * testsuite/ld-elf/property-and-4.d: Likewise.
344 * testsuite/ld-elf/property-and-empty.s: Likewise.
345 * testsuite/ld-elf/property-or-1.d: Likewise.
346 * testsuite/ld-elf/property-or-1.s: Likewise.
347 * testsuite/ld-elf/property-or-2.d: Likewise.
348 * testsuite/ld-elf/property-or-2.s: Likewise.
349 * testsuite/ld-elf/property-or-3.d: Likewise.
350 * testsuite/ld-elf/property-or-3.s: Likewise.
351 * testsuite/ld-elf/property-or-4.d: Likewise.
352 * testsuite/ld-elf/property-or-empty.s: Likewise.
353
354 2021-06-17 H.J. Lu <hongjiu.lu@intel.com>
355
356 PR ld/27973
357 * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and
358 $NOPIE_CFLAGS to protected-func-1 without PIE.
359
360 2021-06-17 H.J. Lu <hongjiu.lu@intel.com>
361
362 PR ld/27973
363 * testsuite/ld-x86-64/x86-64.exp: Run protected function tests.
364 * testsuite/ld-x86-64/protected-func-1.h: New file.
365 * testsuite/ld-x86-64/protected-func-1a.s: Likewise.
366 * testsuite/ld-x86-64/protected-func-1b.c: Likewise.
367
368 2021-06-17 Fangrui Song <maskray@google.com>
369
370 * ldlex.h (enum option_values): Add OPTION_NO_PIE.
371 * lexsup.c (struct ld_options): Add -no-pie.
372 (parse_args): Handle -no-pie.
373 * ld.texi: Document -no-pie.
374
375 2021-06-15 Alan Modra <amodra@gmail.com>
376
377 * testsuite/ld-pie/vaddr-0.d: Update expected output.
378
379 2021-06-11 Alan Modra <amodra@gmail.com>
380
381 PR 27952
382 * ldelf.c (ldelf_after_open): Error on input PIEs too.
383
384 2021-06-09 Nick Clifton <nickc@redhat.com>
385
386 PR 27666
387 * testsuite/ld-sparc/sparc.exp: Do not run the sparctests or
388 sparc64tests for Solaris2 targets.
389
390 2021-06-03 Alan Modra <amodra@gmail.com>
391
392 PR 2589
393 * ld.texi (link-time runtime library search path): Mention
394 plugin library path. Correct order of search.
395
396 2021-05-31 Nelson Chu <nelson.chu@sifive.com>
397 Lifang Xia <lifang_xia@c-sky.com>
398
399 PR 27566
400 * emultempl/riscvelf.em (after_allocation): Call
401 riscv_set_data_segment_info to set data segment phase before relaxing.
402 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
403 * testsuite/ld-riscv-elf/relro-relax-lui.d: New testcase.
404 * testsuite/ld-riscv-elf/relro-relax-lui.s: Likewise.
405 * testsuite/ld-riscv-elf/relro-relax-pcrel.d: Likewise.
406 * testsuite/ld-riscv-elf/relro-relax-pcrel.s: Likewise.
407
408 2021-05-28 H.J. Lu <hongjiu.lu@intel.com>
409
410 PR ld/27905
411 * testsuite/ld-i386/pcrel16-2.d: xfail.
412 * testsuite/ld-x86-64/pcrel16-2.d: Likewise.
413
414 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
415
416 PR ld/27905
417 * testsuite/ld-i386/code16.d: New file.
418 * testsuite/ld-i386/code16.t: Likewise.
419 * testsuite/ld-x86-64/code16.d: Likewise.
420 * testsuite/ld-x86-64/code16.t: Likewise.
421 * testsuite/ld-i386/i386.exp: Run code16.
422 * testsuite/ld-x86-64/x86-64.exp: Likewise.
423
424 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
425
426 * testsuite/ld-x86-64/ilp32-12.d: New file.
427 * testsuite/ld-x86-64/ilp32-12.s: Likewise.
428 * testsuite/ld-x86-64/x86-64.exp: Run ilp32-12.
429
430 2021-05-14 Nelson Chu <nelson.chu@sifive.com>
431
432 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
433 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d: Renamed from
434 pcrel-lo-addend-2.
435 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.s: Likewise.
436 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.d: New testcase.
437 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.s: Likewise.
438
439 2021-05-13 Fangrui Song <maskray@google.com>
440
441 PR 27834
442 * ldlex.h (enum option_values): Add OPTION_NO_SYMBOLIC.
443 * lexsup.c (ld_options): Add -Bno-symbolic.
444 (parse_args): Handle -Bno-symbolic.
445 * ld.texi: Document -Bno-symbolic.
446 * NEWS: Mention -Bno-symbolic.
447 * testsuite/ld-elf/shared.exp: Add a test.
448
449 2021-05-12 Richard Earnshaw <rearnsha@arm.com>
450
451 * testsuite/ld-arm/arm-elf.exp (farcall test for v8-m.mainline):
452 Correct expected output.
453
454 2021-05-11 Roland McGrath <mcgrathr@google.com>
455
456 * testsuite/ld-x86-64/rela.d: Fix regexp not to presume a specific
457 address layout, so it works for e.g. --target=x86-64-elf.
458
459 2021-05-11 Nick Clifton <nickc@redhat.com>
460
461 PR 27113
462 * Makefile.am (install-data-local): Also delete libdep.dll.a if it
463 is present.
464 * Makefile.in: Regenerate.
465
466 2021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
467
468 * testsuite/ld-elf/group8a.d: Remove pru from XFAIL list.
469 * testsuite/ld-elf/group8b.d: Ditto.
470 * testsuite/ld-elf/group9a.d: Ditto.
471 * testsuite/ld-elf/group9b.d: Ditto.
472 * testsuite/ld-elf/pr12851.d: Ditto.
473 * testsuite/ld-elf/pr22677.d: Ditto.
474 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove
475 pru from list.
476
477 2021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
478
479 * scripttempl/pru.sc (.resource_table): Add ALIGN directive.
480 Use symbols for memory sizes.
481
482 2021-05-08 Mike Frysinger <vapier@gentoo.org>
483
484 * Makefile.am (html-local, doc/ld/index.html): New targets.
485 * Makefile.in: Regenerate.
486
487 2021-05-08 Mike Frysinger <vapier@gentoo.org>
488
489 * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
490 * Makefile.in: Regenerate.
491
492 2021-05-07 Jan Beulich <jbeulich@suse.com>
493
494 * testsuite/ld-x86-64/rela.d: New.
495 * testsuite/ld-x86-64/x86-64.exp: Run new test.
496
497 2021-05-07 Nick Clifton <nickc@redhat.com>
498
499 * ldelfgen.c (compare_link_order): Ignore section size when
500 performing a relocateable link.
501
502 2021-05-07 Alan Modra <amodra@gmail.com>
503
504 * ldexp.c (update_definedness): Don't return false for absolute
505 symbols.
506 * ldmain.c (multiple_definition): Print "warning: " in message
507 when not a hard error.
508
509 2021-05-07 Alan Modra <amodra@gmail.com>
510
511 * testsuite/ld-elf/pr27825-1.d: Correct xfail.
512 * testsuite/ld-elf/pr27825-2.d: Likewise.
513
514 2021-05-06 Stafford Horne <shorne@gmail.com>
515
516 PR 27746
517 testsuite/ld-or1k/or1k.exp (or1kplttests): Add tests for linking
518 along with gotha() relocations.
519 testsuite/ld-or1k/gotha1.dd: New file.
520 testsuite/ld-or1k/gotha1.s: New file.
521 testsuite/ld-or1k/gotha2.dd: New file.
522 testsuite/ld-or1k/gotha2.s: New file
523 testsuite/ld-or1k/pltlib.s (x): Define size to avoid link
524 failure.
525
526 2021-05-06 Nick Alcock <nick.alcock@oracle.com>
527
528 * testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt.
529 * testsuite/lib/ld-lib.exp: Likewise.
530 * testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types.
531 * testsuite/ld-ctf/nonrepresentable-2.c: Likewise.
532 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
533 * testsuite/ld-ctf/array.d: Larger type section.
534 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
535 * testsuite/ld-ctf/enums.d: Likewise.
536 * testsuite/ld-ctf/conflicting-enums.d: Don't compare types.
537 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order.
538 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
539 * testsuite/ld-ctf/slice.d: Adjust for improved slice emission.
540
541 2021-05-05 H.J. Lu <hongjiu.lu@intel.com>
542
543 PR ld/27825
544 * testsuite/ld-elf/pr27825-1.d: New file.
545 * testsuite/ld-elf/pr27825-1a.s: Likewise.
546 * testsuite/ld-elf/pr27825-1b.s: Likewise.
547 * testsuite/ld-elf/pr27825-2.d: Likewise.
548 * testsuite/ld-elf/pr27825-2a.s: Likewise.
549 * testsuite/ld-elf/pr27825-2b.s: Likewise.
550
551 2021-05-05 Alan Modra <amodra@gmail.com>
552
553 * testsuite/ld-powerpc/empty.s: New file.
554 * testsuite/ld-powerpc/undefweak.d,
555 * testsuite/ld-powerpc/undefweak.s: New testcase.
556 * testsuite/ld-powerpc/powerpc.exp: Run it.
557
558 2021-05-03 Alan Modra <amodra@gmail.com>
559
560 * testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
561 named section symbols.
562
563 2021-04-28 Nick Clifton <nickc@redhat.com>
564
565 * testsuite/ld-elf/anno-sym.s: New test source file.
566 * testsuite/ld-elf/anno-sym.d: New test driver.
567 * testsuite/ld-elf/anno-sym.l: New test error output.
568
569 2021-04-26 Jan Beulich <jbeulich@suse.com>
570
571 * testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d,
572 testsuite/ld-x86-64/pcrel16-2.d: New.
573 * testsuite/ld-i386/i386.exp: Run new test.
574 * testsuite/ld-x86-64/x86-64.exp: Likewise.
575
576 2021-04-23 H.J. Lu <hongjiu.lu@intel.com>
577
578 PR ld/27771
579 * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
580 to tmpdir/ldscripts only if it doesn't exist.
581
582 2021-04-22 Jan Beulich <jbeulich@suse.com>
583
584 PR ld/26659
585 * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
586
587 2021-04-21 Nick Clifton <nickc@redhat.com>
588
589 * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
590 to allow for named section symbols.
591 * testsuite/ld-aarch64/variant_pcs-r.d: Likewise.
592 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
593 * testsuite/ld-alpha/tlsbin.rd: Likewise.
594 * testsuite/ld-alpha/tlsbinr.rd: Likewise.
595 * testsuite/ld-alpha/tlspic.rd: Likewise.
596 * testsuite/ld-arm/rodata-merge-map.sym: Likewise.
597 * testsuite/ld-arm/script-type.sym: Likewise.
598 * testsuite/ld-cris/libdso-2.d: Likewise.
599 * testsuite/ld-cris/pr16044.d: Likewise.
600 * testsuite/ld-elf/sec64k.exp: Likewise.
601 * testsuite/ld-ia64/tlsbin.rd: Likewise.
602 * testsuite/ld-ia64/tlspic.rd: Likewise.
603 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
604 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
605 * testsuite/ld-mmix/bspec1.d: Likewise.
606 * testsuite/ld-mmix/bspec2.d: Likewise.
607 * testsuite/ld-mmix/local1.d: Likewise.
608 * testsuite/ld-mmix/local3.d: Likewise.
609 * testsuite/ld-mmix/local5.d: Likewise.
610 * testsuite/ld-mmix/local7.d: Likewise.
611 * testsuite/ld-mmix/undef-3.d: Likewise.
612 * testsuite/ld-powerpc/tlsso.r: Likewise.
613 * testsuite/ld-powerpc/tlsso32.r: Likewise.
614 * testsuite/ld-powerpc/tlstocso.r: Likewise.
615 * testsuite/ld-s390/tlsbin.rd: Likewise.
616 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
617 * testsuite/ld-s390/tlspic.rd: Likewise.
618 * testsuite/ld-s390/tlspic_64.rd: Likewise.
619 * testsuite/ld-sparc/gotop32.rd: Likewise.
620 * testsuite/ld-sparc/gotop64.rd: Likewise.
621 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
622 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
623 * testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
624 * testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
625 * testsuite/ld-sparc/tlssunpic32.rd: Likewise.
626 * testsuite/ld-sparc/tlssunpic64.rd: Likewise.
627 * testsuite/ld-tic6x/common.d: Likewise.
628 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
629 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
630 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
631 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
632 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
633 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
634 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
635 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
636 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
637 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
638 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
639 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
640 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
641
642 2021-04-20 Clément Chigot <clement.chigot@atos.net>
643
644 PR binutils/21700
645 * testsuite/ld-powerpc/aix52.exp: Add new test.
646 * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
647 * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
648 * testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
649 * testsuite/ld-powerpc/aix-neg-reloc.s: New test.
650
651 2021-04-13 Nick Clifton <nickc@redhat.com>
652
653 * ld.texi (Options): Add note about the effect of --as-needed on
654 the --rpath and --rpath-link options on Linux based systems.
655
656 2021-04-13 Alan Modra <amodra@gmail.com>
657
658 PR 27722
659 * libdep_plugin.c (str2vec): Don't pass a potentially signed char
660 to isspace.
661
662 2021-04-12 Alan Modra <amodra@gmail.com>
663
664 * configure.ac (--enable-checking): Add support.
665 * config.in: Regenerate.
666 * configure: Regenerate.
667
668 2021-04-12 Alan Modra <amodra@gmail.com>
669
670 * emultempl/mipself.em (mips_create_output_section_statements):
671 Pass base type of hash table to is_elf_hash_table.
672 * ldelf.c (ldelf_after_open): Likewise.
673
674 2021-04-12 Alan Modra <amodra@gmail.com>
675
676 PR 27719
677 * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
678 the symbol hash table is the correct type before accessing
679 elf_link_hash_entry symbols.
680 * plugin.c (is_visible_from_outside): Likewise.
681 * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
682 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
683
684 2021-04-09 Alan Modra <amodra@gmail.com>
685
686 * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
687 * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
688 * testsuite/ld-powerpc/notoc2.d: Likewise.
689 * testsuite/ld-powerpc/notoc3.d: Likewise.
690 * testsuite/ld-powerpc/pcrelopt.d: Likewise.
691 * testsuite/ld-powerpc/startstop.d: Likewise.
692 * testsuite/ld-powerpc/tlsget.d: Likewise.
693 * testsuite/ld-powerpc/tlsget2.d: Likewise.
694 * testsuite/ld-powerpc/tlsld.d: Likewise.
695 * testsuite/ld-powerpc/weak1.d: Likewise.
696 * testsuite/ld-powerpc/weak1so.d: Likewise.
697
698 2021-04-06 Jan Beulich <jbeulich@suse.com>
699
700 * pe-dll.c (generate_reloc): Bail immediately when .reloc is
701 being discarded. Warn when relocated entry is above .reloc.
702
703 2021-04-05 Alan Modra <amodra@gmail.com>
704
705 * configure.ac: Move initfini-array arg handling earlier. Don't
706 check for string.h, strings.h, stdlib.h, or locale.h. Do check
707 for inttypes.h, stdint.h, sys/types.h. Don't check for
708 setlocale, free, getev or strstr.
709 (AC_ISC_POSIX): Don't invoke.
710 * sysdep.h: Include string.h and stdlib.h unconditionally. Test
711 HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and
712 getenv fallback declarations.
713 * ld.h: Don't test HAVE_LOCALE_H.
714 * ldmain.c: Don't test HAVE_SETLOCALE.
715 * config.in: Regenerate.
716 * configure: Regenerate.
717
718 2021-04-01 Tamar Christina <tamar.christina@arm.com>
719
720 PR ld/26659
721 * testsuite/ld-pe/pe.exp: Add test.
722 * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
723 * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
724
725 2021-04-01 Martin Liska <mliska@suse.cz>
726
727 * ldbuildid.c (strneq): Remove strneq and use startswith.
728 (validate_build_id_style): Likewise.
729 (compute_build_id_size): Likewise.
730
731 2021-03-31 Alan Modra <amodra@gmail.com>
732
733 * sysdep.h (POISON_BFD_BOOLEAN): Define.
734 * configure.ac (elf_list_options, elf_shlib_list_options=false),
735 (elf_plt_unwind_list_options=false): Replace FALSE with false,
736 and TRUE with true.
737 * emulparams/call_nop.sh, * emulparams/cet.sh,
738 * emulparams/dynamic_undefined_weak.sh,
739 * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
740 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
741 * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
742 * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
743 * emulparams/reloc_overflow.sh, * emulparams/static.sh,
744 * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
745 * emultempl/aix.em, * emultempl/alphaelf.em,
746 * emultempl/armcoff.em, * emultempl/armelf.em,
747 * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
748 * emultempl/cr16elf.em, * emultempl/crxelf.em,
749 * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
750 * emultempl/hppaelf.em, * emultempl/linux.em,
751 * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
752 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
753 * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
754 * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
755 * emultempl/pep.em, * emultempl/ppc32elf.em,
756 * emultempl/ppc64elf.em, * emultempl/rxelf.em,
757 * emultempl/rxlinux.em, * emultempl/scoreelf.em,
758 * emultempl/solaris2.em, * emultempl/spuelf.em,
759 * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
760 * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
761 * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
762 * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
763 * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
764 * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
765 * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
766 * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
767 * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
768 bfd_boolean with bool, FALSE with false, and TRUE with true.
769 * configure: Regenerate.
770
771 2021-03-31 Alan Modra <amodra@gmail.com>
772
773 * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
774 * emultempl/nds32elf.em: Likewise.
775 * testsuite/ld-elf/mbind2b.c: Likewise.
776 * testsuite/ld-elf/pr18718.c: Likewise.
777 * testsuite/ld-elf/pr18720a.c: Likewise.
778 * testsuite/ld-elf/pr25749-1.c: Likewise.
779 * testsuite/ld-elf/pr25749-1a.c: Likewise.
780 * testsuite/ld-elf/pr25749-1b.c: Likewise.
781 * testsuite/ld-elf/pr25749-1c.c: Likewise.
782 * testsuite/ld-elf/pr25749-1d.c: Likewise.
783 * testsuite/ld-elf/pr25749-2.c: Likewise.
784 * testsuite/ld-elf/pr25754-1a.c: Likewise.
785 * testsuite/ld-elf/pr25754-2a.c: Likewise.
786 * testsuite/ld-elf/pr25754-3a.c: Likewise.
787 * testsuite/ld-elf/pr25754-4a.c: Likewise.
788 * testsuite/ld-elf/pr25754-5a.c: Likewise.
789 * testsuite/ld-elf/pr25754-6a.c: Likewise.
790
791 2021-03-29 Alan Modra <amodra@gmail.com>
792
793 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
794 boolean expression.
795 * lexsup.c (parse_args): Likewise.
796 * pe-dll.c (pe_dll_id_target): Likewise.
797
798 2021-03-25 Nick Alcock <nick.alcock@oracle.com>
799
800 * testsuite/ld-ctf/array.d: Only check that the data object
801 section is nonempty: do not check its exact size.
802 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
803 * testsuite/ld-ctf/slice.d: Likewise.
804 * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
805 func info section too.
806 * testsuite/ld-ctf/function.d: Likewise, for the func info section.
807
808 2021-03-22 Martin Liska <mliska@suse.cz>
809
810 * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
811 * emultempl/beos.em: Likewise.
812 * emultempl/elf.em: Likewise.
813 * emultempl/pe.em: Likewise.
814 * emultempl/pep.em: Likewise.
815 * emultempl/xtensaelf.em: Likewise.
816 * ldctor.c (ctor_prio): Likewise.
817 * ldelf.c (ldelf_try_needed): Likewise.
818 (ldelf_parse_ld_so_conf): Likewise.
819 (ldelf_after_open): Likewise.
820 (output_rel_find): Likewise.
821 (ldelf_place_orphan): Likewise.
822 * ldfile.c (ldfile_add_library_path): Likewise.
823 * ldlang.c (lang_add_input_file): Likewise.
824 * ldmain.c (get_sysroot): Likewise.
825 (get_emulation): Likewise.
826 (add_archive_element): Likewise.
827 * ldwrite.c (unsplittable_name): Likewise.
828 (clone_section): Likewise.
829 * lexsup.c (parse_args): Likewise.
830 * pe-dll.c (is_import): Likewise.
831 (pe_implied_import_dll): Likewise.
832
833 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
834
835 PR ld/27590
836 * testsuite/ld-x86-64/pr27590.rd: New file.
837 * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
838 * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
839 * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
840
841 2021-03-20 Alan Modra <amodra@gmail.com>
842
843 PR 27590
844 * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
845 for all sections except .stabstr.
846
847 2021-03-19 Alan Modra <amodra@gmail.com>
848
849 PR 27590
850 * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
851 R_MIPS_NONE.
852 * testsuite/ld-elf/pr27590b.d: Likewise.
853
854 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
855
856 PR ld/27590
857 * testsuite/ld-elf/pr27590.s: New file.
858 * testsuite/ld-elf/pr27590a.d: Likewise.
859 * testsuite/ld-elf/pr27590b.d: Likewise.
860 * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
861 --reduce-memory-overheads.
862
863 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
864
865 PR ld/27587
866 * testsuite/ld-x86-64/pr27587.err: New file.
867 * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
868 * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
869 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
870
871 2021-03-18 Nick Alcock <nick.alcock@oracle.com>
872
873 * testsuite/ld-ctf/slice.c: Check slices of enums too.
874 * testsuite/ld-ctf/slice.d: Results adjusted.
875
876 2021-03-16 Nick Clifton <nickc@redhat.com>
877
878 * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
879 lname string.
880
881 2021-03-15 Jan Beulich <jbeulich@suse.com>
882
883 * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
884
885 2021-03-12 Alan Modra <amodra@gmail.com>
886
887 * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
888 (ALL_64_EMULATION_SOURCES): ..here.
889 * Makefile.in: Regenerate.
890
891 2021-03-12 Clément Chigot <clement.chigot@atos.net>
892
893 * emultempl/aix.em: Ensure .tdata section is removed
894 if empty, even with -r flag.
895 * scripttempl/aix.sc: Handle TLS sections.
896 * testsuite/ld-powerpc/aix52.exp: Add new tests.
897 * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
898 * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
899 * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
900 * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
901 * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
902 * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
903 * testsuite/ld-powerpc/aix-tls-section.ex: New test.
904 * testsuite/ld-powerpc/aix-tls-section.s: New test.
905
906 2021-03-12 Clément Chigot <clement.chigot@atos.net>
907
908 * scripttempl/aix.sc: Add .te to .data section.
909 * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
910 Add aix-largetoc-1 test.
911 * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
912 * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
913 * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
914 * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
915
916 2021-03-12 Alan Modra <amodra@gmail.com>
917
918 * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
919 arrange to define __main for some run_dump_test tests.
920 * testsuite/ld-gc/pr13683.d: Accept more symbols.
921 * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
922 * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
923 * testsuite/ld-srec/srec.exp: Likewise.
924 * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
925
926 2021-03-11 Nelson Chu <nelson.chu@sifive.com>
927
928 * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
929 many times if riscv_restart_relax_sections returns TRUE.
930 * testsuite/ld-riscv-elf/restart-relax.d: New testcase. Before
931 applying this patch, the call won't be relaxed to jal; But now we
932 have more chances to do relaxations.
933 * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
934 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
935
936 2021-03-10 Jan Beulich <jbeulich@suse.com>
937
938 * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
939 than 32 set bits.
940 * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
941 comment.
942 * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
943
944 2021-03-09 Jan Beulich <jbeulich@suse.com>
945
946 * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
947 alignment to 4k.
948 * testsuite/ld-pe/reloc.d: xfail for mcore.
949
950 2021-03-09 Jan Beulich <jbeulich@suse.com>
951
952 * testsuite/ld-scripts/alignof.exp,
953 testsuite/ld-scripts/data.exp,
954 testsuite/ld-scripts/default-script.exp,
955 testsuite/ld-scripts/log2.exp,
956 testsuite/ld-scripts/print-memory-usage.exp,
957 testsuite/ld-scripts/sizeof.exp,
958 testsuite/ld-undefined/weak-undef.exp: Set image base to zero
959 for PE/COFF.
960 * testsuite/ld-scripts/default-script1.d,
961 testsuite/ld-scripts/default-script2.d,
962 testsuite/ld-scripts/default-script3.d,
963 testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
964
965 2021-03-05 H.J. Lu <hongjiu.lu@intel.com>
966
967 PR ld/27425
968 PR ld/27432
969 * ldelf.c (ldelf_set_output_arch): New function.
970 * ldelf.h (ldelf_set_output_arch): New prototype.
971 * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
972 ldelf_set_output_arch.
973 * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
974 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
975 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
976 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
977 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
978 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
979 * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
980 * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
981 * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
982
983 2021-03-04 Jan Beulich <jbeulich@suse.com>
984
985 * testsuite/ld-scripts/map-address.exp: Set image base to zero
986 for PE/COFF.
987 * testsuite/ld-scripts/map-address.t: Place .text.
988
989 2021-03-04 Jan Beulich <jbeulich@suse.com>
990
991 * ldexp.c (ldexp_is_final_sym_absolute): New.
992 * ldexp.h (ldexp_is_final_sym_absolute): Declare.
993 * pe-dll.c (generate_reloc): Skip absolute symbols.
994 * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
995 * testsuite/ld-pe/pe.exp: Run new test.
996
997 2021-03-03 Alan Modra <amodra@gmail.com>
998
999 PR 27500
1000 * ldlang.c (insert_undefined): Don't mark symbols here.
1001 (lang_mark_undefineds): Do so here instead, new function.
1002 (lang_process): Call lang_mark_undefineds.
1003 * testsuite/ld-gc/start3.d,
1004 * testsuite/ld-gc/start3.s: New test.
1005 * testsuite/ld-gc/start4.d,
1006 * testsuite/ld-gc/start4.s: New test.
1007 * testsuite/ld-gc/gc.exp: Run them.
1008
1009 2021-03-03 Alan Modra <amodra@gmail.com>
1010
1011 * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
1012 Move tests with ELF section directives to is_elf_format block.
1013 * testsuite/ld-gc/abi-note.d: Run on more targets.
1014 * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
1015 * testsuite/ld-gc/start.d: Likewise.
1016 * testsuite/ld-gc/start2.d: Likewise.
1017 * testsuite/ld-gc/stop.d: Likewise.
1018 * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
1019 * testsuite/ld-gc/start.s: Likewise.
1020 * testsuite/ld-gc/start2.s: Likewise.
1021
1022 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
1023
1024 * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
1025
1026 2021-03-02 Alan Modra <amodra@gmail.com>
1027
1028 * testsuite/ld-powerpc/startstop.d,
1029 * testsuite/ld-powerpc/startstop.r,
1030 * testsuite/ld-powerpc/startstop.s: New test.
1031 * testsuite/ld-powerpc/powerpc.exp: Run it.
1032
1033 2021-03-02 Alan Modra <amodra@gmail.com>
1034
1035 * testsuite/ld-powerpc/weak1.d,
1036 * testsuite/ld-powerpc/weak1.r,
1037 * testsuite/ld-powerpc/weak1.s,
1038 * testsuite/ld-powerpc/weak1so.d,
1039 * testsuite/ld-powerpc/weak1so.r: New tests.
1040 * testsuite/ld-powerpc/powerpc.exp: Run them.
1041
1042 2021-03-01 Hannes Domani <ssbssa@sourceware.org>
1043 Nick Clifton <nickc@redhat.com>
1044
1045 PR 27268
1046 * scripttempl/pe.sc: Add DWARF-5 section names.
1047 * scripttempl/pep.sc: Likewise.
1048
1049 2021-03-01 Alan Modra <amodra@gmail.com>
1050 Fangrui Song <maskray@google.com>
1051
1052 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
1053 * lexsup.c (elf_static_list_options): Display help for them. Move
1054 help for -z stack-size to here from elf_shlib_list_options. Add
1055 help for -z start-stop-visibility and -z undefs.
1056 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
1057 * NEWS: Mention -z start-stop-gc.
1058 * testsuite/ld-gc/start2.s,
1059 * testsuite/ld-gc/start2.d: New test.
1060 * testsuite/ld-gc/gc.exp: Run it.
1061
1062 2021-03-01 Alan Modra <amodra@gmail.com>
1063
1064 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
1065 symbols undefweak if that was how they were referenced. Undo
1066 dynamic state too.
1067
1068 2021-03-01 Alan Modra <amodra@gmail.com>
1069
1070 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
1071 * testsuite/ld-elf/pr27128a.d: Likewise.
1072 * testsuite/ld-elf/pr27128b.d: Likewise.
1073 * testsuite/ld-elf/pr27128c.d: Likewise.
1074 * testsuite/ld-elf/pr27128d.d: Likewise.
1075 * testsuite/ld-elf/pr27128e.d: Likewise.
1076
1077 2021-02-26 Alan Modra <amodra@gmail.com>
1078
1079 PR 27441
1080 * testsuite/ld-plugin/pr27441a.c,
1081 * testsuite/ld-plugin/pr27441b.c,
1082 * testsuite/ld-plugin/pr27441c.c,
1083 * testsuite/ld-plugin/pr27441c.d: New test.
1084 * testsuite/ld-plugin/lto.exp: Run it.
1085
1086 2021-02-25 Jan Beulich <jbeulich@suse.com>
1087
1088 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
1089
1090 2021-02-21 Alan Modra <amodra@gmail.com>
1091
1092 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
1093 defined in an object file.
1094 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
1095 * testsuite/ld-scripts/defined5.d: Expect a warning.
1096
1097 2021-02-19 Alan Modra <amodra@gmail.com>
1098
1099 * testsuite/lib/ld-lib.exp: Whitespace.
1100 (load_common_lib): Expand single use and delete this proc.
1101 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
1102 Use -B for clang too.
1103
1104 2021-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
1105
1106 * testplugin.c (record_read_length): Remove debug fprintf.
1107
1108 2021-02-14 Alan Modra <amodra@gmail.com>
1109
1110 * testsuite/ld-cdtest/cdtest.exp,
1111 * testsuite/ld-checks/checks.exp,
1112 * testsuite/ld-elf/binutils.exp,
1113 * testsuite/ld-elf/compress.exp,
1114 * testsuite/ld-elf/dwarf.exp,
1115 * testsuite/ld-elf/exclude.exp,
1116 * testsuite/ld-elf/frame.exp,
1117 * testsuite/ld-elf/indirect.exp,
1118 * testsuite/ld-elf/linux-x86.exp,
1119 * testsuite/ld-elf/sec-to-seg.exp,
1120 * testsuite/ld-elf/tls_common.exp,
1121 * testsuite/ld-elfcomm/elfcomm.exp,
1122 * testsuite/ld-elfvers/vers.exp,
1123 * testsuite/ld-elfvsb/elfvsb.exp,
1124 * testsuite/ld-elfweak/elfweak.exp,
1125 * testsuite/ld-ifunc/binutils.exp,
1126 * testsuite/ld-mips-elf/mips-elf-flags.exp,
1127 * testsuite/ld-misc/defsym.exp,
1128 * testsuite/ld-mn10300/mn10300.exp,
1129 * testsuite/ld-plugin/lto.exp,
1130 * testsuite/ld-plugin/plugin.exp,
1131 * testsuite/ld-scripts/align.exp,
1132 * testsuite/ld-scripts/assert.exp,
1133 * testsuite/ld-scripts/crossref.exp,
1134 * testsuite/ld-scripts/defined.exp,
1135 * testsuite/ld-scripts/extern.exp,
1136 * testsuite/ld-scripts/log2.exp,
1137 * testsuite/ld-scripts/map-address.exp,
1138 * testsuite/ld-scripts/phdrs.exp,
1139 * testsuite/ld-scripts/phdrs2.exp,
1140 * testsuite/ld-scripts/script.exp,
1141 * testsuite/ld-scripts/section-flags.exp,
1142 * testsuite/ld-scripts/sizeof.exp,
1143 * testsuite/ld-scripts/weak.exp,
1144 * testsuite/ld-selective/selective.exp,
1145 * testsuite/ld-sh/sh.exp,
1146 * testsuite/ld-shared/shared.exp,
1147 * testsuite/ld-srec/srec.exp,
1148 * testsuite/ld-tic6x/tic6x.exp,
1149 * testsuite/ld-undefined/undefined.exp,
1150 * testsuite/ld-undefined/weak-undef.exp,
1151 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
1152 perror. Instead report "unsupported" or "fail".
1153
1154 2021-02-12 Nick Clifton <nickc@redhat.com>
1155
1156 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
1157 following debug links.
1158
1159 2021-02-11 Alan Modra <amodra@gmail.com>
1160
1161 * NEWS: Mention arm-symbianelf removal.
1162
1163 2021-02-09 Alan Modra <amodra@gmail.com>
1164
1165 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
1166 Don't include symbian dep file.
1167 * configure.tgt: Remove arm*-*-symbianelf* entry.
1168 * emulparams/armsymbian.sh: Delete.
1169 * ld.texi: Don't mention symbian.
1170 * scripttempl/armbpabi.sc: Delete.
1171 * testsuite/ld-arm/symbian-seg1.d: Delete.
1172 * testsuite/ld-arm/symbian-seg1.s: Delete.
1173 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
1174 * Makefile.in: Regenerate.
1175 * po/BLD-POTFILES.in: Regenerate.
1176
1177 2021-02-07 H.J. Lu <hongjiu.lu@intel.com>
1178
1179 PR ld/27358
1180 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
1181 tests.
1182 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1183
1184 2021-01-26 Nick Alcock <nick.alcock@oracle.com>
1185
1186 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
1187 when appropriate.
1188
1189 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1190
1191 PR ld/19609
1192 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
1193 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
1194 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
1195 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
1196 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
1197 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
1198 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
1199
1200 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1201
1202 PR ld/15146
1203 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
1204 * testsuite/ld-plugin/pr15146.d: Restored.
1205 * testsuite/ld-plugin/pr15146a.c: Likewise.
1206 * testsuite/ld-plugin/pr15146b.c: Likewise.
1207 * testsuite/ld-plugin/pr15146c.c: Likewise.
1208 * testsuite/ld-plugin/pr15146d.c: Likewise.
1209
1210 2021-02-04 Alan Modra <amodra@gmail.com>
1211
1212 * testsuite/ld-plugin/pr27311d.c: New test.
1213 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
1214 and link new test as pr27311-2.
1215
1216 2021-02-03 Alan Modra <amodra@gmail.com>
1217
1218 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
1219 Link with --as-needed.
1220
1221 2021-02-02 Alan Modra <amodra@gmail.com>
1222
1223 * testsuite/ld-plugin/pr27311.d,
1224 * testsuite/ld-plugin/pr27311.ver,
1225 * testsuite/ld-plugin/pr27311a.c,
1226 * testsuite/ld-plugin/pr27311b.c,
1227 * testsuite/ld-plugin/pr27311c.c: New testcase.
1228 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
1229 PR12982 entries.
1230
1231 2021-02-01 Emery Hemingway <ehmry@posteo.net>
1232
1233 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1234
1235 2021-02-01 Alan Modra <amodra@gmail.com>
1236
1237 * ldgram.y (defsym_expr): Use assignment rule.
1238 * ldlex.h (ldlex_defsym): Delete.
1239 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
1240
1241 2021-02-01 Alan Modra <amodra@gmail.com>
1242
1243 * ldgram.y (section): Call ldlex_backup. Remove empty action.
1244 * ldlex.h (ldlex_backup): Declare.
1245 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
1246 chars, use SYMBOLNAMECHAR.
1247 (ldlex_backup): New function.
1248
1249 2021-02-01 Alan Modra <amodra@gmail.com>
1250
1251 * ldgram.y: Whitespace fixes.
1252
1253 2021-02-01 Alan Modra <amodra@gmail.com>
1254
1255 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
1256
1257 2021-01-29 Alan Modra <amodra@gmail.com>
1258
1259 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
1260
1261 2021-01-28 H.J. Lu <hongjiu.lu@intel.com>
1262
1263 PR ld/27259
1264 * testsuite/ld-elf/pr27259.d: New file.
1265 * testsuite/ld-elf/pr27259.s: Likewise.
1266
1267 2021-01-28 Alan Modra <amodra@gmail.com>
1268
1269 PR 27259
1270 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
1271 prevent endless looping of linked-to sections.
1272
1273 2021-01-26 H.J. Lu <hongjiu.lu@intel.com>
1274
1275 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
1276
1277 2021-01-26 Alan Modra <amodra@gmail.com>
1278
1279 PR 27226
1280 * emulparams/alphavms.sh: Don't set COMPILE_IN.
1281 * emulparams/elf64_ia64_vms.sh: Likewise.
1282 * emulparams/elf64mmix.sh: Likewise.
1283 * emulparams/elf_iamcu.sh: Likewise.
1284 * emulparams/elf_k1om.sh: Likewise.
1285 * emulparams/elf_l1om.sh: Likewise.
1286 * emulparams/mmo.sh: Likewise.
1287 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
1288 * scripttempl/pdp11.sc: Use it.
1289 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
1290 instead use .xe script. Support scripts from file system.
1291 * emultempl/beos.em: Support scripts from file system.
1292 * emultempl/pe.em: Likewise.
1293 * emultempl/pep.em: Likewise.
1294 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
1295
1296 2021-01-25 Fangrui Song <maskray@google.com>
1297
1298 PR ld/27230
1299 * scripttempl/DWARF.sc: Add .debug_* sections.
1300
1301 2021-01-25 Nick Clifton <nickc@redhat.com>
1302
1303 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
1304 .debug_line_str and .debug_str_offsets. Move .debug_macro and
1305 .debug_addr into DWARF-5 section.
1306
1307 2021-01-21 Alan Modra <amodra@gmail.com>
1308
1309 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
1310
1311 2021-01-20 Alan Modra <amodra@gmail.com>
1312
1313 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
1314 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
1315 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
1316 * testsuite/ld-powerpc/tlsget.wf: Likewise.
1317 * testsuite/ld-powerpc/tlsget2.d: Likewise.
1318 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
1319 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
1320 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
1321 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
1322 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
1323 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
1324 * testsuite/ld-powerpc/tlsexers.r: Likewise.
1325 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
1326 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
1327 * testsuite/ld-powerpc/tlsso.r: Likewise.
1328 * testsuite/ld-powerpc/tlsso32.r: Likewise.
1329 * testsuite/ld-powerpc/tlstocso.r: Likewise.
1330
1331 2021-01-19 Nick Alcock <nick.alcock@oracle.com>
1332
1333 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
1334 symbols by the optimizer.
1335 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
1336
1337 2021-01-19 Nelson Chu <nelson.chu@sifive.com>
1338
1339 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
1340 if target is riscv little endian. Otherwise, return false.
1341 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
1342 targets by [riscv_little_endian].
1343
1344 2021-01-18 Alan Modra <amodra@gmail.com>
1345
1346 PR 26378
1347 * ldlang.c (map_input_to_output_sections): Start with a read-only
1348 section for data statements.
1349 * testsuite/ld-elf/size-2.d: Adjust to suit.
1350
1351 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
1352
1353 PR ld/27193
1354 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
1355 * testsuite/ld-i386/pr27193.dd: New file.
1356 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
1357 * testsuite/ld-i386/pr27193b.s: Likewise.
1358
1359 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1360
1361 PR binutils/23460
1362 * testsuite/ld-plugin/lto.exp: Increase the max number of open
1363 files to 20 for PR binutils/23460 test.
1364
1365 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1366
1367 PR ld/23169
1368 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
1369 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
1370 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
1371 address.
1372
1373 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
1374
1375 * NEWS: Mention -z report-relative-reloc.
1376 * ld.texi: Document -z report-relative-reloc.
1377 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
1378 * emulparams/elf_i386.sh: Likewse.
1379 * emulparams/elf_x86_64.sh: Likewse.
1380 * emulparams/x86-report-relative.sh: New file.
1381 * testsuite/ld-i386/report-reloc-1.d: Likewse.
1382 * testsuite/ld-i386/report-reloc-1.l: Likewse.
1383 * testsuite/ld-i386/report-reloc-1.s: Likewse.
1384 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
1385 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
1386 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
1387 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
1388 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
1389 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
1390 report-reloc-1-x32.
1391
1392 2021-01-16 Alan Modra <amodra@gmail.com>
1393
1394 PR 26002
1395 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
1396 unversioned symbols.
1397 * testsuite/ld-elfvers/vers16.dsym: Likewise.
1398
1399 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1400
1401 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
1402 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
1403 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
1404 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
1405 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
1406 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
1407
1408 2021-01-14 Nick Clifton <nickc@redhat.com>
1409
1410 * po/fr.po: Updated French translation.
1411
1412 2021-01-14 Mike Frysinger <vapier@gentoo.org>
1413
1414 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
1415
1416 2021-01-14 Alan Modra <amodra@gmail.com>
1417
1418 PR 27160
1419 * ldelfgen.c (compare_link_order): Protect access of ELF section
1420 data.
1421 (add_link_order_input_section): Remove redundant NULL check.
1422 Use bfd_get_flavour.
1423 (ldelf_map_segments): Use bfd_get_flavour.
1424
1425 2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
1426
1427 * ldelfgen.c (add_link_order_input_section): Check for ELF input
1428 before accessing ELF section data.
1429
1430 2021-01-13 Alan Modra <amodra@gmail.com>
1431
1432 * Makefile.in: Regenerate.
1433
1434 2021-01-13 Alan Modra <amodra@gmail.com>
1435
1436 PR 27160
1437 * ldlang.h (lang_output_section_statement_type): Add data field.
1438 (lang_input_section_type, lang_section_bst_type): Add pattern field.
1439 (statement_list): Declare.
1440 (lang_add_section): Adjust prototype.
1441 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
1442 * emultempl/armelf.em: Likewise.
1443 * emultempl/beos.em: Likewise.
1444 * emultempl/cskyelf.em: Likewise.
1445 * emultempl/hppaelf.em: Likewise.
1446 * emultempl/m68hc1xelf.em: Likewise.
1447 * emultempl/metagelf.em: Likewise.
1448 * emultempl/mipself.em: Likewise.
1449 * emultempl/mmo.em: Likewise.
1450 * emultempl/msp430.em: Likewise.
1451 * emultempl/nios2elf.em: Likewise.
1452 * emultempl/pe.em: Likewise.
1453 * emultempl/pep.em: Likewise.
1454 * emultempl/ppc64elf.em: Likewise.
1455 * emultempl/spuelf.em: Likewise.
1456 * emultempl/vms.em: Likewise.
1457 * ldelf.c: Likewise.
1458 * ldelfgen.c: Include ldctor.h.
1459 (struct os_sections): New.
1460 (add_link_order_input_section, link_order_scan): New functions.
1461 (compare_link_order, fixup_link_order): New functions.
1462 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
1463 * ldlang.c (statement_list): Make global.
1464 (output_section_callback_fast): Save pattern in tree node.
1465 (lang_add_section): Add pattern parameter, save in lang_input_section.
1466 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
1467 (lang_insert_orphan, output_section_callback): Likewise.
1468 (ldlang_place_orphan): Likewise.
1469 (gc_section_callback): Don't set section->pattern.
1470 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
1471 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1472 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
1473
1474 2021-01-13 Alan Modra <amodra@gmail.com>
1475
1476 * ldlang.h (callback_t): Remove flag_info function parameter.
1477 * ldlang.c (walk_wild_consider_section): Adjust to suit.
1478 (walk_wild_section_general): Likewise.
1479 (output_section_callback_fast, output_section_callback): Likewise.
1480 (check_section_callback, gc_section_callback): Likewise.
1481 (find_relro_section_callback): Likewise.
1482
1483 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1484
1485 PR binutils/26792
1486 * configure.ac: Use GNU_MAKE_JOBSERVER.
1487 * aclocal.m4: Regenerated.
1488 * configure: Likewise.
1489
1490 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1491
1492 PR ld/27171
1493 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
1494 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1495 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1496 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
1497
1498 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1499
1500 PR ld/27173
1501 * configure: Regenerated.
1502
1503 2021-01-11 Matt Jenkins <matt@majenko.co.uk>
1504
1505 PR ld/27167
1506 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
1507 and mips64r5 to list of known mips targets.
1508
1509 2021-01-11 Nick Clifton <nickc@redhat.com>matt@majenko.co.uk
1510
1511 * po/pt_BR.po: Updated Brazilian Portuguese translation.
1512 ` * po/uk.po: Updated Ukranian translation.
1513
1514 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1515
1516 * configure: Regenerated.
1517
1518 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1519
1520 PR ld/27166
1521 * testsuite/ld-x86-64/lam-u48.rd: New file.
1522 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
1523 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
1524
1525 2021-01-09 Nick Clifton <nickc@redhat.com>
1526
1527 * configure: Regenerate.
1528 * po/ld.pot: Regenerate.
1529
1530 2021-01-09 Nick Clifton <nickc@redhat.com>
1531
1532 * 2.36 release branch crated.
1533
1534 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
1535
1536 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
1537 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
1538
1539 2021-01-09 Alan Modra <amodra@gmail.com>
1540
1541 * configure: Regenerate.
1542 * Makefile.in: Regenerate.
1543
1544 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1545
1546 * configure: Regenerate.
1547
1548 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1549
1550 PR 27109
1551 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
1552 * testsuite/ld-elf/loadaddr3b.d: Likewise.
1553 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1554 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1555 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1556 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1557 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1558 * testsuite/ld-i386/pr19636-1d.d: Likewise.
1559 * testsuite/ld-i386/pr19636-1l.d: Likewise.
1560 * testsuite/ld-i386/pr19636-2c.d: Likewise.
1561 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1562 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1563 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1564 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1565 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1566 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1567 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1568 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1569 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1570 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1571 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1572 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1573 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1574 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1575 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1576 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1577 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1578 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1579 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1580 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1581 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1582 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1583 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1584 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1585 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1586 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1587 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
1588 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
1589 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
1590 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
1591 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
1592 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
1593 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1594 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
1595 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1596 * testsuite/ld-x86-64/pr21038b.d: Likewise.
1597 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1598 * testsuite/ld-x86-64/pr21038c.d: Likewise.
1599 * testsuite/ld-x86-64/pr23854.d: Likewise.
1600 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1601 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1602 * testsuite/ld-i386/plt-pic.pd: Likewise.
1603 * testsuite/ld-i386/plt-pic2.dd: Likewise.
1604 * testsuite/ld-i386/plt.pd: Likewise.
1605 * testsuite/ld-i386/plt2.dd: Likewise.
1606 * testsuite/ld-i386/tlsbin.rd: Likewise.
1607 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1608 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1609 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1610 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
1611 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1612 * testsuite/ld-i386/tlspic.rd: Likewise.
1613 * testsuite/ld-i386/tlspic2.rd: Likewise.
1614 * testsuite/ld-x86-64/mpx3.dd: Likewise.
1615 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
1616 * testsuite/ld-x86-64/mpx4.dd: Likewise.
1617 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
1618 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
1619 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1620 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1621 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1622 * testsuite/ld-x86-64/plt.pd: Likewise.
1623 * testsuite/ld-x86-64/plt2.dd: Likewise.
1624 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1625 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1626 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1627 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1628 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
1629 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1630 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1631 * testsuite/ld-elf/sec64k.exp: Check
1632 is_elf_unused_section_symbols.
1633
1634 2021-01-07 Alan Modra <amodra@gmail.com>
1635
1636 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
1637 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
1638 * testsuite/ld-scripts/segment-start.d: Likewise.
1639
1640 2021-01-07 Alan Modra <amodra@gmail.com>
1641
1642 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
1643 about dynamic relocations in read-only sections.
1644 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1645 * testsuite/ld-elf/ehdr_start.d: Likewise.
1646 * testsuite/ld-scripts/pr22267.d: Likewise.
1647 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
1648 pr20995 text.
1649 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
1650
1651 2021-01-07 Marcus Comstedt <marcus@mc.pp.se>
1652
1653 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
1654 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
1655
1656 2021-01-07 Alan Modra <amodra@gmail.com>
1657
1658 * po/BLD-POTFILES.in: Regenerate.
1659
1660 2021-01-07 Alan Modra <amodra@gmail.com>
1661
1662 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
1663 complain about relocs in read-only sections. Tidy ASFLAGS append.
1664
1665 2021-01-06 Alan Modra <amodra@gmail.com>
1666
1667 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
1668 base for some tests.
1669 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
1670 * testsuite/ld-sparc/gotop32.sd: Likewise.
1671 * testsuite/ld-sparc/gotop32.td: Likewise.
1672 * testsuite/ld-sparc/gotop64.dd: Likewise.
1673 * testsuite/ld-sparc/gotop64.sd: Likewise.
1674 * testsuite/ld-sparc/gotop64.td: Likewise.
1675 * testsuite/ld-sparc/tlsg32.sd: Likewise.
1676 * testsuite/ld-sparc/tlsg64.sd: Likewise.
1677 * testsuite/ld-sparc/tlspie32.dd: Likewise.
1678 * testsuite/ld-sparc/tlspie64.dd: Likewise.
1679 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
1680 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
1681 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
1682 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
1683 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
1684 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
1685 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
1686 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
1687 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
1688 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
1689 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
1690 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
1691 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
1692 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
1693 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
1694 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
1695 * testsuite/ld-sparc/wdispcall.dd: Likewise.
1696
1697 2021-01-06 Alan Modra <amodra@gmail.com>
1698
1699 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
1700 * testsuite/ld-scripts/rgn-at11.d: Likewise.
1701
1702 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1703
1704 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
1705 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
1706 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
1707 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
1708 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1709 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1710 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1711 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
1712 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
1713 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
1714 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
1715 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
1716 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
1717 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
1718 to littleriscv.
1719 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
1720
1721 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1722
1723 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
1724 riscv32be*-*-linux*, and riscv64be*-*-linux*.
1725 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
1726 eelf32briscv_ilp32.c.
1727 * Makefile.in: Regenerate.
1728 * emulparams/elf32briscv.sh: Added.
1729 * emulparams/elf32briscv_ilp32.sh: Likewise.
1730 * emulparams/elf32briscv_ilp32f.sh: Likewise.
1731 * emulparams/elf64briscv.sh: Likewise.
1732 * emulparams/elf64briscv_lp64.sh: Likewise.
1733 * emulparams/elf64briscv_lp64f.sh: Likewise.
1734
1735 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1736
1737 * testsuite/ld-ctf/enum-forward.c: New test.
1738 * testsuite/ld-ctf/enum-forward.c: New results.
1739
1740 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1741
1742 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1743 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1744 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1745 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1746 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1747 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1748 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1749 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1750 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1751 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1752 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1753 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1754 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1755 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1756 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1757 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1758 * testsuite/ld-ctf/cycle-1.d: Likewise.
1759 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1760 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1761 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1762 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1763 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1764 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1765 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1766 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1767 * testsuite/ld-ctf/forward.d: Likewise.
1768 * testsuite/ld-ctf/function.d: Likewise.
1769 * testsuite/ld-ctf/slice.d: Likewise.
1770 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1771 * testsuite/ld-ctf/enums.c: New test.
1772 * testsuite/ld-ctf/enums.d: New test.
1773
1774 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1775
1776 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
1777 changes.
1778 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1779 * testsuite/ld-ctf/forward.c: New test...
1780 * testsuite/ld-ctf/forward.d: ... and results.
1781
1782 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1783
1784 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1785 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1786 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1787 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1788 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1789 * testsuite/ld-ctf/function.d: Likewise.
1790 * testsuite/ld-ctf/slice.d: Likewise.
1791
1792 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1793
1794 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1795 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1796 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1797 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1798 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1799 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1800 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1801 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1802 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1803 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1804 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1805 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1806 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1807 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1808 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1809 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1810 * testsuite/ld-ctf/cycle-1.d: Likewise.
1811 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1812 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1813 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1814 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1815 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1816 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1817 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1818 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1819 * testsuite/ld-ctf/function.d: Likewise.
1820 * testsuite/ld-ctf/slice.d: Likewise.
1821 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1822
1823 2021-01-05 Alan Modra <amodra@gmail.com>
1824
1825 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
1826
1827 2021-01-05 Alan Modra <amodra@gmail.com>
1828
1829 PR ld/26256
1830 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
1831 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
1832
1833 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
1834
1835 PR ld/26256
1836 * ldlang.c (gc_section_callback): Set pattern.
1837 * testsuite/ld-elf/pr26256-1.s: New file.
1838 * testsuite/ld-elf/pr26256-1.t: Likewise.
1839 * testsuite/ld-elf/pr26256-1a.d: Likewise.
1840 * testsuite/ld-elf/pr26256-1b.d: Likewise.
1841 * testsuite/ld-elf/pr26256-2.s: Likewise.
1842 * testsuite/ld-elf/pr26256-2.t: Likewise.
1843 * testsuite/ld-elf/pr26256-2a.d: Likewise.
1844 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
1845 * testsuite/ld-elf/pr26256-2b.d: Likewise.
1846 * testsuite/ld-elf/pr26256-3.s: Likewise.
1847 * testsuite/ld-elf/pr26256-3a.d: Likewise.
1848 * testsuite/ld-elf/pr26256-3a.t: Likewise.
1849 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1850 * testsuite/ld-elf/pr26256-3b.t: Likewise.
1851
1852 2021-01-04 Alan Modra <amodra@gmail.com>
1853
1854 PR 26822
1855 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
1856 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
1857 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
1858 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
1859 * testsuite/ld-i386/tlsbin.rd: Likewise.
1860 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1861 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1862 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1863 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1864 * testsuite/ld-i386/tlspic.rd: Likewise.
1865 * testsuite/ld-i386/tlspic2.rd: Likewise.
1866 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
1867 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
1868 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
1869 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
1870 * testsuite/ld-plugin/pr17973.d: Likewise.
1871 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
1872 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
1873 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
1874 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
1875 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
1876 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
1877 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
1878 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
1879 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
1880 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
1881 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
1882 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
1883 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
1884 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1885 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1886 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1887 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1888 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1889 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1890 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
1891 * testsuite/ld-xtensa/tlspic.rd: Likewise.
1892
1893 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1894
1895 * configure.tgt: Correct comment grammar.
1896 * emultempl/m68hc1xelf.em: Likewise.
1897 * ld.texi: Correct grammar.
1898
1899 2021-01-01 Alan Modra <amodra@gmail.com>
1900
1901 Update year range in copyright notice of all files.
1902
1903 For older changes see ChangeLog-2020
1904 \f
1905 Copyright (C) 2021-2022 Free Software Foundation, Inc.
1906
1907 Copying and distribution of this file, with or without modification,
1908 are permitted in any medium without royalty provided the copyright
1909 notice and this notice are preserved.
1910
1911 Local Variables:
1912 mode: change-log
1913 left-margin: 8
1914 fill-column: 74
1915 version-control: never
1916 End: