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