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