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