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