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