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