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