]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/ChangeLog
Prevent an illegal memory access when comparing the prefix of a section name regexp.
[thirdparty/binutils-gdb.git] / ld / ChangeLog
CommitLineData
3bf5bf54
NC
12022-12-05 Nick Clifton <nickc@redhat.com>
2
3 PR 29849
4 * ldlang.c (spec_match): Check that there is sufficient length in
5 the target name to match the spec's prefix.
6
e26943f9
NC
72022-11-03 Nick Clifton <nickc@redhat.com>
8
9 PR 29748
10 * configure.tgt (ac_default_ld_warn_rwx_segments): Set to 0 for
11 the V850.
12
fa6895ad
NC
132022-11-03 Nick Clifton <nickc@redhat.com>
14
78cd9188 15 PR 29741
fa6895ad
NC
16 * scripttempl/avr.sc (__DATA_REGION_ORIGIN__): Define. If a value
17 has not been provided on the command line then use DATA_ORIGIN.
18 (MEMORY): Use __DATA_REGION_ORIGIN__ as the start of the data region.
19
4b2e7a57
NC
202022-10-21 Nick Clifton <nickc@redhat.com>
21
22 PR 29654
23 * ld.h (struct ld_config_type): Add no_warnings field.
24 * ldlex.h (enum option_values): Add OPTION_NO_WARNINGS.
25 * lexsup.c (ld_options): Add --no-warnings.
26 (parse_args): Add support for -w and --no-warnings.
27 * ldmisc.c (vfinfo): Return early if the message is a warning and
28 -w has been enabled.
29 * ld.texi (options): Document new command line option.
30 * NEWS: Mention the new feature.
31
37833b96
NC
322022-08-30 Nick Clifton <nickc@redhat.com>
33
34 PR 29529
35 * testsuite/ld-x86-64/pr27587.err: Update expected output.
36
f0821653
RH
372022-08-18 Ralf Habacker <ralf.habacker@freenet.de>
38
39 PR 28362
40 * testsuite/ld-pe/pe-run2-def.exp: New file.
41
a6ad7914
AM
422022-08-03 Alan Modra <amodra@gmail.com>
43
44 PR 29389
45 * ldlang.h (lang_input_statement_struct): Add sort_key field.
46 * emultempl/pe.em (after_open): If multiple import libraries refer
47 to the same bfd, store their names in the sort_key field.
48 * emultempl/pep.em (after_open): Likewise.
49 * ldlang.c (sort_filename): New function. Returns the filename to
50 be used when sorting input files.
51 (wild_sort): Use the sort_filename function.
52
b80b72c0
RO
532022-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
54
55 PR ld/29411
56 * configure.tgt (ac_default_ld_warn_rwx_segments): Extend to all
57 sparc targets. Expand comment.
58
91896b4d
NC
592022-07-26 Nick Clifton <nickc@redhat.com>
60
61 PR 29411
62 * configure.tgt (ac_default_ld_warn_rwx_segments): Disable for
63 sparc-solaris configurations.
64
0bd09323
NC
652022-07-08 Nick Clifton <nickc@redhat.com>
66
67 * 2.39 branch created.
68
ed1c7ad8
NC
692022-06-27 Nick Clifton <nickc@redhat.com>
70
71 PR 29263
72 * configure.ac: Move HPPA specific code from here...
73 * configure.tgt: ... to here. Add similar code for MIPS.
74 Move code for CRIS, MIPS and HPPA to block at start of file.
75 * configure: Regenerate.
76
acd65fa6
NC
772022-06-21 Nick Clifton <nickc@redhat.com>
78
79 PR 29263
80 * configure.ac (ac_default_ld_warn_execstack): Default to 'no' for
81 HPPA targets.
82 (ac_default_ld_warn_rwx_segments): Likewise.
83 * configure: Regenerate.
84 * testsuite/ld-elf/elf.exp: Add the --warn-execstack command line
85 option to the command line when running execstack tests for the
86 HPPA target.
87
678dc756
AM
882022-05-12 Alan Modra <amodra@gmail.com>
89
90 PR 29006
91 * pe-dll.c (dll_name): Delete, replacing with..
92 (dll_filename): ..this, moved earlier in file.
93 (generate_edata): Delete parameters. Don't set up dll_name here..
94 (pe_process_import_defs): ..instead set up dll_filename and
95 dll_symname here before returning.
96 (dll_symname_len): Delete write-only variable.
97 (pe_dll_generate_implib): Don't set up dll_symname here.
98
46465574
NC
992022-05-03 Nick Clifton <nickc@redhat.com>
100
101 PR 29101
102 * libdep_plugin.c (get_libdeps): Check for overflow when computing
103 amount of memory to allocate.
104
639d467b
NC
1052022-04-27 Nick Clifton <nickc@redhat.com>
106
107 PR 29006
108 * pe-dll.c (make_head): Use asprintf to allocate and populate a
109 buffer containing the temporary name.
110 (make_tail, make_one, make_singleton_name_thunk): Likewise.
111 (make_import_fixup_mark, make_import_fixup_entry): Likewise.
112 (make_runtime_pseudo_reloc): Likewise.
113 (pe_create_runtime_relocator_reference): Likewise.
114
0d38576a
NC
1152022-04-25 Nick Clifton <nickc@redhat.com>
116
117 PR 29072
118 * testsuite/ld-elf/pr29072.b.warn: Update to include the note
119 about the linker's behaviour being depreccated.
120
2d23f965
CC
1212022-04-20 Clément Chigot <clement.chigot@atos.net>
122
123 * emultempl/aix.em (params): New variable.
124 (stub_file): New variable.
125 (xcoff_add_stub_section): New function.
126 (xcoff_layout_sections_again): New function
127 (hook_in_stub): New function.
128 (_after_allocation): Add stub creation.
129 (_create_output_section_statements): Allocate stub file and
130 pass params to backend.
131
1876a542
CC
1322022-04-20 Clément Chigot <clement.chigot@atos.net>
133
134 * emultempl/aix.em (_after_allocation): New function.
135
145667f8
MH
1362022-04-07 Mark Harmstone <mark@harmstone.com>
137
138 * testsuite/ld-pe/secidx1.s: New test source file.
139 * testsuite/ld-pe/secidx2.s: New test source file.
140 * testsuite/ld-pe/secidx.d: New test driver file.
141 * testsuite/ld-pe/secidx_64.d: New test driver file.
142 * testsuite/ld-pe/pe.exp: Add new tests.
143
95e96e05
NC
1442022-03-01 Nick Clifton <nickc@redhat.com>
145
146 PR 21964
147 * testsuite/ld-elf/pr21964-1a.c: Fix array comparisons.
148 * testsuite/ld-elf/pr21964-1b.c: Likewise.
149 * testsuite/ld-elf/pr21964-1c.c: Likewise.
150 * testsuite/ld-elf/pr21964-2a.c: Likewise.
151 * testsuite/ld-elf/pr21964-2b.c: Likewise.
152 * testsuite/ld-elf/pr21964-3a.c: Likewise.
153
5c14cc55
RM
1542022-02-17 Roland McGrath <mcgrathr@google.com>
155
156 * ld.texi (Output Section Type): Fix typo in @code syntax.
157
36d285b9
NC
1582022-02-17 Nick Clifton <nickc@redhat.com>
159
160 * po/sr.po: Updated Serbian translation.
161
c212f39d 1622022-02-16 Fangrui Song <maskray@google.com>
5c14cc55 163 Nick Clifton <nickc@redhat.com>
c212f39d
FS
164
165 PR ld/28841
166 * ld.texi: Document new output section type.
167 * ldlex.l: Add new token TYPE.
168 * ldgram.y: Handle TYPE=exp and READONLY (TYPE=exp).
169 * ldlang.h: Add type_section to list of section types.
170 * ldlang.c (lang_add_section): Handle type_section.
171 (map_input_to_output_sections): Handle type_section.
172 * testsuite/ld-scripts/output-section-types.t: Add tests.
173 * testsuite/ld-scripts/output-section-types.d: Update.
174
a6983974
NC
1752022-02-02 Nick Clifton <nickc@redhat.com>
176
177 * po/fr.po: Updated French translation.
178
5fe73d46
NC
1792022-01-24 Nick Clifton <nickc@redhat.com>
180
181 * po/bg.po: Updated Bulgarian translation.
182 * po/uk.po: Updated Ukranian translation.
183
cc5e4073
AGI
1842022-01-22 Alexander von Gluck IV <kallisti5@unixzen.com>
185
186 * configure.tgt (arm-haiku): Fix typo.
187 * emulparams/armelf_haiku.su (MAXPAGESIZE): Use the default value.
188 (COMMONPAGESIZE): Likewise.
189
f908e960
NC
1902022-01-22 Nick Clifton <nickc@redhat.com>
191
192 * configure: Regenerate.
193 * po/ld.pot: Regenerate.
194
a74e1cb3
NC
1952022-01-22 Nick Clifton <nickc@redhat.com>
196
197 * 2.38 release branch created.
198
e901223d
NC
1992022-01-21 Nick Clifton <nickc@redhat.com>
200
201 * po/sr.po: Updated Serbian translation.
202
6c037fdb
NC
2032022-01-17 Nick Clifton <nickc@redhat.com>
204
205 * Makefile.in: Regenerate.
206 * po/ld.pot: Regenerate.
207
c4a8df19
MS
2082022-01-11 Martin Storsjö <martin@martin.st>
209
210 * pe-dll.c (make_head): Prefix the symbol name with the dll name.
211 (make_tail, make_one, make_singleton_name_thunk): Likewise.
212 (make_import_fixup_entry, make_runtime_pseudo_reloc): Likewise.
213 (pe_create_runtime_relocator_reference): Likewise.
214 (pe_dll_generate_implib): Set dll_symname_len.
215 (pe_process_import_defs): Likewise.
216
f3be70df
NC
2172021-12-16 Nick Clifton <nickc@redhat.com>
218
219 PR 28686
220 * testsuite/ld-avr/avr-prop-7.d: Adjust expected output.
221 * testsuite/ld-avr/avr-prop-8.d: Likewise.
222 * testsuite/ld-avr/pr13402.d: Likewise.
223
44b357eb
NC
2242021-11-30 Nick Clifton <nickc@redhat.com>
225
226 * scripttempl/pru.sc (.pru_irq_map): Define output section.
227 * testsuite/ld-pru/pru_irq_map-1.d: New test.
228 * testsuite/ld-pru/pru_irq_map-2.d: New test.
229 * testsuite/ld-pru/pru_irq_map.s: New test.
230
ef6379e1
JD
2312021-11-17 Jeremy Drake <cygwin@jdrake.com>
232
233 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Set to 0 for
234 Cygwin targets.
235 * emultempl/pep.em (DEFAULT_DLL_CHARACTERISTICS): Likewise.
236
ee9e412f
NC
2372021-11-17 Nick Clifton <nickc@redhat.com>
238
239 PR 28452
240 * ldgram.y: Add support for PT_GNU_RELRO and PT_GNU_PROPERTY.
241 * ldgram.c: Regenerate.
242
d029b54d
RM
2432021-11-15 Roland McGrath <mcgrathr@google.com>
244
245 * testsuite/ld-aarch64/dt_textrel.d: Pass explicit -z notext in
246 case ld was configured with --enable-textrel-check=error.
247 * testsuite/ld-aarch64/pr22764.d: Likewise.
248 * testsuite/ld-aarch64/pr20402.d: Likewise.
249
eb5323fd
NA
2502021-10-25 Nick Alcock <nick.alcock@oracle.com>
251
252 * testsuite/ld-ctf/nonrepresentable-member.*: New test.
253
10909ea8
NA
2542021-10-25 Nick Alcock <nick.alcock@oracle.com>
255
256 * testsuite/ld-ctf/array.d: Change --ctf=.ctf to --ctf.
257 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
258 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
259 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
260 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
261 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
262 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
263 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
264 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
265 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
266 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
267 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
268 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
269 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
270 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
271 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
272 * testsuite/ld-ctf/cycle-1.d: Likewise.
273 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
274 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
275 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
276 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
277 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
278 * testsuite/ld-ctf/diag-cuname.d: Likewise.
279 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
280 * testsuite/ld-ctf/enum-forward.d: Likewise.
281 * testsuite/ld-ctf/enums.d: Likewise.
282 * testsuite/ld-ctf/forward.d: Likewise.
283 * testsuite/ld-ctf/function.d: Likewise.
284 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
285 * testsuite/ld-ctf/slice.d: Likewise.
286 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
287
5109a7bd
DD
2882021-09-30 Dimitar Dimitrov <dimitar@dinux.eu>
289
290 * scripttempl/pru.sc (.resource_table): Align the output
291 section, not the first symbol.
292
b9004024
NA
2932021-09-27 Nick Alcock <nick.alcock@oracle.com>
294
295 * configure: Regenerate.
296
5226a6a8
NC
2972021-09-21 Nick Clifton <nickc@redhat.com>
298
299 * ldlang.c (lang_end): When computing the entry point, only
300 try the start address of the entry section when creating an
301 executable.
302 * ld.texi (Entry point): Update description of heuristic used to
303 choose the entry point.
304 testsuite/ld-alpha/tlspic.rd: Update expected entry point address.
305 testsuite/ld-arm/tls-gdesc-got.d: Likewise.
306 testsuite/ld-i386/tlsnopic.rd: Likewise.
307 testsuite/ld-ia64/tlspic.rd: Likewise.
308 testsuite/ld-sparc/gotop32.rd: Likewise.
309 testsuite/ld-sparc/gotop64.rd: Likewise.
310 testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
311 testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
312 testsuite/ld-sparc/tlssunpic32.rd: Likewise.
313 testsuite/ld-sparc/tlssunpic64.rd: Likewise.
314 testsuite/ld-tic6x/shlib-1.rd: Likewise.
315 testsuite/ld-tic6x/shlib-1b.rd: Likewise.
316 testsuite/ld-tic6x/shlib-1r.rd: Likewise.
317 testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
318 testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
319 testsuite/ld-x86-64/pr14207.d: Likewise.
320 testsuite/ld-x86-64/tlsdesc.rd: Likewise.
321 testsuite/ld-x86-64/tlspic.rd: Likewise.
322 testsuite/ld-x86-64/tlspic2.rd: Likewise.
323
720f6ee0
CZ
3242021-09-15 Claudiu Zissulescu <claziss@synopsys.com>
325
326 * testsuite/ld-arc/got-weak.d: Update file.
327
09a7e912
CZ
3282021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
329
330 * ld-arc/got-weak.d: New file.
331 * ld-arc/got-weak.s: Likewise.
332
dfe3b805
RM
3332021-07-26 Roland McGrath <mcgrathr@google.com>
334
335 * testsuite/ld-x86-64/x86-64.exp (Build textrel-1): Use --warn-textrel.
336
235f5ef4
MM
3372021-07-06 Michael Matz <matz@suse.de>
338
339 PR ld/28021
340 * testsuite/ld-riscv-elf/relax-twice.ver: New.
341 * testsuite/ld-riscv-elf/relax-twice-1.s: New.
342 * testsuite/ld-riscv-elf/relax-twice-2.s: New.
343 * testsuite/ld-riscv-elf/ld-riscv-elf.exp
344 (run_relax_twice_test): New, and call it.
345
346d80ef
NC
3462021-07-03 Nick Clifton <nickc@redhat.com>
347
348 * configure: Regenerate.
349 * po/ld.pot: Regenerate.
350
51419248
NC
3512021-07-03 Nick Clifton <nickc@redhat.com>
352
353 * 2.37 release branch created.
354
50331d64
NC
3552021-06-22 Nelson Chu <nelson.chu@sifive.com>
356
357 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
358 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.d: New testcase.
359 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.s: Likewise.
360 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.d: New testcase.
361 Should report error since the %pcrel_lo with addend refers to
362 %got_pcrel_hi.
363 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.s: Likewise.
364 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.d: New testcase.
365 Should report error since the %got_pcrel_hi with addend.
366 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.s: Likewise.
367 * testsuite/ld-riscv-elf/pcrel-lo-addend-3.ld: Likewise.
368
406b4ada
L
3692021-06-19 H.J. Lu <hongjiu.lu@intel.com>
370
371 PR ld/27998
372 * testsuite/ld-i386/i386.exp: Run PR ld/27998 tests.
373 * testsuite/ld-i386/pr27998a.d: New file.
374 * testsuite/ld-i386/pr27998a.s: Likewise.
375 * testsuite/ld-i386/pr27998b.d: Likewise.
376 * testsuite/ld-i386/pr27998b.s: Likewise.
377
83b1d8f4
L
3782021-06-19 H.J. Lu <hongjiu.lu@intel.com>
379
380 * testsuite/ld-x86-64/textrel-1.err: New file.
381 * testsuite/ld-x86-64/textrel-1a.s: Likewise.
382 * testsuite/ld-x86-64/textrel-1b.s: Likewise.
383 * testsuite/ld-x86-64/x86-64.exp: Run textrel-1 tests.
384
c30420d8
L
3852021-06-18 H.J. Lu <hongjiu.lu@intel.com>
386
387 * testsuite/ld-elf/property-and-1.d: Skip am33_2.0, hppa-hpux
388 and mn10300.
389 Pass --generate-missing-build-notes=no to assembler. Allow
390 other note sections for xtensa.
391 * testsuite/ld-elf/property-and-2.d: Likewise.
392 * testsuite/ld-elf/property-and-3.d: Likewise.
393 * testsuite/ld-elf/property-and-4.d: Likewise.
394 * testsuite/ld-elf/property-or-1.d: Likewise.
395 * testsuite/ld-elf/property-or-2.d: Likewise.
396 * testsuite/ld-elf/property-or-3.d: Likewise.
397 * testsuite/ld-elf/property-or-4.d: Likewise.
398
2d95647b
L
3992021-06-18 H.J. Lu <hongjiu.lu@intel.com>
400
401 * ld.texi: Move -z unique-symbol after -z undefs.
402
5a767724
L
4032021-06-18 H.J. Lu <hongjiu.lu@intel.com>
404
405 * testsuite/ld-elf/property-and-1.d: New file.
406 * testsuite/ld-elf/property-and-1.s: Likewise.
407 * testsuite/ld-elf/property-and-2.d: Likewise.
408 * testsuite/ld-elf/property-and-2.s: Likewise.
409 * testsuite/ld-elf/property-and-3.d: Likewise.
410 * testsuite/ld-elf/property-and-3.s: Likewise.
411 * testsuite/ld-elf/property-and-4.d: Likewise.
412 * testsuite/ld-elf/property-and-empty.s: Likewise.
413 * testsuite/ld-elf/property-or-1.d: Likewise.
414 * testsuite/ld-elf/property-or-1.s: Likewise.
415 * testsuite/ld-elf/property-or-2.d: Likewise.
416 * testsuite/ld-elf/property-or-2.s: Likewise.
417 * testsuite/ld-elf/property-or-3.d: Likewise.
418 * testsuite/ld-elf/property-or-3.s: Likewise.
419 * testsuite/ld-elf/property-or-4.d: Likewise.
420 * testsuite/ld-elf/property-or-empty.s: Likewise.
421
e013d20d
L
4222021-06-17 H.J. Lu <hongjiu.lu@intel.com>
423
424 PR ld/27973
425 * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and
426 $NOPIE_CFLAGS to protected-func-1 without PIE.
427
b6b42983
L
4282021-06-17 H.J. Lu <hongjiu.lu@intel.com>
429
430 PR ld/27973
431 * testsuite/ld-x86-64/x86-64.exp: Run protected function tests.
432 * testsuite/ld-x86-64/protected-func-1.h: New file.
433 * testsuite/ld-x86-64/protected-func-1a.s: Likewise.
434 * testsuite/ld-x86-64/protected-func-1b.c: Likewise.
435
d208bc76
FS
4362021-06-17 Fangrui Song <maskray@google.com>
437
438 * ldlex.h (enum option_values): Add OPTION_NO_PIE.
439 * lexsup.c (struct ld_options): Add -no-pie.
440 (parse_args): Handle -no-pie.
441 * ld.texi: Document -no-pie.
442
93df3340
AM
4432021-06-15 Alan Modra <amodra@gmail.com>
444
445 * testsuite/ld-pie/vaddr-0.d: Update expected output.
446
f64b9b13
AM
4472021-06-11 Alan Modra <amodra@gmail.com>
448
449 PR 27952
450 * ldelf.c (ldelf_after_open): Error on input PIEs too.
451
f75bcf7e
NC
4522021-06-09 Nick Clifton <nickc@redhat.com>
453
454 PR 27666
455 * testsuite/ld-sparc/sparc.exp: Do not run the sparctests or
456 sparc64tests for Solaris2 targets.
457
364d7729
AM
4582021-06-03 Alan Modra <amodra@gmail.com>
459
460 PR 2589
461 * ld.texi (link-time runtime library search path): Mention
462 plugin library path. Correct order of search.
463
ef9d2565
NC
4642021-05-31 Nelson Chu <nelson.chu@sifive.com>
465 Lifang Xia <lifang_xia@c-sky.com>
466
467 PR 27566
468 * emultempl/riscvelf.em (after_allocation): Call
469 riscv_set_data_segment_info to set data segment phase before relaxing.
470 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
471 * testsuite/ld-riscv-elf/relro-relax-lui.d: New testcase.
472 * testsuite/ld-riscv-elf/relro-relax-lui.s: Likewise.
473 * testsuite/ld-riscv-elf/relro-relax-pcrel.d: Likewise.
474 * testsuite/ld-riscv-elf/relro-relax-pcrel.s: Likewise.
475
1273b2f8
L
4762021-05-28 H.J. Lu <hongjiu.lu@intel.com>
477
478 PR ld/27905
479 * testsuite/ld-i386/pcrel16-2.d: xfail.
480 * testsuite/ld-x86-64/pcrel16-2.d: Likewise.
481
50c95a73
L
4822021-05-26 H.J. Lu <hongjiu.lu@intel.com>
483
484 PR ld/27905
485 * testsuite/ld-i386/code16.d: New file.
486 * testsuite/ld-i386/code16.t: Likewise.
487 * testsuite/ld-x86-64/code16.d: Likewise.
488 * testsuite/ld-x86-64/code16.t: Likewise.
489 * testsuite/ld-i386/i386.exp: Run code16.
490 * testsuite/ld-x86-64/x86-64.exp: Likewise.
491
983d5689
L
4922021-05-26 H.J. Lu <hongjiu.lu@intel.com>
493
494 * testsuite/ld-x86-64/ilp32-12.d: New file.
495 * testsuite/ld-x86-64/ilp32-12.s: Likewise.
496 * testsuite/ld-x86-64/x86-64.exp: Run ilp32-12.
497
75f03fa7
NC
4982021-05-14 Nelson Chu <nelson.chu@sifive.com>
499
500 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
501 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d: Renamed from
502 pcrel-lo-addend-2.
503 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.s: Likewise.
504 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.d: New testcase.
505 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.s: Likewise.
506
cf893b0e
FS
5072021-05-13 Fangrui Song <maskray@google.com>
508
509 PR 27834
510 * ldlex.h (enum option_values): Add OPTION_NO_SYMBOLIC.
511 * lexsup.c (ld_options): Add -Bno-symbolic.
512 (parse_args): Handle -Bno-symbolic.
513 * ld.texi: Document -Bno-symbolic.
514 * NEWS: Mention -Bno-symbolic.
515 * testsuite/ld-elf/shared.exp: Add a test.
516
84139c58
RE
5172021-05-12 Richard Earnshaw <rearnsha@arm.com>
518
519 * testsuite/ld-arm/arm-elf.exp (farcall test for v8-m.mainline):
520 Correct expected output.
521
4a1ad5c9
RM
5222021-05-11 Roland McGrath <mcgrathr@google.com>
523
524 * testsuite/ld-x86-64/rela.d: Fix regexp not to presume a specific
525 address layout, so it works for e.g. --target=x86-64-elf.
526
22604fe6
NC
5272021-05-11 Nick Clifton <nickc@redhat.com>
528
529 PR 27113
530 * Makefile.am (install-data-local): Also delete libdep.dll.a if it
531 is present.
532 * Makefile.in: Regenerate.
533
5b45e89f
DD
5342021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
535
536 * testsuite/ld-elf/group8a.d: Remove pru from XFAIL list.
537 * testsuite/ld-elf/group8b.d: Ditto.
538 * testsuite/ld-elf/group9a.d: Ditto.
539 * testsuite/ld-elf/group9b.d: Ditto.
540 * testsuite/ld-elf/pr12851.d: Ditto.
541 * testsuite/ld-elf/pr22677.d: Ditto.
542 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove
543 pru from list.
544
261980de
DD
5452021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
546
547 * scripttempl/pru.sc (.resource_table): Add ALIGN directive.
548 Use symbols for memory sizes.
549
cf758b39
MF
5502021-05-08 Mike Frysinger <vapier@gentoo.org>
551
552 * Makefile.am (html-local, doc/ld/index.html): New targets.
553 * Makefile.in: Regenerate.
554
2faf902d
MF
5552021-05-08 Mike Frysinger <vapier@gentoo.org>
556
557 * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
558 * Makefile.in: Regenerate.
559
17c6c3b9
JB
5602021-05-07 Jan Beulich <jbeulich@suse.com>
561
562 * testsuite/ld-x86-64/rela.d: New.
563 * testsuite/ld-x86-64/x86-64.exp: Run new test.
564
d820a652
NC
5652021-05-07 Nick Clifton <nickc@redhat.com>
566
567 * ldelfgen.c (compare_link_order): Ignore section size when
568 performing a relocateable link.
569
70993db3
AM
5702021-05-07 Alan Modra <amodra@gmail.com>
571
572 * ldexp.c (update_definedness): Don't return false for absolute
573 symbols.
574 * ldmain.c (multiple_definition): Print "warning: " in message
575 when not a hard error.
576
973bba91
AM
5772021-05-07 Alan Modra <amodra@gmail.com>
578
579 * testsuite/ld-elf/pr27825-1.d: Correct xfail.
580 * testsuite/ld-elf/pr27825-2.d: Likewise.
581
284a1309
SH
5822021-05-06 Stafford Horne <shorne@gmail.com>
583
584 PR 27746
585 testsuite/ld-or1k/or1k.exp (or1kplttests): Add tests for linking
586 along with gotha() relocations.
587 testsuite/ld-or1k/gotha1.dd: New file.
588 testsuite/ld-or1k/gotha1.s: New file.
589 testsuite/ld-or1k/gotha2.dd: New file.
590 testsuite/ld-or1k/gotha2.s: New file
591 testsuite/ld-or1k/pltlib.s (x): Define size to avoid link
592 failure.
593
ae064303
NA
5942021-05-06 Nick Alcock <nick.alcock@oracle.com>
595
596 * testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt.
597 * testsuite/lib/ld-lib.exp: Likewise.
598 * testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types.
599 * testsuite/ld-ctf/nonrepresentable-2.c: Likewise.
600 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
601 * testsuite/ld-ctf/array.d: Larger type section.
602 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
603 * testsuite/ld-ctf/enums.d: Likewise.
604 * testsuite/ld-ctf/conflicting-enums.d: Don't compare types.
605 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order.
606 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
607 * testsuite/ld-ctf/slice.d: Adjust for improved slice emission.
608
4467df35
L
6092021-05-05 H.J. Lu <hongjiu.lu@intel.com>
610
611 PR ld/27825
612 * testsuite/ld-elf/pr27825-1.d: New file.
613 * testsuite/ld-elf/pr27825-1a.s: Likewise.
614 * testsuite/ld-elf/pr27825-1b.s: Likewise.
615 * testsuite/ld-elf/pr27825-2.d: Likewise.
616 * testsuite/ld-elf/pr27825-2a.s: Likewise.
617 * testsuite/ld-elf/pr27825-2b.s: Likewise.
618
13ffdac3
AM
6192021-05-05 Alan Modra <amodra@gmail.com>
620
621 * testsuite/ld-powerpc/empty.s: New file.
622 * testsuite/ld-powerpc/undefweak.d,
623 * testsuite/ld-powerpc/undefweak.s: New testcase.
624 * testsuite/ld-powerpc/powerpc.exp: Run it.
625
df6fbc21
AM
6262021-05-03 Alan Modra <amodra@gmail.com>
627
628 * testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
629 named section symbols.
630
24aebc79
NC
6312021-04-28 Nick Clifton <nickc@redhat.com>
632
633 * testsuite/ld-elf/anno-sym.s: New test source file.
634 * testsuite/ld-elf/anno-sym.d: New test driver.
635 * testsuite/ld-elf/anno-sym.l: New test error output.
636
a7664973
JB
6372021-04-26 Jan Beulich <jbeulich@suse.com>
638
639 * testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d,
640 testsuite/ld-x86-64/pcrel16-2.d: New.
641 * testsuite/ld-i386/i386.exp: Run new test.
642 * testsuite/ld-x86-64/x86-64.exp: Likewise.
643
69cc1945
L
6442021-04-23 H.J. Lu <hongjiu.lu@intel.com>
645
646 PR ld/27771
647 * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
648 to tmpdir/ldscripts only if it doesn't exist.
649
d018cd83
JB
6502021-04-22 Jan Beulich <jbeulich@suse.com>
651
652 PR ld/26659
653 * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
654
23356397
NC
6552021-04-21 Nick Clifton <nickc@redhat.com>
656
657 * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
658 to allow for named section symbols.
659 * testsuite/ld-aarch64/variant_pcs-r.d: Likewise.
660 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
661 * testsuite/ld-alpha/tlsbin.rd: Likewise.
662 * testsuite/ld-alpha/tlsbinr.rd: Likewise.
663 * testsuite/ld-alpha/tlspic.rd: Likewise.
664 * testsuite/ld-arm/rodata-merge-map.sym: Likewise.
665 * testsuite/ld-arm/script-type.sym: Likewise.
666 * testsuite/ld-cris/libdso-2.d: Likewise.
667 * testsuite/ld-cris/pr16044.d: Likewise.
668 * testsuite/ld-elf/sec64k.exp: Likewise.
669 * testsuite/ld-ia64/tlsbin.rd: Likewise.
670 * testsuite/ld-ia64/tlspic.rd: Likewise.
671 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
672 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
673 * testsuite/ld-mmix/bspec1.d: Likewise.
674 * testsuite/ld-mmix/bspec2.d: Likewise.
675 * testsuite/ld-mmix/local1.d: Likewise.
676 * testsuite/ld-mmix/local3.d: Likewise.
677 * testsuite/ld-mmix/local5.d: Likewise.
678 * testsuite/ld-mmix/local7.d: Likewise.
679 * testsuite/ld-mmix/undef-3.d: Likewise.
680 * testsuite/ld-powerpc/tlsso.r: Likewise.
681 * testsuite/ld-powerpc/tlsso32.r: Likewise.
682 * testsuite/ld-powerpc/tlstocso.r: Likewise.
683 * testsuite/ld-s390/tlsbin.rd: Likewise.
684 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
685 * testsuite/ld-s390/tlspic.rd: Likewise.
686 * testsuite/ld-s390/tlspic_64.rd: Likewise.
687 * testsuite/ld-sparc/gotop32.rd: Likewise.
688 * testsuite/ld-sparc/gotop64.rd: Likewise.
689 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
690 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
691 * testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
692 * testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
693 * testsuite/ld-sparc/tlssunpic32.rd: Likewise.
694 * testsuite/ld-sparc/tlssunpic64.rd: Likewise.
695 * testsuite/ld-tic6x/common.d: Likewise.
696 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
697 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
698 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
699 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
700 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
701 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
702 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
703 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
704 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
705 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
706 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
707 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
708 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
709
c5df7e44
CC
7102021-04-20 Clément Chigot <clement.chigot@atos.net>
711
712 PR binutils/21700
713 * testsuite/ld-powerpc/aix52.exp: Add new test.
714 * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
715 * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
716 * testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
717 * testsuite/ld-powerpc/aix-neg-reloc.s: New test.
718
6418520e
NC
7192021-04-13 Nick Clifton <nickc@redhat.com>
720
721 * ld.texi (Options): Add note about the effect of --as-needed on
722 the --rpath and --rpath-link options on Linux based systems.
723
1cfc6f00
AM
7242021-04-13 Alan Modra <amodra@gmail.com>
725
726 PR 27722
727 * libdep_plugin.c (str2vec): Don't pass a potentially signed char
728 to isspace.
729
43e05cd4
AM
7302021-04-12 Alan Modra <amodra@gmail.com>
731
732 * configure.ac (--enable-checking): Add support.
733 * config.in: Regenerate.
734 * configure: Regenerate.
735
2cc15b10
AM
7362021-04-12 Alan Modra <amodra@gmail.com>
737
738 * emultempl/mipself.em (mips_create_output_section_statements):
739 Pass base type of hash table to is_elf_hash_table.
740 * ldelf.c (ldelf_after_open): Likewise.
741
fc304b88
AM
7422021-04-12 Alan Modra <amodra@gmail.com>
743
744 PR 27719
745 * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
746 the symbol hash table is the correct type before accessing
747 elf_link_hash_entry symbols.
748 * plugin.c (is_visible_from_outside): Likewise.
749 * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
750 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
751
c3f72de4
AM
7522021-04-09 Alan Modra <amodra@gmail.com>
753
754 * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
755 * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
756 * testsuite/ld-powerpc/notoc2.d: Likewise.
757 * testsuite/ld-powerpc/notoc3.d: Likewise.
758 * testsuite/ld-powerpc/pcrelopt.d: Likewise.
759 * testsuite/ld-powerpc/startstop.d: Likewise.
760 * testsuite/ld-powerpc/tlsget.d: Likewise.
761 * testsuite/ld-powerpc/tlsget2.d: Likewise.
762 * testsuite/ld-powerpc/tlsld.d: Likewise.
763 * testsuite/ld-powerpc/weak1.d: Likewise.
764 * testsuite/ld-powerpc/weak1so.d: Likewise.
765
bd3d1480
JB
7662021-04-06 Jan Beulich <jbeulich@suse.com>
767
768 * pe-dll.c (generate_reloc): Bail immediately when .reloc is
769 being discarded. Warn when relocated entry is above .reloc.
770
c774eab1
AM
7712021-04-05 Alan Modra <amodra@gmail.com>
772
773 * configure.ac: Move initfini-array arg handling earlier. Don't
774 check for string.h, strings.h, stdlib.h, or locale.h. Do check
775 for inttypes.h, stdint.h, sys/types.h. Don't check for
776 setlocale, free, getev or strstr.
777 (AC_ISC_POSIX): Don't invoke.
778 * sysdep.h: Include string.h and stdlib.h unconditionally. Test
779 HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and
780 getenv fallback declarations.
781 * ld.h: Don't test HAVE_LOCALE_H.
782 * ldmain.c: Don't test HAVE_SETLOCALE.
783 * config.in: Regenerate.
784 * configure: Regenerate.
785
74edb473
TC
7862021-04-01 Tamar Christina <tamar.christina@arm.com>
787
788 PR ld/26659
789 * testsuite/ld-pe/pe.exp: Add test.
790 * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
791 * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
792
e9b095a5
ML
7932021-04-01 Martin Liska <mliska@suse.cz>
794
795 * ldbuildid.c (strneq): Remove strneq and use startswith.
796 (validate_build_id_style): Likewise.
797 (compute_build_id_size): Likewise.
798
f38a2680
AM
7992021-03-31 Alan Modra <amodra@gmail.com>
800
801 * sysdep.h (POISON_BFD_BOOLEAN): Define.
802 * configure.ac (elf_list_options, elf_shlib_list_options=false),
803 (elf_plt_unwind_list_options=false): Replace FALSE with false,
804 and TRUE with true.
805 * emulparams/call_nop.sh, * emulparams/cet.sh,
806 * emulparams/dynamic_undefined_weak.sh,
807 * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
808 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
809 * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
810 * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
811 * emulparams/reloc_overflow.sh, * emulparams/static.sh,
812 * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
813 * emultempl/aix.em, * emultempl/alphaelf.em,
814 * emultempl/armcoff.em, * emultempl/armelf.em,
815 * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
816 * emultempl/cr16elf.em, * emultempl/crxelf.em,
817 * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
818 * emultempl/hppaelf.em, * emultempl/linux.em,
819 * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
820 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
821 * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
822 * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
823 * emultempl/pep.em, * emultempl/ppc32elf.em,
824 * emultempl/ppc64elf.em, * emultempl/rxelf.em,
825 * emultempl/rxlinux.em, * emultempl/scoreelf.em,
826 * emultempl/solaris2.em, * emultempl/spuelf.em,
827 * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
828 * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
829 * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
830 * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
831 * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
832 * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
833 * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
834 * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
835 * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
836 bfd_boolean with bool, FALSE with false, and TRUE with true.
837 * configure: Regenerate.
838
3dfb1b6d
AM
8392021-03-31 Alan Modra <amodra@gmail.com>
840
841 * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
842 * emultempl/nds32elf.em: Likewise.
843 * testsuite/ld-elf/mbind2b.c: Likewise.
844 * testsuite/ld-elf/pr18718.c: Likewise.
845 * testsuite/ld-elf/pr18720a.c: Likewise.
846 * testsuite/ld-elf/pr25749-1.c: Likewise.
847 * testsuite/ld-elf/pr25749-1a.c: Likewise.
848 * testsuite/ld-elf/pr25749-1b.c: Likewise.
849 * testsuite/ld-elf/pr25749-1c.c: Likewise.
850 * testsuite/ld-elf/pr25749-1d.c: Likewise.
851 * testsuite/ld-elf/pr25749-2.c: Likewise.
852 * testsuite/ld-elf/pr25754-1a.c: Likewise.
853 * testsuite/ld-elf/pr25754-2a.c: Likewise.
854 * testsuite/ld-elf/pr25754-3a.c: Likewise.
855 * testsuite/ld-elf/pr25754-4a.c: Likewise.
856 * testsuite/ld-elf/pr25754-5a.c: Likewise.
857 * testsuite/ld-elf/pr25754-6a.c: Likewise.
858
63b4cc53
AM
8592021-03-29 Alan Modra <amodra@gmail.com>
860
861 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
862 boolean expression.
863 * lexsup.c (parse_args): Likewise.
864 * pe-dll.c (pe_dll_id_target): Likewise.
865
8592be8c
NA
8662021-03-25 Nick Alcock <nick.alcock@oracle.com>
867
868 * testsuite/ld-ctf/array.d: Only check that the data object
869 section is nonempty: do not check its exact size.
870 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
871 * testsuite/ld-ctf/slice.d: Likewise.
872 * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
873 func info section too.
874 * testsuite/ld-ctf/function.d: Likewise, for the func info section.
875
08dedd66
ML
8762021-03-22 Martin Liska <mliska@suse.cz>
877
878 * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
879 * emultempl/beos.em: Likewise.
880 * emultempl/elf.em: Likewise.
881 * emultempl/pe.em: Likewise.
882 * emultempl/pep.em: Likewise.
883 * emultempl/xtensaelf.em: Likewise.
884 * ldctor.c (ctor_prio): Likewise.
885 * ldelf.c (ldelf_try_needed): Likewise.
886 (ldelf_parse_ld_so_conf): Likewise.
887 (ldelf_after_open): Likewise.
888 (output_rel_find): Likewise.
889 (ldelf_place_orphan): Likewise.
890 * ldfile.c (ldfile_add_library_path): Likewise.
891 * ldlang.c (lang_add_input_file): Likewise.
892 * ldmain.c (get_sysroot): Likewise.
893 (get_emulation): Likewise.
894 (add_archive_element): Likewise.
895 * ldwrite.c (unsplittable_name): Likewise.
896 (clone_section): Likewise.
897 * lexsup.c (parse_args): Likewise.
898 * pe-dll.c (is_import): Likewise.
899 (pe_implied_import_dll): Likewise.
900
1de96e5d
L
9012021-03-19 H.J. Lu <hongjiu.lu@intel.com>
902
903 PR ld/27590
904 * testsuite/ld-x86-64/pr27590.rd: New file.
905 * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
906 * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
907 * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
908
15407e7e
AM
9092021-03-20 Alan Modra <amodra@gmail.com>
910
911 PR 27590
912 * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
913 for all sections except .stabstr.
914
fba7f753
AM
9152021-03-19 Alan Modra <amodra@gmail.com>
916
917 PR 27590
918 * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
919 R_MIPS_NONE.
920 * testsuite/ld-elf/pr27590b.d: Likewise.
921
3818d4ab
L
9222021-03-18 H.J. Lu <hongjiu.lu@intel.com>
923
924 PR ld/27590
925 * testsuite/ld-elf/pr27590.s: New file.
926 * testsuite/ld-elf/pr27590a.d: Likewise.
927 * testsuite/ld-elf/pr27590b.d: Likewise.
928 * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
929 --reduce-memory-overheads.
930
51f6e7a9
L
9312021-03-18 H.J. Lu <hongjiu.lu@intel.com>
932
933 PR ld/27587
934 * testsuite/ld-x86-64/pr27587.err: New file.
935 * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
936 * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
937 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
938
69a28486
NA
9392021-03-18 Nick Alcock <nick.alcock@oracle.com>
940
941 * testsuite/ld-ctf/slice.c: Check slices of enums too.
942 * testsuite/ld-ctf/slice.d: Results adjusted.
943
ee42883c
NC
9442021-03-16 Nick Clifton <nickc@redhat.com>
945
946 * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
947 lname string.
948
c68b1842
JB
9492021-03-15 Jan Beulich <jbeulich@suse.com>
950
951 * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
952
203a206d
AM
9532021-03-12 Alan Modra <amodra@gmail.com>
954
955 * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
956 (ALL_64_EMULATION_SOURCES): ..here.
957 * Makefile.in: Regenerate.
958
1b2cb8e2
CC
9592021-03-12 Clément Chigot <clement.chigot@atos.net>
960
961 * emultempl/aix.em: Ensure .tdata section is removed
962 if empty, even with -r flag.
963 * scripttempl/aix.sc: Handle TLS sections.
964 * testsuite/ld-powerpc/aix52.exp: Add new tests.
965 * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
966 * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
967 * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
968 * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
969 * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
970 * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
971 * testsuite/ld-powerpc/aix-tls-section.ex: New test.
972 * testsuite/ld-powerpc/aix-tls-section.s: New test.
973
4a403be0
CC
9742021-03-12 Clément Chigot <clement.chigot@atos.net>
975
976 * scripttempl/aix.sc: Add .te to .data section.
977 * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
978 Add aix-largetoc-1 test.
979 * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
980 * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
981 * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
982 * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
983
68cb2183
AM
9842021-03-12 Alan Modra <amodra@gmail.com>
985
986 * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
987 arrange to define __main for some run_dump_test tests.
988 * testsuite/ld-gc/pr13683.d: Accept more symbols.
989 * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
990 * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
991 * testsuite/ld-srec/srec.exp: Likewise.
992 * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
993
ebdcad3f
NC
9942021-03-11 Nelson Chu <nelson.chu@sifive.com>
995
996 * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
997 many times if riscv_restart_relax_sections returns TRUE.
998 * testsuite/ld-riscv-elf/restart-relax.d: New testcase. Before
999 applying this patch, the call won't be relaxed to jal; But now we
1000 have more chances to do relaxations.
1001 * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
1002 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
1003
67b0f684
JB
10042021-03-10 Jan Beulich <jbeulich@suse.com>
1005
1006 * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
1007 than 32 set bits.
1008 * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
1009 comment.
1010 * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
1011
5dc75cf3
JB
10122021-03-09 Jan Beulich <jbeulich@suse.com>
1013
1014 * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
1015 alignment to 4k.
1016 * testsuite/ld-pe/reloc.d: xfail for mcore.
1017
87fa7d56
JB
10182021-03-09 Jan Beulich <jbeulich@suse.com>
1019
1020 * testsuite/ld-scripts/alignof.exp,
1021 testsuite/ld-scripts/data.exp,
1022 testsuite/ld-scripts/default-script.exp,
1023 testsuite/ld-scripts/log2.exp,
1024 testsuite/ld-scripts/print-memory-usage.exp,
1025 testsuite/ld-scripts/sizeof.exp,
1026 testsuite/ld-undefined/weak-undef.exp: Set image base to zero
1027 for PE/COFF.
1028 * testsuite/ld-scripts/default-script1.d,
1029 testsuite/ld-scripts/default-script2.d,
1030 testsuite/ld-scripts/default-script3.d,
1031 testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
1032
8c0546e9
L
10332021-03-05 H.J. Lu <hongjiu.lu@intel.com>
1034
1035 PR ld/27425
1036 PR ld/27432
1037 * ldelf.c (ldelf_set_output_arch): New function.
1038 * ldelf.h (ldelf_set_output_arch): New prototype.
1039 * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
1040 ldelf_set_output_arch.
1041 * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
1042 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1043 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1044 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1045 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1046 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1047 * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
1048 * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
1049 * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
1050
d4e5db4e
JB
10512021-03-04 Jan Beulich <jbeulich@suse.com>
1052
1053 * testsuite/ld-scripts/map-address.exp: Set image base to zero
1054 for PE/COFF.
1055 * testsuite/ld-scripts/map-address.t: Place .text.
1056
6fa7408d
JB
10572021-03-04 Jan Beulich <jbeulich@suse.com>
1058
1059 * ldexp.c (ldexp_is_final_sym_absolute): New.
1060 * ldexp.h (ldexp_is_final_sym_absolute): Declare.
1061 * pe-dll.c (generate_reloc): Skip absolute symbols.
1062 * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
1063 * testsuite/ld-pe/pe.exp: Run new test.
1064
5789f845
AM
10652021-03-03 Alan Modra <amodra@gmail.com>
1066
1067 PR 27500
1068 * ldlang.c (insert_undefined): Don't mark symbols here.
1069 (lang_mark_undefineds): Do so here instead, new function.
1070 (lang_process): Call lang_mark_undefineds.
1071 * testsuite/ld-gc/start3.d,
1072 * testsuite/ld-gc/start3.s: New test.
1073 * testsuite/ld-gc/start4.d,
1074 * testsuite/ld-gc/start4.s: New test.
1075 * testsuite/ld-gc/gc.exp: Run them.
1076
270f32fc
AM
10772021-03-03 Alan Modra <amodra@gmail.com>
1078
1079 * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
1080 Move tests with ELF section directives to is_elf_format block.
1081 * testsuite/ld-gc/abi-note.d: Run on more targets.
1082 * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
1083 * testsuite/ld-gc/start.d: Likewise.
1084 * testsuite/ld-gc/start2.d: Likewise.
1085 * testsuite/ld-gc/stop.d: Likewise.
1086 * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
1087 * testsuite/ld-gc/start.s: Likewise.
1088 * testsuite/ld-gc/start2.s: Likewise.
1089
211bcd01
NA
10902021-03-02 Nick Alcock <nick.alcock@oracle.com>
1091
1092 * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
1093
b80e421f
AM
10942021-03-02 Alan Modra <amodra@gmail.com>
1095
1096 * testsuite/ld-powerpc/startstop.d,
1097 * testsuite/ld-powerpc/startstop.r,
1098 * testsuite/ld-powerpc/startstop.s: New test.
1099 * testsuite/ld-powerpc/powerpc.exp: Run it.
1100
f5b9c288
AM
11012021-03-02 Alan Modra <amodra@gmail.com>
1102
1103 * testsuite/ld-powerpc/weak1.d,
1104 * testsuite/ld-powerpc/weak1.r,
1105 * testsuite/ld-powerpc/weak1.s,
1106 * testsuite/ld-powerpc/weak1so.d,
1107 * testsuite/ld-powerpc/weak1so.r: New tests.
1108 * testsuite/ld-powerpc/powerpc.exp: Run them.
1109
ba6eb62f
NC
11102021-03-01 Hannes Domani <ssbssa@sourceware.org>
1111 Nick Clifton <nickc@redhat.com>
1112
1113 PR 27268
1114 * scripttempl/pe.sc: Add DWARF-5 section names.
1115 * scripttempl/pep.sc: Likewise.
1116
8ee10e86
AM
11172021-03-01 Alan Modra <amodra@gmail.com>
1118 Fangrui Song <maskray@google.com>
1119
1120 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
1121 * lexsup.c (elf_static_list_options): Display help for them. Move
1122 help for -z stack-size to here from elf_shlib_list_options. Add
1123 help for -z start-stop-visibility and -z undefs.
1124 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
1125 * NEWS: Mention -z start-stop-gc.
1126 * testsuite/ld-gc/start2.s,
1127 * testsuite/ld-gc/start2.d: New test.
1128 * testsuite/ld-gc/gc.exp: Run it.
1129
7824c1d2
AM
11302021-03-01 Alan Modra <amodra@gmail.com>
1131
1132 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
1133 symbols undefweak if that was how they were referenced. Undo
1134 dynamic state too.
1135
6a1224ec
AM
11362021-03-01 Alan Modra <amodra@gmail.com>
1137
1138 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
1139 * testsuite/ld-elf/pr27128a.d: Likewise.
1140 * testsuite/ld-elf/pr27128b.d: Likewise.
1141 * testsuite/ld-elf/pr27128c.d: Likewise.
1142 * testsuite/ld-elf/pr27128d.d: Likewise.
1143 * testsuite/ld-elf/pr27128e.d: Likewise.
1144
bfece756
AM
11452021-02-26 Alan Modra <amodra@gmail.com>
1146
1147 PR 27441
1148 * testsuite/ld-plugin/pr27441a.c,
1149 * testsuite/ld-plugin/pr27441b.c,
1150 * testsuite/ld-plugin/pr27441c.c,
1151 * testsuite/ld-plugin/pr27441c.d: New test.
1152 * testsuite/ld-plugin/lto.exp: Run it.
1153
3c27360b
JB
11542021-02-25 Jan Beulich <jbeulich@suse.com>
1155
1156 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
1157
89753bbf
AM
11582021-02-21 Alan Modra <amodra@gmail.com>
1159
1160 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
1161 defined in an object file.
1162 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
1163 * testsuite/ld-scripts/defined5.d: Expect a warning.
1164
2f973f13
AM
11652021-02-19 Alan Modra <amodra@gmail.com>
1166
1167 * testsuite/lib/ld-lib.exp: Whitespace.
1168 (load_common_lib): Expand single use and delete this proc.
1169 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
1170 Use -B for clang too.
1171
a364a116
AB
11722021-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
1173
1174 * testplugin.c (record_read_length): Remove debug fprintf.
1175
5b1f6c95
AM
11762021-02-14 Alan Modra <amodra@gmail.com>
1177
1178 * testsuite/ld-cdtest/cdtest.exp,
1179 * testsuite/ld-checks/checks.exp,
1180 * testsuite/ld-elf/binutils.exp,
1181 * testsuite/ld-elf/compress.exp,
1182 * testsuite/ld-elf/dwarf.exp,
1183 * testsuite/ld-elf/exclude.exp,
1184 * testsuite/ld-elf/frame.exp,
1185 * testsuite/ld-elf/indirect.exp,
1186 * testsuite/ld-elf/linux-x86.exp,
1187 * testsuite/ld-elf/sec-to-seg.exp,
1188 * testsuite/ld-elf/tls_common.exp,
1189 * testsuite/ld-elfcomm/elfcomm.exp,
1190 * testsuite/ld-elfvers/vers.exp,
1191 * testsuite/ld-elfvsb/elfvsb.exp,
1192 * testsuite/ld-elfweak/elfweak.exp,
1193 * testsuite/ld-ifunc/binutils.exp,
1194 * testsuite/ld-mips-elf/mips-elf-flags.exp,
1195 * testsuite/ld-misc/defsym.exp,
1196 * testsuite/ld-mn10300/mn10300.exp,
1197 * testsuite/ld-plugin/lto.exp,
1198 * testsuite/ld-plugin/plugin.exp,
1199 * testsuite/ld-scripts/align.exp,
1200 * testsuite/ld-scripts/assert.exp,
1201 * testsuite/ld-scripts/crossref.exp,
1202 * testsuite/ld-scripts/defined.exp,
1203 * testsuite/ld-scripts/extern.exp,
1204 * testsuite/ld-scripts/log2.exp,
1205 * testsuite/ld-scripts/map-address.exp,
1206 * testsuite/ld-scripts/phdrs.exp,
1207 * testsuite/ld-scripts/phdrs2.exp,
1208 * testsuite/ld-scripts/script.exp,
1209 * testsuite/ld-scripts/section-flags.exp,
1210 * testsuite/ld-scripts/sizeof.exp,
1211 * testsuite/ld-scripts/weak.exp,
1212 * testsuite/ld-selective/selective.exp,
1213 * testsuite/ld-sh/sh.exp,
1214 * testsuite/ld-shared/shared.exp,
1215 * testsuite/ld-srec/srec.exp,
1216 * testsuite/ld-tic6x/tic6x.exp,
1217 * testsuite/ld-undefined/undefined.exp,
1218 * testsuite/ld-undefined/weak-undef.exp,
1219 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
1220 perror. Instead report "unsupported" or "fail".
1221
c46b7066
NC
12222021-02-12 Nick Clifton <nickc@redhat.com>
1223
1224 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
1225 following debug links.
1226
933feaf3
AM
12272021-02-11 Alan Modra <amodra@gmail.com>
1228
1229 * NEWS: Mention arm-symbianelf removal.
1230
a57d1773
AM
12312021-02-09 Alan Modra <amodra@gmail.com>
1232
1233 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
1234 Don't include symbian dep file.
1235 * configure.tgt: Remove arm*-*-symbianelf* entry.
1236 * emulparams/armsymbian.sh: Delete.
1237 * ld.texi: Don't mention symbian.
1238 * scripttempl/armbpabi.sc: Delete.
1239 * testsuite/ld-arm/symbian-seg1.d: Delete.
1240 * testsuite/ld-arm/symbian-seg1.s: Delete.
1241 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
1242 * Makefile.in: Regenerate.
1243 * po/BLD-POTFILES.in: Regenerate.
1244
38a143aa
L
12452021-02-07 H.J. Lu <hongjiu.lu@intel.com>
1246
1247 PR ld/27358
1248 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
1249 tests.
1250 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1251
35a01a04
NA
12522021-01-26 Nick Alcock <nick.alcock@oracle.com>
1253
1254 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
1255 when appropriate.
1256
1a2f1b54
L
12572021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1258
1259 PR ld/19609
1260 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
1261 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
1262 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
1263 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
1264 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
1265 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
1266 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
1267
37707bd8
L
12682021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1269
1270 PR ld/15146
1271 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
1272 * testsuite/ld-plugin/pr15146.d: Restored.
1273 * testsuite/ld-plugin/pr15146a.c: Likewise.
1274 * testsuite/ld-plugin/pr15146b.c: Likewise.
1275 * testsuite/ld-plugin/pr15146c.c: Likewise.
1276 * testsuite/ld-plugin/pr15146d.c: Likewise.
1277
7d409ac0
AM
12782021-02-04 Alan Modra <amodra@gmail.com>
1279
1280 * testsuite/ld-plugin/pr27311d.c: New test.
1281 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
1282 and link new test as pr27311-2.
1283
69551367
AM
12842021-02-03 Alan Modra <amodra@gmail.com>
1285
1286 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
1287 Link with --as-needed.
1288
9918bff7
AM
12892021-02-02 Alan Modra <amodra@gmail.com>
1290
1291 * testsuite/ld-plugin/pr27311.d,
1292 * testsuite/ld-plugin/pr27311.ver,
1293 * testsuite/ld-plugin/pr27311a.c,
1294 * testsuite/ld-plugin/pr27311b.c,
1295 * testsuite/ld-plugin/pr27311c.c: New testcase.
1296 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
1297 PR12982 entries.
1298
1f568f9a
EH
12992021-02-01 Emery Hemingway <ehmry@posteo.net>
1300
1301 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1302
fb6c220e
AM
13032021-02-01 Alan Modra <amodra@gmail.com>
1304
1305 * ldgram.y (defsym_expr): Use assignment rule.
1306 * ldlex.h (ldlex_defsym): Delete.
1307 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
1308
40726f16
AM
13092021-02-01 Alan Modra <amodra@gmail.com>
1310
1311 * ldgram.y (section): Call ldlex_backup. Remove empty action.
1312 * ldlex.h (ldlex_backup): Declare.
1313 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
1314 chars, use SYMBOLNAMECHAR.
1315 (ldlex_backup): New function.
1316
a5f92c67
AM
13172021-02-01 Alan Modra <amodra@gmail.com>
1318
1319 * ldgram.y: Whitespace fixes.
1320
49daa38f
AM
13212021-02-01 Alan Modra <amodra@gmail.com>
1322
1323 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
1324
c4566785
AM
13252021-01-29 Alan Modra <amodra@gmail.com>
1326
1327 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
1328
53e556e5
L
13292021-01-28 H.J. Lu <hongjiu.lu@intel.com>
1330
1331 PR ld/27259
1332 * testsuite/ld-elf/pr27259.d: New file.
1333 * testsuite/ld-elf/pr27259.s: Likewise.
1334
def97fb9
AM
13352021-01-28 Alan Modra <amodra@gmail.com>
1336
1337 PR 27259
1338 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
1339 prevent endless looping of linked-to sections.
1340
2eda57ef
L
13412021-01-26 H.J. Lu <hongjiu.lu@intel.com>
1342
1343 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
1344
1c9c9b9b
AM
13452021-01-26 Alan Modra <amodra@gmail.com>
1346
1347 PR 27226
1348 * emulparams/alphavms.sh: Don't set COMPILE_IN.
1349 * emulparams/elf64_ia64_vms.sh: Likewise.
1350 * emulparams/elf64mmix.sh: Likewise.
1351 * emulparams/elf_iamcu.sh: Likewise.
1352 * emulparams/elf_k1om.sh: Likewise.
1353 * emulparams/elf_l1om.sh: Likewise.
1354 * emulparams/mmo.sh: Likewise.
1355 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
1356 * scripttempl/pdp11.sc: Use it.
1357 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
1358 instead use .xe script. Support scripts from file system.
1359 * emultempl/beos.em: Support scripts from file system.
1360 * emultempl/pe.em: Likewise.
1361 * emultempl/pep.em: Likewise.
1362 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
1363
9e42b976
FS
13642021-01-25 Fangrui Song <maskray@google.com>
1365
1366 PR ld/27230
1367 * scripttempl/DWARF.sc: Add .debug_* sections.
1368
b8df6900
NC
13692021-01-25 Nick Clifton <nickc@redhat.com>
1370
1371 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
1372 .debug_line_str and .debug_str_offsets. Move .debug_macro and
1373 .debug_addr into DWARF-5 section.
1374
c78eec44
AM
13752021-01-21 Alan Modra <amodra@gmail.com>
1376
1377 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
1378
4bd7c902
AM
13792021-01-20 Alan Modra <amodra@gmail.com>
1380
1381 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
1382 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
1383 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
1384 * testsuite/ld-powerpc/tlsget.wf: Likewise.
1385 * testsuite/ld-powerpc/tlsget2.d: Likewise.
1386 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
1387 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
1388 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
1389 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
1390 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
1391 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
1392 * testsuite/ld-powerpc/tlsexers.r: Likewise.
1393 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
1394 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
1395 * testsuite/ld-powerpc/tlsso.r: Likewise.
1396 * testsuite/ld-powerpc/tlsso32.r: Likewise.
1397 * testsuite/ld-powerpc/tlstocso.r: Likewise.
1398
c98de297
NA
13992021-01-19 Nick Alcock <nick.alcock@oracle.com>
1400
1401 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
1402 symbols by the optimizer.
1403 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
1404
85e963f1
NC
14052021-01-19 Nelson Chu <nelson.chu@sifive.com>
1406
1407 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
1408 if target is riscv little endian. Otherwise, return false.
1409 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
1410 targets by [riscv_little_endian].
1411
326adec3
AM
14122021-01-18 Alan Modra <amodra@gmail.com>
1413
1414 PR 26378
1415 * ldlang.c (map_input_to_output_sections): Start with a read-only
1416 section for data statements.
1417 * testsuite/ld-elf/size-2.d: Adjust to suit.
1418
994b2513
L
14192021-01-17 H.J. Lu <hongjiu.lu@intel.com>
1420
1421 PR ld/27193
1422 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
1423 * testsuite/ld-i386/pr27193.dd: New file.
1424 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
1425 * testsuite/ld-i386/pr27193b.s: Likewise.
1426
edf0f284
L
14272021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1428
1429 PR binutils/23460
1430 * testsuite/ld-plugin/lto.exp: Increase the max number of open
1431 files to 20 for PR binutils/23460 test.
1432
75a933f3
L
14332021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1434
1435 PR ld/23169
1436 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
1437 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
1438 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
1439 address.
1440
68b00778
L
14412021-01-15 H.J. Lu <hongjiu.lu@intel.com>
1442
1443 * NEWS: Mention -z report-relative-reloc.
1444 * ld.texi: Document -z report-relative-reloc.
1445 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
1446 * emulparams/elf_i386.sh: Likewse.
1447 * emulparams/elf_x86_64.sh: Likewse.
1448 * emulparams/x86-report-relative.sh: New file.
1449 * testsuite/ld-i386/report-reloc-1.d: Likewse.
1450 * testsuite/ld-i386/report-reloc-1.l: Likewse.
1451 * testsuite/ld-i386/report-reloc-1.s: Likewse.
1452 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
1453 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
1454 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
1455 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
1456 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
1457 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
1458 report-reloc-1-x32.
1459
eb6e6af8
AM
14602021-01-16 Alan Modra <amodra@gmail.com>
1461
1462 PR 26002
1463 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
1464 unversioned symbols.
1465 * testsuite/ld-elfvers/vers16.dsym: Likewise.
1466
b800637e
NC
14672021-01-15 Nelson Chu <nelson.chu@sifive.com>
1468
1469 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
1470 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
1471 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
1472 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
1473 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
1474 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
1475
5a10699f
NC
14762021-01-14 Nick Clifton <nickc@redhat.com>
1477
1478 * po/fr.po: Updated French translation.
1479
271bea6a
MF
14802021-01-14 Mike Frysinger <vapier@gentoo.org>
1481
1482 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
1483
4120e488
AM
14842021-01-14 Alan Modra <amodra@gmail.com>
1485
1486 PR 27160
1487 * ldelfgen.c (compare_link_order): Protect access of ELF section
1488 data.
1489 (add_link_order_input_section): Remove redundant NULL check.
1490 Use bfd_get_flavour.
1491 (ldelf_map_segments): Use bfd_get_flavour.
1492
b634d11d
L
14932021-01-13 H.J. Lu <hongjiu.lu@intel.com>
1494
1495 * ldelfgen.c (add_link_order_input_section): Check for ELF input
1496 before accessing ELF section data.
1497
5347ed60
AM
14982021-01-13 Alan Modra <amodra@gmail.com>
1499
1500 * Makefile.in: Regenerate.
1501
b209b5a6
AM
15022021-01-13 Alan Modra <amodra@gmail.com>
1503
1504 PR 27160
1505 * ldlang.h (lang_output_section_statement_type): Add data field.
1506 (lang_input_section_type, lang_section_bst_type): Add pattern field.
1507 (statement_list): Declare.
1508 (lang_add_section): Adjust prototype.
1509 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
1510 * emultempl/armelf.em: Likewise.
1511 * emultempl/beos.em: Likewise.
1512 * emultempl/cskyelf.em: Likewise.
1513 * emultempl/hppaelf.em: Likewise.
1514 * emultempl/m68hc1xelf.em: Likewise.
1515 * emultempl/metagelf.em: Likewise.
1516 * emultempl/mipself.em: Likewise.
1517 * emultempl/mmo.em: Likewise.
1518 * emultempl/msp430.em: Likewise.
1519 * emultempl/nios2elf.em: Likewise.
1520 * emultempl/pe.em: Likewise.
1521 * emultempl/pep.em: Likewise.
1522 * emultempl/ppc64elf.em: Likewise.
1523 * emultempl/spuelf.em: Likewise.
1524 * emultempl/vms.em: Likewise.
1525 * ldelf.c: Likewise.
1526 * ldelfgen.c: Include ldctor.h.
1527 (struct os_sections): New.
1528 (add_link_order_input_section, link_order_scan): New functions.
1529 (compare_link_order, fixup_link_order): New functions.
1530 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
1531 * ldlang.c (statement_list): Make global.
1532 (output_section_callback_fast): Save pattern in tree node.
1533 (lang_add_section): Add pattern parameter, save in lang_input_section.
1534 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
1535 (lang_insert_orphan, output_section_callback): Likewise.
1536 (ldlang_place_orphan): Likewise.
1537 (gc_section_callback): Don't set section->pattern.
1538 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
1539 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1540 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
1541
8c4645b4
AM
15422021-01-13 Alan Modra <amodra@gmail.com>
1543
1544 * ldlang.h (callback_t): Remove flag_info function parameter.
1545 * ldlang.c (walk_wild_consider_section): Adjust to suit.
1546 (walk_wild_section_general): Likewise.
1547 (output_section_callback_fast, output_section_callback): Likewise.
1548 (check_section_callback, gc_section_callback): Likewise.
1549 (find_relro_section_callback): Likewise.
1550
d546b610
L
15512021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1552
1553 PR binutils/26792
1554 * configure.ac: Use GNU_MAKE_JOBSERVER.
1555 * aclocal.m4: Regenerated.
1556 * configure: Likewise.
1557
c2e9a4a3
L
15582021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1559
1560 PR ld/27171
1561 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
1562 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1563 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1564 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
1565
83b33c6c
L
15662021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1567
1568 PR ld/27173
1569 * configure: Regenerated.
1570
c0f6e439
MJ
15712021-01-11 Matt Jenkins <matt@majenko.co.uk>
1572
1573 PR ld/27167
1574 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
1575 and mips64r5 to list of known mips targets.
1576
15772021-01-11 Nick Clifton <nickc@redhat.com>matt@majenko.co.uk
a8aa72b9
NC
1578
1579 * po/pt_BR.po: Updated Brazilian Portuguese translation.
1580` * po/uk.po: Updated Ukranian translation.
1581
a4966cd9
L
15822021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1583
1584 * configure: Regenerated.
1585
0a94990b
L
15862021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1587
1588 PR ld/27166
1589 * testsuite/ld-x86-64/lam-u48.rd: New file.
1590 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
1591 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
1592
573fe3fb
NC
15932021-01-09 Nick Clifton <nickc@redhat.com>
1594
1595 * configure: Regenerate.
1596 * po/ld.pot: Regenerate.
1597
055bc77a
NC
15982021-01-09 Nick Clifton <nickc@redhat.com>
1599
1600 * 2.36 release branch crated.
1601
ba9e922f
L
16022021-01-08 H.J. Lu <hongjiu.lu@intel.com>
1603
1604 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
1605 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
1606
64307045
AM
16072021-01-09 Alan Modra <amodra@gmail.com>
1608
1609 * configure: Regenerate.
1610 * Makefile.in: Regenerate.
1611
f4782128
ST
16122021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1613
1614 * configure: Regenerate.
1615
d1bcae83
L
16162021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1617
1618 PR 27109
1619 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
1620 * testsuite/ld-elf/loadaddr3b.d: Likewise.
1621 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1622 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1623 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1624 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1625 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1626 * testsuite/ld-i386/pr19636-1d.d: Likewise.
1627 * testsuite/ld-i386/pr19636-1l.d: Likewise.
1628 * testsuite/ld-i386/pr19636-2c.d: Likewise.
1629 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1630 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1631 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1632 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1633 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1634 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1635 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1636 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1637 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1638 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1639 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1640 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1641 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1642 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1643 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1644 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1645 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1646 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1647 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1648 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1649 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1650 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1651 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1652 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1653 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1654 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1655 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
1656 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
1657 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
1658 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
1659 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
1660 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
1661 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1662 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
1663 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1664 * testsuite/ld-x86-64/pr21038b.d: Likewise.
1665 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1666 * testsuite/ld-x86-64/pr21038c.d: Likewise.
1667 * testsuite/ld-x86-64/pr23854.d: Likewise.
1668 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1669 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1670 * testsuite/ld-i386/plt-pic.pd: Likewise.
1671 * testsuite/ld-i386/plt-pic2.dd: Likewise.
1672 * testsuite/ld-i386/plt.pd: Likewise.
1673 * testsuite/ld-i386/plt2.dd: Likewise.
1674 * testsuite/ld-i386/tlsbin.rd: Likewise.
1675 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1676 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1677 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1678 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
1679 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1680 * testsuite/ld-i386/tlspic.rd: Likewise.
1681 * testsuite/ld-i386/tlspic2.rd: Likewise.
1682 * testsuite/ld-x86-64/mpx3.dd: Likewise.
1683 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
1684 * testsuite/ld-x86-64/mpx4.dd: Likewise.
1685 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
1686 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
1687 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1688 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1689 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1690 * testsuite/ld-x86-64/plt.pd: Likewise.
1691 * testsuite/ld-x86-64/plt2.dd: Likewise.
1692 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1693 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1694 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1695 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1696 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
1697 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1698 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1699 * testsuite/ld-elf/sec64k.exp: Check
1700 is_elf_unused_section_symbols.
1701
dc200613
AM
17022021-01-07 Alan Modra <amodra@gmail.com>
1703
1704 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
1705 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
1706 * testsuite/ld-scripts/segment-start.d: Likewise.
1707
8e604ff0
AM
17082021-01-07 Alan Modra <amodra@gmail.com>
1709
1710 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
1711 about dynamic relocations in read-only sections.
1712 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1713 * testsuite/ld-elf/ehdr_start.d: Likewise.
1714 * testsuite/ld-scripts/pr22267.d: Likewise.
1715 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
1716 pr20995 text.
1717 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
1718
4d4490b8
MC
17192021-01-07 Marcus Comstedt <marcus@mc.pp.se>
1720
1721 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
1722 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
1723
f526791a
AM
17242021-01-07 Alan Modra <amodra@gmail.com>
1725
1726 * po/BLD-POTFILES.in: Regenerate.
1727
4018f4e0
AM
17282021-01-07 Alan Modra <amodra@gmail.com>
1729
1730 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
1731 complain about relocs in read-only sections. Tidy ASFLAGS append.
1732
3677b729
AM
17332021-01-06 Alan Modra <amodra@gmail.com>
1734
1735 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
1736 base for some tests.
1737 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
1738 * testsuite/ld-sparc/gotop32.sd: Likewise.
1739 * testsuite/ld-sparc/gotop32.td: Likewise.
1740 * testsuite/ld-sparc/gotop64.dd: Likewise.
1741 * testsuite/ld-sparc/gotop64.sd: Likewise.
1742 * testsuite/ld-sparc/gotop64.td: Likewise.
1743 * testsuite/ld-sparc/tlsg32.sd: Likewise.
1744 * testsuite/ld-sparc/tlsg64.sd: Likewise.
1745 * testsuite/ld-sparc/tlspie32.dd: Likewise.
1746 * testsuite/ld-sparc/tlspie64.dd: Likewise.
1747 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
1748 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
1749 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
1750 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
1751 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
1752 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
1753 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
1754 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
1755 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
1756 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
1757 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
1758 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
1759 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
1760 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
1761 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
1762 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
1763 * testsuite/ld-sparc/wdispcall.dd: Likewise.
1764
73624512
AM
17652021-01-06 Alan Modra <amodra@gmail.com>
1766
1767 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
1768 * testsuite/ld-scripts/rgn-at11.d: Likewise.
1769
f36ce378
MC
17702021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1771
1772 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
1773 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
1774 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
1775 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
1776 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1777 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1778 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1779 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
1780 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
1781 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
1782 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
1783 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
1784 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
1785 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
1786 to littleriscv.
1787 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
1788
fbc09e7a
MC
17892021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1790
1791 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
1792 riscv32be*-*-linux*, and riscv64be*-*-linux*.
1793 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
1794 eelf32briscv_ilp32.c.
1795 * Makefile.in: Regenerate.
1796 * emulparams/elf32briscv.sh: Added.
1797 * emulparams/elf32briscv_ilp32.sh: Likewise.
1798 * emulparams/elf32briscv_ilp32f.sh: Likewise.
1799 * emulparams/elf64briscv.sh: Likewise.
1800 * emulparams/elf64briscv_lp64.sh: Likewise.
1801 * emulparams/elf64briscv_lp64f.sh: Likewise.
1802
b4b6ea46
NA
18032021-01-05 Nick Alcock <nick.alcock@oracle.com>
1804
1805 * testsuite/ld-ctf/enum-forward.c: New test.
1806 * testsuite/ld-ctf/enum-forward.c: New results.
1807
37002871
NA
18082021-01-05 Nick Alcock <nick.alcock@oracle.com>
1809
1810 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1811 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1812 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1813 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1814 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1815 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1816 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1817 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1818 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1819 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1820 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1821 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1822 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1823 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1824 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1825 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1826 * testsuite/ld-ctf/cycle-1.d: Likewise.
1827 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1828 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1829 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1830 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1831 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1832 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1833 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1834 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1835 * testsuite/ld-ctf/forward.d: Likewise.
1836 * testsuite/ld-ctf/function.d: Likewise.
1837 * testsuite/ld-ctf/slice.d: Likewise.
1838 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1839 * testsuite/ld-ctf/enums.c: New test.
1840 * testsuite/ld-ctf/enums.d: New test.
1841
ffeece6a
NA
18422021-01-05 Nick Alcock <nick.alcock@oracle.com>
1843
1844 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
1845 changes.
1846 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1847 * testsuite/ld-ctf/forward.c: New test...
1848 * testsuite/ld-ctf/forward.d: ... and results.
1849
91e7ce2f
NA
18502021-01-05 Nick Alcock <nick.alcock@oracle.com>
1851
1852 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1853 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1854 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1855 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1856 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1857 * testsuite/ld-ctf/function.d: Likewise.
1858 * testsuite/ld-ctf/slice.d: Likewise.
1859
57f97d0e
NA
18602021-01-05 Nick Alcock <nick.alcock@oracle.com>
1861
1862 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1863 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1864 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1865 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1866 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1867 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1868 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1869 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1870 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1871 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1872 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1873 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1874 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1875 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1876 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1877 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1878 * testsuite/ld-ctf/cycle-1.d: Likewise.
1879 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1880 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1881 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1882 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1883 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1884 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1885 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1886 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1887 * testsuite/ld-ctf/function.d: Likewise.
1888 * testsuite/ld-ctf/slice.d: Likewise.
1889 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1890
b281a04f
AM
18912021-01-05 Alan Modra <amodra@gmail.com>
1892
1893 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
1894
40b11930
AM
18952021-01-05 Alan Modra <amodra@gmail.com>
1896
1897 PR ld/26256
1898 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
1899 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
1900
cd6d537c
L
19012021-01-04 H.J. Lu <hongjiu.lu@intel.com>
1902
1903 PR ld/26256
1904 * ldlang.c (gc_section_callback): Set pattern.
1905 * testsuite/ld-elf/pr26256-1.s: New file.
1906 * testsuite/ld-elf/pr26256-1.t: Likewise.
1907 * testsuite/ld-elf/pr26256-1a.d: Likewise.
1908 * testsuite/ld-elf/pr26256-1b.d: Likewise.
1909 * testsuite/ld-elf/pr26256-2.s: Likewise.
1910 * testsuite/ld-elf/pr26256-2.t: Likewise.
1911 * testsuite/ld-elf/pr26256-2a.d: Likewise.
1912 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
1913 * testsuite/ld-elf/pr26256-2b.d: Likewise.
1914 * testsuite/ld-elf/pr26256-3.s: Likewise.
1915 * testsuite/ld-elf/pr26256-3a.d: Likewise.
1916 * testsuite/ld-elf/pr26256-3a.t: Likewise.
1917 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1918 * testsuite/ld-elf/pr26256-3b.t: Likewise.
1919
5b4293ba
AM
19202021-01-04 Alan Modra <amodra@gmail.com>
1921
1922 PR 26822
1923 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
1924 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
1925 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
1926 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
1927 * testsuite/ld-i386/tlsbin.rd: Likewise.
1928 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1929 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1930 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1931 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1932 * testsuite/ld-i386/tlspic.rd: Likewise.
1933 * testsuite/ld-i386/tlspic2.rd: Likewise.
1934 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
1935 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
1936 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
1937 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
1938 * testsuite/ld-plugin/pr17973.d: Likewise.
1939 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
1940 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
1941 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
1942 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
1943 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
1944 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
1945 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
1946 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
1947 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
1948 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
1949 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
1950 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
1951 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
1952 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1953 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1954 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1955 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1956 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1957 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1958 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
1959 * testsuite/ld-xtensa/tlspic.rd: Likewise.
1960
f9a6a8f0
AM
19612021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1962
1963 * configure.tgt: Correct comment grammar.
1964 * emultempl/m68hc1xelf.em: Likewise.
1965 * ld.texi: Correct grammar.
1966
250d07de
AM
19672021-01-01 Alan Modra <amodra@gmail.com>
1968
1969 Update year range in copyright notice of all files.
1970
c2795844 1971For older changes see ChangeLog-2020
3499769a 1972\f
a2c58332 1973Copyright (C) 2021-2022 Free Software Foundation, Inc.
3499769a
AM
1974
1975Copying and distribution of this file, with or without modification,
1976are permitted in any medium without royalty provided the copyright
1977notice and this notice are preserved.
1978
1979Local Variables:
1980mode: change-log
1981left-margin: 8
1982fill-column: 74
1983version-control: never
1984End: