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