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