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