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