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