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