1 2021-11-15 Roland McGrath <mcgrathr@google.com>
3 * testsuite/ld-aarch64/dt_textrel.d: Pass explicit -z notext in
4 case ld was configured with --enable-textrel-check=error.
5 * testsuite/ld-aarch64/pr22764.d: Likewise.
6 * testsuite/ld-aarch64/pr20402.d: Likewise.
8 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
10 * testsuite/ld-ctf/nonrepresentable-member.*: New test.
12 2021-10-25 Nick Alcock <nick.alcock@oracle.com>
14 * testsuite/ld-ctf/array.d: Change --ctf=.ctf to --ctf.
15 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
16 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
17 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
18 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
19 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
20 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
21 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
22 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
23 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
24 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
25 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
26 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
27 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
28 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
29 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
30 * testsuite/ld-ctf/cycle-1.d: Likewise.
31 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
32 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
33 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
34 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
35 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
36 * testsuite/ld-ctf/diag-cuname.d: Likewise.
37 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
38 * testsuite/ld-ctf/enum-forward.d: Likewise.
39 * testsuite/ld-ctf/enums.d: Likewise.
40 * testsuite/ld-ctf/forward.d: Likewise.
41 * testsuite/ld-ctf/function.d: Likewise.
42 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
43 * testsuite/ld-ctf/slice.d: Likewise.
44 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
46 2021-09-30 Dimitar Dimitrov <dimitar@dinux.eu>
48 * scripttempl/pru.sc (.resource_table): Align the output
49 section, not the first symbol.
51 2021-09-27 Nick Alcock <nick.alcock@oracle.com>
53 * configure: Regenerate.
55 2021-09-21 Nick Clifton <nickc@redhat.com>
57 * ldlang.c (lang_end): When computing the entry point, only
58 try the start address of the entry section when creating an
60 * ld.texi (Entry point): Update description of heuristic used to
61 choose the entry point.
62 testsuite/ld-alpha/tlspic.rd: Update expected entry point address.
63 testsuite/ld-arm/tls-gdesc-got.d: Likewise.
64 testsuite/ld-i386/tlsnopic.rd: Likewise.
65 testsuite/ld-ia64/tlspic.rd: Likewise.
66 testsuite/ld-sparc/gotop32.rd: Likewise.
67 testsuite/ld-sparc/gotop64.rd: Likewise.
68 testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
69 testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
70 testsuite/ld-sparc/tlssunpic32.rd: Likewise.
71 testsuite/ld-sparc/tlssunpic64.rd: Likewise.
72 testsuite/ld-tic6x/shlib-1.rd: Likewise.
73 testsuite/ld-tic6x/shlib-1b.rd: Likewise.
74 testsuite/ld-tic6x/shlib-1r.rd: Likewise.
75 testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
76 testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
77 testsuite/ld-x86-64/pr14207.d: Likewise.
78 testsuite/ld-x86-64/tlsdesc.rd: Likewise.
79 testsuite/ld-x86-64/tlspic.rd: Likewise.
80 testsuite/ld-x86-64/tlspic2.rd: Likewise.
82 2021-09-15 Claudiu Zissulescu <claziss@synopsys.com>
84 * testsuite/ld-arc/got-weak.d: Update file.
86 2021-09-14 Claudiu Zissulescu <claziss@synopsys.com>
88 * ld-arc/got-weak.d: New file.
89 * ld-arc/got-weak.s: Likewise.
91 2021-07-26 Roland McGrath <mcgrathr@google.com>
93 * testsuite/ld-x86-64/x86-64.exp (Build textrel-1): Use --warn-textrel.
95 2021-07-06 Michael Matz <matz@suse.de>
98 * testsuite/ld-riscv-elf/relax-twice.ver: New.
99 * testsuite/ld-riscv-elf/relax-twice-1.s: New.
100 * testsuite/ld-riscv-elf/relax-twice-2.s: New.
101 * testsuite/ld-riscv-elf/ld-riscv-elf.exp
102 (run_relax_twice_test): New, and call it.
104 2021-07-03 Nick Clifton <nickc@redhat.com>
106 * configure: Regenerate.
107 * po/ld.pot: Regenerate.
109 2021-07-03 Nick Clifton <nickc@redhat.com>
111 * 2.37 release branch created.
113 2021-06-22 Nelson Chu <nelson.chu@sifive.com>
115 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
116 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.d: New testcase.
117 * testsuite/ld-riscv-elf/pcrel-lo-addend-3a.s: Likewise.
118 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.d: New testcase.
119 Should report error since the %pcrel_lo with addend refers to
121 * testsuite/ld-riscv-elf/pcrel-lo-addend-3b.s: Likewise.
122 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.d: New testcase.
123 Should report error since the %got_pcrel_hi with addend.
124 * testsuite/ld-riscv-elf/pcrel-lo-addend-3c.s: Likewise.
125 * testsuite/ld-riscv-elf/pcrel-lo-addend-3.ld: Likewise.
127 2021-06-19 H.J. Lu <hongjiu.lu@intel.com>
130 * testsuite/ld-i386/i386.exp: Run PR ld/27998 tests.
131 * testsuite/ld-i386/pr27998a.d: New file.
132 * testsuite/ld-i386/pr27998a.s: Likewise.
133 * testsuite/ld-i386/pr27998b.d: Likewise.
134 * testsuite/ld-i386/pr27998b.s: Likewise.
136 2021-06-19 H.J. Lu <hongjiu.lu@intel.com>
138 * testsuite/ld-x86-64/textrel-1.err: New file.
139 * testsuite/ld-x86-64/textrel-1a.s: Likewise.
140 * testsuite/ld-x86-64/textrel-1b.s: Likewise.
141 * testsuite/ld-x86-64/x86-64.exp: Run textrel-1 tests.
143 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
145 * testsuite/ld-elf/property-and-1.d: Skip am33_2.0, hppa-hpux
147 Pass --generate-missing-build-notes=no to assembler. Allow
148 other note sections for xtensa.
149 * testsuite/ld-elf/property-and-2.d: Likewise.
150 * testsuite/ld-elf/property-and-3.d: Likewise.
151 * testsuite/ld-elf/property-and-4.d: Likewise.
152 * testsuite/ld-elf/property-or-1.d: Likewise.
153 * testsuite/ld-elf/property-or-2.d: Likewise.
154 * testsuite/ld-elf/property-or-3.d: Likewise.
155 * testsuite/ld-elf/property-or-4.d: Likewise.
157 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
159 * ld.texi: Move -z unique-symbol after -z undefs.
161 2021-06-18 H.J. Lu <hongjiu.lu@intel.com>
163 * testsuite/ld-elf/property-and-1.d: New file.
164 * testsuite/ld-elf/property-and-1.s: Likewise.
165 * testsuite/ld-elf/property-and-2.d: Likewise.
166 * testsuite/ld-elf/property-and-2.s: Likewise.
167 * testsuite/ld-elf/property-and-3.d: Likewise.
168 * testsuite/ld-elf/property-and-3.s: Likewise.
169 * testsuite/ld-elf/property-and-4.d: Likewise.
170 * testsuite/ld-elf/property-and-empty.s: Likewise.
171 * testsuite/ld-elf/property-or-1.d: Likewise.
172 * testsuite/ld-elf/property-or-1.s: Likewise.
173 * testsuite/ld-elf/property-or-2.d: Likewise.
174 * testsuite/ld-elf/property-or-2.s: Likewise.
175 * testsuite/ld-elf/property-or-3.d: Likewise.
176 * testsuite/ld-elf/property-or-3.s: Likewise.
177 * testsuite/ld-elf/property-or-4.d: Likewise.
178 * testsuite/ld-elf/property-or-empty.s: Likewise.
180 2021-06-17 H.J. Lu <hongjiu.lu@intel.com>
183 * testsuite/ld-x86-64/x86-64.exp: Pass $NOPIE_LDFLAGS and
184 $NOPIE_CFLAGS to protected-func-1 without PIE.
186 2021-06-17 H.J. Lu <hongjiu.lu@intel.com>
189 * testsuite/ld-x86-64/x86-64.exp: Run protected function tests.
190 * testsuite/ld-x86-64/protected-func-1.h: New file.
191 * testsuite/ld-x86-64/protected-func-1a.s: Likewise.
192 * testsuite/ld-x86-64/protected-func-1b.c: Likewise.
194 2021-06-17 Fangrui Song <maskray@google.com>
196 * ldlex.h (enum option_values): Add OPTION_NO_PIE.
197 * lexsup.c (struct ld_options): Add -no-pie.
198 (parse_args): Handle -no-pie.
199 * ld.texi: Document -no-pie.
201 2021-06-15 Alan Modra <amodra@gmail.com>
203 * testsuite/ld-pie/vaddr-0.d: Update expected output.
205 2021-06-11 Alan Modra <amodra@gmail.com>
208 * ldelf.c (ldelf_after_open): Error on input PIEs too.
210 2021-06-09 Nick Clifton <nickc@redhat.com>
213 * testsuite/ld-sparc/sparc.exp: Do not run the sparctests or
214 sparc64tests for Solaris2 targets.
216 2021-06-03 Alan Modra <amodra@gmail.com>
219 * ld.texi (link-time runtime library search path): Mention
220 plugin library path. Correct order of search.
222 2021-05-31 Nelson Chu <nelson.chu@sifive.com>
223 Lifang Xia <lifang_xia@c-sky.com>
226 * emultempl/riscvelf.em (after_allocation): Call
227 riscv_set_data_segment_info to set data segment phase before relaxing.
228 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
229 * testsuite/ld-riscv-elf/relro-relax-lui.d: New testcase.
230 * testsuite/ld-riscv-elf/relro-relax-lui.s: Likewise.
231 * testsuite/ld-riscv-elf/relro-relax-pcrel.d: Likewise.
232 * testsuite/ld-riscv-elf/relro-relax-pcrel.s: Likewise.
234 2021-05-28 H.J. Lu <hongjiu.lu@intel.com>
237 * testsuite/ld-i386/pcrel16-2.d: xfail.
238 * testsuite/ld-x86-64/pcrel16-2.d: Likewise.
240 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
243 * testsuite/ld-i386/code16.d: New file.
244 * testsuite/ld-i386/code16.t: Likewise.
245 * testsuite/ld-x86-64/code16.d: Likewise.
246 * testsuite/ld-x86-64/code16.t: Likewise.
247 * testsuite/ld-i386/i386.exp: Run code16.
248 * testsuite/ld-x86-64/x86-64.exp: Likewise.
250 2021-05-26 H.J. Lu <hongjiu.lu@intel.com>
252 * testsuite/ld-x86-64/ilp32-12.d: New file.
253 * testsuite/ld-x86-64/ilp32-12.s: Likewise.
254 * testsuite/ld-x86-64/x86-64.exp: Run ilp32-12.
256 2021-05-14 Nelson Chu <nelson.chu@sifive.com>
258 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
259 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.d: Renamed from
261 * testsuite/ld-riscv-elf/pcrel-lo-addend-2a.s: Likewise.
262 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.d: New testcase.
263 * testsuite/ld-riscv-elf/pcrel-lo-addend-2b.s: Likewise.
265 2021-05-13 Fangrui Song <maskray@google.com>
268 * ldlex.h (enum option_values): Add OPTION_NO_SYMBOLIC.
269 * lexsup.c (ld_options): Add -Bno-symbolic.
270 (parse_args): Handle -Bno-symbolic.
271 * ld.texi: Document -Bno-symbolic.
272 * NEWS: Mention -Bno-symbolic.
273 * testsuite/ld-elf/shared.exp: Add a test.
275 2021-05-12 Richard Earnshaw <rearnsha@arm.com>
277 * testsuite/ld-arm/arm-elf.exp (farcall test for v8-m.mainline):
278 Correct expected output.
280 2021-05-11 Roland McGrath <mcgrathr@google.com>
282 * testsuite/ld-x86-64/rela.d: Fix regexp not to presume a specific
283 address layout, so it works for e.g. --target=x86-64-elf.
285 2021-05-11 Nick Clifton <nickc@redhat.com>
288 * Makefile.am (install-data-local): Also delete libdep.dll.a if it
290 * Makefile.in: Regenerate.
292 2021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
294 * testsuite/ld-elf/group8a.d: Remove pru from XFAIL list.
295 * testsuite/ld-elf/group8b.d: Ditto.
296 * testsuite/ld-elf/group9a.d: Ditto.
297 * testsuite/ld-elf/group9b.d: Ditto.
298 * testsuite/ld-elf/pr12851.d: Ditto.
299 * testsuite/ld-elf/pr22677.d: Ditto.
300 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Remove
303 2021-05-10 Dimitar Dimitrov <dimitar@dinux.eu>
305 * scripttempl/pru.sc (.resource_table): Add ALIGN directive.
306 Use symbols for memory sizes.
308 2021-05-08 Mike Frysinger <vapier@gentoo.org>
310 * Makefile.am (html-local, doc/ld/index.html): New targets.
311 * Makefile.in: Regenerate.
313 2021-05-08 Mike Frysinger <vapier@gentoo.org>
315 * Makefile.am (AM_MAKEINFOFLAGS): Add --no-split.
316 * Makefile.in: Regenerate.
318 2021-05-07 Jan Beulich <jbeulich@suse.com>
320 * testsuite/ld-x86-64/rela.d: New.
321 * testsuite/ld-x86-64/x86-64.exp: Run new test.
323 2021-05-07 Nick Clifton <nickc@redhat.com>
325 * ldelfgen.c (compare_link_order): Ignore section size when
326 performing a relocateable link.
328 2021-05-07 Alan Modra <amodra@gmail.com>
330 * ldexp.c (update_definedness): Don't return false for absolute
332 * ldmain.c (multiple_definition): Print "warning: " in message
333 when not a hard error.
335 2021-05-07 Alan Modra <amodra@gmail.com>
337 * testsuite/ld-elf/pr27825-1.d: Correct xfail.
338 * testsuite/ld-elf/pr27825-2.d: Likewise.
340 2021-05-06 Stafford Horne <shorne@gmail.com>
343 testsuite/ld-or1k/or1k.exp (or1kplttests): Add tests for linking
344 along with gotha() relocations.
345 testsuite/ld-or1k/gotha1.dd: New file.
346 testsuite/ld-or1k/gotha1.s: New file.
347 testsuite/ld-or1k/gotha2.dd: New file.
348 testsuite/ld-or1k/gotha2.s: New file
349 testsuite/ld-or1k/pltlib.s (x): Define size to avoid link
352 2021-05-06 Nick Alcock <nick.alcock@oracle.com>
354 * testsuite/ld-ctf/ctf.exp: Use -gctf, not -gt.
355 * testsuite/lib/ld-lib.exp: Likewise.
356 * testsuite/ld-ctf/nonrepresentable-1.c: New test for nonrepresentable types.
357 * testsuite/ld-ctf/nonrepresentable-2.c: Likewise.
358 * testsuite/ld-ctf/nonrepresentable.d: Likewise.
359 * testsuite/ld-ctf/array.d: Larger type section.
360 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
361 * testsuite/ld-ctf/enums.d: Likewise.
362 * testsuite/ld-ctf/conflicting-enums.d: Don't compare types.
363 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Changed type order.
364 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
365 * testsuite/ld-ctf/slice.d: Adjust for improved slice emission.
367 2021-05-05 H.J. Lu <hongjiu.lu@intel.com>
370 * testsuite/ld-elf/pr27825-1.d: New file.
371 * testsuite/ld-elf/pr27825-1a.s: Likewise.
372 * testsuite/ld-elf/pr27825-1b.s: Likewise.
373 * testsuite/ld-elf/pr27825-2.d: Likewise.
374 * testsuite/ld-elf/pr27825-2a.s: Likewise.
375 * testsuite/ld-elf/pr27825-2b.s: Likewise.
377 2021-05-05 Alan Modra <amodra@gmail.com>
379 * testsuite/ld-powerpc/empty.s: New file.
380 * testsuite/ld-powerpc/undefweak.d,
381 * testsuite/ld-powerpc/undefweak.s: New testcase.
382 * testsuite/ld-powerpc/powerpc.exp: Run it.
384 2021-05-03 Alan Modra <amodra@gmail.com>
386 * testsuite/ld-s390/tlspic_64.rd: Adjust expected output for
387 named section symbols.
389 2021-04-28 Nick Clifton <nickc@redhat.com>
391 * testsuite/ld-elf/anno-sym.s: New test source file.
392 * testsuite/ld-elf/anno-sym.d: New test driver.
393 * testsuite/ld-elf/anno-sym.l: New test error output.
395 2021-04-26 Jan Beulich <jbeulich@suse.com>
397 * testsuite/ld-i386/pcrel16-2.s, testsuite/ld-i386/pcrel16-2.d,
398 testsuite/ld-x86-64/pcrel16-2.d: New.
399 * testsuite/ld-i386/i386.exp: Run new test.
400 * testsuite/ld-x86-64/x86-64.exp: Likewise.
402 2021-04-23 H.J. Lu <hongjiu.lu@intel.com>
405 * testsuite/ld-bootstrap/bootstrap.exp: Create a symbolic link
406 to tmpdir/ldscripts only if it doesn't exist.
408 2021-04-22 Jan Beulich <jbeulich@suse.com>
411 * testsuite/ld-pe/pr26659-weak-undef-sym.d: Relax for Cygwin.
413 2021-04-21 Nick Clifton <nickc@redhat.com>
415 * testsuite/ld-aarch64/variant_pcs-now.d: Adjust expected output
416 to allow for named section symbols.
417 * testsuite/ld-aarch64/variant_pcs-r.d: Likewise.
418 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
419 * testsuite/ld-alpha/tlsbin.rd: Likewise.
420 * testsuite/ld-alpha/tlsbinr.rd: Likewise.
421 * testsuite/ld-alpha/tlspic.rd: Likewise.
422 * testsuite/ld-arm/rodata-merge-map.sym: Likewise.
423 * testsuite/ld-arm/script-type.sym: Likewise.
424 * testsuite/ld-cris/libdso-2.d: Likewise.
425 * testsuite/ld-cris/pr16044.d: Likewise.
426 * testsuite/ld-elf/sec64k.exp: Likewise.
427 * testsuite/ld-ia64/tlsbin.rd: Likewise.
428 * testsuite/ld-ia64/tlspic.rd: Likewise.
429 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
430 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
431 * testsuite/ld-mmix/bspec1.d: Likewise.
432 * testsuite/ld-mmix/bspec2.d: Likewise.
433 * testsuite/ld-mmix/local1.d: Likewise.
434 * testsuite/ld-mmix/local3.d: Likewise.
435 * testsuite/ld-mmix/local5.d: Likewise.
436 * testsuite/ld-mmix/local7.d: Likewise.
437 * testsuite/ld-mmix/undef-3.d: Likewise.
438 * testsuite/ld-powerpc/tlsso.r: Likewise.
439 * testsuite/ld-powerpc/tlsso32.r: Likewise.
440 * testsuite/ld-powerpc/tlstocso.r: Likewise.
441 * testsuite/ld-s390/tlsbin.rd: Likewise.
442 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
443 * testsuite/ld-s390/tlspic.rd: Likewise.
444 * testsuite/ld-s390/tlspic_64.rd: Likewise.
445 * testsuite/ld-sparc/gotop32.rd: Likewise.
446 * testsuite/ld-sparc/gotop64.rd: Likewise.
447 * testsuite/ld-sparc/tlssunbin32.rd: Likewise.
448 * testsuite/ld-sparc/tlssunbin64.rd: Likewise.
449 * testsuite/ld-sparc/tlssunnopic32.rd: Likewise.
450 * testsuite/ld-sparc/tlssunnopic64.rd: Likewise.
451 * testsuite/ld-sparc/tlssunpic32.rd: Likewise.
452 * testsuite/ld-sparc/tlssunpic64.rd: Likewise.
453 * testsuite/ld-tic6x/common.d: Likewise.
454 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
455 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
456 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
457 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
458 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
459 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
460 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
461 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
462 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
463 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
464 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
465 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
466 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
468 2021-04-20 Clément Chigot <clement.chigot@atos.net>
471 * testsuite/ld-powerpc/aix52.exp: Add new test.
472 * testsuite/ld-powerpc/aix-neg-reloc-32.d: New test.
473 * testsuite/ld-powerpc/aix-neg-reloc-64.d: New test.
474 * testsuite/ld-powerpc/aix-neg-reloc.ex: New test.
475 * testsuite/ld-powerpc/aix-neg-reloc.s: New test.
477 2021-04-13 Nick Clifton <nickc@redhat.com>
479 * ld.texi (Options): Add note about the effect of --as-needed on
480 the --rpath and --rpath-link options on Linux based systems.
482 2021-04-13 Alan Modra <amodra@gmail.com>
485 * libdep_plugin.c (str2vec): Don't pass a potentially signed char
488 2021-04-12 Alan Modra <amodra@gmail.com>
490 * configure.ac (--enable-checking): Add support.
491 * config.in: Regenerate.
492 * configure: Regenerate.
494 2021-04-12 Alan Modra <amodra@gmail.com>
496 * emultempl/mipself.em (mips_create_output_section_statements):
497 Pass base type of hash table to is_elf_hash_table.
498 * ldelf.c (ldelf_after_open): Likewise.
500 2021-04-12 Alan Modra <amodra@gmail.com>
503 * ldlang.c (lang_mark_undefineds, undef_start_stop): Test that
504 the symbol hash table is the correct type before accessing
505 elf_link_hash_entry symbols.
506 * plugin.c (is_visible_from_outside): Likewise.
507 * emultempl/armelf.em (ld${EMULATION_NAME}_finish): Likewise.
508 * emultempl/solaris2.em (elf_solaris2_before_allocation): Likewise.
510 2021-04-09 Alan Modra <amodra@gmail.com>
512 * testsuite/ld-powerpc/inlinepcrel-1.d: Update expected output.
513 * testsuite/ld-powerpc/inlinepcrel-2.d: Likewise.
514 * testsuite/ld-powerpc/notoc2.d: Likewise.
515 * testsuite/ld-powerpc/notoc3.d: Likewise.
516 * testsuite/ld-powerpc/pcrelopt.d: Likewise.
517 * testsuite/ld-powerpc/startstop.d: Likewise.
518 * testsuite/ld-powerpc/tlsget.d: Likewise.
519 * testsuite/ld-powerpc/tlsget2.d: Likewise.
520 * testsuite/ld-powerpc/tlsld.d: Likewise.
521 * testsuite/ld-powerpc/weak1.d: Likewise.
522 * testsuite/ld-powerpc/weak1so.d: Likewise.
524 2021-04-06 Jan Beulich <jbeulich@suse.com>
526 * pe-dll.c (generate_reloc): Bail immediately when .reloc is
527 being discarded. Warn when relocated entry is above .reloc.
529 2021-04-05 Alan Modra <amodra@gmail.com>
531 * configure.ac: Move initfini-array arg handling earlier. Don't
532 check for string.h, strings.h, stdlib.h, or locale.h. Do check
533 for inttypes.h, stdint.h, sys/types.h. Don't check for
534 setlocale, free, getev or strstr.
535 (AC_ISC_POSIX): Don't invoke.
536 * sysdep.h: Include string.h and stdlib.h unconditionally. Test
537 HAVE_SYS_TYPE_H and HAVE_SYS_STAT_H. Remove strstr, free and
538 getenv fallback declarations.
539 * ld.h: Don't test HAVE_LOCALE_H.
540 * ldmain.c: Don't test HAVE_SETLOCALE.
541 * config.in: Regenerate.
542 * configure: Regenerate.
544 2021-04-01 Tamar Christina <tamar.christina@arm.com>
547 * testsuite/ld-pe/pe.exp: Add test.
548 * testsuite/ld-pe/pr26659-weak-undef-sym.d: New test.
549 * testsuite/ld-pe/pr26659-weak-undef-sym.s: New test.
551 2021-04-01 Martin Liska <mliska@suse.cz>
553 * ldbuildid.c (strneq): Remove strneq and use startswith.
554 (validate_build_id_style): Likewise.
555 (compute_build_id_size): Likewise.
557 2021-03-31 Alan Modra <amodra@gmail.com>
559 * sysdep.h (POISON_BFD_BOOLEAN): Define.
560 * configure.ac (elf_list_options, elf_shlib_list_options=false),
561 (elf_plt_unwind_list_options=false): Replace FALSE with false,
563 * emulparams/call_nop.sh, * emulparams/cet.sh,
564 * emulparams/dynamic_undefined_weak.sh,
565 * emulparams/elf32b4300.sh, * emulparams/elf32lm32.sh,
566 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
567 * emulparams/elf32visium.sh, * emulparams/elf_x86_64.sh,
568 * emulparams/extern_protected_data.sh, * emulparams/plt_unwind.sh,
569 * emulparams/reloc_overflow.sh, * emulparams/static.sh,
570 * emulparams/x86-64-lam.sh, * emultempl/aarch64elf.em,
571 * emultempl/aix.em, * emultempl/alphaelf.em,
572 * emultempl/armcoff.em, * emultempl/armelf.em,
573 * emultempl/avrelf.em, * emultempl/beos.em, * emultempl/bfin.em,
574 * emultempl/cr16elf.em, * emultempl/crxelf.em,
575 * emultempl/cskyelf.em, * emultempl/elf.em, * emultempl/genelf.em,
576 * emultempl/hppaelf.em, * emultempl/linux.em,
577 * emultempl/m68hc1xelf.em, * emultempl/metagelf.em,
578 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
579 * emultempl/mmixelf.em, * emultempl/mmo.em, * emultempl/msp430.em,
580 * emultempl/nios2elf.em, * emultempl/pdp11.em, * emultempl/pe.em,
581 * emultempl/pep.em, * emultempl/ppc32elf.em,
582 * emultempl/ppc64elf.em, * emultempl/rxelf.em,
583 * emultempl/rxlinux.em, * emultempl/scoreelf.em,
584 * emultempl/solaris2.em, * emultempl/spuelf.em,
585 * emultempl/ticoff.em, * emultempl/v850elf.em, * emultempl/vms.em,
586 * emultempl/xtensaelf.em, * emultempl/z80.em, * ld.h,
587 * ldbuildid.c, * ldbuildid.h, * ldcref.c, * ldctor.c, * ldctor.h,
588 * ldelf.c, * ldelf.h, * ldelfgen.c, * ldelfgen.h, * ldemul.c,
589 * ldemul.h, * ldexp.c, * ldexp.h, * ldfile.c, * ldfile.h,
590 * ldgram.y, * ldlang.c, * ldlang.h, * ldmain.c, * ldmain.h,
591 * ldmisc.c, * ldmisc.h, * ldwrite.c, * lexsup.c, * mri.c,
592 * pe-dll.c, * pe-dll.h, * pep-dll.h, * plugin.c, * plugin.h,
593 * testplug.c, * testplug2.c, * testplug3.c, * testplug4.c: Replace
594 bfd_boolean with bool, FALSE with false, and TRUE with true.
595 * configure: Regenerate.
597 2021-03-31 Alan Modra <amodra@gmail.com>
599 * elf-hints-local.h: Include stdint.h in place of bfd_stdint.h.
600 * emultempl/nds32elf.em: Likewise.
601 * testsuite/ld-elf/mbind2b.c: Likewise.
602 * testsuite/ld-elf/pr18718.c: Likewise.
603 * testsuite/ld-elf/pr18720a.c: Likewise.
604 * testsuite/ld-elf/pr25749-1.c: Likewise.
605 * testsuite/ld-elf/pr25749-1a.c: Likewise.
606 * testsuite/ld-elf/pr25749-1b.c: Likewise.
607 * testsuite/ld-elf/pr25749-1c.c: Likewise.
608 * testsuite/ld-elf/pr25749-1d.c: Likewise.
609 * testsuite/ld-elf/pr25749-2.c: Likewise.
610 * testsuite/ld-elf/pr25754-1a.c: Likewise.
611 * testsuite/ld-elf/pr25754-2a.c: Likewise.
612 * testsuite/ld-elf/pr25754-3a.c: Likewise.
613 * testsuite/ld-elf/pr25754-4a.c: Likewise.
614 * testsuite/ld-elf/pr25754-5a.c: Likewise.
615 * testsuite/ld-elf/pr25754-6a.c: Likewise.
617 2021-03-29 Alan Modra <amodra@gmail.com>
619 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Simplify
621 * lexsup.c (parse_args): Likewise.
622 * pe-dll.c (pe_dll_id_target): Likewise.
624 2021-03-25 Nick Alcock <nick.alcock@oracle.com>
626 * testsuite/ld-ctf/array.d: Only check that the data object
627 section is nonempty: do not check its exact size.
628 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
629 * testsuite/ld-ctf/slice.d: Likewise.
630 * testsuite/ld-ctf/data-func-conflicted.d: Likewise, and for the
631 func info section too.
632 * testsuite/ld-ctf/function.d: Likewise, for the func info section.
634 2021-03-22 Martin Liska <mliska@suse.cz>
636 * emultempl/aix.em: Replace usage of CONST_STRNEQ with startswith.
637 * emultempl/beos.em: Likewise.
638 * emultempl/elf.em: Likewise.
639 * emultempl/pe.em: Likewise.
640 * emultempl/pep.em: Likewise.
641 * emultempl/xtensaelf.em: Likewise.
642 * ldctor.c (ctor_prio): Likewise.
643 * ldelf.c (ldelf_try_needed): Likewise.
644 (ldelf_parse_ld_so_conf): Likewise.
645 (ldelf_after_open): Likewise.
646 (output_rel_find): Likewise.
647 (ldelf_place_orphan): Likewise.
648 * ldfile.c (ldfile_add_library_path): Likewise.
649 * ldlang.c (lang_add_input_file): Likewise.
650 * ldmain.c (get_sysroot): Likewise.
651 (get_emulation): Likewise.
652 (add_archive_element): Likewise.
653 * ldwrite.c (unsplittable_name): Likewise.
654 (clone_section): Likewise.
655 * lexsup.c (parse_args): Likewise.
656 * pe-dll.c (is_import): Likewise.
657 (pe_implied_import_dll): Likewise.
659 2021-03-19 H.J. Lu <hongjiu.lu@intel.com>
662 * testsuite/ld-x86-64/pr27590.rd: New file.
663 * testsuite/ld-x86-64/pr27590a.obj.bz2: Likewise.
664 * testsuite/ld-x86-64/pr27590b.obj.bz2: Likewise.
665 * testsuite/ld-x86-64/x86-64.exp: Run ld/27590 test.
667 2021-03-20 Alan Modra <amodra@gmail.com>
670 * ldlang.c (lang_gc_sections): Clear SEC_EXCLUDE when relocatable
671 for all sections except .stabstr.
673 2021-03-19 Alan Modra <amodra@gmail.com>
676 * testsuite/ld-elf/pr27590a.d: Match relocs using label, and
678 * testsuite/ld-elf/pr27590b.d: Likewise.
680 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
683 * testsuite/ld-elf/pr27590.s: New file.
684 * testsuite/ld-elf/pr27590a.d: Likewise.
685 * testsuite/ld-elf/pr27590b.d: Likewise.
686 * testsuite/ld-i386/i386.exp: Also run ld/27193 test with
687 --reduce-memory-overheads.
689 2021-03-18 H.J. Lu <hongjiu.lu@intel.com>
692 * testsuite/ld-x86-64/pr27587.err: New file.
693 * testsuite/ld-x86-64/pr27587a.obj.bz2: Likewise.
694 * testsuite/ld-x86-64/pr27587b.obj.bz2: Likewise.
695 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/27587 test.
697 2021-03-18 Nick Alcock <nick.alcock@oracle.com>
699 * testsuite/ld-ctf/slice.c: Check slices of enums too.
700 * testsuite/ld-ctf/slice.d: Results adjusted.
702 2021-03-16 Nick Clifton <nickc@redhat.com>
704 * pe-dll.c (pe_find_cdecl_alias_match): Use memmove to overwrite
707 2021-03-15 Jan Beulich <jbeulich@suse.com>
709 * pe-dll.c (generate_reloc): Drop padding to reloc_s->size.
711 2021-03-12 Alan Modra <amodra@gmail.com>
713 * Makefile.am (ALL_EMULATION_SOURCES): Move riscv files to..
714 (ALL_64_EMULATION_SOURCES): ..here.
715 * Makefile.in: Regenerate.
717 2021-03-12 Clément Chigot <clement.chigot@atos.net>
719 * emultempl/aix.em: Ensure .tdata section is removed
720 if empty, even with -r flag.
721 * scripttempl/aix.sc: Handle TLS sections.
722 * testsuite/ld-powerpc/aix52.exp: Add new tests.
723 * testsuite/ld-powerpc/aix-tls-reloc-32.d: New test.
724 * testsuite/ld-powerpc/aix-tls-reloc-64.d: New test.
725 * testsuite/ld-powerpc/aix-tls-reloc.ex: New test.
726 * testsuite/ld-powerpc/aix-tls-reloc.s: New test.
727 * testsuite/ld-powerpc/aix-tls-section-32.d: New test.
728 * testsuite/ld-powerpc/aix-tls-section-64.d: New test.
729 * testsuite/ld-powerpc/aix-tls-section.ex: New test.
730 * testsuite/ld-powerpc/aix-tls-section.s: New test.
732 2021-03-12 Clément Chigot <clement.chigot@atos.net>
734 * scripttempl/aix.sc: Add .te to .data section.
735 * testsuite/ld-powerpc/aix52.exp: Add test structure for AIX7+.
736 Add aix-largetoc-1 test.
737 * testsuite/ld-powerpc/aix-largetoc-1-32.d: New test.
738 * testsuite/ld-powerpc/aix-largetoc-1-64.d: New test.
739 * testsuite/ld-powerpc/aix-largetoc-1.ex: New test.
740 * testsuite/ld-powerpc/aix-largetoc-1.s: New test.
742 2021-03-12 Alan Modra <amodra@gmail.com>
744 * testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
745 arrange to define __main for some run_dump_test tests.
746 * testsuite/ld-gc/pr13683.d: Accept more symbols.
747 * testsuite/ld-gc/pr14265.d: Likewise, and ordering.
748 * testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
749 * testsuite/ld-srec/srec.exp: Likewise.
750 * testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
752 2021-03-11 Nelson Chu <nelson.chu@sifive.com>
754 * emultempl/riscvelf.em (after_allocation): Run ldelf_map_segments
755 many times if riscv_restart_relax_sections returns TRUE.
756 * testsuite/ld-riscv-elf/restart-relax.d: New testcase. Before
757 applying this patch, the call won't be relaxed to jal; But now we
758 have more chances to do relaxations.
759 * testsuite/ld-riscv-elf/restart-relax.s: Likewise.
760 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Updated.
762 2021-03-10 Jan Beulich <jbeulich@suse.com>
764 * testsuite/ld-scripts/pr22267.t: Avoid symbol value with more
766 * testsuite/ld-scripts/pr22267.d: Adjust expectation and drop
768 * scripttempl/mcorepe.sc: Use PROVIDE() for _stack.
770 2021-03-09 Jan Beulich <jbeulich@suse.com>
772 * testsuite/ld-pe/reloc.s: Add entry point symbols. Increase
774 * testsuite/ld-pe/reloc.d: xfail for mcore.
776 2021-03-09 Jan Beulich <jbeulich@suse.com>
778 * testsuite/ld-scripts/alignof.exp,
779 testsuite/ld-scripts/data.exp,
780 testsuite/ld-scripts/default-script.exp,
781 testsuite/ld-scripts/log2.exp,
782 testsuite/ld-scripts/print-memory-usage.exp,
783 testsuite/ld-scripts/sizeof.exp,
784 testsuite/ld-undefined/weak-undef.exp: Set image base to zero
786 * testsuite/ld-scripts/default-script1.d,
787 testsuite/ld-scripts/default-script2.d,
788 testsuite/ld-scripts/default-script3.d,
789 testsuite/ld-scripts/default-script4.d: Drop xfail and comment.
791 2021-03-05 H.J. Lu <hongjiu.lu@intel.com>
795 * ldelf.c (ldelf_set_output_arch): New function.
796 * ldelf.h (ldelf_set_output_arch): New prototype.
797 * emultempl/elf.em (LDEMUL_SET_OUTPUT_ARCH): Default to
798 ldelf_set_output_arch.
799 * ld-x86-64/pe-x86-64-1.od: Expect __executable_start.
800 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
801 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
802 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
803 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
804 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
805 * testsuite/ld-x86-64/pe-x86-64-6.obj.bz2: New file.
806 * testsuite/ld-x86-64/pe-x86-64-6.od: Likewise.
807 * testsuite/ld-x86-64/pe-x86-64.exp: Run ld/27425 test.
809 2021-03-04 Jan Beulich <jbeulich@suse.com>
811 * testsuite/ld-scripts/map-address.exp: Set image base to zero
813 * testsuite/ld-scripts/map-address.t: Place .text.
815 2021-03-04 Jan Beulich <jbeulich@suse.com>
817 * ldexp.c (ldexp_is_final_sym_absolute): New.
818 * ldexp.h (ldexp_is_final_sym_absolute): Declare.
819 * pe-dll.c (generate_reloc): Skip absolute symbols.
820 * testsuite/ld-pe/reloc.s, testsuite/ld-pe/reloc.d: New.
821 * testsuite/ld-pe/pe.exp: Run new test.
823 2021-03-03 Alan Modra <amodra@gmail.com>
826 * ldlang.c (insert_undefined): Don't mark symbols here.
827 (lang_mark_undefineds): Do so here instead, new function.
828 (lang_process): Call lang_mark_undefineds.
829 * testsuite/ld-gc/start3.d,
830 * testsuite/ld-gc/start3.s: New test.
831 * testsuite/ld-gc/start4.d,
832 * testsuite/ld-gc/start4.s: New test.
833 * testsuite/ld-gc/gc.exp: Run them.
835 2021-03-03 Alan Modra <amodra@gmail.com>
837 * testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
838 Move tests with ELF section directives to is_elf_format block.
839 * testsuite/ld-gc/abi-note.d: Run on more targets.
840 * testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
841 * testsuite/ld-gc/start.d: Likewise.
842 * testsuite/ld-gc/start2.d: Likewise.
843 * testsuite/ld-gc/stop.d: Likewise.
844 * testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
845 * testsuite/ld-gc/start.s: Likewise.
846 * testsuite/ld-gc/start2.s: Likewise.
848 2021-03-02 Nick Alcock <nick.alcock@oracle.com>
850 * ldelfgen.c (ldelf_ctf_strtab_iter_cb): Skip zero-refcount strings.
852 2021-03-02 Alan Modra <amodra@gmail.com>
854 * testsuite/ld-powerpc/startstop.d,
855 * testsuite/ld-powerpc/startstop.r,
856 * testsuite/ld-powerpc/startstop.s: New test.
857 * testsuite/ld-powerpc/powerpc.exp: Run it.
859 2021-03-02 Alan Modra <amodra@gmail.com>
861 * testsuite/ld-powerpc/weak1.d,
862 * testsuite/ld-powerpc/weak1.r,
863 * testsuite/ld-powerpc/weak1.s,
864 * testsuite/ld-powerpc/weak1so.d,
865 * testsuite/ld-powerpc/weak1so.r: New tests.
866 * testsuite/ld-powerpc/powerpc.exp: Run them.
868 2021-03-01 Hannes Domani <ssbssa@sourceware.org>
869 Nick Clifton <nickc@redhat.com>
872 * scripttempl/pe.sc: Add DWARF-5 section names.
873 * scripttempl/pep.sc: Likewise.
875 2021-03-01 Alan Modra <amodra@gmail.com>
876 Fangrui Song <maskray@google.com>
878 * emultempl/elf.em: Handle -z start-stop-gc and -z nostart-stop-gc.
879 * lexsup.c (elf_static_list_options): Display help for them. Move
880 help for -z stack-size to here from elf_shlib_list_options. Add
881 help for -z start-stop-visibility and -z undefs.
882 * ld.texi: Document -z start-stop-gc and -z nostart-stop-gc.
883 * NEWS: Mention -z start-stop-gc.
884 * testsuite/ld-gc/start2.s,
885 * testsuite/ld-gc/start2.d: New test.
886 * testsuite/ld-gc/gc.exp: Run it.
888 2021-03-01 Alan Modra <amodra@gmail.com>
890 * ldlang.c (undef_start_stop): For ELF make undefined start/stop
891 symbols undefweak if that was how they were referenced. Undo
894 2021-03-01 Alan Modra <amodra@gmail.com>
896 * testsuite/ld-elf/pr25708.d: Add --with-symbol-versions to nm.
897 * testsuite/ld-elf/pr27128a.d: Likewise.
898 * testsuite/ld-elf/pr27128b.d: Likewise.
899 * testsuite/ld-elf/pr27128c.d: Likewise.
900 * testsuite/ld-elf/pr27128d.d: Likewise.
901 * testsuite/ld-elf/pr27128e.d: Likewise.
903 2021-02-26 Alan Modra <amodra@gmail.com>
906 * testsuite/ld-plugin/pr27441a.c,
907 * testsuite/ld-plugin/pr27441b.c,
908 * testsuite/ld-plugin/pr27441c.c,
909 * testsuite/ld-plugin/pr27441c.d: New test.
910 * testsuite/ld-plugin/lto.exp: Run it.
912 2021-02-25 Jan Beulich <jbeulich@suse.com>
914 * ld.texi (PROVIDE): Downgrade "error" to "diagnostic".
916 2021-02-21 Alan Modra <amodra@gmail.com>
918 * ldexp.c (exp_fold_tree_1): Warn on script defining a symbol
919 defined in an object file.
920 * ldmain.c (multiple_definition): Heed info->warn_multiple_definition.
921 * testsuite/ld-scripts/defined5.d: Expect a warning.
923 2021-02-19 Alan Modra <amodra@gmail.com>
925 * testsuite/lib/ld-lib.exp: Whitespace.
926 (load_common_lib): Expand single use and delete this proc.
927 (run_host_cmd): Use -fno-lto when getting gcc's ld version.
928 Use -B for clang too.
930 2021-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
932 * testplugin.c (record_read_length): Remove debug fprintf.
934 2021-02-14 Alan Modra <amodra@gmail.com>
936 * testsuite/ld-cdtest/cdtest.exp,
937 * testsuite/ld-checks/checks.exp,
938 * testsuite/ld-elf/binutils.exp,
939 * testsuite/ld-elf/compress.exp,
940 * testsuite/ld-elf/dwarf.exp,
941 * testsuite/ld-elf/exclude.exp,
942 * testsuite/ld-elf/frame.exp,
943 * testsuite/ld-elf/indirect.exp,
944 * testsuite/ld-elf/linux-x86.exp,
945 * testsuite/ld-elf/sec-to-seg.exp,
946 * testsuite/ld-elf/tls_common.exp,
947 * testsuite/ld-elfcomm/elfcomm.exp,
948 * testsuite/ld-elfvers/vers.exp,
949 * testsuite/ld-elfvsb/elfvsb.exp,
950 * testsuite/ld-elfweak/elfweak.exp,
951 * testsuite/ld-ifunc/binutils.exp,
952 * testsuite/ld-mips-elf/mips-elf-flags.exp,
953 * testsuite/ld-misc/defsym.exp,
954 * testsuite/ld-mn10300/mn10300.exp,
955 * testsuite/ld-plugin/lto.exp,
956 * testsuite/ld-plugin/plugin.exp,
957 * testsuite/ld-scripts/align.exp,
958 * testsuite/ld-scripts/assert.exp,
959 * testsuite/ld-scripts/crossref.exp,
960 * testsuite/ld-scripts/defined.exp,
961 * testsuite/ld-scripts/extern.exp,
962 * testsuite/ld-scripts/log2.exp,
963 * testsuite/ld-scripts/map-address.exp,
964 * testsuite/ld-scripts/phdrs.exp,
965 * testsuite/ld-scripts/phdrs2.exp,
966 * testsuite/ld-scripts/script.exp,
967 * testsuite/ld-scripts/section-flags.exp,
968 * testsuite/ld-scripts/sizeof.exp,
969 * testsuite/ld-scripts/weak.exp,
970 * testsuite/ld-selective/selective.exp,
971 * testsuite/ld-sh/sh.exp,
972 * testsuite/ld-shared/shared.exp,
973 * testsuite/ld-srec/srec.exp,
974 * testsuite/ld-tic6x/tic6x.exp,
975 * testsuite/ld-undefined/undefined.exp,
976 * testsuite/ld-undefined/weak-undef.exp,
977 * testsuite/lib/ld-lib.exp: Don't use unresolved except after
978 perror. Instead report "unsupported" or "fail".
980 2021-02-12 Nick Clifton <nickc@redhat.com>
982 * testsuite/ld-elf/sec64k.exp: Stop readelf from automatically
983 following debug links.
985 2021-02-11 Alan Modra <amodra@gmail.com>
987 * NEWS: Mention arm-symbianelf removal.
989 2021-02-09 Alan Modra <amodra@gmail.com>
991 * Makefile.am (ALL_EMULATION_SOURCES): Remove earmsymbian.c.
992 Don't include symbian dep file.
993 * configure.tgt: Remove arm*-*-symbianelf* entry.
994 * emulparams/armsymbian.sh: Delete.
995 * ld.texi: Don't mention symbian.
996 * scripttempl/armbpabi.sc: Delete.
997 * testsuite/ld-arm/symbian-seg1.d: Delete.
998 * testsuite/ld-arm/symbian-seg1.s: Delete.
999 * testsuite/ld-arm/arm-elf.exp: Don't run symbian-seg1.
1000 * Makefile.in: Regenerate.
1001 * po/BLD-POTFILES.in: Regenerate.
1003 2021-02-07 H.J. Lu <hongjiu.lu@intel.com>
1006 * testsuite/ld-i386/i386.exp: Remove property 3/4/5 run-time
1008 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1010 2021-01-26 Nick Alcock <nick.alcock@oracle.com>
1012 * ldlang.c (lang_merge_ctf): Set CTF_LINK_NO_FILTER_REPORTED_SYMS
1015 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1018 * testsuite/ld-x86-64/pr19609-2a.d: Updated.
1019 * testsuite/ld-x86-64/pr19609-2b.d: Likewise.
1020 * testsuite/ld-x86-64/pr19609-4a.d: Likewise.
1021 * testsuite/ld-x86-64/pr19609-4c.d: Likewise.
1022 * testsuite/ld-x86-64/pr19609-5d.d: Likewise.
1023 * testsuite/ld-x86-64/pr19609-7a.d: Likewise.
1024 * testsuite/ld-x86-64/pr19609-7c.d: Likewise.
1026 2021-02-04 H.J. Lu <hongjiu.lu@intel.com>
1029 * testsuite/ld-plugin/lto.exp: Run PR ld/15146 tests.
1030 * testsuite/ld-plugin/pr15146.d: Restored.
1031 * testsuite/ld-plugin/pr15146a.c: Likewise.
1032 * testsuite/ld-plugin/pr15146b.c: Likewise.
1033 * testsuite/ld-plugin/pr15146c.c: Likewise.
1034 * testsuite/ld-plugin/pr15146d.c: Likewise.
1036 2021-02-04 Alan Modra <amodra@gmail.com>
1038 * testsuite/ld-plugin/pr27311d.c: New test.
1039 * testsuite/ld-plugin/lto.exp: Rename pr27311 to pr27311-1, compile
1040 and link new test as pr27311-2.
1042 2021-02-03 Alan Modra <amodra@gmail.com>
1044 * testsuite/ld-ifunc/ifunc.exp (libpr16467b.so, libpr16467bn.so):
1045 Link with --as-needed.
1047 2021-02-02 Alan Modra <amodra@gmail.com>
1049 * testsuite/ld-plugin/pr27311.d,
1050 * testsuite/ld-plugin/pr27311.ver,
1051 * testsuite/ld-plugin/pr27311a.c,
1052 * testsuite/ld-plugin/pr27311b.c,
1053 * testsuite/ld-plugin/pr27311c.c: New testcase.
1054 * testsuite/ld-plugin/lto.exp: Run it. Correct PR14918 and
1057 2021-02-01 Emery Hemingway <ehmry@posteo.net>
1059 * configure.tgt: Add *-*-genode* as a target for AArch64 and x86.
1061 2021-02-01 Alan Modra <amodra@gmail.com>
1063 * ldgram.y (defsym_expr): Use assignment rule.
1064 * ldlex.h (ldlex_defsym): Delete.
1065 * ldlex.l (DEFSYMEXP, ldlex_defsym): Delete.
1067 2021-02-01 Alan Modra <amodra@gmail.com>
1069 * ldgram.y (section): Call ldlex_backup. Remove empty action.
1070 * ldlex.h (ldlex_backup): Declare.
1071 * ldlex.l (<EXPRESSION>NAME): Don't use NOCFILENAMECHAR set of
1072 chars, use SYMBOLNAMECHAR.
1073 (ldlex_backup): New function.
1075 2021-02-01 Alan Modra <amodra@gmail.com>
1077 * ldgram.y: Whitespace fixes.
1079 2021-02-01 Alan Modra <amodra@gmail.com>
1081 * testsuite/ld-elf/pr27259.d: Correct sh_link match.
1083 2021-01-29 Alan Modra <amodra@gmail.com>
1085 * testsuite/ld-tic6x/tic6x.exp: Add pr27271 test.
1087 2021-01-28 H.J. Lu <hongjiu.lu@intel.com>
1090 * testsuite/ld-elf/pr27259.d: New file.
1091 * testsuite/ld-elf/pr27259.s: Likewise.
1093 2021-01-28 Alan Modra <amodra@gmail.com>
1096 * ldelf.c (ldelf_before_place_orphans): Use linker_mark to
1097 prevent endless looping of linked-to sections.
1099 2021-01-26 H.J. Lu <hongjiu.lu@intel.com>
1101 * testsuite/ld-x86-64/bnd-plt-1.d: Fix a typo.
1103 2021-01-26 Alan Modra <amodra@gmail.com>
1106 * emulparams/alphavms.sh: Don't set COMPILE_IN.
1107 * emulparams/elf64_ia64_vms.sh: Likewise.
1108 * emulparams/elf64mmix.sh: Likewise.
1109 * emulparams/elf_iamcu.sh: Likewise.
1110 * emulparams/elf_k1om.sh: Likewise.
1111 * emulparams/elf_l1om.sh: Likewise.
1112 * emulparams/mmo.sh: Likewise.
1113 * emulparams/pdp11.sh: Set DATA_SEG_ADDR.
1114 * scripttempl/pdp11.sc: Use it.
1115 * emultempl/pdp11.em: Don't edit .xn script for separate_code,
1116 instead use .xe script. Support scripts from file system.
1117 * emultempl/beos.em: Support scripts from file system.
1118 * emultempl/pe.em: Likewise.
1119 * emultempl/pep.em: Likewise.
1120 * testsuite/ld-bootstrap/bootstrap.exp: Make tmpdir/ldscripts link.
1122 2021-01-25 Fangrui Song <maskray@google.com>
1125 * scripttempl/DWARF.sc: Add .debug_* sections.
1127 2021-01-25 Nick Clifton <nickc@redhat.com>
1129 * scripttempl/DWARF.sc: Add .debug_loclists, .debug_rnglists,
1130 .debug_line_str and .debug_str_offsets. Move .debug_macro and
1131 .debug_addr into DWARF-5 section.
1133 2021-01-21 Alan Modra <amodra@gmail.com>
1135 * testsuite/ld-elf/pr26936.d: No longer xfail mips.
1137 2021-01-20 Alan Modra <amodra@gmail.com>
1139 * testsuite/ld-powerpc/relbrlt.s: Make symbols global.
1140 * testsuite/ld-powerpc/relbrlt.d: Adjust to suit.
1141 * testsuite/ld-powerpc/tlsget.d: Adjust for reordered stubs.
1142 * testsuite/ld-powerpc/tlsget.wf: Likewise.
1143 * testsuite/ld-powerpc/tlsget2.d: Likewise.
1144 * testsuite/ld-powerpc/tlsget2.wf: Likewise.
1145 * testsuite/ld-powerpc/tlsexe.r: Adjust for removed section syms.
1146 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
1147 * testsuite/ld-powerpc/tlsexe32no.r: Likewise.
1148 * testsuite/ld-powerpc/tlsexeno.r: Likewise.
1149 * testsuite/ld-powerpc/tlsexenors.r: Likewise.
1150 * testsuite/ld-powerpc/tlsexers.r: Likewise.
1151 * testsuite/ld-powerpc/tlsexetoc.r: Likewise.
1152 * testsuite/ld-powerpc/tlsexetocrs.r: Likewise.
1153 * testsuite/ld-powerpc/tlsso.r: Likewise.
1154 * testsuite/ld-powerpc/tlsso32.r: Likewise.
1155 * testsuite/ld-powerpc/tlstocso.r: Likewise.
1157 2021-01-19 Nick Alcock <nick.alcock@oracle.com>
1159 * testsuite/ld-ctf/data-func-2.c: Stop removal of the extern foo_t
1160 symbols by the optimizer.
1161 * testsuite/ld-ctf/data-func-conflicted.d: Adjust accordingly.
1163 2021-01-19 Nelson Chu <nelson.chu@sifive.com>
1165 * testsuite/ld-elf/elf.exp (riscv_little_endian): Added. Return true
1166 if target is riscv little endian. Otherwise, return false.
1167 * testsuite/ld-elf/compressed1d.d: Only xfail the riscv little endian
1168 targets by [riscv_little_endian].
1170 2021-01-18 Alan Modra <amodra@gmail.com>
1173 * ldlang.c (map_input_to_output_sections): Start with a read-only
1174 section for data statements.
1175 * testsuite/ld-elf/size-2.d: Adjust to suit.
1177 2021-01-17 H.J. Lu <hongjiu.lu@intel.com>
1180 * testsuite/ld-i386/i386.exp: Run PR ld/27193 test.
1181 * testsuite/ld-i386/pr27193.dd: New file.
1182 * testsuite/ld-i386/pr27193a.o.bz2: Likewise.
1183 * testsuite/ld-i386/pr27193b.s: Likewise.
1185 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1188 * testsuite/ld-plugin/lto.exp: Increase the max number of open
1189 files to 20 for PR binutils/23460 test.
1191 2021-01-16 H.J. Lu <hongjiu.lu@intel.com>
1194 * testsuite/ld-ifunc/ifunc.exp: Replace pr23169c.rd with
1195 pr23169a.rd for pr23169c and pr23169f. Remove pr23169e tests.
1196 * testsuite/ld-ifunc/pr23169a.c (foo): Don't compare function
1199 2021-01-15 H.J. Lu <hongjiu.lu@intel.com>
1201 * NEWS: Mention -z report-relative-reloc.
1202 * ld.texi: Document -z report-relative-reloc.
1203 * emulparams/elf32_x86_64.sh: Source x86-report-relative.sh.
1204 * emulparams/elf_i386.sh: Likewse.
1205 * emulparams/elf_x86_64.sh: Likewse.
1206 * emulparams/x86-report-relative.sh: New file.
1207 * testsuite/ld-i386/report-reloc-1.d: Likewse.
1208 * testsuite/ld-i386/report-reloc-1.l: Likewse.
1209 * testsuite/ld-i386/report-reloc-1.s: Likewse.
1210 * testsuite/ld-x86-64/report-reloc-1-x32.d: Likewse.
1211 * testsuite/ld-x86-64/report-reloc-1.d: Likewse.
1212 * testsuite/ld-x86-64/report-reloc-1.l: Likewse.
1213 * testsuite/ld-x86-64/report-reloc-1.s: Likewse.
1214 * testsuite/ld-i386/i386.exp: Run report-reloc-1.
1215 * testsuite/ld-x86-64/x86-64.exp: Run report-reloc-1 and
1218 2021-01-16 Alan Modra <amodra@gmail.com>
1221 * testsuite/ld-elfvers/vers6.dsym: Expect "Base" for undefined
1222 unversioned symbols.
1223 * testsuite/ld-elfvers/vers16.dsym: Likewise.
1225 2021-01-15 Nelson Chu <nelson.chu@sifive.com>
1227 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-01.d: Updated.
1228 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-02.d: Likewise.
1229 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-03.d: Likewise.
1230 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-04.d: Likewise.
1231 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-05.d: Likewise.
1232 * testsuite/ld-riscv-elf/attr-merge-priv-spec-failed-06.d: Likewise.
1234 2021-01-14 Nick Clifton <nickc@redhat.com>
1236 * po/fr.po: Updated French translation.
1238 2021-01-14 Mike Frysinger <vapier@gentoo.org>
1240 * testsuite/config/default.exp [bfin*-elf*] (gcc_B_opt): Add -msim.
1242 2021-01-14 Alan Modra <amodra@gmail.com>
1245 * ldelfgen.c (compare_link_order): Protect access of ELF section
1247 (add_link_order_input_section): Remove redundant NULL check.
1248 Use bfd_get_flavour.
1249 (ldelf_map_segments): Use bfd_get_flavour.
1251 2021-01-13 H.J. Lu <hongjiu.lu@intel.com>
1253 * ldelfgen.c (add_link_order_input_section): Check for ELF input
1254 before accessing ELF section data.
1256 2021-01-13 Alan Modra <amodra@gmail.com>
1258 * Makefile.in: Regenerate.
1260 2021-01-13 Alan Modra <amodra@gmail.com>
1263 * ldlang.h (lang_output_section_statement_type): Add data field.
1264 (lang_input_section_type, lang_section_bst_type): Add pattern field.
1265 (statement_list): Declare.
1266 (lang_add_section): Adjust prototype.
1267 * emultempl/aarch64elf.em: Adjust lang_add_section calls.
1268 * emultempl/armelf.em: Likewise.
1269 * emultempl/beos.em: Likewise.
1270 * emultempl/cskyelf.em: Likewise.
1271 * emultempl/hppaelf.em: Likewise.
1272 * emultempl/m68hc1xelf.em: Likewise.
1273 * emultempl/metagelf.em: Likewise.
1274 * emultempl/mipself.em: Likewise.
1275 * emultempl/mmo.em: Likewise.
1276 * emultempl/msp430.em: Likewise.
1277 * emultempl/nios2elf.em: Likewise.
1278 * emultempl/pe.em: Likewise.
1279 * emultempl/pep.em: Likewise.
1280 * emultempl/ppc64elf.em: Likewise.
1281 * emultempl/spuelf.em: Likewise.
1282 * emultempl/vms.em: Likewise.
1283 * ldelf.c: Likewise.
1284 * ldelfgen.c: Include ldctor.h.
1285 (struct os_sections): New.
1286 (add_link_order_input_section, link_order_scan): New functions.
1287 (compare_link_order, fixup_link_order): New functions.
1288 (ldelf_map_segments): Call link_order_scan and fixup_link_order.
1289 * ldlang.c (statement_list): Make global.
1290 (output_section_callback_fast): Save pattern in tree node.
1291 (lang_add_section): Add pattern parameter, save in lang_input_section.
1292 (output_section_callback_tree_to_list): Adjust lang_add_section calls.
1293 (lang_insert_orphan, output_section_callback): Likewise.
1294 (ldlang_place_orphan): Likewise.
1295 (gc_section_callback): Don't set section->pattern.
1296 * testsuite/ld-elf/pr26256-2a.d: Don't xfail generic.
1297 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1298 * testsuite/ld-elf/pr26256-2b.d: Likewise. notarget xgate.
1300 2021-01-13 Alan Modra <amodra@gmail.com>
1302 * ldlang.h (callback_t): Remove flag_info function parameter.
1303 * ldlang.c (walk_wild_consider_section): Adjust to suit.
1304 (walk_wild_section_general): Likewise.
1305 (output_section_callback_fast, output_section_callback): Likewise.
1306 (check_section_callback, gc_section_callback): Likewise.
1307 (find_relro_section_callback): Likewise.
1309 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1312 * configure.ac: Use GNU_MAKE_JOBSERVER.
1313 * aclocal.m4: Regenerated.
1314 * configure: Likewise.
1316 2021-01-12 H.J. Lu <hongjiu.lu@intel.com>
1319 * testsuite/ld-x86-64/pe-x86-64-5.obj.bz2: New file.
1320 * testsuite/ld-x86-64/pe-x86-64-5.od: Likewise.
1321 * testsuite/ld-x86-64/pe-x86-64-5.rd: Likewise.
1322 * testsuite/ld-x86-64/pe-x86-64.exp: Run PR ld/27171 test.
1324 2021-01-11 H.J. Lu <hongjiu.lu@intel.com>
1327 * configure: Regenerated.
1329 2021-01-11 Matt Jenkins <matt@majenko.co.uk>
1332 * ldmain.c (get_emulation): Add mipsmips32r3, mips32r5, mips64r3
1333 and mips64r5 to list of known mips targets.
1335 2021-01-11 Nick Clifton <nickc@redhat.com>matt@majenko.co.uk
1337 * po/pt_BR.po: Updated Brazilian Portuguese translation.
1338 ` * po/uk.po: Updated Ukranian translation.
1340 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1342 * configure: Regenerated.
1344 2021-01-09 H.J. Lu <hongjiu.lu@intel.com>
1347 * testsuite/ld-x86-64/lam-u48.rd: New file.
1348 * testsuite/ld-x86-64/lam-u57.rd: Likewise.
1349 * testsuite/ld-x86-64/x86-64.exp: Add PR ld/27166 tests.
1351 2021-01-09 Nick Clifton <nickc@redhat.com>
1353 * configure: Regenerate.
1354 * po/ld.pot: Regenerate.
1356 2021-01-09 Nick Clifton <nickc@redhat.com>
1358 * 2.36 release branch crated.
1360 2021-01-08 H.J. Lu <hongjiu.lu@intel.com>
1362 * ld-x86-64/property-x86-lam-u48-4.d: Updated.
1363 * ld-x86-64/property-x86-lam-u48-5.d: Likewise.
1365 2021-01-09 Alan Modra <amodra@gmail.com>
1367 * configure: Regenerate.
1368 * Makefile.in: Regenerate.
1370 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org>
1372 * configure: Regenerate.
1374 2021-01-07 H.J. Lu <hongjiu.lu@intel.com>
1377 * testsuite/ld-elf/export-class.sd: Adjust the expected output.
1378 * testsuite/ld-elf/loadaddr3b.d: Likewise.
1379 * testsuite/ld-i386/ibt-plt-1.d: Likewise.
1380 * testsuite/ld-i386/ibt-plt-2a.d: Likewise.
1381 * testsuite/ld-i386/ibt-plt-2c.d: Likewise.
1382 * testsuite/ld-i386/ibt-plt-3a.d: Likewise.
1383 * testsuite/ld-i386/ibt-plt-3c.d: Likewise.
1384 * testsuite/ld-i386/pr19636-1d.d: Likewise.
1385 * testsuite/ld-i386/pr19636-1l.d: Likewise.
1386 * testsuite/ld-i386/pr19636-2c.d: Likewise.
1387 * testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
1388 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
1389 * testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
1390 * testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
1391 * testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
1392 * testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
1393 * testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
1394 * testsuite/ld-ifunc/pr17154-i386.d: Likewise.
1395 * testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
1396 * testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
1397 * testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
1398 * testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
1399 * testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
1400 * testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
1401 * testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
1402 * testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
1403 * testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
1404 * testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
1405 * testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
1406 * testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
1407 * testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
1408 * testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
1409 * testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
1410 * testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
1411 * testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
1412 * testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
1413 * testsuite/ld-x86-64/pr19609-4e.d: Likewise.
1414 * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
1415 * testsuite/ld-x86-64/pr19609-6b.d: Likewise.
1416 * testsuite/ld-x86-64/pr19609-7b.d: Likewise.
1417 * testsuite/ld-x86-64/pr19609-7d.d: Likewise.
1418 * testsuite/ld-x86-64/pr19636-2l.d: Likewise.
1419 * testsuite/ld-x86-64/pr20253-1d.d: Likewise.
1420 * testsuite/ld-x86-64/pr20253-1h.d: Likewise.
1421 * testsuite/ld-x86-64/pr21038b-now.d: Likewise.
1422 * testsuite/ld-x86-64/pr21038b.d: Likewise.
1423 * testsuite/ld-x86-64/pr21038c-now.d: Likewise.
1424 * testsuite/ld-x86-64/pr21038c.d: Likewise.
1425 * testsuite/ld-x86-64/pr23854.d: Likewise.
1426 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1427 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1428 * testsuite/ld-i386/plt-pic.pd: Likewise.
1429 * testsuite/ld-i386/plt-pic2.dd: Likewise.
1430 * testsuite/ld-i386/plt.pd: Likewise.
1431 * testsuite/ld-i386/plt2.dd: Likewise.
1432 * testsuite/ld-i386/tlsbin.rd: Likewise.
1433 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1434 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1435 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1436 * testsuite/ld-i386/tlsgdesc.rd: Likewise.
1437 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1438 * testsuite/ld-i386/tlspic.rd: Likewise.
1439 * testsuite/ld-i386/tlspic2.rd: Likewise.
1440 * testsuite/ld-x86-64/mpx3.dd: Likewise.
1441 * testsuite/ld-x86-64/mpx3n.dd: Likewise.
1442 * testsuite/ld-x86-64/mpx4.dd: Likewise.
1443 * testsuite/ld-x86-64/mpx4n.dd: Likewise.
1444 * testsuite/ld-x86-64/pe-x86-64-1.od: Likewise.
1445 * testsuite/ld-x86-64/pe-x86-64-2.od: Likewise.
1446 * testsuite/ld-x86-64/pe-x86-64-3.od: Likewise.
1447 * testsuite/ld-x86-64/pe-x86-64-4.od: Likewise.
1448 * testsuite/ld-x86-64/plt.pd: Likewise.
1449 * testsuite/ld-x86-64/plt2.dd: Likewise.
1450 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1451 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1452 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1453 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1454 * testsuite/ld-x86-64/tlsgdesc.rd: Likewise.
1455 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1456 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1457 * testsuite/ld-elf/sec64k.exp: Check
1458 is_elf_unused_section_symbols.
1460 2021-01-07 Alan Modra <amodra@gmail.com>
1462 * testsuite/ld-scripts/fill.d: Skip sh-*-pe rather than xfail.
1463 * testsuite/ld-scripts/fill16.d: Don't xfail sh-*-pe.
1464 * testsuite/ld-scripts/segment-start.d: Likewise.
1466 2021-01-07 Alan Modra <amodra@gmail.com>
1468 * testsuite/ld-elf/comm-data5.d: xfail targets that complain
1469 about dynamic relocations in read-only sections.
1470 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
1471 * testsuite/ld-elf/ehdr_start.d: Likewise.
1472 * testsuite/ld-scripts/pr22267.d: Likewise.
1473 * testsuite/ld-elf/shared.exp: Likewise for DT_TEXTREL tests and
1475 * testsuite/ld-elf/sec64k.exp: Don't run 64ksec on lm32-linux.
1477 2021-01-07 Marcus Comstedt <marcus@mc.pp.se>
1479 * testsuite/ld-scripts/empty-address-2a.d: xfail riscv64*-*-*.
1480 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
1482 2021-01-07 Alan Modra <amodra@gmail.com>
1484 * po/BLD-POTFILES.in: Regenerate.
1486 2021-01-07 Alan Modra <amodra@gmail.com>
1488 * testsuite/ld-elf/shared.exp: xfail pr22471 for targets that
1489 complain about relocs in read-only sections. Tidy ASFLAGS append.
1491 2021-01-06 Alan Modra <amodra@gmail.com>
1493 * testsuite/ld-sparc/sparc.exp (sparc64tests): Set text-segment
1494 base for some tests.
1495 * testsuite/ld-sparc/gotop32.dd: Match solaris output.
1496 * testsuite/ld-sparc/gotop32.sd: Likewise.
1497 * testsuite/ld-sparc/gotop32.td: Likewise.
1498 * testsuite/ld-sparc/gotop64.dd: Likewise.
1499 * testsuite/ld-sparc/gotop64.sd: Likewise.
1500 * testsuite/ld-sparc/gotop64.td: Likewise.
1501 * testsuite/ld-sparc/tlsg32.sd: Likewise.
1502 * testsuite/ld-sparc/tlsg64.sd: Likewise.
1503 * testsuite/ld-sparc/tlspie32.dd: Likewise.
1504 * testsuite/ld-sparc/tlspie64.dd: Likewise.
1505 * testsuite/ld-sparc/tlssunbin32.dd: Likewise.
1506 * testsuite/ld-sparc/tlssunbin32.sd: Likewise.
1507 * testsuite/ld-sparc/tlssunbin32.td: Likewise.
1508 * testsuite/ld-sparc/tlssunbin64.dd: Likewise.
1509 * testsuite/ld-sparc/tlssunbin64.sd: Likewise.
1510 * testsuite/ld-sparc/tlssunbin64.td: Likewise.
1511 * testsuite/ld-sparc/tlssunnopic32.dd: Likewise.
1512 * testsuite/ld-sparc/tlssunnopic32.sd: Likewise.
1513 * testsuite/ld-sparc/tlssunnopic64.dd: Likewise.
1514 * testsuite/ld-sparc/tlssunnopic64.sd: Likewise.
1515 * testsuite/ld-sparc/tlssunpic32.dd: Likewise.
1516 * testsuite/ld-sparc/tlssunpic32.sd: Likewise.
1517 * testsuite/ld-sparc/tlssunpic32.td: Likewise.
1518 * testsuite/ld-sparc/tlssunpic64.dd: Likewise.
1519 * testsuite/ld-sparc/tlssunpic64.sd: Likewise.
1520 * testsuite/ld-sparc/tlssunpic64.td: Likewise.
1521 * testsuite/ld-sparc/wdispcall.dd: Likewise.
1523 2021-01-06 Alan Modra <amodra@gmail.com>
1525 * testsuite/ld-scripts/rgn-at10.d: xfail v850.
1526 * testsuite/ld-scripts/rgn-at11.d: Likewise.
1528 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1530 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Added
1531 riscv_choose_[ilp32|lp64]_emul to choose the correct linker script.
1532 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: Call
1533 riscv_choose_[ilp32|lp64]_emul instead of hardcoding elf[32|64]lriscv.
1534 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
1535 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
1536 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
1537 * testsuite/ld-riscv-elf/attr-merge-arch-failed-02.d: Likewise.
1538 * testsuite/ld-riscv-elf/c-lui-2.d: Likewise.
1539 * testsuite/ld-riscv-elf/c-lui.d: Likewise.
1540 * testsuite/ld-riscv-elf/call-relax.d: Likewise.
1541 * testsuite/ld-riscv-elf/pcrel-lo-addend-2.d: Likewise.
1542 * testsuite/ld-riscv-elf/pcrel-lo-addend.d: Likewise.
1543 * testsuite/ld-riscv-elf/weakref32.d: Accept bigriscv in addition
1545 * testsuite/ld-riscv-elf/weakref64.d: Likewise.
1547 2021-01-06 Marcus Comstedt <marcus@mc.pp.se>
1549 * configure.tgt: Added riscvbe-*-*, riscv32be*-*-*, riscv64be*-*-*,
1550 riscv32be*-*-linux*, and riscv64be*-*-linux*.
1551 * Makefile.am: Added eelf32briscv.c, eelf32briscv_ilp32f.c and
1552 eelf32briscv_ilp32.c.
1553 * Makefile.in: Regenerate.
1554 * emulparams/elf32briscv.sh: Added.
1555 * emulparams/elf32briscv_ilp32.sh: Likewise.
1556 * emulparams/elf32briscv_ilp32f.sh: Likewise.
1557 * emulparams/elf64briscv.sh: Likewise.
1558 * emulparams/elf64briscv_lp64.sh: Likewise.
1559 * emulparams/elf64briscv_lp64f.sh: Likewise.
1561 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1563 * testsuite/ld-ctf/enum-forward.c: New test.
1564 * testsuite/ld-ctf/enum-forward.c: New results.
1566 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1568 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1569 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1570 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1571 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1572 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1573 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1574 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1575 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1576 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1577 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1578 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1579 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1580 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1581 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1582 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1583 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1584 * testsuite/ld-ctf/cycle-1.d: Likewise.
1585 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1586 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1587 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1588 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1589 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1590 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1591 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1592 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1593 * testsuite/ld-ctf/forward.d: Likewise.
1594 * testsuite/ld-ctf/function.d: Likewise.
1595 * testsuite/ld-ctf/slice.d: Likewise.
1596 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1597 * testsuite/ld-ctf/enums.c: New test.
1598 * testsuite/ld-ctf/enums.d: New test.
1600 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1602 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Adjust for dumper
1604 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1605 * testsuite/ld-ctf/forward.c: New test...
1606 * testsuite/ld-ctf/forward.d: ... and results.
1608 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1610 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1611 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1612 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1613 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1614 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1615 * testsuite/ld-ctf/function.d: Likewise.
1616 * testsuite/ld-ctf/slice.d: Likewise.
1618 2021-01-05 Nick Alcock <nick.alcock@oracle.com>
1620 * testsuite/ld-ctf/array.d: Adjust for dumper changes.
1621 * testsuite/ld-ctf/conflicting-cycle-1.B-1.d: Likewise.
1622 * testsuite/ld-ctf/conflicting-cycle-1.B-2.d: Likewise.
1623 * testsuite/ld-ctf/conflicting-cycle-1.parent.d: Likewise.
1624 * testsuite/ld-ctf/conflicting-cycle-2.A-1.d: Likewise.
1625 * testsuite/ld-ctf/conflicting-cycle-2.A-2.d: Likewise.
1626 * testsuite/ld-ctf/conflicting-cycle-2.parent.d: Likewise.
1627 * testsuite/ld-ctf/conflicting-cycle-3.C-1.d: Likewise.
1628 * testsuite/ld-ctf/conflicting-cycle-3.C-2.d: Likewise.
1629 * testsuite/ld-ctf/conflicting-cycle-3.parent.d: Likewise.
1630 * testsuite/ld-ctf/conflicting-enums.d: Likewise.
1631 * testsuite/ld-ctf/conflicting-typedefs.d: Likewise.
1632 * testsuite/ld-ctf/cross-tu-cyclic-conflicting.d: Likewise.
1633 * testsuite/ld-ctf/cross-tu-cyclic-nonconflicting.d: Likewise.
1634 * testsuite/ld-ctf/cross-tu-into-cycle.d: Likewise.
1635 * testsuite/ld-ctf/cross-tu-noncyclic.d: Likewise.
1636 * testsuite/ld-ctf/cycle-1.d: Likewise.
1637 * testsuite/ld-ctf/cycle-2.A.d: Likewise.
1638 * testsuite/ld-ctf/cycle-2.B.d: Likewise.
1639 * testsuite/ld-ctf/cycle-2.C.d: Likewise.
1640 * testsuite/ld-ctf/data-func-conflicted.d: Likewise.
1641 * testsuite/ld-ctf/diag-cttname-null.d: Likewise.
1642 * testsuite/ld-ctf/diag-cuname.d: Likewise.
1643 * testsuite/ld-ctf/diag-parlabel.d: Likewise.
1644 * testsuite/ld-ctf/diag-wrong-magic-number-mixed.d: Likewise.
1645 * testsuite/ld-ctf/function.d: Likewise.
1646 * testsuite/ld-ctf/slice.d: Likewise.
1647 * testsuite/ld-ctf/super-sub-cycles.d: Likewise.
1649 2021-01-05 Alan Modra <amodra@gmail.com>
1651 * testsuite/ld-scripts/sysroot-prefix.exp: Exclude some targets.
1653 2021-01-05 Alan Modra <amodra@gmail.com>
1656 * testsuite/ld-elf/pr26256-1b.d: xfail s12z.
1657 * testsuite/ld-scripts/crossref.exp (cross1): Don't xfail ia64.
1659 2021-01-04 H.J. Lu <hongjiu.lu@intel.com>
1662 * ldlang.c (gc_section_callback): Set pattern.
1663 * testsuite/ld-elf/pr26256-1.s: New file.
1664 * testsuite/ld-elf/pr26256-1.t: Likewise.
1665 * testsuite/ld-elf/pr26256-1a.d: Likewise.
1666 * testsuite/ld-elf/pr26256-1b.d: Likewise.
1667 * testsuite/ld-elf/pr26256-2.s: Likewise.
1668 * testsuite/ld-elf/pr26256-2.t: Likewise.
1669 * testsuite/ld-elf/pr26256-2a.d: Likewise.
1670 * testsuite/ld-elf/pr26256-2b-alt.d: Likewise.
1671 * testsuite/ld-elf/pr26256-2b.d: Likewise.
1672 * testsuite/ld-elf/pr26256-3.s: Likewise.
1673 * testsuite/ld-elf/pr26256-3a.d: Likewise.
1674 * testsuite/ld-elf/pr26256-3a.t: Likewise.
1675 * testsuite/ld-elf/pr26256-3b.d: Likewise.
1676 * testsuite/ld-elf/pr26256-3b.t: Likewise.
1678 2021-01-04 Alan Modra <amodra@gmail.com>
1681 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match.
1682 * testsuite/ld-arm/non-contiguous-arm3.d: Likewise.
1683 * testsuite/ld-arm/non-contiguous-arm5.d: Likewise.
1684 * testsuite/ld-arm/non-contiguous-arm6.d: Likewise.
1685 * testsuite/ld-i386/tlsbin.rd: Likewise.
1686 * testsuite/ld-i386/tlsbin2.rd: Likewise.
1687 * testsuite/ld-i386/tlsbindesc.rd: Likewise.
1688 * testsuite/ld-i386/tlsdesc.rd: Likewise.
1689 * testsuite/ld-i386/tlsnopic.rd: Likewise.
1690 * testsuite/ld-i386/tlspic.rd: Likewise.
1691 * testsuite/ld-i386/tlspic2.rd: Likewise.
1692 * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise.
1693 * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise.
1694 * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise.
1695 * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise.
1696 * testsuite/ld-plugin/pr17973.d: Likewise.
1697 * testsuite/ld-tic6x/shlib-1.rd: Likewise.
1698 * testsuite/ld-tic6x/shlib-1b.rd: Likewise.
1699 * testsuite/ld-tic6x/shlib-1r.rd: Likewise.
1700 * testsuite/ld-tic6x/shlib-1rb.rd: Likewise.
1701 * testsuite/ld-tic6x/shlib-app-1.rd: Likewise.
1702 * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise.
1703 * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise.
1704 * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise.
1705 * testsuite/ld-tic6x/shlib-noindex.rd: Likewise.
1706 * testsuite/ld-tic6x/static-app-1.rd: Likewise.
1707 * testsuite/ld-tic6x/static-app-1b.rd: Likewise.
1708 * testsuite/ld-tic6x/static-app-1r.rd: Likewise.
1709 * testsuite/ld-tic6x/static-app-1rb.rd: Likewise.
1710 * testsuite/ld-x86-64/tlsbin.rd: Likewise.
1711 * testsuite/ld-x86-64/tlsbin2.rd: Likewise.
1712 * testsuite/ld-x86-64/tlsbindesc.rd: Likewise.
1713 * testsuite/ld-x86-64/tlsdesc.rd: Likewise.
1714 * testsuite/ld-x86-64/tlspic.rd: Likewise.
1715 * testsuite/ld-x86-64/tlspic2.rd: Likewise.
1716 * testsuite/ld-xtensa/tlsbin.rd: Likewise.
1717 * testsuite/ld-xtensa/tlspic.rd: Likewise.
1719 2021-01-01 Nicolas Boulenguez <nicolas@debian.org>
1721 * configure.tgt: Correct comment grammar.
1722 * emultempl/m68hc1xelf.em: Likewise.
1723 * ld.texi: Correct grammar.
1725 2021-01-01 Alan Modra <amodra@gmail.com>
1727 Update year range in copyright notice of all files.
1729 For older changes see ChangeLog-2020
1731 Copyright (C) 2021 Free Software Foundation, Inc.
1733 Copying and distribution of this file, with or without modification,
1734 are permitted in any medium without royalty provided the copyright
1735 notice and this notice are preserved.
1741 version-control: never