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