12021-07-18  Nick Clifton  <nickc@redhat.com>
2
3	* 2.37 release.
4
52021-07-08  H.J. Lu  <hongjiu.lu@intel.com>
6
7	PR ld/21782
8	* testsuite/ld-x86-64/pie3.d: Expect linker error.
9
102021-07-07  Michael Matz  <matz@suse.de>
11
12	PR ld/28021
13	* testsuite/ld-riscv-elf/relax-twice.ver: New.
14	* testsuite/ld-riscv-elf/relax-twice-1.s: New.
15	* testsuite/ld-riscv-elf/relax-twice-2.s: New.
16	* testsuite/ld-riscv-elf/ld-riscv-elf.exp
17	(run_relax_twice_test): New, and call it.
18
192021-07-07  H.J. Lu  <hongjiu.lu@intel.com>
20
21	PR ld/18028
22	* plugin.c (plugin_input_file): Add comments for abfd and ibfd.
23	(plugin_object_p): Set input->ibfd to NULL if it isn't an
24	archive member.
25
262021-07-05  H.J. Lu  <hongjiu.lu@intel.com>
27
28	PR ld/28040
29	* plugin.c (plugin_input_file): Add ibfd.
30	(release_plugin_file_descriptor): New function.
31	(release_input_file): Call release_plugin_file_descriptor to
32	close input->fd.
33	(plugin_object_p): Call release_plugin_file_descriptor to close
34	input->fd.  Also call release_plugin_file_descriptor if not
35	claimed.
36	* testsuite/config/default.exp (RANLIB): New.
37	* testsuite/ld-plugin/lto.exp: Run ranlib test.
38
392021-07-05  Nick Clifton  <nickc@redhat.com>
40
41	* po/fr.po: Updated French translation.
42	* po/pt_BR.po: Updated Brazilian Protuguese translation.
43	* po/uk.po: Updated Ukranian translation.
44
452021-07-03  Nick Clifton  <nickc@redhat.com>
46
47	* configure: Regenerate.
48	* po/ld.pot: Regenerate.
49
502021-07-03  Nick Clifton  <nickc@redhat.com>
51
52	* 2.37 release branch created.
53
542021-06-22  Nelson Chu  <nelson.chu@sifive.com>
55
56	* testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
57	* testsuite/ld-riscv-elf/pcrel-lo-addend-3a.d: New testcase.
58	* testsuite/ld-riscv-elf/pcrel-lo-addend-3a.s: Likewise.
59	* testsuite/ld-riscv-elf/pcrel-lo-addend-3b.d: New testcase.
60	Should report error since the %pcrel_lo with addend refers to
61	%got_pcrel_hi.
62	* testsuite/ld-riscv-elf/pcrel-lo-addend-3b.s: Likewise.
63	* testsuite/ld-riscv-elf/pcrel-lo-addend-3c.d: New testcase.
64	Should report error since the %got_pcrel_hi with addend.
65	* testsuite/ld-riscv-elf/pcrel-lo-addend-3c.s: Likewise.
66	* testsuite/ld-riscv-elf/pcrel-lo-addend-3.ld: Likewise.
67
682021-06-19  H.J. Lu  <hongjiu.lu@intel.com>
69
70	PR ld/27998
71	* testsuite/ld-i386/i386.exp: Run PR ld/27998 tests.
72	* testsuite/ld-i386/pr27998a.d: New file.
73	* testsuite/ld-i386/pr27998a.s: Likewise.
74	* testsuite/ld-i386/pr27998b.d: Likewise.
75	* testsuite/ld-i386/pr27998b.s: Likewise.
76
772021-06-19  H.J. Lu  <hongjiu.lu@intel.com>
78
79	* testsuite/ld-x86-64/textrel-1.err: New file.
80	* testsuite/ld-x86-64/textrel-1a.s: Likewise.
81	* testsuite/ld-x86-64/textrel-1b.s: Likewise.
82	* testsuite/ld-x86-64/x86-64.exp: Run textrel-1 tests.
83
842021-06-18  H.J. Lu  <hongjiu.lu@intel.com>
85
86	* testsuite/ld-elf/property-and-1.d: Skip am33_2.0, hppa-hpux
87	and mn10300.
88	Pass --generate-missing-build-notes=no to assembler.  Allow
89	other note sections for xtensa.
90	* testsuite/ld-elf/property-and-2.d: Likewise.
91	* testsuite/ld-elf/property-and-3.d: Likewise.
92	* testsuite/ld-elf/property-and-4.d: Likewise.
93	* testsuite/ld-elf/property-or-1.d: Likewise.
94	* testsuite/ld-elf/property-or-2.d: Likewise.
95	* testsuite/ld-elf/property-or-3.d: Likewise.
96	* testsuite/ld-elf/property-or-4.d: Likewise.
97
982021-06-18  H.J. Lu  <hongjiu.lu@intel.com>
99
100	* ld.texi: Move -z unique-symbol after -z undefs.
101
1022021-06-18  H.J. Lu  <hongjiu.lu@intel.com>
103
104	* testsuite/ld-elf/property-and-1.d: New file.
105	* testsuite/ld-elf/property-and-1.s: Likewise.
106	* testsuite/ld-elf/property-and-2.d: Likewise.
107	* testsuite/ld-elf/property-and-2.s: Likewise.
108	* testsuite/ld-elf/property-and-3.d: Likewise.
109	* testsuite/ld-elf/property-and-3.s: Likewise.
110	* testsuite/ld-elf/property-and-4.d: Likewise.
111	* testsuite/ld-elf/property-and-empty.s: Likewise.
112	* testsuite/ld-elf/property-or-1.d: Likewise.
113	* testsuite/ld-elf/property-or-1.s: Likewise.
114	* testsuite/ld-elf/property-or-2.d: Likewise.
115	* testsuite/ld-elf/property-or-2.s: Likewise.
116	* testsuite/ld-elf/property-or-3.d: Likewise.
117	* testsuite/ld-elf/property-or-3.s: Likewise.
118	* testsuite/ld-elf/property-or-4.d: Likewise.
119	* testsuite/ld-elf/property-or-empty.s: Likewise.
120
1212021-06-17  H.J. Lu  <hongjiu.lu@intel.com>
122
123	PR ld/27973
124	* testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and
125	$NOPIE_CFLAGS to protected-func-1 without PIE.
126
1272021-06-17  H.J. Lu  <hongjiu.lu@intel.com>
128
129	PR ld/27973
130	* testsuite/ld-x86-64/x86-64.exp: Run protected function tests.
131	* testsuite/ld-x86-64/protected-func-1.h: New file.
132	* testsuite/ld-x86-64/protected-func-1a.s: Likewise.
133	* testsuite/ld-x86-64/protected-func-1b.c: Likewise.
134
1352021-06-17  Fangrui Song  <maskray@google.com>
136
137	* ldlex.h (enum option_values): Add OPTION_NO_PIE.
138	* lexsup.c (struct ld_options): Add -no-pie.
139	(parse_args): Handle -no-pie.
140	* ld.texi: Document -no-pie.
141
1422021-06-15  Alan Modra  <amodra@gmail.com>
143
144	* testsuite/ld-pie/vaddr-0.d: Update expected output.
145
1462021-06-11  Alan Modra  <amodra@gmail.com>
147
148	PR 27952
149	* ldelf.c (ldelf_after_open): Error on input PIEs too.
150
1512021-06-09  Nick Clifton  <nickc@redhat.com>
152
153	PR 27666
154	* testsuite/ld-sparc/sparc.exp: Do not run the sparctests or
155	sparc64tests for Solaris2 targets.
156
1572021-06-03  Alan Modra  <amodra@gmail.com>
158
159	PR 2589
160	* ld.texi (link-time runtime library search path): Mention
161	plugin library path.  Correct order of search.
162
1632021-05-31  Nelson Chu  <nelson.chu@sifive.com>
164	    Lifang Xia  <lifang_xia@c-sky.com>
165
166	PR 27566
167	* emultempl/riscvelf.em (after_allocation): Call
168	riscv_set_data_segment_info to set data segment phase before relaxing.
169	* testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
170	* testsuite/ld-riscv-elf/relro-relax-lui.d: New testcase.
171	* testsuite/ld-riscv-elf/relro-relax-lui.s: Likewise.
172	* testsuite/ld-riscv-elf/relro-relax-pcrel.d: Likewise.
173	* testsuite/ld-riscv-elf/relro-relax-pcrel.s: Likewise.
174
1752021-05-28  H.J. Lu  <hongjiu.lu@intel.com>
176
177	PR ld/27905
178	* testsuite/ld-i386/pcrel16-2.d: xfail.
179	* testsuite/ld-x86-64/pcrel16-2.d: Likewise.
180
1812021-05-26  H.J. Lu  <hongjiu.lu@intel.com>
182
183	PR ld/27905
184	* testsuite/ld-i386/code16.d: New file.
185	* testsuite/ld-i386/code16.t: Likewise.
186	* testsuite/ld-x86-64/code16.d: Likewise.
187	* testsuite/ld-x86-64/code16.t: Likewise.
188	* testsuite/ld-i386/i386.exp: Run code16.
189	* testsuite/ld-x86-64/x86-64.exp: Likewise.
190
1912021-05-26  H.J. Lu  <hongjiu.lu@intel.com>
192
193	* testsuite/ld-x86-64/ilp32-12.d: New file.
194	* testsuite/ld-x86-64/ilp32-12.s: Likewise.
195	* testsuite/ld-x86-64/x86-64.exp: Run ilp32-12.
196
1972021-05-14  Nelson Chu  <nelson.chu@sifive.com>
198
199	* testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
200	* testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d: Renamed from
201	pcrel-lo-addend-2.
202	* testsuite/ld-riscv-elf/pcrel-lo-addend-2a.s: Likewise.
203	* testsuite/ld-riscv-elf/pcrel-lo-addend-2b.d: New testcase.
204	* testsuite/ld-riscv-elf/pcrel-lo-addend-2b.s: Likewise.
205
2062021-05-13  Fangrui Song  <maskray@google.com>
207
208	PR 27834
209	* ldlex.h (enum option_values): Add OPTION_NO_SYMBOLIC.
210	* lexsup.c (ld_options): Add -Bno-symbolic.
211	(parse_args): Handle -Bno-symbolic.
212	* ld.texi: Document -Bno-symbolic.
213	* NEWS: Mention -Bno-symbolic.
214	* testsuite/ld-elf/shared.exp: Add a test.
215
2162021-05-12  Richard Earnshaw  <rearnsha@arm.com>
217
218	* testsuite/ld-arm/arm-elf.exp (farcall test for v8-m.mainline):
219	Correct expected output.
220
2212021-05-11  Roland McGrath  <mcgrathr@google.com>
222
223	* testsuite/ld-x86-64/rela.d: Fix regexp not to presume a specific
224	address layout, so it works for e.g. --target=x86-64-elf.
225
2262021-05-11  Nick Clifton  <nickc@redhat.com>
227
228	PR 27113
229	* Makefile.am (install-data-local): Also delete libdep.dll.a if it
230	is present.
231	* Makefile.in: Regenerate.
232
2332021-05-10  Dimitar Dimitrov  <dimitar@dinux.eu>
234
235	* testsuite/ld-elf/group8a.d: Remove pru from XFAIL list.
236	* testsuite/ld-elf/group8b.d: Ditto.
237	* testsuite/ld-elf/group9a.d: Ditto.
238	* testsuite/ld-elf/group9b.d: Ditto.
239	* testsuite/ld-elf/pr12851.d: Ditto.
240	* testsuite/ld-elf/pr22677.d: Ditto.
241	* testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove
242	pru from list.
243
2442021-05-10  Dimitar Dimitrov  <dimitar@dinux.eu>
245
246	* scripttempl/pru.sc (.resource_table): Add ALIGN directive.
247	Use symbols for memory sizes.
248
2492021-05-08  Mike Frysinger  <vapier@gentoo.org>
250
251	* Makefile.am (html-local, doc/ld/index.html): New targets.
252	* Makefile.in: Regenerate.
253
2542021-05-08  Mike Frysinger  <vapier@gentoo.org>
255
256	* Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
257	* Makefile.in: Regenerate.
258
2592021-05-07  Jan Beulich  <jbeulich@suse.com>
260
261	* testsuite/ld-x86-64/rela.d: New.
262	* testsuite/ld-x86-64/x86-64.exp: Run new test.
263
2642021-05-07  Nick Clifton  <nickc@redhat.com>
265
266	* ldelfgen.c (compare_link_order): Ignore section size when
267	performing a relocateable link.
268
2692021-05-07  Alan Modra  <amodra@gmail.com>
270
271	* ldexp.c (update_definedness): Don't return false for absolute
272	symbols.
273	* ldmain.c (multiple_definition): Print "warning: " in message
274	when not a hard error.
275
2762021-05-07  Alan Modra  <amodra@gmail.com>
277
278	* testsuite/ld-elf/pr27825-1.d: Correct xfail.
279	* testsuite/ld-elf/pr27825-2.d: Likewise.
280
2812021-05-06  Stafford Horne  <shorne@gmail.com>
282
283	PR 27746
284	testsuite/ld-or1k/or1k.exp (or1kplttests): Add tests for linking
285	along with gotha() relocations.
286	testsuite/ld-or1k/gotha1.dd: New file.
287	testsuite/ld-or1k/gotha1.s: New file.
288	testsuite/ld-or1k/gotha2.dd: New file.
289	testsuite/ld-or1k/gotha2.s: New file
290	testsuite/ld-or1k/pltlib.s (x): Define size to avoid link
291	failure.
292
2932021-05-06  Nick Alcock  <nick.alcock@oracle.com>
294
295	* testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt.
296	* testsuite/lib/ld-lib.exp: Likewise.
297	* testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types.
298	* testsuite/ld-ctf/nonrepresentable-2.c: Likewise.
299	* testsuite/ld-ctf/nonrepresentable.d: Likewise.
300	* testsuite/ld-ctf/array.d: Larger type section.
301	* testsuite/ld-ctf/data-func-conflicted.d: Likewise.
302	* testsuite/ld-ctf/enums.d: Likewise.
303	* testsuite/ld-ctf/conflicting-enums.d: Don't compare types.
304	* testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order.
305	* testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
306	* testsuite/ld-ctf/slice.d: Adjust for improved slice emission.
307
3082021-05-05  H.J. Lu  <hongjiu.lu@intel.com>
309
310	PR ld/27825
311	* testsuite/ld-elf/pr27825-1.d: New file.
312	* testsuite/ld-elf/pr27825-1a.s: Likewise.
313	* testsuite/ld-elf/pr27825-1b.s: Likewise.
314	* testsuite/ld-elf/pr27825-2.d: Likewise.
315	* testsuite/ld-elf/pr27825-2a.s: Likewise.
316	* testsuite/ld-elf/pr27825-2b.s: Likewise.
317
3182021-05-05  Alan Modra  <amodra@gmail.com>
319
320	* testsuite/ld-powerpc/empty.s: New file.
321	* testsuite/ld-powerpc/undefweak.d,
322	* testsuite/ld-powerpc/undefweak.s: New testcase.
323	* testsuite/ld-powerpc/powerpc.exp: Run it.
324
3252021-05-03  Alan Modra  <amodra@gmail.com>
326
327	* testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
328	named section symbols.
329
3302021-04-28  Nick Clifton  <nickc@redhat.com>
331
332	* testsuite/ld-elf/anno-sym.s: New test source file.
333	* testsuite/ld-elf/anno-sym.d: New test driver.
334	* testsuite/ld-elf/anno-sym.l: New test error output.
335
3362021-04-26  Jan Beulich  <jbeulich@suse.com>
337
338	* testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d,
339	testsuite/ld-x86-64/pcrel16-2.d: New.
340	* testsuite/ld-i386/i386.exp: Run new test.
341	* testsuite/ld-x86-64/x86-64.exp: Likewise.
342
3432021-04-23  H.J. Lu  <hongjiu.lu@intel.com>
344
345	PR ld/27771
346	* testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
347	to tmpdir/ldscripts only if it doesn't exist.
348
3492021-04-22  Jan Beulich  <jbeulich@suse.com>
350
351	PR ld/26659
352	* testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
353
3542021-04-21  Nick Clifton  <nickc@redhat.com>
355
356	* testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
357	to allow for named section symbols.
358	* testsuite/ld-aarch64/variant_pcs-r.d: Likewise.
359	* testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
360	* testsuite/ld-alpha/tlsbin.rd: Likewise.
361	* testsuite/ld-alpha/tlsbinr.rd: Likewise.
362	* testsuite/ld-alpha/tlspic.rd: Likewise.
363	* testsuite/ld-arm/rodata-merge-map.sym: Likewise.
364	* testsuite/ld-arm/script-type.sym: Likewise.
365	* testsuite/ld-cris/libdso-2.d: Likewise.
366	* testsuite/ld-cris/pr16044.d: Likewise.
367	* testsuite/ld-elf/sec64k.exp: Likewise.
368	* testsuite/ld-ia64/tlsbin.rd: Likewise.
369	* testsuite/ld-ia64/tlspic.rd: Likewise.
370	* testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
371	* testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
372	* testsuite/ld-mmix/bspec1.d: Likewise.
373	* testsuite/ld-mmix/bspec2.d: Likewise.
374	* testsuite/ld-mmix/local1.d: Likewise.
375	* testsuite/ld-mmix/local3.d: Likewise.
376	* testsuite/ld-mmix/local5.d: Likewise.
377	* testsuite/ld-mmix/local7.d: Likewise.
378	* testsuite/ld-mmix/undef-3.d: Likewise.
379	* testsuite/ld-powerpc/tlsso.r: Likewise.
380	* testsuite/ld-powerpc/tlsso32.r: Likewise.
381	* testsuite/ld-powerpc/tlstocso.r: Likewise.
382	* testsuite/ld-s390/tlsbin.rd: Likewise.
383	* testsuite/ld-s390/tlsbin_64.rd: Likewise.
384	* testsuite/ld-s390/tlspic.rd: Likewise.
385	* testsuite/ld-s390/tlspic_64.rd: Likewise.
386	* testsuite/ld-sparc/gotop32.rd: Likewise.
387	* testsuite/ld-sparc/gotop64.rd: Likewise.
388	* testsuite/ld-sparc/tlssunbin32.rd: Likewise.
389	* testsuite/ld-sparc/tlssunbin64.rd: Likewise.
390	* testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
391	* testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
392	* testsuite/ld-sparc/tlssunpic32.rd: Likewise.
393	* testsuite/ld-sparc/tlssunpic64.rd: Likewise.
394	* testsuite/ld-tic6x/common.d: Likewise.
395	* testsuite/ld-tic6x/shlib-1.rd: Likewise.
396	* testsuite/ld-tic6x/shlib-1b.rd: Likewise.
397	* testsuite/ld-tic6x/shlib-1r.rd: Likewise.
398	* testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
399	* testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
400	* testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
401	* testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
402	* testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
403	* testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
404	* testsuite/ld-tic6x/static-app-1.rd: Likewise.
405	* testsuite/ld-tic6x/static-app-1b.rd: Likewise.
406	* testsuite/ld-tic6x/static-app-1r.rd: Likewise.
407	* testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
408
4092021-04-20  Clément Chigot  <clement.chigot@atos.net>
410
411	PR binutils/21700
412	* testsuite/ld-powerpc/aix52.exp: Add new test.
413	* testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
414	* testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
415	* testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
416	* testsuite/ld-powerpc/aix-neg-reloc.s: New test.
417
4182021-04-13  Nick Clifton  <nickc@redhat.com>
419
420	* ld.texi (Options): Add note about the effect of --as-needed on
421	the --rpath and --rpath-link options on Linux based systems.
422
4232021-04-13  Alan Modra  <amodra@gmail.com>
424
425	PR 27722
426	* libdep_plugin.c (str2vec): Don't pass a potentially signed char
427	to isspace.
428
4292021-04-12  Alan Modra  <amodra@gmail.com>
430
431	* configure.ac (--enable-checking): Add support.
432	* config.in: Regenerate.
433	* configure: Regenerate.
434
4352021-04-12  Alan Modra  <amodra@gmail.com>
436
437	* emultempl/mipself.em (mips_create_output_section_statements):
438	Pass base type of hash table to is_elf_hash_table.
439	* ldelf.c (ldelf_after_open): Likewise.
440
4412021-04-12  Alan Modra  <amodra@gmail.com>
442
443	PR 27719
444	* ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
445	the symbol hash table is the correct type before accessing
446	elf_link_hash_entry symbols.
447	* plugin.c (is_visible_from_outside): Likewise.
448	* emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
449	* emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
450
4512021-04-09  Alan Modra  <amodra@gmail.com>
452
453	* testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
454	* testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
455	* testsuite/ld-powerpc/notoc2.d: Likewise.
456	* testsuite/ld-powerpc/notoc3.d: Likewise.
457	* testsuite/ld-powerpc/pcrelopt.d: Likewise.
458	* testsuite/ld-powerpc/startstop.d: Likewise.
459	* testsuite/ld-powerpc/tlsget.d: Likewise.
460	* testsuite/ld-powerpc/tlsget2.d: Likewise.
461	* testsuite/ld-powerpc/tlsld.d: Likewise.
462	* testsuite/ld-powerpc/weak1.d: Likewise.
463	* testsuite/ld-powerpc/weak1so.d: Likewise.
464
4652021-04-06  Jan Beulich  <jbeulich@suse.com>
466
467	* pe-dll.c (generate_reloc): Bail immediately when .reloc is
468	being discarded. Warn when relocated entry is above .reloc.
469
4702021-04-05  Alan Modra  <amodra@gmail.com>
471
472	* configure.ac: Move initfini-array arg handling earlier.  Don't
473	check for string.h, strings.h, stdlib.h, or locale.h.  Do check
474	for inttypes.h, stdint.h, sys/types.h.  Don't check for
475	setlocale, free, getev or strstr.
476	(AC_ISC_POSIX): Don't invoke.
477	* sysdep.h: Include string.h and stdlib.h unconditionally.  Test
478	HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H.  Remove strstr, free and
479	getenv fallback declarations.
480	* ld.h: Don't test HAVE_LOCALE_H.
481	* ldmain.c: Don't test HAVE_SETLOCALE.
482	* config.in: Regenerate.
483	* configure: Regenerate.
484
4852021-04-01  Tamar Christina  <tamar.christina@arm.com>
486
487	PR ld/26659
488	* testsuite/ld-pe/pe.exp: Add test.
489	* testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
490	* testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
491
4922021-04-01  Martin Liska  <mliska@suse.cz>
493
494	* ldbuildid.c (strneq): Remove strneq and use startswith.
495	(validate_build_id_style): Likewise.
496	(compute_build_id_size): Likewise.
497
4982021-03-31  Alan Modra  <amodra@gmail.com>
499
500	* sysdep.h (POISON_BFD_BOOLEAN): Define.
501	* configure.ac (elf_list_options, elf_shlib_list_options=false),
502	(elf_plt_unwind_list_options=false): Replace FALSE with false,
503	and TRUE with true.
504	* emulparams/call_nop.sh, * emulparams/cet.sh,
505	* emulparams/dynamic_undefined_weak.sh,
506	* emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
507	* emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
508	* emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
509	* emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
510	* emulparams/reloc_overflow.sh, * emulparams/static.sh,
511	* emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
512	* emultempl/aix.em, * emultempl/alphaelf.em,
513	* emultempl/armcoff.em, * emultempl/armelf.em,
514	* emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
515	* emultempl/cr16elf.em, * emultempl/crxelf.em,
516	* emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
517	* emultempl/hppaelf.em, * emultempl/linux.em,
518	* emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
519	* emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
520	* emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
521	* emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
522	* emultempl/pep.em, * emultempl/ppc32elf.em,
523	* emultempl/ppc64elf.em, * emultempl/rxelf.em,
524	* emultempl/rxlinux.em, * emultempl/scoreelf.em,
525	* emultempl/solaris2.em, * emultempl/spuelf.em,
526	* emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
527	* emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
528	* ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
529	* ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
530	* ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
531	* ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
532	* ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
533	* pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
534	* testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
535	bfd_boolean with bool, FALSE with false, and TRUE with true.
536	* configure: Regenerate.
537
5382021-03-31  Alan Modra  <amodra@gmail.com>
539
540	* elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
541	* emultempl/nds32elf.em: Likewise.
542	* testsuite/ld-elf/mbind2b.c: Likewise.
543	* testsuite/ld-elf/pr18718.c: Likewise.
544	* testsuite/ld-elf/pr18720a.c: Likewise.
545	* testsuite/ld-elf/pr25749-1.c: Likewise.
546	* testsuite/ld-elf/pr25749-1a.c: Likewise.
547	* testsuite/ld-elf/pr25749-1b.c: Likewise.
548	* testsuite/ld-elf/pr25749-1c.c: Likewise.
549	* testsuite/ld-elf/pr25749-1d.c: Likewise.
550	* testsuite/ld-elf/pr25749-2.c: Likewise.
551	* testsuite/ld-elf/pr25754-1a.c: Likewise.
552	* testsuite/ld-elf/pr25754-2a.c: Likewise.
553	* testsuite/ld-elf/pr25754-3a.c: Likewise.
554	* testsuite/ld-elf/pr25754-4a.c: Likewise.
555	* testsuite/ld-elf/pr25754-5a.c: Likewise.
556	* testsuite/ld-elf/pr25754-6a.c: Likewise.
557
5582021-03-29  Alan Modra  <amodra@gmail.com>
559
560	* emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
561	boolean expression.
562	* lexsup.c (parse_args): Likewise.
563	* pe-dll.c (pe_dll_id_target): Likewise.
564
5652021-03-25  Nick Alcock  <nick.alcock@oracle.com>
566
567	* testsuite/ld-ctf/array.d: Only check that the data object
568	section is nonempty: do not check its exact size.
569	* testsuite/ld-ctf/diag-parlabel.d: Likewise.
570	* testsuite/ld-ctf/slice.d: Likewise.
571	* testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
572	func info section too.
573	* testsuite/ld-ctf/function.d: Likewise, for the func info section.
574
5752021-03-22  Martin Liska  <mliska@suse.cz>
576
577	* emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
578	* emultempl/beos.em: Likewise.
579	* emultempl/elf.em: Likewise.
580	* emultempl/pe.em: Likewise.
581	* emultempl/pep.em: Likewise.
582	* emultempl/xtensaelf.em: Likewise.
583	* ldctor.c (ctor_prio): Likewise.
584	* ldelf.c (ldelf_try_needed): Likewise.
585	(ldelf_parse_ld_so_conf): Likewise.
586	(ldelf_after_open): Likewise.
587	(output_rel_find): Likewise.
588	(ldelf_place_orphan): Likewise.
589	* ldfile.c (ldfile_add_library_path): Likewise.
590	* ldlang.c (lang_add_input_file): Likewise.
591	* ldmain.c (get_sysroot): Likewise.
592	(get_emulation): Likewise.
593	(add_archive_element): Likewise.
594	* ldwrite.c (unsplittable_name): Likewise.
595	(clone_section): Likewise.
596	* lexsup.c (parse_args): Likewise.
597	* pe-dll.c (is_import): Likewise.
598	(pe_implied_import_dll): Likewise.
599
6002021-03-19  H.J. Lu  <hongjiu.lu@intel.com>
601
602	PR ld/27590
603	* testsuite/ld-x86-64/pr27590.rd: New file.
604	* testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
605	* testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
606	* testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
607
6082021-03-20  Alan Modra  <amodra@gmail.com>
609
610	PR 27590
611	* ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
612	for all sections except .stabstr.
613
6142021-03-19  Alan Modra  <amodra@gmail.com>
615
616	PR 27590
617	* testsuite/ld-elf/pr27590a.d: Match relocs using label, and
618	R_MIPS_NONE.
619	* testsuite/ld-elf/pr27590b.d: Likewise.
620
6212021-03-18  H.J. Lu  <hongjiu.lu@intel.com>
622
623	PR ld/27590
624	* testsuite/ld-elf/pr27590.s: New file.
625	* testsuite/ld-elf/pr27590a.d: Likewise.
626	* testsuite/ld-elf/pr27590b.d: Likewise.
627	* testsuite/ld-i386/i386.exp: Also run ld/27193 test with
628	--reduce-memory-overheads.
629
6302021-03-18  H.J. Lu  <hongjiu.lu@intel.com>
631
632	PR ld/27587
633	* testsuite/ld-x86-64/pr27587.err: New file.
634	* testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
635	* testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
636	* testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
637
6382021-03-18  Nick Alcock  <nick.alcock@oracle.com>
639
640	* testsuite/ld-ctf/slice.c: Check slices of enums too.
641	* testsuite/ld-ctf/slice.d: Results adjusted.
642
6432021-03-16  Nick Clifton  <nickc@redhat.com>
644
645	* pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
646	lname string.
647
6482021-03-15  Jan Beulich  <jbeulich@suse.com>
649
650	* pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
651
6522021-03-12  Alan Modra  <amodra@gmail.com>
653
654	* Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
655	(ALL_64_EMULATION_SOURCES): ..here.
656	* Makefile.in: Regenerate.
657
6582021-03-12  Clément Chigot  <clement.chigot@atos.net>
659
660	* emultempl/aix.em: Ensure .tdata section is removed
661	if empty, even with -r flag.
662	* scripttempl/aix.sc: Handle TLS sections.
663	* testsuite/ld-powerpc/aix52.exp: Add new tests.
664	* testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
665	* testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
666	* testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
667	* testsuite/ld-powerpc/aix-tls-reloc.s: New test.
668	* testsuite/ld-powerpc/aix-tls-section-32.d: New test.
669	* testsuite/ld-powerpc/aix-tls-section-64.d: New test.
670	* testsuite/ld-powerpc/aix-tls-section.ex: New test.
671	* testsuite/ld-powerpc/aix-tls-section.s: New test.
672
6732021-03-12  Clément Chigot  <clement.chigot@atos.net>
674
675	* scripttempl/aix.sc: Add .te to .data section.
676	* testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
677	Add aix-largetoc-1 test.
678	* testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
679	* testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
680	* testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
681	* testsuite/ld-powerpc/aix-largetoc-1.s: New test.
682
6832021-03-12  Alan Modra  <amodra@gmail.com>
684
685	* testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
686	arrange to define __main for some run_dump_test tests.
687	* testsuite/ld-gc/pr13683.d: Accept more symbols.
688	* testsuite/ld-gc/pr14265.d: Likewise, and ordering.
689	* testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
690	* testsuite/ld-srec/srec.exp: Likewise.
691	* testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
692
6932021-03-11  Nelson Chu  <nelson.chu@sifive.com>
694
695	* emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
696	many times if riscv_restart_relax_sections returns TRUE.
697	* testsuite/ld-riscv-elf/restart-relax.d: New testcase.  Before
698	applying this patch, the call won't be relaxed to jal; But now we
699	have more chances to do relaxations.
700	* testsuite/ld-riscv-elf/restart-relax.s: Likewise.
701	* testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
702
7032021-03-10  Jan Beulich  <jbeulich@suse.com>
704
705	* testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
706	than 32 set bits.
707	* testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
708	comment.
709	* scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
710
7112021-03-09  Jan Beulich  <jbeulich@suse.com>
712
713	* testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
714	alignment to 4k.
715	* testsuite/ld-pe/reloc.d: xfail for mcore.
716
7172021-03-09  Jan Beulich  <jbeulich@suse.com>
718
719	* testsuite/ld-scripts/alignof.exp,
720	testsuite/ld-scripts/data.exp,
721	testsuite/ld-scripts/default-script.exp,
722	testsuite/ld-scripts/log2.exp,
723	testsuite/ld-scripts/print-memory-usage.exp,
724	testsuite/ld-scripts/sizeof.exp,
725	testsuite/ld-undefined/weak-undef.exp: Set image base to zero
726	for PE/COFF.
727	* testsuite/ld-scripts/default-script1.d,
728	testsuite/ld-scripts/default-script2.d,
729	testsuite/ld-scripts/default-script3.d,
730	testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
731
7322021-03-05  H.J. Lu  <hongjiu.lu@intel.com>
733
734	PR ld/27425
735	PR ld/27432
736	* ldelf.c (ldelf_set_output_arch): New function.
737	* ldelf.h (ldelf_set_output_arch): New prototype.
738	* emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
739	ldelf_set_output_arch.
740	* ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
741	* testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
742	* testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
743	* testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
744	* testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
745	* testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
746	* testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
747	* testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
748	* testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
749
7502021-03-04  Jan Beulich  <jbeulich@suse.com>
751
752	* testsuite/ld-scripts/map-address.exp: Set image base to zero
753	for PE/COFF.
754	* testsuite/ld-scripts/map-address.t: Place .text.
755
7562021-03-04  Jan Beulich  <jbeulich@suse.com>
757
758	* ldexp.c (ldexp_is_final_sym_absolute): New.
759	* ldexp.h (ldexp_is_final_sym_absolute): Declare.
760	* pe-dll.c (generate_reloc): Skip absolute symbols.
761	* testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
762	* testsuite/ld-pe/pe.exp: Run new test.
763
7642021-03-03  Alan Modra  <amodra@gmail.com>
765
766	PR 27500
767	* ldlang.c (insert_undefined): Don't mark symbols here.
768	(lang_mark_undefineds): Do so here instead, new function.
769	(lang_process): Call lang_mark_undefineds.
770	* testsuite/ld-gc/start3.d,
771	* testsuite/ld-gc/start3.s: New test.
772	* testsuite/ld-gc/start4.d,
773	* testsuite/ld-gc/start4.s: New test.
774	* testsuite/ld-gc/gc.exp: Run them.
775
7762021-03-03  Alan Modra  <amodra@gmail.com>
777
778	* testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
779	Move tests with ELF section directives to is_elf_format block.
780	* testsuite/ld-gc/abi-note.d: Run on more targets.
781	* testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
782	* testsuite/ld-gc/start.d: Likewise.
783	* testsuite/ld-gc/start2.d: Likewise.
784	* testsuite/ld-gc/stop.d: Likewise.
785	* testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
786	* testsuite/ld-gc/start.s: Likewise.
787	* testsuite/ld-gc/start2.s: Likewise.
788
7892021-03-02  Nick Alcock  <nick.alcock@oracle.com>
790
791	* ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
792
7932021-03-02  Alan Modra  <amodra@gmail.com>
794
795	* testsuite/ld-powerpc/startstop.d,
796	* testsuite/ld-powerpc/startstop.r,
797	* testsuite/ld-powerpc/startstop.s: New test.
798	* testsuite/ld-powerpc/powerpc.exp: Run it.
799
8002021-03-02  Alan Modra  <amodra@gmail.com>
801
802	* testsuite/ld-powerpc/weak1.d,
803	* testsuite/ld-powerpc/weak1.r,
804	* testsuite/ld-powerpc/weak1.s,
805	* testsuite/ld-powerpc/weak1so.d,
806	* testsuite/ld-powerpc/weak1so.r: New tests.
807	* testsuite/ld-powerpc/powerpc.exp: Run them.
808
8092021-03-01  Hannes Domani  <ssbssa@sourceware.org>
810	    Nick Clifton  <nickc@redhat.com>
811
812	PR 27268
813	* scripttempl/pe.sc: Add DWARF-5 section names.
814	* scripttempl/pep.sc: Likewise.
815
8162021-03-01  Alan Modra  <amodra@gmail.com>
817	    Fangrui Song <maskray@google.com>
818
819	* emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
820	* lexsup.c (elf_static_list_options): Display help for them.  Move
821	help for -z stack-size to here from elf_shlib_list_options. Add
822	help for -z start-stop-visibility and -z undefs.
823	* ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
824	* NEWS: Mention -z start-stop-gc.
825	* testsuite/ld-gc/start2.s,
826	* testsuite/ld-gc/start2.d: New test.
827	* testsuite/ld-gc/gc.exp: Run it.
828
8292021-03-01  Alan Modra  <amodra@gmail.com>
830
831	* ldlang.c (undef_start_stop): For ELF make undefined start/stop
832	symbols undefweak if that was how they were referenced.  Undo
833	dynamic state too.
834
8352021-03-01  Alan Modra  <amodra@gmail.com>
836
837	* testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
838	* testsuite/ld-elf/pr27128a.d: Likewise.
839	* testsuite/ld-elf/pr27128b.d: Likewise.
840	* testsuite/ld-elf/pr27128c.d: Likewise.
841	* testsuite/ld-elf/pr27128d.d: Likewise.
842	* testsuite/ld-elf/pr27128e.d: Likewise.
843
8442021-02-26  Alan Modra  <amodra@gmail.com>
845
846	PR 27441
847	* testsuite/ld-plugin/pr27441a.c,
848	* testsuite/ld-plugin/pr27441b.c,
849	* testsuite/ld-plugin/pr27441c.c,
850	* testsuite/ld-plugin/pr27441c.d: New test.
851	* testsuite/ld-plugin/lto.exp: Run it.
852
8532021-02-25  Jan Beulich  <jbeulich@suse.com>
854
855	* ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
856
8572021-02-21  Alan Modra  <amodra@gmail.com>
858
859	* ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
860	defined in an object file.
861	* ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
862	* testsuite/ld-scripts/defined5.d: Expect a warning.
863
8642021-02-19  Alan Modra  <amodra@gmail.com>
865
866	* testsuite/lib/ld-lib.exp: Whitespace.
867	(load_common_lib): Expand single use and delete this proc.
868	(run_host_cmd): Use -fno-lto when getting gcc's ld version.
869	Use -B for clang too.
870
8712021-02-18  Andrew Burgess  <andrew.burgess@embecosm.com>
872
873	* testplugin.c (record_read_length): Remove debug fprintf.
874
8752021-02-14  Alan Modra  <amodra@gmail.com>
876
877	* testsuite/ld-cdtest/cdtest.exp,
878	* testsuite/ld-checks/checks.exp,
879	* testsuite/ld-elf/binutils.exp,
880	* testsuite/ld-elf/compress.exp,
881	* testsuite/ld-elf/dwarf.exp,
882	* testsuite/ld-elf/exclude.exp,
883	* testsuite/ld-elf/frame.exp,
884	* testsuite/ld-elf/indirect.exp,
885	* testsuite/ld-elf/linux-x86.exp,
886	* testsuite/ld-elf/sec-to-seg.exp,
887	* testsuite/ld-elf/tls_common.exp,
888	* testsuite/ld-elfcomm/elfcomm.exp,
889	* testsuite/ld-elfvers/vers.exp,
890	* testsuite/ld-elfvsb/elfvsb.exp,
891	* testsuite/ld-elfweak/elfweak.exp,
892	* testsuite/ld-ifunc/binutils.exp,
893	* testsuite/ld-mips-elf/mips-elf-flags.exp,
894	* testsuite/ld-misc/defsym.exp,
895	* testsuite/ld-mn10300/mn10300.exp,
896	* testsuite/ld-plugin/lto.exp,
897	* testsuite/ld-plugin/plugin.exp,
898	* testsuite/ld-scripts/align.exp,
899	* testsuite/ld-scripts/assert.exp,
900	* testsuite/ld-scripts/crossref.exp,
901	* testsuite/ld-scripts/defined.exp,
902	* testsuite/ld-scripts/extern.exp,
903	* testsuite/ld-scripts/log2.exp,
904	* testsuite/ld-scripts/map-address.exp,
905	* testsuite/ld-scripts/phdrs.exp,
906	* testsuite/ld-scripts/phdrs2.exp,
907	* testsuite/ld-scripts/script.exp,
908	* testsuite/ld-scripts/section-flags.exp,
909	* testsuite/ld-scripts/sizeof.exp,
910	* testsuite/ld-scripts/weak.exp,
911	* testsuite/ld-selective/selective.exp,
912	* testsuite/ld-sh/sh.exp,
913	* testsuite/ld-shared/shared.exp,
914	* testsuite/ld-srec/srec.exp,
915	* testsuite/ld-tic6x/tic6x.exp,
916	* testsuite/ld-undefined/undefined.exp,
917	* testsuite/ld-undefined/weak-undef.exp,
918	* testsuite/lib/ld-lib.exp: Don't use unresolved except after
919	perror.  Instead report "unsupported" or "fail".
920
9212021-02-12  Nick Clifton  <nickc@redhat.com>
922
923	* testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
924	following debug links.
925
9262021-02-11  Alan Modra  <amodra@gmail.com>
927
928	* NEWS: Mention arm-symbianelf removal.
929
9302021-02-09  Alan Modra  <amodra@gmail.com>
931
932	* Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
933	Don't include symbian dep file.
934	* configure.tgt: Remove arm*-*-symbianelf* entry.
935	* emulparams/armsymbian.sh: Delete.
936	* ld.texi: Don't mention symbian.
937	* scripttempl/armbpabi.sc: Delete.
938	* testsuite/ld-arm/symbian-seg1.d: Delete.
939	* testsuite/ld-arm/symbian-seg1.s: Delete.
940	* testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
941	* Makefile.in: Regenerate.
942	* po/BLD-POTFILES.in: Regenerate.
943
9442021-02-07  H.J. Lu  <hongjiu.lu@intel.com>
945
946	PR ld/27358
947	* testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
948	tests.
949	* testsuite/ld-x86-64/x86-64.exp: Likewise.
950
9512021-01-26  Nick Alcock  <nick.alcock@oracle.com>
952
953	* ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
954	when appropriate.
955
9562021-02-04  H.J. Lu  <hongjiu.lu@intel.com>
957
958	PR ld/19609
959	* testsuite/ld-x86-64/pr19609-2a.d: Updated.
960	* testsuite/ld-x86-64/pr19609-2b.d: Likewise.
961	* testsuite/ld-x86-64/pr19609-4a.d: Likewise.
962	* testsuite/ld-x86-64/pr19609-4c.d: Likewise.
963	* testsuite/ld-x86-64/pr19609-5d.d: Likewise.
964	* testsuite/ld-x86-64/pr19609-7a.d: Likewise.
965	* testsuite/ld-x86-64/pr19609-7c.d: Likewise.
966
9672021-02-04  H.J. Lu  <hongjiu.lu@intel.com>
968
969	PR ld/15146
970	* testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
971	* testsuite/ld-plugin/pr15146.d: Restored.
972	* testsuite/ld-plugin/pr15146a.c: Likewise.
973	* testsuite/ld-plugin/pr15146b.c: Likewise.
974	* testsuite/ld-plugin/pr15146c.c: Likewise.
975	* testsuite/ld-plugin/pr15146d.c: Likewise.
976
9772021-02-04  Alan Modra  <amodra@gmail.com>
978
979	* testsuite/ld-plugin/pr27311d.c: New test.
980	* testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
981	and link new test as pr27311-2.
982
9832021-02-03  Alan Modra  <amodra@gmail.com>
984
985	* testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
986	Link with --as-needed.
987
9882021-02-02  Alan Modra  <amodra@gmail.com>
989
990	* testsuite/ld-plugin/pr27311.d,
991	* testsuite/ld-plugin/pr27311.ver,
992	* testsuite/ld-plugin/pr27311a.c,
993	* testsuite/ld-plugin/pr27311b.c,
994	* testsuite/ld-plugin/pr27311c.c: New testcase.
995	* testsuite/ld-plugin/lto.exp: Run it.  Correct PR14918 and
996	PR12982 entries.
997
9982021-02-01  Emery Hemingway  <ehmry@posteo.net>
999
1000	* configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1001
10022021-02-01  Alan Modra  <amodra@gmail.com>
1003
1004	* ldgram.y (defsym_expr): Use assignment rule.
1005	* ldlex.h (ldlex_defsym): Delete.
1006	* ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
1007
10082021-02-01  Alan Modra  <amodra@gmail.com>
1009
1010	* ldgram.y (section): Call ldlex_backup.  Remove empty action.
1011	* ldlex.h (ldlex_backup): Declare.
1012	* ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
1013	chars, use SYMBOLNAMECHAR.
1014	(ldlex_backup): New function.
1015
10162021-02-01  Alan Modra  <amodra@gmail.com>
1017
1018	* ldgram.y: Whitespace fixes.
1019
10202021-02-01  Alan Modra  <amodra@gmail.com>
1021
1022	* testsuite/ld-elf/pr27259.d: Correct sh_link match.
1023
10242021-01-29  Alan Modra  <amodra@gmail.com>
1025
1026	* testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
1027
10282021-01-28  H.J. Lu  <hongjiu.lu@intel.com>
1029
1030	PR ld/27259
1031	* testsuite/ld-elf/pr27259.d: New file.
1032	* testsuite/ld-elf/pr27259.s: Likewise.
1033
10342021-01-28  Alan Modra  <amodra@gmail.com>
1035
1036	PR 27259
1037	* ldelf.c (ldelf_before_place_orphans): Use linker_mark to
1038	prevent endless looping of linked-to sections.
1039
10402021-01-26  H.J. Lu  <hongjiu.lu@intel.com>
1041
1042	* testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
1043
10442021-01-26  Alan Modra  <amodra@gmail.com>
1045
1046	PR 27226
1047	* emulparams/alphavms.sh: Don't set COMPILE_IN.
1048	* emulparams/elf64_ia64_vms.sh: Likewise.
1049	* emulparams/elf64mmix.sh: Likewise.
1050	* emulparams/elf_iamcu.sh: Likewise.
1051	* emulparams/elf_k1om.sh: Likewise.
1052	* emulparams/elf_l1om.sh: Likewise.
1053	* emulparams/mmo.sh: Likewise.
1054	* emulparams/pdp11.sh: Set DATA_SEG_ADDR.
1055	* scripttempl/pdp11.sc: Use it.
1056	* emultempl/pdp11.em: Don't edit .xn script for separate_code,
1057	instead use .xe script.  Support scripts from file system.
1058	* emultempl/beos.em: Support scripts from file system.
1059	* emultempl/pe.em: Likewise.
1060	* emultempl/pep.em: Likewise.
1061	* testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
1062
10632021-01-25  Fangrui Song  <maskray@google.com>
1064
1065	PR ld/27230
1066	* scripttempl/DWARF.sc: Add .debug_* sections.
1067
10682021-01-25  Nick Clifton  <nickc@redhat.com>
1069
1070	* scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
1071	.debug_line_str and .debug_str_offsets.  Move .debug_macro and
1072	.debug_addr into DWARF-5 section.
1073
10742021-01-21  Alan Modra  <amodra@gmail.com>
1075
1076	* testsuite/ld-elf/pr26936.d: No longer xfail mips.
1077
10782021-01-20  Alan Modra  <amodra@gmail.com>
1079
1080	* testsuite/ld-powerpc/relbrlt.s: Make symbols global.
1081	* testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
1082	* testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
1083	* testsuite/ld-powerpc/tlsget.wf: Likewise.
1084	* testsuite/ld-powerpc/tlsget2.d: Likewise.
1085	* testsuite/ld-powerpc/tlsget2.wf: Likewise.
1086	* testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
1087	* testsuite/ld-powerpc/tlsexe32.r: Likewise.
1088	* testsuite/ld-powerpc/tlsexe32no.r: Likewise.
1089	* testsuite/ld-powerpc/tlsexeno.r: Likewise.
1090	* testsuite/ld-powerpc/tlsexenors.r: Likewise.
1091	* testsuite/ld-powerpc/tlsexers.r: Likewise.
1092	* testsuite/ld-powerpc/tlsexetoc.r: Likewise.
1093	* testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
1094	* testsuite/ld-powerpc/tlsso.r: Likewise.
1095	* testsuite/ld-powerpc/tlsso32.r: Likewise.
1096	* testsuite/ld-powerpc/tlstocso.r: Likewise.
1097
10982021-01-19  Nick Alcock  <nick.alcock@oracle.com>
1099
1100	* testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
1101	symbols by the optimizer.
1102	* testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
1103
11042021-01-19  Nelson Chu  <nelson.chu@sifive.com>
1105
1106	* testsuite/ld-elf/elf.exp (riscv_little_endian): Added.  Return true
1107	if target is riscv little endian.  Otherwise, return false.
1108	* testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
1109	targets by [riscv_little_endian].
1110
11112021-01-18  Alan Modra  <amodra@gmail.com>
1112
1113	PR 26378
1114	* ldlang.c (map_input_to_output_sections): Start with a read-only
1115	section for data statements.
1116	* testsuite/ld-elf/size-2.d: Adjust to suit.
1117
11182021-01-17  H.J. Lu  <hongjiu.lu@intel.com>
1119
1120	PR ld/27193
1121	* testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
1122	* testsuite/ld-i386/pr27193.dd: New file.
1123	* testsuite/ld-i386/pr27193a.o.bz2: Likewise.
1124	* testsuite/ld-i386/pr27193b.s: Likewise.
1125
11262021-01-16  H.J. Lu  <hongjiu.lu@intel.com>
1127
1128	PR binutils/23460
1129	* testsuite/ld-plugin/lto.exp: Increase the max number of open
1130	files to 20 for PR binutils/23460 test.
1131
11322021-01-16  H.J. Lu  <hongjiu.lu@intel.com>
1133
1134	PR ld/23169
1135	* testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
1136	pr23169a.rd for pr23169c and pr23169f.  Remove pr23169e tests.
1137	* testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
1138	address.
1139
11402021-01-15  H.J. Lu  <hongjiu.lu@intel.com>
1141
1142	* NEWS: Mention -z report-relative-reloc.
1143	* ld.texi: Document -z report-relative-reloc.
1144	* emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
1145	* emulparams/elf_i386.sh: Likewse.
1146	* emulparams/elf_x86_64.sh: Likewse.
1147	* emulparams/x86-report-relative.sh: New file.
1148	* testsuite/ld-i386/report-reloc-1.d: Likewse.
1149	* testsuite/ld-i386/report-reloc-1.l: Likewse.
1150	* testsuite/ld-i386/report-reloc-1.s: Likewse.
1151	* testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
1152	* testsuite/ld-x86-64/report-reloc-1.d: Likewse.
1153	* testsuite/ld-x86-64/report-reloc-1.l: Likewse.
1154	* testsuite/ld-x86-64/report-reloc-1.s: Likewse.
1155	* testsuite/ld-i386/i386.exp: Run report-reloc-1.
1156	* testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
1157	report-reloc-1-x32.
1158
11592021-01-16  Alan Modra  <amodra@gmail.com>
1160
1161	PR 26002
1162	* testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
1163	unversioned symbols.
1164	* testsuite/ld-elfvers/vers16.dsym: Likewise.
1165
11662021-01-15  Nelson Chu  <nelson.chu@sifive.com>
1167
1168	* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
1169	* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
1170	* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
1171	* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
1172	* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
1173	* testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
1174
11752021-01-14  Nick Clifton  <nickc@redhat.com>
1176
1177	* po/fr.po: Updated French translation.
1178
11792021-01-14  Mike Frysinger  <vapier@gentoo.org>
1180
1181	* testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
1182
11832021-01-14  Alan Modra  <amodra@gmail.com>
1184
1185	PR 27160
1186	* ldelfgen.c (compare_link_order): Protect access of ELF section
1187	data.
1188	(add_link_order_input_section): Remove redundant NULL check.
1189	Use bfd_get_flavour.
1190	(ldelf_map_segments): Use bfd_get_flavour.
1191
11922021-01-13  H.J. Lu  <hongjiu.lu@intel.com>
1193
1194	* ldelfgen.c (add_link_order_input_section): Check for ELF input
1195	before accessing ELF section data.
1196
11972021-01-13  Alan Modra  <amodra@gmail.com>
1198
1199	* Makefile.in: Regenerate.
1200
12012021-01-13  Alan Modra  <amodra@gmail.com>
1202
1203	PR 27160
1204	* ldlang.h (lang_output_section_statement_type): Add data field.
1205	(lang_input_section_type, lang_section_bst_type): Add pattern field.
1206	(statement_list): Declare.
1207	(lang_add_section): Adjust prototype.
1208	* emultempl/aarch64elf.em: Adjust lang_add_section calls.
1209	* emultempl/armelf.em: Likewise.
1210	* emultempl/beos.em: Likewise.
1211	* emultempl/cskyelf.em: Likewise.
1212	* emultempl/hppaelf.em: Likewise.
1213	* emultempl/m68hc1xelf.em: Likewise.
1214	* emultempl/metagelf.em: Likewise.
1215	* emultempl/mipself.em: Likewise.
1216	* emultempl/mmo.em: Likewise.
1217	* emultempl/msp430.em: Likewise.
1218	* emultempl/nios2elf.em: Likewise.
1219	* emultempl/pe.em: Likewise.
1220	* emultempl/pep.em: Likewise.
1221	* emultempl/ppc64elf.em: Likewise.
1222	* emultempl/spuelf.em: Likewise.
1223	* emultempl/vms.em: Likewise.
1224	* ldelf.c: Likewise.
1225	* ldelfgen.c: Include ldctor.h.
1226	(struct os_sections): New.
1227	(add_link_order_input_section, link_order_scan): New functions.
1228	(compare_link_order, fixup_link_order): New functions.
1229	(ldelf_map_segments): Call link_order_scan and fixup_link_order.
1230	* ldlang.c (statement_list): Make global.
1231	(output_section_callback_fast): Save pattern in tree node.
1232	(lang_add_section): Add pattern parameter, save in lang_input_section.
1233	(output_section_callback_tree_to_list): Adjust lang_add_section calls.
1234	(lang_insert_orphan, output_section_callback): Likewise.
1235	(ldlang_place_orphan): Likewise.
1236	(gc_section_callback): Don't set section->pattern.
1237	* testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
1238	* testsuite/ld-elf/pr26256-3b.d: Likewise.
1239	* testsuite/ld-elf/pr26256-2b.d: Likewise.  notarget xgate.
1240
12412021-01-13  Alan Modra  <amodra@gmail.com>
1242
1243	* ldlang.h (callback_t): Remove flag_info function parameter.
1244	* ldlang.c (walk_wild_consider_section): Adjust to suit.
1245	(walk_wild_section_general): Likewise.
1246	(output_section_callback_fast, output_section_callback): Likewise.
1247	(check_section_callback, gc_section_callback): Likewise.
1248	(find_relro_section_callback): Likewise.
1249
12502021-01-12  H.J. Lu  <hongjiu.lu@intel.com>
1251
1252	PR binutils/26792
1253	* configure.ac: Use GNU_MAKE_JOBSERVER.
1254	* aclocal.m4: Regenerated.
1255	* configure: Likewise.
1256
12572021-01-12  H.J. Lu  <hongjiu.lu@intel.com>
1258
1259	PR ld/27171
1260	* testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
1261	* testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1262	* testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1263	* testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
1264
12652021-01-11  H.J. Lu  <hongjiu.lu@intel.com>
1266
1267	PR ld/27173
1268	* configure: Regenerated.
1269
12702021-01-11  Matt Jenkins  <matt@majenko.co.uk>
1271
1272	PR ld/27167
1273	* ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
1274	and mips64r5 to list of known mips targets.
1275
12762021-01-11  Nick Clifton  <nickc@redhat.com>matt@majenko.co.uk
1277
1278	* po/pt_BR.po: Updated Brazilian Portuguese translation.
1279`	* po/uk.po: Updated Ukranian translation.
1280
12812021-01-09  H.J. Lu  <hongjiu.lu@intel.com>
1282
1283	* configure: Regenerated.
1284
12852021-01-09  H.J. Lu  <hongjiu.lu@intel.com>
1286
1287	PR ld/27166
1288	* testsuite/ld-x86-64/lam-u48.rd: New file.
1289	* testsuite/ld-x86-64/lam-u57.rd: Likewise.
1290	* testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
1291
12922021-01-09  Nick Clifton  <nickc@redhat.com>
1293
1294	* configure: Regenerate.
1295	* po/ld.pot: Regenerate.
1296
12972021-01-09  Nick Clifton  <nickc@redhat.com>
1298
1299	* 2.36 release branch crated.
1300
13012021-01-08  H.J. Lu  <hongjiu.lu@intel.com>
1302
1303	* ld-x86-64/property-x86-lam-u48-4.d: Updated.
1304	* ld-x86-64/property-x86-lam-u48-5.d: Likewise.
1305
13062021-01-09  Alan Modra  <amodra@gmail.com>
1307
1308	* configure: Regenerate.
1309	* Makefile.in: Regenerate.
1310
13112021-01-07  Samuel Thibault  <samuel.thibault@gnu.org>
1312
1313	* configure: Regenerate.
1314
13152021-01-07  H.J. Lu  <hongjiu.lu@intel.com>
1316
1317	PR 27109
1318	* testsuite/ld-elf/export-class.sd: Adjust the expected output.
1319	* testsuite/ld-elf/loadaddr3b.d: Likewise.
1320	* testsuite/ld-i386/ibt-plt-1.d: Likewise.
1321	* testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1322	* testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1323	* testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1324	* testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1325	* testsuite/ld-i386/pr19636-1d.d: Likewise.
1326	* testsuite/ld-i386/pr19636-1l.d: Likewise.
1327	* testsuite/ld-i386/pr19636-2c.d: Likewise.
1328	* testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1329	* testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1330	* testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1331	* testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1332	* testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1333	* testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1334	* testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1335	* testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1336	* testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1337	* testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1338	* testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1339	* testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1340	* testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1341	* testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1342	* testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1343	* testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1344	* testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1345	* testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1346	* testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1347	* testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1348	* testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1349	* testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1350	* testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1351	* testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1352	* testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1353	* testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1354	* testsuite/ld-x86-64/pr19609-4e.d: Likewise.
1355	* testsuite/ld-x86-64/pr19609-6a.d: Likewise.
1356	* testsuite/ld-x86-64/pr19609-6b.d: Likewise.
1357	* testsuite/ld-x86-64/pr19609-7b.d: Likewise.
1358	* testsuite/ld-x86-64/pr19609-7d.d: Likewise.
1359	* testsuite/ld-x86-64/pr19636-2l.d: Likewise.
1360	* testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1361	* testsuite/ld-x86-64/pr20253-1h.d: Likewise.
1362	* testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1363	* testsuite/ld-x86-64/pr21038b.d: Likewise.
1364	* testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1365	* testsuite/ld-x86-64/pr21038c.d: Likewise.
1366	* testsuite/ld-x86-64/pr23854.d: Likewise.
1367	* testsuite/ld-x86-64/pr25416-3.d: Likewise.
1368	* testsuite/ld-x86-64/pr25416-4.d: Likewise.
1369	* testsuite/ld-i386/plt-pic.pd: Likewise.
1370	* testsuite/ld-i386/plt-pic2.dd: Likewise.
1371	* testsuite/ld-i386/plt.pd: Likewise.
1372	* testsuite/ld-i386/plt2.dd: Likewise.
1373	* testsuite/ld-i386/tlsbin.rd: Likewise.
1374	* testsuite/ld-i386/tlsbin2.rd: Likewise.
1375	* testsuite/ld-i386/tlsbindesc.rd: Likewise.
1376	* testsuite/ld-i386/tlsdesc.rd: Likewise.
1377	* testsuite/ld-i386/tlsgdesc.rd: Likewise.
1378	* testsuite/ld-i386/tlsnopic.rd: Likewise.
1379	* testsuite/ld-i386/tlspic.rd: Likewise.
1380	* testsuite/ld-i386/tlspic2.rd: Likewise.
1381	* testsuite/ld-x86-64/mpx3.dd: Likewise.
1382	* testsuite/ld-x86-64/mpx3n.dd: Likewise.
1383	* testsuite/ld-x86-64/mpx4.dd: Likewise.
1384	* testsuite/ld-x86-64/mpx4n.dd: Likewise.
1385	* testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
1386	* testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1387	* testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1388	* testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1389	* testsuite/ld-x86-64/plt.pd: Likewise.
1390	* testsuite/ld-x86-64/plt2.dd: Likewise.
1391	* testsuite/ld-x86-64/tlsbin.rd: Likewise.
1392	* testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1393	* testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1394	* testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1395	* testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
1396	* testsuite/ld-x86-64/tlspic.rd: Likewise.
1397	* testsuite/ld-x86-64/tlspic2.rd: Likewise.
1398	* testsuite/ld-elf/sec64k.exp: Check
1399	is_elf_unused_section_symbols.
1400
14012021-01-07  Alan Modra  <amodra@gmail.com>
1402
1403	* testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
1404	* testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
1405	* testsuite/ld-scripts/segment-start.d: Likewise.
1406
14072021-01-07  Alan Modra  <amodra@gmail.com>
1408
1409	* testsuite/ld-elf/comm-data5.d: xfail targets that complain
1410	about dynamic relocations in read-only sections.
1411	* testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1412	* testsuite/ld-elf/ehdr_start.d: Likewise.
1413	* testsuite/ld-scripts/pr22267.d: Likewise.
1414	* testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
1415	pr20995 text.
1416	* testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
1417
14182021-01-07  Marcus Comstedt  <marcus@mc.pp.se>
1419
1420	* testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
1421	* testsuite/ld-scripts/empty-address-2b.d: Likewise.
1422
14232021-01-07  Alan Modra  <amodra@gmail.com>
1424
1425	* po/BLD-POTFILES.in: Regenerate.
1426
14272021-01-07  Alan Modra  <amodra@gmail.com>
1428
1429	* testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
1430	complain about relocs in read-only sections.  Tidy ASFLAGS append.
1431
14322021-01-06  Alan Modra  <amodra@gmail.com>
1433
1434	* testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
1435	base for some tests.
1436	* testsuite/ld-sparc/gotop32.dd: Match solaris output.
1437	* testsuite/ld-sparc/gotop32.sd: Likewise.
1438	* testsuite/ld-sparc/gotop32.td: Likewise.
1439	* testsuite/ld-sparc/gotop64.dd: Likewise.
1440	* testsuite/ld-sparc/gotop64.sd: Likewise.
1441	* testsuite/ld-sparc/gotop64.td: Likewise.
1442	* testsuite/ld-sparc/tlsg32.sd: Likewise.
1443	* testsuite/ld-sparc/tlsg64.sd: Likewise.
1444	* testsuite/ld-sparc/tlspie32.dd: Likewise.
1445	* testsuite/ld-sparc/tlspie64.dd: Likewise.
1446	* testsuite/ld-sparc/tlssunbin32.dd: Likewise.
1447	* testsuite/ld-sparc/tlssunbin32.sd: Likewise.
1448	* testsuite/ld-sparc/tlssunbin32.td: Likewise.
1449	* testsuite/ld-sparc/tlssunbin64.dd: Likewise.
1450	* testsuite/ld-sparc/tlssunbin64.sd: Likewise.
1451	* testsuite/ld-sparc/tlssunbin64.td: Likewise.
1452	* testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
1453	* testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
1454	* testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
1455	* testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
1456	* testsuite/ld-sparc/tlssunpic32.dd: Likewise.
1457	* testsuite/ld-sparc/tlssunpic32.sd: Likewise.
1458	* testsuite/ld-sparc/tlssunpic32.td: Likewise.
1459	* testsuite/ld-sparc/tlssunpic64.dd: Likewise.
1460	* testsuite/ld-sparc/tlssunpic64.sd: Likewise.
1461	* testsuite/ld-sparc/tlssunpic64.td: Likewise.
1462	* testsuite/ld-sparc/wdispcall.dd: Likewise.
1463
14642021-01-06  Alan Modra  <amodra@gmail.com>
1465
1466	* testsuite/ld-scripts/rgn-at10.d: xfail v850.
1467	* testsuite/ld-scripts/rgn-at11.d: Likewise.
1468
14692021-01-06  Marcus Comstedt  <marcus@mc.pp.se>
1470
1471	* testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
1472	riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
1473	* testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
1474	riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
1475	* testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1476	* testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1477	* testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1478	* testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
1479	* testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
1480	* testsuite/ld-riscv-elf/c-lui.d: Likewise.
1481	* testsuite/ld-riscv-elf/call-relax.d: Likewise.
1482	* testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
1483	* testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
1484	* testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
1485	to littleriscv.
1486	* testsuite/ld-riscv-elf/weakref64.d: Likewise.
1487
14882021-01-06  Marcus Comstedt  <marcus@mc.pp.se>
1489
1490	* configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
1491	riscv32be*-*-linux*, and riscv64be*-*-linux*.
1492	* Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
1493	eelf32briscv_ilp32.c.
1494	* Makefile.in: Regenerate.
1495	* emulparams/elf32briscv.sh: Added.
1496	* emulparams/elf32briscv_ilp32.sh: Likewise.
1497	* emulparams/elf32briscv_ilp32f.sh: Likewise.
1498	* emulparams/elf64briscv.sh: Likewise.
1499	* emulparams/elf64briscv_lp64.sh: Likewise.
1500	* emulparams/elf64briscv_lp64f.sh: Likewise.
1501
15022021-01-05  Nick Alcock  <nick.alcock@oracle.com>
1503
1504	* testsuite/ld-ctf/enum-forward.c: New test.
1505	* testsuite/ld-ctf/enum-forward.c: New results.
1506
15072021-01-05  Nick Alcock  <nick.alcock@oracle.com>
1508
1509	* testsuite/ld-ctf/array.d: Adjust for dumper changes.
1510	* testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1511	* testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1512	* testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1513	* testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1514	* testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1515	* testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1516	* testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1517	* testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1518	* testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1519	* testsuite/ld-ctf/conflicting-enums.d: Likewise.
1520	* testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1521	* testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1522	* testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1523	* testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1524	* testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1525	* testsuite/ld-ctf/cycle-1.d: Likewise.
1526	* testsuite/ld-ctf/cycle-2.A.d: Likewise.
1527	* testsuite/ld-ctf/cycle-2.B.d: Likewise.
1528	* testsuite/ld-ctf/cycle-2.C.d: Likewise.
1529	* testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1530	* testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1531	* testsuite/ld-ctf/diag-cuname.d: Likewise.
1532	* testsuite/ld-ctf/diag-parlabel.d: Likewise.
1533	* testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1534	* testsuite/ld-ctf/forward.d: Likewise.
1535	* testsuite/ld-ctf/function.d: Likewise.
1536	* testsuite/ld-ctf/slice.d: Likewise.
1537	* testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1538	* testsuite/ld-ctf/enums.c: New test.
1539	* testsuite/ld-ctf/enums.d: New test.
1540
15412021-01-05  Nick Alcock  <nick.alcock@oracle.com>
1542
1543	* testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
1544	changes.
1545	* testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1546	* testsuite/ld-ctf/forward.c: New test...
1547	* testsuite/ld-ctf/forward.d: ... and results.
1548
15492021-01-05  Nick Alcock  <nick.alcock@oracle.com>
1550
1551	* testsuite/ld-ctf/array.d: Adjust for dumper changes.
1552	* testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1553	* testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1554	* testsuite/ld-ctf/diag-cuname.d: Likewise.
1555	* testsuite/ld-ctf/diag-parlabel.d: Likewise.
1556	* testsuite/ld-ctf/function.d: Likewise.
1557	* testsuite/ld-ctf/slice.d: Likewise.
1558
15592021-01-05  Nick Alcock  <nick.alcock@oracle.com>
1560
1561	* testsuite/ld-ctf/array.d: Adjust for dumper changes.
1562	* testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1563	* testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1564	* testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1565	* testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1566	* testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1567	* testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1568	* testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1569	* testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1570	* testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1571	* testsuite/ld-ctf/conflicting-enums.d: Likewise.
1572	* testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1573	* testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1574	* testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1575	* testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1576	* testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1577	* testsuite/ld-ctf/cycle-1.d: Likewise.
1578	* testsuite/ld-ctf/cycle-2.A.d: Likewise.
1579	* testsuite/ld-ctf/cycle-2.B.d: Likewise.
1580	* testsuite/ld-ctf/cycle-2.C.d: Likewise.
1581	* testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1582	* testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1583	* testsuite/ld-ctf/diag-cuname.d: Likewise.
1584	* testsuite/ld-ctf/diag-parlabel.d: Likewise.
1585	* testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1586	* testsuite/ld-ctf/function.d: Likewise.
1587	* testsuite/ld-ctf/slice.d: Likewise.
1588	* testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1589
15902021-01-05  Alan Modra  <amodra@gmail.com>
1591
1592	* testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
1593
15942021-01-05  Alan Modra  <amodra@gmail.com>
1595
1596	PR ld/26256
1597	* testsuite/ld-elf/pr26256-1b.d: xfail s12z.
1598	* testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
1599
16002021-01-04  H.J. Lu  <hongjiu.lu@intel.com>
1601
1602	PR ld/26256
1603	* ldlang.c (gc_section_callback): Set pattern.
1604	* testsuite/ld-elf/pr26256-1.s: New file.
1605	* testsuite/ld-elf/pr26256-1.t: Likewise.
1606	* testsuite/ld-elf/pr26256-1a.d: Likewise.
1607	* testsuite/ld-elf/pr26256-1b.d: Likewise.
1608	* testsuite/ld-elf/pr26256-2.s: Likewise.
1609	* testsuite/ld-elf/pr26256-2.t: Likewise.
1610	* testsuite/ld-elf/pr26256-2a.d: Likewise.
1611	* testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
1612	* testsuite/ld-elf/pr26256-2b.d: Likewise.
1613	* testsuite/ld-elf/pr26256-3.s: Likewise.
1614	* testsuite/ld-elf/pr26256-3a.d: Likewise.
1615	* testsuite/ld-elf/pr26256-3a.t: Likewise.
1616	* testsuite/ld-elf/pr26256-3b.d: Likewise.
1617	* testsuite/ld-elf/pr26256-3b.t: Likewise.
1618
16192021-01-04  Alan Modra  <amodra@gmail.com>
1620
1621	PR 26822
1622	* testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
1623	* testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
1624	* testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
1625	* testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
1626	* testsuite/ld-i386/tlsbin.rd: Likewise.
1627	* testsuite/ld-i386/tlsbin2.rd: Likewise.
1628	* testsuite/ld-i386/tlsbindesc.rd: Likewise.
1629	* testsuite/ld-i386/tlsdesc.rd: Likewise.
1630	* testsuite/ld-i386/tlsnopic.rd: Likewise.
1631	* testsuite/ld-i386/tlspic.rd: Likewise.
1632	* testsuite/ld-i386/tlspic2.rd: Likewise.
1633	* testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
1634	* testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
1635	* testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
1636	* testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
1637	* testsuite/ld-plugin/pr17973.d: Likewise.
1638	* testsuite/ld-tic6x/shlib-1.rd: Likewise.
1639	* testsuite/ld-tic6x/shlib-1b.rd: Likewise.
1640	* testsuite/ld-tic6x/shlib-1r.rd: Likewise.
1641	* testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
1642	* testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
1643	* testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
1644	* testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
1645	* testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
1646	* testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
1647	* testsuite/ld-tic6x/static-app-1.rd: Likewise.
1648	* testsuite/ld-tic6x/static-app-1b.rd: Likewise.
1649	* testsuite/ld-tic6x/static-app-1r.rd: Likewise.
1650	* testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
1651	* testsuite/ld-x86-64/tlsbin.rd: Likewise.
1652	* testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1653	* testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1654	* testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1655	* testsuite/ld-x86-64/tlspic.rd: Likewise.
1656	* testsuite/ld-x86-64/tlspic2.rd: Likewise.
1657	* testsuite/ld-xtensa/tlsbin.rd: Likewise.
1658	* testsuite/ld-xtensa/tlspic.rd: Likewise.
1659
16602021-01-01  Nicolas Boulenguez  <nicolas@debian.org>
1661
1662	* configure.tgt: Correct comment grammar.
1663	* emultempl/m68hc1xelf.em: Likewise.
1664	* ld.texi: Correct grammar.
1665
16662021-01-01  Alan Modra  <amodra@gmail.com>
1667
1668	Update year range in copyright notice of all files.
1669
1670For older changes see ChangeLog-2020
1671
1672Copyright (C) 2021 Free Software Foundation, Inc.
1673
1674Copying and distribution of this file, with or without modification,
1675are permitted in any medium without royalty provided the copyright
1676notice and this notice are preserved.
1677
1678Local Variables:
1679mode: change-log
1680left-margin: 8
1681fill-column: 74
1682version-control: never
1683End:
1684