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