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