]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/ChangeLog
ld: Add -no-pie
[thirdparty/binutils-gdb.git] / ld / ChangeLog
CommitLineData
93df3340
AM
12021-06-15 Alan Modra <amodra@gmail.com>
2
3 * testsuite/ld-pie/vaddr-0.d: Update expected output.
4
f64b9b13
AM
52021-06-11 Alan Modra <amodra@gmail.com>
6
7 PR 27952
8 * ldelf.c (ldelf_after_open): Error on input PIEs too.
9
f75bcf7e
NC
102021-06-09 Nick Clifton <nickc@redhat.com>
11
12 PR 27666
13 * testsuite/ld-sparc/sparc.exp: Do not run the sparctests or
14 sparc64tests for Solaris2 targets.
15
364d7729
AM
162021-06-03 Alan Modra <amodra@gmail.com>
17
18 PR 2589
19 * ld.texi (link-time runtime library search path): Mention
20 plugin library path. Correct order of search.
21
ef9d2565
NC
222021-05-31 Nelson Chu <nelson.chu@sifive.com>
23 Lifang Xia <lifang_xia@c-sky.com>
24
25 PR 27566
26 * emultempl/riscvelf.em (after_allocation): Call
27 riscv_set_data_segment_info to set data segment phase before relaxing.
28 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
29 * testsuite/ld-riscv-elf/relro-relax-lui.d: New testcase.
30 * testsuite/ld-riscv-elf/relro-relax-lui.s: Likewise.
31 * testsuite/ld-riscv-elf/relro-relax-pcrel.d: Likewise.
32 * testsuite/ld-riscv-elf/relro-relax-pcrel.s: Likewise.
33
1273b2f8
L
342021-05-28 H.J. Lu <hongjiu.lu@intel.com>
35
36 PR ld/27905
37 * testsuite/ld-i386/pcrel16-2.d: xfail.
38 * testsuite/ld-x86-64/pcrel16-2.d: Likewise.
39
50c95a73
L
402021-05-26 H.J. Lu <hongjiu.lu@intel.com>
41
42 PR ld/27905
43 * testsuite/ld-i386/code16.d: New file.
44 * testsuite/ld-i386/code16.t: Likewise.
45 * testsuite/ld-x86-64/code16.d: Likewise.
46 * testsuite/ld-x86-64/code16.t: Likewise.
47 * testsuite/ld-i386/i386.exp: Run code16.
48 * testsuite/ld-x86-64/x86-64.exp: Likewise.
49
983d5689
L
502021-05-26 H.J. Lu <hongjiu.lu@intel.com>
51
52 * testsuite/ld-x86-64/ilp32-12.d: New file.
53 * testsuite/ld-x86-64/ilp32-12.s: Likewise.
54 * testsuite/ld-x86-64/x86-64.exp: Run ilp32-12.
55
75f03fa7
NC
562021-05-14 Nelson Chu <nelson.chu@sifive.com>
57
58 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
59 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d: Renamed from
60 pcrel-lo-addend-2.
61 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.s: Likewise.
62 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.d: New testcase.
63 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.s: Likewise.
64
cf893b0e
FS
652021-05-13 Fangrui Song <maskray@google.com>
66
67 PR 27834
68 * ldlex.h (enum option_values): Add OPTION_NO_SYMBOLIC.
69 * lexsup.c (ld_options): Add -Bno-symbolic.
70 (parse_args): Handle -Bno-symbolic.
71 * ld.texi: Document -Bno-symbolic.
72 * NEWS: Mention -Bno-symbolic.
73 * testsuite/ld-elf/shared.exp: Add a test.
74
84139c58
RE
752021-05-12 Richard Earnshaw <rearnsha@arm.com>
76
77 * testsuite/ld-arm/arm-elf.exp (farcall test for v8-m.mainline):
78 Correct expected output.
79
4a1ad5c9
RM
802021-05-11 Roland McGrath <mcgrathr@google.com>
81
82 * testsuite/ld-x86-64/rela.d: Fix regexp not to presume a specific
83 address layout, so it works for e.g. --target=x86-64-elf.
84
22604fe6
NC
852021-05-11 Nick Clifton <nickc@redhat.com>
86
87 PR 27113
88 * Makefile.am (install-data-local): Also delete libdep.dll.a if it
89 is present.
90 * Makefile.in: Regenerate.
91
5b45e89f
DD
922021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
93
94 * testsuite/ld-elf/group8a.d: Remove pru from XFAIL list.
95 * testsuite/ld-elf/group8b.d: Ditto.
96 * testsuite/ld-elf/group9a.d: Ditto.
97 * testsuite/ld-elf/group9b.d: Ditto.
98 * testsuite/ld-elf/pr12851.d: Ditto.
99 * testsuite/ld-elf/pr22677.d: Ditto.
100 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove
101 pru from list.
102
261980de
DD
1032021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
104
105 * scripttempl/pru.sc (.resource_table): Add ALIGN directive.
106 Use symbols for memory sizes.
107
cf758b39
MF
1082021-05-08 Mike Frysinger <vapier@gentoo.org>
109
110 * Makefile.am (html-local, doc/ld/index.html): New targets.
111 * Makefile.in: Regenerate.
112
2faf902d
MF
1132021-05-08 Mike Frysinger <vapier@gentoo.org>
114
115 * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
116 * Makefile.in: Regenerate.
117
17c6c3b9
JB
1182021-05-07 Jan Beulich <jbeulich@suse.com>
119
120 * testsuite/ld-x86-64/rela.d: New.
121 * testsuite/ld-x86-64/x86-64.exp: Run new test.
122
d820a652
NC
1232021-05-07 Nick Clifton <nickc@redhat.com>
124
125 * ldelfgen.c (compare_link_order): Ignore section size when
126 performing a relocateable link.
127
70993db3
AM
1282021-05-07 Alan Modra <amodra@gmail.com>
129
130 * ldexp.c (update_definedness): Don't return false for absolute
131 symbols.
132 * ldmain.c (multiple_definition): Print "warning: " in message
133 when not a hard error.
134
973bba91
AM
1352021-05-07 Alan Modra <amodra@gmail.com>
136
137 * testsuite/ld-elf/pr27825-1.d: Correct xfail.
138 * testsuite/ld-elf/pr27825-2.d: Likewise.
139
284a1309
SH
1402021-05-06 Stafford Horne <shorne@gmail.com>
141
142 PR 27746
143 testsuite/ld-or1k/or1k.exp (or1kplttests): Add tests for linking
144 along with gotha() relocations.
145 testsuite/ld-or1k/gotha1.dd: New file.
146 testsuite/ld-or1k/gotha1.s: New file.
147 testsuite/ld-or1k/gotha2.dd: New file.
148 testsuite/ld-or1k/gotha2.s: New file
149 testsuite/ld-or1k/pltlib.s (x): Define size to avoid link
150 failure.
151
ae064303
NA
1522021-05-06 Nick Alcock <nick.alcock@oracle.com>
153
154 * testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt.
155 * testsuite/lib/ld-lib.exp: Likewise.
156 * testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types.
157 * testsuite/ld-ctf/nonrepresentable-2.c: Likewise.
158 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
159 * testsuite/ld-ctf/array.d: Larger type section.
160 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
161 * testsuite/ld-ctf/enums.d: Likewise.
162 * testsuite/ld-ctf/conflicting-enums.d: Don't compare types.
163 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order.
164 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
165 * testsuite/ld-ctf/slice.d: Adjust for improved slice emission.
166
4467df35
L
1672021-05-05 H.J. Lu <hongjiu.lu@intel.com>
168
169 PR ld/27825
170 * testsuite/ld-elf/pr27825-1.d: New file.
171 * testsuite/ld-elf/pr27825-1a.s: Likewise.
172 * testsuite/ld-elf/pr27825-1b.s: Likewise.
173 * testsuite/ld-elf/pr27825-2.d: Likewise.
174 * testsuite/ld-elf/pr27825-2a.s: Likewise.
175 * testsuite/ld-elf/pr27825-2b.s: Likewise.
176
13ffdac3
AM
1772021-05-05 Alan Modra <amodra@gmail.com>
178
179 * testsuite/ld-powerpc/empty.s: New file.
180 * testsuite/ld-powerpc/undefweak.d,
181 * testsuite/ld-powerpc/undefweak.s: New testcase.
182 * testsuite/ld-powerpc/powerpc.exp: Run it.
183
df6fbc21
AM
1842021-05-03 Alan Modra <amodra@gmail.com>
185
186 * testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
187 named section symbols.
188
24aebc79
NC
1892021-04-28 Nick Clifton <nickc@redhat.com>
190
191 * testsuite/ld-elf/anno-sym.s: New test source file.
192 * testsuite/ld-elf/anno-sym.d: New test driver.
193 * testsuite/ld-elf/anno-sym.l: New test error output.
194
a7664973
JB
1952021-04-26 Jan Beulich <jbeulich@suse.com>
196
197 * testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d,
198 testsuite/ld-x86-64/pcrel16-2.d: New.
199 * testsuite/ld-i386/i386.exp: Run new test.
200 * testsuite/ld-x86-64/x86-64.exp: Likewise.
201
69cc1945
L
2022021-04-23 H.J. Lu <hongjiu.lu@intel.com>
203
204 PR ld/27771
205 * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
206 to tmpdir/ldscripts only if it doesn't exist.
207
d018cd83
JB
2082021-04-22 Jan Beulich <jbeulich@suse.com>
209
210 PR ld/26659
211 * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
212
23356397
NC
2132021-04-21 Nick Clifton <nickc@redhat.com>
214
215 * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
216 to allow for named section symbols.
217 * testsuite/ld-aarch64/variant_pcs-r.d: Likewise.
218 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
219 * testsuite/ld-alpha/tlsbin.rd: Likewise.
220 * testsuite/ld-alpha/tlsbinr.rd: Likewise.
221 * testsuite/ld-alpha/tlspic.rd: Likewise.
222 * testsuite/ld-arm/rodata-merge-map.sym: Likewise.
223 * testsuite/ld-arm/script-type.sym: Likewise.
224 * testsuite/ld-cris/libdso-2.d: Likewise.
225 * testsuite/ld-cris/pr16044.d: Likewise.
226 * testsuite/ld-elf/sec64k.exp: Likewise.
227 * testsuite/ld-ia64/tlsbin.rd: Likewise.
228 * testsuite/ld-ia64/tlspic.rd: Likewise.
229 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
230 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
231 * testsuite/ld-mmix/bspec1.d: Likewise.
232 * testsuite/ld-mmix/bspec2.d: Likewise.
233 * testsuite/ld-mmix/local1.d: Likewise.
234 * testsuite/ld-mmix/local3.d: Likewise.
235 * testsuite/ld-mmix/local5.d: Likewise.
236 * testsuite/ld-mmix/local7.d: Likewise.
237 * testsuite/ld-mmix/undef-3.d: Likewise.
238 * testsuite/ld-powerpc/tlsso.r: Likewise.
239 * testsuite/ld-powerpc/tlsso32.r: Likewise.
240 * testsuite/ld-powerpc/tlstocso.r: Likewise.
241 * testsuite/ld-s390/tlsbin.rd: Likewise.
242 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
243 * testsuite/ld-s390/tlspic.rd: Likewise.
244 * testsuite/ld-s390/tlspic_64.rd: Likewise.
245 * testsuite/ld-sparc/gotop32.rd: Likewise.
246 * testsuite/ld-sparc/gotop64.rd: Likewise.
247 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
248 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
249 * testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
250 * testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
251 * testsuite/ld-sparc/tlssunpic32.rd: Likewise.
252 * testsuite/ld-sparc/tlssunpic64.rd: Likewise.
253 * testsuite/ld-tic6x/common.d: Likewise.
254 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
255 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
256 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
257 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
258 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
259 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
260 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
261 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
262 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
263 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
264 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
265 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
266 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
267
c5df7e44
CC
2682021-04-20 Clément Chigot <clement.chigot@atos.net>
269
270 PR binutils/21700
271 * testsuite/ld-powerpc/aix52.exp: Add new test.
272 * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
273 * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
274 * testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
275 * testsuite/ld-powerpc/aix-neg-reloc.s: New test.
276
6418520e
NC
2772021-04-13 Nick Clifton <nickc@redhat.com>
278
279 * ld.texi (Options): Add note about the effect of --as-needed on
280 the --rpath and --rpath-link options on Linux based systems.
281
1cfc6f00
AM
2822021-04-13 Alan Modra <amodra@gmail.com>
283
284 PR 27722
285 * libdep_plugin.c (str2vec): Don't pass a potentially signed char
286 to isspace.
287
43e05cd4
AM
2882021-04-12 Alan Modra <amodra@gmail.com>
289
290 * configure.ac (--enable-checking): Add support.
291 * config.in: Regenerate.
292 * configure: Regenerate.
293
2cc15b10
AM
2942021-04-12 Alan Modra <amodra@gmail.com>
295
296 * emultempl/mipself.em (mips_create_output_section_statements):
297 Pass base type of hash table to is_elf_hash_table.
298 * ldelf.c (ldelf_after_open): Likewise.
299
fc304b88
AM
3002021-04-12 Alan Modra <amodra@gmail.com>
301
302 PR 27719
303 * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
304 the symbol hash table is the correct type before accessing
305 elf_link_hash_entry symbols.
306 * plugin.c (is_visible_from_outside): Likewise.
307 * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
308 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
309
c3f72de4
AM
3102021-04-09 Alan Modra <amodra@gmail.com>
311
312 * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
313 * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
314 * testsuite/ld-powerpc/notoc2.d: Likewise.
315 * testsuite/ld-powerpc/notoc3.d: Likewise.
316 * testsuite/ld-powerpc/pcrelopt.d: Likewise.
317 * testsuite/ld-powerpc/startstop.d: Likewise.
318 * testsuite/ld-powerpc/tlsget.d: Likewise.
319 * testsuite/ld-powerpc/tlsget2.d: Likewise.
320 * testsuite/ld-powerpc/tlsld.d: Likewise.
321 * testsuite/ld-powerpc/weak1.d: Likewise.
322 * testsuite/ld-powerpc/weak1so.d: Likewise.
323
bd3d1480
JB
3242021-04-06 Jan Beulich <jbeulich@suse.com>
325
326 * pe-dll.c (generate_reloc): Bail immediately when .reloc is
327 being discarded. Warn when relocated entry is above .reloc.
328
c774eab1
AM
3292021-04-05 Alan Modra <amodra@gmail.com>
330
331 * configure.ac: Move initfini-array arg handling earlier. Don't
332 check for string.h, strings.h, stdlib.h, or locale.h. Do check
333 for inttypes.h, stdint.h, sys/types.h. Don't check for
334 setlocale, free, getev or strstr.
335 (AC_ISC_POSIX): Don't invoke.
336 * sysdep.h: Include string.h and stdlib.h unconditionally. Test
337 HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and
338 getenv fallback declarations.
339 * ld.h: Don't test HAVE_LOCALE_H.
340 * ldmain.c: Don't test HAVE_SETLOCALE.
341 * config.in: Regenerate.
342 * configure: Regenerate.
343
74edb473
TC
3442021-04-01 Tamar Christina <tamar.christina@arm.com>
345
346 PR ld/26659
347 * testsuite/ld-pe/pe.exp: Add test.
348 * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
349 * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
350
e9b095a5
ML
3512021-04-01 Martin Liska <mliska@suse.cz>
352
353 * ldbuildid.c (strneq): Remove strneq and use startswith.
354 (validate_build_id_style): Likewise.
355 (compute_build_id_size): Likewise.
356
f38a2680
AM
3572021-03-31 Alan Modra <amodra@gmail.com>
358
359 * sysdep.h (POISON_BFD_BOOLEAN): Define.
360 * configure.ac (elf_list_options, elf_shlib_list_options=false),
361 (elf_plt_unwind_list_options=false): Replace FALSE with false,
362 and TRUE with true.
363 * emulparams/call_nop.sh, * emulparams/cet.sh,
364 * emulparams/dynamic_undefined_weak.sh,
365 * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
366 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
367 * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
368 * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
369 * emulparams/reloc_overflow.sh, * emulparams/static.sh,
370 * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
371 * emultempl/aix.em, * emultempl/alphaelf.em,
372 * emultempl/armcoff.em, * emultempl/armelf.em,
373 * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
374 * emultempl/cr16elf.em, * emultempl/crxelf.em,
375 * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
376 * emultempl/hppaelf.em, * emultempl/linux.em,
377 * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
378 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
379 * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
380 * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
381 * emultempl/pep.em, * emultempl/ppc32elf.em,
382 * emultempl/ppc64elf.em, * emultempl/rxelf.em,
383 * emultempl/rxlinux.em, * emultempl/scoreelf.em,
384 * emultempl/solaris2.em, * emultempl/spuelf.em,
385 * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
386 * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
387 * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
388 * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
389 * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
390 * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
391 * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
392 * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
393 * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
394 bfd_boolean with bool, FALSE with false, and TRUE with true.
395 * configure: Regenerate.
396
3dfb1b6d
AM
3972021-03-31 Alan Modra <amodra@gmail.com>
398
399 * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
400 * emultempl/nds32elf.em: Likewise.
401 * testsuite/ld-elf/mbind2b.c: Likewise.
402 * testsuite/ld-elf/pr18718.c: Likewise.
403 * testsuite/ld-elf/pr18720a.c: Likewise.
404 * testsuite/ld-elf/pr25749-1.c: Likewise.
405 * testsuite/ld-elf/pr25749-1a.c: Likewise.
406 * testsuite/ld-elf/pr25749-1b.c: Likewise.
407 * testsuite/ld-elf/pr25749-1c.c: Likewise.
408 * testsuite/ld-elf/pr25749-1d.c: Likewise.
409 * testsuite/ld-elf/pr25749-2.c: Likewise.
410 * testsuite/ld-elf/pr25754-1a.c: Likewise.
411 * testsuite/ld-elf/pr25754-2a.c: Likewise.
412 * testsuite/ld-elf/pr25754-3a.c: Likewise.
413 * testsuite/ld-elf/pr25754-4a.c: Likewise.
414 * testsuite/ld-elf/pr25754-5a.c: Likewise.
415 * testsuite/ld-elf/pr25754-6a.c: Likewise.
416
63b4cc53
AM
4172021-03-29 Alan Modra <amodra@gmail.com>
418
419 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
420 boolean expression.
421 * lexsup.c (parse_args): Likewise.
422 * pe-dll.c (pe_dll_id_target): Likewise.
423
8592be8c
NA
4242021-03-25 Nick Alcock <nick.alcock@oracle.com>
425
426 * testsuite/ld-ctf/array.d: Only check that the data object
427 section is nonempty: do not check its exact size.
428 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
429 * testsuite/ld-ctf/slice.d: Likewise.
430 * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
431 func info section too.
432 * testsuite/ld-ctf/function.d: Likewise, for the func info section.
433
08dedd66
ML
4342021-03-22 Martin Liska <mliska@suse.cz>
435
436 * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
437 * emultempl/beos.em: Likewise.
438 * emultempl/elf.em: Likewise.
439 * emultempl/pe.em: Likewise.
440 * emultempl/pep.em: Likewise.
441 * emultempl/xtensaelf.em: Likewise.
442 * ldctor.c (ctor_prio): Likewise.
443 * ldelf.c (ldelf_try_needed): Likewise.
444 (ldelf_parse_ld_so_conf): Likewise.
445 (ldelf_after_open): Likewise.
446 (output_rel_find): Likewise.
447 (ldelf_place_orphan): Likewise.
448 * ldfile.c (ldfile_add_library_path): Likewise.
449 * ldlang.c (lang_add_input_file): Likewise.
450 * ldmain.c (get_sysroot): Likewise.
451 (get_emulation): Likewise.
452 (add_archive_element): Likewise.
453 * ldwrite.c (unsplittable_name): Likewise.
454 (clone_section): Likewise.
455 * lexsup.c (parse_args): Likewise.
456 * pe-dll.c (is_import): Likewise.
457 (pe_implied_import_dll): Likewise.
458
1de96e5d
L
4592021-03-19 H.J. Lu <hongjiu.lu@intel.com>
460
461 PR ld/27590
462 * testsuite/ld-x86-64/pr27590.rd: New file.
463 * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
464 * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
465 * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
466
15407e7e
AM
4672021-03-20 Alan Modra <amodra@gmail.com>
468
469 PR 27590
470 * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
471 for all sections except .stabstr.
472
fba7f753
AM
4732021-03-19 Alan Modra <amodra@gmail.com>
474
475 PR 27590
476 * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
477 R_MIPS_NONE.
478 * testsuite/ld-elf/pr27590b.d: Likewise.
479
3818d4ab
L
4802021-03-18 H.J. Lu <hongjiu.lu@intel.com>
481
482 PR ld/27590
483 * testsuite/ld-elf/pr27590.s: New file.
484 * testsuite/ld-elf/pr27590a.d: Likewise.
485 * testsuite/ld-elf/pr27590b.d: Likewise.
486 * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
487 --reduce-memory-overheads.
488
51f6e7a9
L
4892021-03-18 H.J. Lu <hongjiu.lu@intel.com>
490
491 PR ld/27587
492 * testsuite/ld-x86-64/pr27587.err: New file.
493 * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
494 * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
495 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
496
69a28486
NA
4972021-03-18 Nick Alcock <nick.alcock@oracle.com>
498
499 * testsuite/ld-ctf/slice.c: Check slices of enums too.
500 * testsuite/ld-ctf/slice.d: Results adjusted.
501
ee42883c
NC
5022021-03-16 Nick Clifton <nickc@redhat.com>
503
504 * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
505 lname string.
506
c68b1842
JB
5072021-03-15 Jan Beulich <jbeulich@suse.com>
508
509 * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
510
203a206d
AM
5112021-03-12 Alan Modra <amodra@gmail.com>
512
513 * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
514 (ALL_64_EMULATION_SOURCES): ..here.
515 * Makefile.in: Regenerate.
516
1b2cb8e2
CC
5172021-03-12 Clément Chigot <clement.chigot@atos.net>
518
519 * emultempl/aix.em: Ensure .tdata section is removed
520 if empty, even with -r flag.
521 * scripttempl/aix.sc: Handle TLS sections.
522 * testsuite/ld-powerpc/aix52.exp: Add new tests.
523 * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
524 * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
525 * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
526 * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
527 * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
528 * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
529 * testsuite/ld-powerpc/aix-tls-section.ex: New test.
530 * testsuite/ld-powerpc/aix-tls-section.s: New test.
531
4a403be0
CC
5322021-03-12 Clément Chigot <clement.chigot@atos.net>
533
534 * scripttempl/aix.sc: Add .te to .data section.
535 * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
536 Add aix-largetoc-1 test.
537 * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
538 * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
539 * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
540 * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
541
68cb2183
AM
5422021-03-12 Alan Modra <amodra@gmail.com>
543
544 * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
545 arrange to define __main for some run_dump_test tests.
546 * testsuite/ld-gc/pr13683.d: Accept more symbols.
547 * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
548 * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
549 * testsuite/ld-srec/srec.exp: Likewise.
550 * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
551
ebdcad3f
NC
5522021-03-11 Nelson Chu <nelson.chu@sifive.com>
553
554 * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
555 many times if riscv_restart_relax_sections returns TRUE.
556 * testsuite/ld-riscv-elf/restart-relax.d: New testcase. Before
557 applying this patch, the call won't be relaxed to jal; But now we
558 have more chances to do relaxations.
559 * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
560 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
561
67b0f684
JB
5622021-03-10 Jan Beulich <jbeulich@suse.com>
563
564 * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
565 than 32 set bits.
566 * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
567 comment.
568 * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
569
5dc75cf3
JB
5702021-03-09 Jan Beulich <jbeulich@suse.com>
571
572 * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
573 alignment to 4k.
574 * testsuite/ld-pe/reloc.d: xfail for mcore.
575
87fa7d56
JB
5762021-03-09 Jan Beulich <jbeulich@suse.com>
577
578 * testsuite/ld-scripts/alignof.exp,
579 testsuite/ld-scripts/data.exp,
580 testsuite/ld-scripts/default-script.exp,
581 testsuite/ld-scripts/log2.exp,
582 testsuite/ld-scripts/print-memory-usage.exp,
583 testsuite/ld-scripts/sizeof.exp,
584 testsuite/ld-undefined/weak-undef.exp: Set image base to zero
585 for PE/COFF.
586 * testsuite/ld-scripts/default-script1.d,
587 testsuite/ld-scripts/default-script2.d,
588 testsuite/ld-scripts/default-script3.d,
589 testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
590
8c0546e9
L
5912021-03-05 H.J. Lu <hongjiu.lu@intel.com>
592
593 PR ld/27425
594 PR ld/27432
595 * ldelf.c (ldelf_set_output_arch): New function.
596 * ldelf.h (ldelf_set_output_arch): New prototype.
597 * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
598 ldelf_set_output_arch.
599 * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
600 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
601 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
602 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
603 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
604 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
605 * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
606 * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
607 * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
608
d4e5db4e
JB
6092021-03-04 Jan Beulich <jbeulich@suse.com>
610
611 * testsuite/ld-scripts/map-address.exp: Set image base to zero
612 for PE/COFF.
613 * testsuite/ld-scripts/map-address.t: Place .text.
614
6fa7408d
JB
6152021-03-04 Jan Beulich <jbeulich@suse.com>
616
617 * ldexp.c (ldexp_is_final_sym_absolute): New.
618 * ldexp.h (ldexp_is_final_sym_absolute): Declare.
619 * pe-dll.c (generate_reloc): Skip absolute symbols.
620 * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
621 * testsuite/ld-pe/pe.exp: Run new test.
622
5789f845
AM
6232021-03-03 Alan Modra <amodra@gmail.com>
624
625 PR 27500
626 * ldlang.c (insert_undefined): Don't mark symbols here.
627 (lang_mark_undefineds): Do so here instead, new function.
628 (lang_process): Call lang_mark_undefineds.
629 * testsuite/ld-gc/start3.d,
630 * testsuite/ld-gc/start3.s: New test.
631 * testsuite/ld-gc/start4.d,
632 * testsuite/ld-gc/start4.s: New test.
633 * testsuite/ld-gc/gc.exp: Run them.
634
270f32fc
AM
6352021-03-03 Alan Modra <amodra@gmail.com>
636
637 * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
638 Move tests with ELF section directives to is_elf_format block.
639 * testsuite/ld-gc/abi-note.d: Run on more targets.
640 * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
641 * testsuite/ld-gc/start.d: Likewise.
642 * testsuite/ld-gc/start2.d: Likewise.
643 * testsuite/ld-gc/stop.d: Likewise.
644 * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
645 * testsuite/ld-gc/start.s: Likewise.
646 * testsuite/ld-gc/start2.s: Likewise.
647
211bcd01
NA
6482021-03-02 Nick Alcock <nick.alcock@oracle.com>
649
650 * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
651
b80e421f
AM
6522021-03-02 Alan Modra <amodra@gmail.com>
653
654 * testsuite/ld-powerpc/startstop.d,
655 * testsuite/ld-powerpc/startstop.r,
656 * testsuite/ld-powerpc/startstop.s: New test.
657 * testsuite/ld-powerpc/powerpc.exp: Run it.
658
f5b9c288
AM
6592021-03-02 Alan Modra <amodra@gmail.com>
660
661 * testsuite/ld-powerpc/weak1.d,
662 * testsuite/ld-powerpc/weak1.r,
663 * testsuite/ld-powerpc/weak1.s,
664 * testsuite/ld-powerpc/weak1so.d,
665 * testsuite/ld-powerpc/weak1so.r: New tests.
666 * testsuite/ld-powerpc/powerpc.exp: Run them.
667
ba6eb62f
NC
6682021-03-01 Hannes Domani <ssbssa@sourceware.org>
669 Nick Clifton <nickc@redhat.com>
670
671 PR 27268
672 * scripttempl/pe.sc: Add DWARF-5 section names.
673 * scripttempl/pep.sc: Likewise.
674
8ee10e86
AM
6752021-03-01 Alan Modra <amodra@gmail.com>
676 Fangrui Song <maskray@google.com>
677
678 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
679 * lexsup.c (elf_static_list_options): Display help for them. Move
680 help for -z stack-size to here from elf_shlib_list_options. Add
681 help for -z start-stop-visibility and -z undefs.
682 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
683 * NEWS: Mention -z start-stop-gc.
684 * testsuite/ld-gc/start2.s,
685 * testsuite/ld-gc/start2.d: New test.
686 * testsuite/ld-gc/gc.exp: Run it.
687
7824c1d2
AM
6882021-03-01 Alan Modra <amodra@gmail.com>
689
690 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
691 symbols undefweak if that was how they were referenced. Undo
692 dynamic state too.
693
6a1224ec
AM
6942021-03-01 Alan Modra <amodra@gmail.com>
695
696 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
697 * testsuite/ld-elf/pr27128a.d: Likewise.
698 * testsuite/ld-elf/pr27128b.d: Likewise.
699 * testsuite/ld-elf/pr27128c.d: Likewise.
700 * testsuite/ld-elf/pr27128d.d: Likewise.
701 * testsuite/ld-elf/pr27128e.d: Likewise.
702
bfece756
AM
7032021-02-26 Alan Modra <amodra@gmail.com>
704
705 PR 27441
706 * testsuite/ld-plugin/pr27441a.c,
707 * testsuite/ld-plugin/pr27441b.c,
708 * testsuite/ld-plugin/pr27441c.c,
709 * testsuite/ld-plugin/pr27441c.d: New test.
710 * testsuite/ld-plugin/lto.exp: Run it.
711
3c27360b
JB
7122021-02-25 Jan Beulich <jbeulich@suse.com>
713
714 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
715
89753bbf
AM
7162021-02-21 Alan Modra <amodra@gmail.com>
717
718 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
719 defined in an object file.
720 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
721 * testsuite/ld-scripts/defined5.d: Expect a warning.
722
2f973f13
AM
7232021-02-19 Alan Modra <amodra@gmail.com>
724
725 * testsuite/lib/ld-lib.exp: Whitespace.
726 (load_common_lib): Expand single use and delete this proc.
727 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
728 Use -B for clang too.
729
a364a116
AB
7302021-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
731
732 * testplugin.c (record_read_length): Remove debug fprintf.
733
5b1f6c95
AM
7342021-02-14 Alan Modra <amodra@gmail.com>
735
736 * testsuite/ld-cdtest/cdtest.exp,
737 * testsuite/ld-checks/checks.exp,
738 * testsuite/ld-elf/binutils.exp,
739 * testsuite/ld-elf/compress.exp,
740 * testsuite/ld-elf/dwarf.exp,
741 * testsuite/ld-elf/exclude.exp,
742 * testsuite/ld-elf/frame.exp,
743 * testsuite/ld-elf/indirect.exp,
744 * testsuite/ld-elf/linux-x86.exp,
745 * testsuite/ld-elf/sec-to-seg.exp,
746 * testsuite/ld-elf/tls_common.exp,
747 * testsuite/ld-elfcomm/elfcomm.exp,
748 * testsuite/ld-elfvers/vers.exp,
749 * testsuite/ld-elfvsb/elfvsb.exp,
750 * testsuite/ld-elfweak/elfweak.exp,
751 * testsuite/ld-ifunc/binutils.exp,
752 * testsuite/ld-mips-elf/mips-elf-flags.exp,
753 * testsuite/ld-misc/defsym.exp,
754 * testsuite/ld-mn10300/mn10300.exp,
755 * testsuite/ld-plugin/lto.exp,
756 * testsuite/ld-plugin/plugin.exp,
757 * testsuite/ld-scripts/align.exp,
758 * testsuite/ld-scripts/assert.exp,
759 * testsuite/ld-scripts/crossref.exp,
760 * testsuite/ld-scripts/defined.exp,
761 * testsuite/ld-scripts/extern.exp,
762 * testsuite/ld-scripts/log2.exp,
763 * testsuite/ld-scripts/map-address.exp,
764 * testsuite/ld-scripts/phdrs.exp,
765 * testsuite/ld-scripts/phdrs2.exp,
766 * testsuite/ld-scripts/script.exp,
767 * testsuite/ld-scripts/section-flags.exp,
768 * testsuite/ld-scripts/sizeof.exp,
769 * testsuite/ld-scripts/weak.exp,
770 * testsuite/ld-selective/selective.exp,
771 * testsuite/ld-sh/sh.exp,
772 * testsuite/ld-shared/shared.exp,
773 * testsuite/ld-srec/srec.exp,
774 * testsuite/ld-tic6x/tic6x.exp,
775 * testsuite/ld-undefined/undefined.exp,
776 * testsuite/ld-undefined/weak-undef.exp,
777 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
778 perror. Instead report "unsupported" or "fail".
779
c46b7066
NC
7802021-02-12 Nick Clifton <nickc@redhat.com>
781
782 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
783 following debug links.
784
933feaf3
AM
7852021-02-11 Alan Modra <amodra@gmail.com>
786
787 * NEWS: Mention arm-symbianelf removal.
788
a57d1773
AM
7892021-02-09 Alan Modra <amodra@gmail.com>
790
791 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
792 Don't include symbian dep file.
793 * configure.tgt: Remove arm*-*-symbianelf* entry.
794 * emulparams/armsymbian.sh: Delete.
795 * ld.texi: Don't mention symbian.
796 * scripttempl/armbpabi.sc: Delete.
797 * testsuite/ld-arm/symbian-seg1.d: Delete.
798 * testsuite/ld-arm/symbian-seg1.s: Delete.
799 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
800 * Makefile.in: Regenerate.
801 * po/BLD-POTFILES.in: Regenerate.
802
38a143aa
L
8032021-02-07 H.J. Lu <hongjiu.lu@intel.com>
804
805 PR ld/27358
806 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
807 tests.
808 * testsuite/ld-x86-64/x86-64.exp: Likewise.
809
35a01a04
NA
8102021-01-26 Nick Alcock <nick.alcock@oracle.com>
811
812 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
813 when appropriate.
814
1a2f1b54
L
8152021-02-04 H.J. Lu <hongjiu.lu@intel.com>
816
817 PR ld/19609
818 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
819 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
820 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
821 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
822 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
823 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
824 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
825
37707bd8
L
8262021-02-04 H.J. Lu <hongjiu.lu@intel.com>
827
828 PR ld/15146
829 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
830 * testsuite/ld-plugin/pr15146.d: Restored.
831 * testsuite/ld-plugin/pr15146a.c: Likewise.
832 * testsuite/ld-plugin/pr15146b.c: Likewise.
833 * testsuite/ld-plugin/pr15146c.c: Likewise.
834 * testsuite/ld-plugin/pr15146d.c: Likewise.
835
7d409ac0
AM
8362021-02-04 Alan Modra <amodra@gmail.com>
837
838 * testsuite/ld-plugin/pr27311d.c: New test.
839 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
840 and link new test as pr27311-2.
841
69551367
AM
8422021-02-03 Alan Modra <amodra@gmail.com>
843
844 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
845 Link with --as-needed.
846
9918bff7
AM
8472021-02-02 Alan Modra <amodra@gmail.com>
848
849 * testsuite/ld-plugin/pr27311.d,
850 * testsuite/ld-plugin/pr27311.ver,
851 * testsuite/ld-plugin/pr27311a.c,
852 * testsuite/ld-plugin/pr27311b.c,
853 * testsuite/ld-plugin/pr27311c.c: New testcase.
854 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
855 PR12982 entries.
856
1f568f9a
EH
8572021-02-01 Emery Hemingway <ehmry@posteo.net>
858
859 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
860
fb6c220e
AM
8612021-02-01 Alan Modra <amodra@gmail.com>
862
863 * ldgram.y (defsym_expr): Use assignment rule.
864 * ldlex.h (ldlex_defsym): Delete.
865 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
866
40726f16
AM
8672021-02-01 Alan Modra <amodra@gmail.com>
868
869 * ldgram.y (section): Call ldlex_backup. Remove empty action.
870 * ldlex.h (ldlex_backup): Declare.
871 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
872 chars, use SYMBOLNAMECHAR.
873 (ldlex_backup): New function.
874
a5f92c67
AM
8752021-02-01 Alan Modra <amodra@gmail.com>
876
877 * ldgram.y: Whitespace fixes.
878
49daa38f
AM
8792021-02-01 Alan Modra <amodra@gmail.com>
880
881 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
882
c4566785
AM
8832021-01-29 Alan Modra <amodra@gmail.com>
884
885 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
886
53e556e5
L
8872021-01-28 H.J. Lu <hongjiu.lu@intel.com>
888
889 PR ld/27259
890 * testsuite/ld-elf/pr27259.d: New file.
891 * testsuite/ld-elf/pr27259.s: Likewise.
892
def97fb9
AM
8932021-01-28 Alan Modra <amodra@gmail.com>
894
895 PR 27259
896 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
897 prevent endless looping of linked-to sections.
898
2eda57ef
L
8992021-01-26 H.J. Lu <hongjiu.lu@intel.com>
900
901 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
902
1c9c9b9b
AM
9032021-01-26 Alan Modra <amodra@gmail.com>
904
905 PR 27226
906 * emulparams/alphavms.sh: Don't set COMPILE_IN.
907 * emulparams/elf64_ia64_vms.sh: Likewise.
908 * emulparams/elf64mmix.sh: Likewise.
909 * emulparams/elf_iamcu.sh: Likewise.
910 * emulparams/elf_k1om.sh: Likewise.
911 * emulparams/elf_l1om.sh: Likewise.
912 * emulparams/mmo.sh: Likewise.
913 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
914 * scripttempl/pdp11.sc: Use it.
915 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
916 instead use .xe script. Support scripts from file system.
917 * emultempl/beos.em: Support scripts from file system.
918 * emultempl/pe.em: Likewise.
919 * emultempl/pep.em: Likewise.
920 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
921
9e42b976
FS
9222021-01-25 Fangrui Song <maskray@google.com>
923
924 PR ld/27230
925 * scripttempl/DWARF.sc: Add .debug_* sections.
926
b8df6900
NC
9272021-01-25 Nick Clifton <nickc@redhat.com>
928
929 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
930 .debug_line_str and .debug_str_offsets. Move .debug_macro and
931 .debug_addr into DWARF-5 section.
932
c78eec44
AM
9332021-01-21 Alan Modra <amodra@gmail.com>
934
935 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
936
4bd7c902
AM
9372021-01-20 Alan Modra <amodra@gmail.com>
938
939 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
940 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
941 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
942 * testsuite/ld-powerpc/tlsget.wf: Likewise.
943 * testsuite/ld-powerpc/tlsget2.d: Likewise.
944 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
945 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
946 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
947 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
948 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
949 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
950 * testsuite/ld-powerpc/tlsexers.r: Likewise.
951 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
952 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
953 * testsuite/ld-powerpc/tlsso.r: Likewise.
954 * testsuite/ld-powerpc/tlsso32.r: Likewise.
955 * testsuite/ld-powerpc/tlstocso.r: Likewise.
956
c98de297
NA
9572021-01-19 Nick Alcock <nick.alcock@oracle.com>
958
959 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
960 symbols by the optimizer.
961 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
962
85e963f1
NC
9632021-01-19 Nelson Chu <nelson.chu@sifive.com>
964
965 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
966 if target is riscv little endian. Otherwise, return false.
967 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
968 targets by [riscv_little_endian].
969
326adec3
AM
9702021-01-18 Alan Modra <amodra@gmail.com>
971
972 PR 26378
973 * ldlang.c (map_input_to_output_sections): Start with a read-only
974 section for data statements.
975 * testsuite/ld-elf/size-2.d: Adjust to suit.
976
994b2513
L
9772021-01-17 H.J. Lu <hongjiu.lu@intel.com>
978
979 PR ld/27193
980 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
981 * testsuite/ld-i386/pr27193.dd: New file.
982 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
983 * testsuite/ld-i386/pr27193b.s: Likewise.
984
edf0f284
L
9852021-01-16 H.J. Lu <hongjiu.lu@intel.com>
986
987 PR binutils/23460
988 * testsuite/ld-plugin/lto.exp: Increase the max number of open
989 files to 20 for PR binutils/23460 test.
990
75a933f3
L
9912021-01-16 H.J. Lu <hongjiu.lu@intel.com>
992
993 PR ld/23169
994 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
995 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
996 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
997 address.
998
68b00778
L
9992021-01-15 H.J. Lu <hongjiu.lu@intel.com>
1000
1001 * NEWS: Mention -z report-relative-reloc.
1002 * ld.texi: Document -z report-relative-reloc.
1003 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
1004 * emulparams/elf_i386.sh: Likewse.
1005 * emulparams/elf_x86_64.sh: Likewse.
1006 * emulparams/x86-report-relative.sh: New file.
1007 * testsuite/ld-i386/report-reloc-1.d: Likewse.
1008 * testsuite/ld-i386/report-reloc-1.l: Likewse.
1009 * testsuite/ld-i386/report-reloc-1.s: Likewse.
1010 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
1011 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
1012 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
1013 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
1014 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
1015 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
1016 report-reloc-1-x32.
1017
eb6e6af8
AM
10182021-01-16 Alan Modra <amodra@gmail.com>
1019
1020 PR 26002
1021 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
1022 unversioned symbols.
1023 * testsuite/ld-elfvers/vers16.dsym: Likewise.
1024
b800637e
NC
10252021-01-15 Nelson Chu <nelson.chu@sifive.com>
1026
1027 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
1028 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
1029 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
1030 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
1031 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
1032 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
1033
5a10699f
NC
10342021-01-14 Nick Clifton <nickc@redhat.com>
1035
1036 * po/fr.po: Updated French translation.
1037
271bea6a
MF
10382021-01-14 Mike Frysinger <vapier@gentoo.org>
1039
1040 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
1041
4120e488
AM
10422021-01-14 Alan Modra <amodra@gmail.com>
1043
1044 PR 27160
1045 * ldelfgen.c (compare_link_order): Protect access of ELF section
1046 data.
1047 (add_link_order_input_section): Remove redundant NULL check.
1048 Use bfd_get_flavour.
1049 (ldelf_map_segments): Use bfd_get_flavour.
1050
b634d11d
L
10512021-01-13 H.J. Lu <hongjiu.lu@intel.com>
1052
1053 * ldelfgen.c (add_link_order_input_section): Check for ELF input
1054 before accessing ELF section data.
1055
5347ed60
AM
10562021-01-13 Alan Modra <amodra@gmail.com>
1057
1058 * Makefile.in: Regenerate.
1059
b209b5a6
AM
10602021-01-13 Alan Modra <amodra@gmail.com>
1061
1062 PR 27160
1063 * ldlang.h (lang_output_section_statement_type): Add data field.
1064 (lang_input_section_type, lang_section_bst_type): Add pattern field.
1065 (statement_list): Declare.
1066 (lang_add_section): Adjust prototype.
1067 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
1068 * emultempl/armelf.em: Likewise.
1069 * emultempl/beos.em: Likewise.
1070 * emultempl/cskyelf.em: Likewise.
1071 * emultempl/hppaelf.em: Likewise.
1072 * emultempl/m68hc1xelf.em: Likewise.
1073 * emultempl/metagelf.em: Likewise.
1074 * emultempl/mipself.em: Likewise.
1075 * emultempl/mmo.em: Likewise.
1076 * emultempl/msp430.em: Likewise.
1077 * emultempl/nios2elf.em: Likewise.
1078 * emultempl/pe.em: Likewise.
1079 * emultempl/pep.em: Likewise.
1080 * emultempl/ppc64elf.em: Likewise.
1081 * emultempl/spuelf.em: Likewise.
1082 * emultempl/vms.em: Likewise.
1083 * ldelf.c: Likewise.
1084 * ldelfgen.c: Include ldctor.h.
1085 (struct os_sections): New.
1086 (add_link_order_input_section, link_order_scan): New functions.
1087 (compare_link_order, fixup_link_order): New functions.
1088 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
1089 * ldlang.c (statement_list): Make global.
1090 (output_section_callback_fast): Save pattern in tree node.
1091 (lang_add_section): Add pattern parameter, save in lang_input_section.
1092 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
1093 (lang_insert_orphan, output_section_callback): Likewise.
1094 (ldlang_place_orphan): Likewise.
1095 (gc_section_callback): Don't set section->pattern.
1096 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
1097 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1098 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
1099
8c4645b4
AM
11002021-01-13 Alan Modra <amodra@gmail.com>
1101
1102 * ldlang.h (callback_t): Remove flag_info function parameter.
1103 * ldlang.c (walk_wild_consider_section): Adjust to suit.
1104 (walk_wild_section_general): Likewise.
1105 (output_section_callback_fast, output_section_callback): Likewise.
1106 (check_section_callback, gc_section_callback): Likewise.
1107 (find_relro_section_callback): Likewise.
1108
d546b610
L
11092021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1110
1111 PR binutils/26792
1112 * configure.ac: Use GNU_MAKE_JOBSERVER.
1113 * aclocal.m4: Regenerated.
1114 * configure: Likewise.
1115
c2e9a4a3
L
11162021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1117
1118 PR ld/27171
1119 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
1120 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1121 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1122 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
1123
83b33c6c
L
11242021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1125
1126 PR ld/27173
1127 * configure: Regenerated.
1128
c0f6e439
MJ
11292021-01-11 Matt Jenkins <matt@majenko.co.uk>
1130
1131 PR ld/27167
1132 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
1133 and mips64r5 to list of known mips targets.
1134
11352021-01-11 Nick Clifton <nickc@redhat.com>matt@majenko.co.uk
a8aa72b9
NC
1136
1137 * po/pt_BR.po: Updated Brazilian Portuguese translation.
1138` * po/uk.po: Updated Ukranian translation.
1139
a4966cd9
L
11402021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1141
1142 * configure: Regenerated.
1143
0a94990b
L
11442021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1145
1146 PR ld/27166
1147 * testsuite/ld-x86-64/lam-u48.rd: New file.
1148 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
1149 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
1150
573fe3fb
NC
11512021-01-09 Nick Clifton <nickc@redhat.com>
1152
1153 * configure: Regenerate.
1154 * po/ld.pot: Regenerate.
1155
055bc77a
NC
11562021-01-09 Nick Clifton <nickc@redhat.com>
1157
1158 * 2.36 release branch crated.
1159
ba9e922f
L
11602021-01-08 H.J. Lu <hongjiu.lu@intel.com>
1161
1162 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
1163 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
1164
64307045
AM
11652021-01-09 Alan Modra <amodra@gmail.com>
1166
1167 * configure: Regenerate.
1168 * Makefile.in: Regenerate.
1169
f4782128
ST
11702021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1171
1172 * configure: Regenerate.
1173
d1bcae83
L
11742021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1175
1176 PR 27109
1177 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
1178 * testsuite/ld-elf/loadaddr3b.d: Likewise.
1179 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1180 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1181 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1182 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1183 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1184 * testsuite/ld-i386/pr19636-1d.d: Likewise.
1185 * testsuite/ld-i386/pr19636-1l.d: Likewise.
1186 * testsuite/ld-i386/pr19636-2c.d: Likewise.
1187 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1188 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1189 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1190 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1191 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1192 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1193 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1194 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1195 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1196 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1197 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1198 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1199 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1200 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1201 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1202 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1203 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1204 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1205 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1206 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1207 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1208 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1209 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1210 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1211 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1212 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1213 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
1214 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
1215 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
1216 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
1217 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
1218 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
1219 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1220 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
1221 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1222 * testsuite/ld-x86-64/pr21038b.d: Likewise.
1223 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1224 * testsuite/ld-x86-64/pr21038c.d: Likewise.
1225 * testsuite/ld-x86-64/pr23854.d: Likewise.
1226 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1227 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1228 * testsuite/ld-i386/plt-pic.pd: Likewise.
1229 * testsuite/ld-i386/plt-pic2.dd: Likewise.
1230 * testsuite/ld-i386/plt.pd: Likewise.
1231 * testsuite/ld-i386/plt2.dd: Likewise.
1232 * testsuite/ld-i386/tlsbin.rd: Likewise.
1233 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1234 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1235 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1236 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
1237 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1238 * testsuite/ld-i386/tlspic.rd: Likewise.
1239 * testsuite/ld-i386/tlspic2.rd: Likewise.
1240 * testsuite/ld-x86-64/mpx3.dd: Likewise.
1241 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
1242 * testsuite/ld-x86-64/mpx4.dd: Likewise.
1243 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
1244 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
1245 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1246 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1247 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1248 * testsuite/ld-x86-64/plt.pd: Likewise.
1249 * testsuite/ld-x86-64/plt2.dd: Likewise.
1250 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1251 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1252 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1253 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1254 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
1255 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1256 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1257 * testsuite/ld-elf/sec64k.exp: Check
1258 is_elf_unused_section_symbols.
1259
dc200613
AM
12602021-01-07 Alan Modra <amodra@gmail.com>
1261
1262 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
1263 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
1264 * testsuite/ld-scripts/segment-start.d: Likewise.
1265
8e604ff0
AM
12662021-01-07 Alan Modra <amodra@gmail.com>
1267
1268 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
1269 about dynamic relocations in read-only sections.
1270 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1271 * testsuite/ld-elf/ehdr_start.d: Likewise.
1272 * testsuite/ld-scripts/pr22267.d: Likewise.
1273 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
1274 pr20995 text.
1275 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
1276
4d4490b8
MC
12772021-01-07 Marcus Comstedt <marcus@mc.pp.se>
1278
1279 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
1280 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
1281
f526791a
AM
12822021-01-07 Alan Modra <amodra@gmail.com>
1283
1284 * po/BLD-POTFILES.in: Regenerate.
1285
4018f4e0
AM
12862021-01-07 Alan Modra <amodra@gmail.com>
1287
1288 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
1289 complain about relocs in read-only sections. Tidy ASFLAGS append.
1290
3677b729
AM
12912021-01-06 Alan Modra <amodra@gmail.com>
1292
1293 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
1294 base for some tests.
1295 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
1296 * testsuite/ld-sparc/gotop32.sd: Likewise.
1297 * testsuite/ld-sparc/gotop32.td: Likewise.
1298 * testsuite/ld-sparc/gotop64.dd: Likewise.
1299 * testsuite/ld-sparc/gotop64.sd: Likewise.
1300 * testsuite/ld-sparc/gotop64.td: Likewise.
1301 * testsuite/ld-sparc/tlsg32.sd: Likewise.
1302 * testsuite/ld-sparc/tlsg64.sd: Likewise.
1303 * testsuite/ld-sparc/tlspie32.dd: Likewise.
1304 * testsuite/ld-sparc/tlspie64.dd: Likewise.
1305 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
1306 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
1307 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
1308 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
1309 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
1310 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
1311 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
1312 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
1313 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
1314 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
1315 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
1316 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
1317 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
1318 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
1319 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
1320 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
1321 * testsuite/ld-sparc/wdispcall.dd: Likewise.
1322
73624512
AM
13232021-01-06 Alan Modra <amodra@gmail.com>
1324
1325 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
1326 * testsuite/ld-scripts/rgn-at11.d: Likewise.
1327
f36ce378
MC
13282021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1329
1330 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
1331 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
1332 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
1333 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
1334 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1335 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1336 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1337 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
1338 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
1339 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
1340 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
1341 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
1342 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
1343 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
1344 to littleriscv.
1345 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
1346
fbc09e7a
MC
13472021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1348
1349 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
1350 riscv32be*-*-linux*, and riscv64be*-*-linux*.
1351 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
1352 eelf32briscv_ilp32.c.
1353 * Makefile.in: Regenerate.
1354 * emulparams/elf32briscv.sh: Added.
1355 * emulparams/elf32briscv_ilp32.sh: Likewise.
1356 * emulparams/elf32briscv_ilp32f.sh: Likewise.
1357 * emulparams/elf64briscv.sh: Likewise.
1358 * emulparams/elf64briscv_lp64.sh: Likewise.
1359 * emulparams/elf64briscv_lp64f.sh: Likewise.
1360
b4b6ea46
NA
13612021-01-05 Nick Alcock <nick.alcock@oracle.com>
1362
1363 * testsuite/ld-ctf/enum-forward.c: New test.
1364 * testsuite/ld-ctf/enum-forward.c: New results.
1365
37002871
NA
13662021-01-05 Nick Alcock <nick.alcock@oracle.com>
1367
1368 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1369 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1370 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1371 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1372 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1373 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1374 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1375 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1376 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1377 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1378 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1379 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1380 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1381 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1382 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1383 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1384 * testsuite/ld-ctf/cycle-1.d: Likewise.
1385 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1386 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1387 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1388 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1389 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1390 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1391 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1392 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1393 * testsuite/ld-ctf/forward.d: Likewise.
1394 * testsuite/ld-ctf/function.d: Likewise.
1395 * testsuite/ld-ctf/slice.d: Likewise.
1396 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1397 * testsuite/ld-ctf/enums.c: New test.
1398 * testsuite/ld-ctf/enums.d: New test.
1399
ffeece6a
NA
14002021-01-05 Nick Alcock <nick.alcock@oracle.com>
1401
1402 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
1403 changes.
1404 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1405 * testsuite/ld-ctf/forward.c: New test...
1406 * testsuite/ld-ctf/forward.d: ... and results.
1407
91e7ce2f
NA
14082021-01-05 Nick Alcock <nick.alcock@oracle.com>
1409
1410 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1411 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1412 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1413 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1414 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1415 * testsuite/ld-ctf/function.d: Likewise.
1416 * testsuite/ld-ctf/slice.d: Likewise.
1417
57f97d0e
NA
14182021-01-05 Nick Alcock <nick.alcock@oracle.com>
1419
1420 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1421 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1422 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1423 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1424 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1425 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1426 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1427 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1428 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1429 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1430 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1431 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1432 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1433 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1434 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1435 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1436 * testsuite/ld-ctf/cycle-1.d: Likewise.
1437 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1438 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1439 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1440 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1441 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1442 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1443 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1444 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1445 * testsuite/ld-ctf/function.d: Likewise.
1446 * testsuite/ld-ctf/slice.d: Likewise.
1447 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1448
b281a04f
AM
14492021-01-05 Alan Modra <amodra@gmail.com>
1450
1451 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
1452
40b11930
AM
14532021-01-05 Alan Modra <amodra@gmail.com>
1454
1455 PR ld/26256
1456 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
1457 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
1458
cd6d537c
L
14592021-01-04 H.J. Lu <hongjiu.lu@intel.com>
1460
1461 PR ld/26256
1462 * ldlang.c (gc_section_callback): Set pattern.
1463 * testsuite/ld-elf/pr26256-1.s: New file.
1464 * testsuite/ld-elf/pr26256-1.t: Likewise.
1465 * testsuite/ld-elf/pr26256-1a.d: Likewise.
1466 * testsuite/ld-elf/pr26256-1b.d: Likewise.
1467 * testsuite/ld-elf/pr26256-2.s: Likewise.
1468 * testsuite/ld-elf/pr26256-2.t: Likewise.
1469 * testsuite/ld-elf/pr26256-2a.d: Likewise.
1470 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
1471 * testsuite/ld-elf/pr26256-2b.d: Likewise.
1472 * testsuite/ld-elf/pr26256-3.s: Likewise.
1473 * testsuite/ld-elf/pr26256-3a.d: Likewise.
1474 * testsuite/ld-elf/pr26256-3a.t: Likewise.
1475 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1476 * testsuite/ld-elf/pr26256-3b.t: Likewise.
1477
5b4293ba
AM
14782021-01-04 Alan Modra <amodra@gmail.com>
1479
1480 PR 26822
1481 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
1482 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
1483 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
1484 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
1485 * testsuite/ld-i386/tlsbin.rd: Likewise.
1486 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1487 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1488 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1489 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1490 * testsuite/ld-i386/tlspic.rd: Likewise.
1491 * testsuite/ld-i386/tlspic2.rd: Likewise.
1492 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
1493 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
1494 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
1495 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
1496 * testsuite/ld-plugin/pr17973.d: Likewise.
1497 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
1498 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
1499 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
1500 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
1501 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
1502 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
1503 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
1504 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
1505 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
1506 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
1507 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
1508 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
1509 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
1510 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1511 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1512 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1513 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1514 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1515 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1516 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
1517 * testsuite/ld-xtensa/tlspic.rd: Likewise.
1518
f9a6a8f0
AM
15192021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1520
1521 * configure.tgt: Correct comment grammar.
1522 * emultempl/m68hc1xelf.em: Likewise.
1523 * ld.texi: Correct grammar.
1524
250d07de
AM
15252021-01-01 Alan Modra <amodra@gmail.com>
1526
1527 Update year range in copyright notice of all files.
1528
c2795844 1529For older changes see ChangeLog-2020
3499769a 1530\f
c2795844 1531Copyright (C) 2021 Free Software Foundation, Inc.
3499769a
AM
1532
1533Copying and distribution of this file, with or without modification,
1534are permitted in any medium without royalty provided the copyright
1535notice and this notice are preserved.
1536
1537Local Variables:
1538mode: change-log
1539left-margin: 8
1540fill-column: 74
1541version-control: never
1542End: