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