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