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