1 2019-10-07 Alan Modra <amodra@gmail.com>
3 * ldmisc.c (vfinfo): Save and restore bfd_error around bfd
4 function calls that might set it.
5 * testsuite/ld-elf/indirect.exp: Don't expect "nonrepresentable
8 2019-10-07 Alan Modra <amodra@gmail.com>
10 * testsuite/ld-powerpc/tlsexe.r: Adjust for added TLSMARK symbol.
11 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
12 * testsuite/ld-powerpc/tlsso.r: Likewise.
13 * testsuite/ld-powerpc/tlsso32.r: Likewise.
14 * testsuite/ld-powerpc/tls32no.d,
15 * testsuite/ld-powerpc/tls32no.g: New test files.
16 * testsuite/ld-powerpc/tlsexe32no.d,
17 * testsuite/ld-powerpc/tlsexe32no.g,
18 * testsuite/ld-powerpc/tlsexe32no.r: New test files.
19 * testsuite/ld-powerpc/tlsexeno.d,
20 * testsuite/ld-powerpc/tlsexeno.g,
21 * testsuite/ld-powerpc/tlsexeno.r: New test files.
22 * testsuite/ld-powerpc/tlsexetocno.d,
23 * testsuite/ld-powerpc/tlsexetocno.g: New test files.
24 * testsuite/ld-powerpc/tlsno.d,
25 * testsuite/ld-powerpc/tlsno.g: New test files.
26 * testsuite/ld-powerpc/tlstocno.d,
27 * testsuite/ld-powerpc/tlstocno.g: New test files.
28 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
30 2019-10-07 Alan Modra <amodra@gmail.com>
32 * testsuite/ld-arm/tls-gdesc-neg.d: Relax target match.
34 2019-10-04 Alan Modra <amodra@gmail.com>
36 * testsuite/ld-powerpc/tlsso.d: Adjust to suit tlsld_got usage change.
37 * testsuite/ld-powerpc/tlsso.g: Likewise.
38 * testsuite/ld-powerpc/tlsso.r: Likewise.
39 * testsuite/ld-powerpc/tlsso32.d: Likewise.
40 * testsuite/ld-powerpc/tlsso32.g: Likewise.
41 * testsuite/ld-powerpc/tlsso32.r: Likewise.
43 2019-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
46 * testsuite/ld-arm/arm-elf.exp: Update.
47 * testsuite/ld-arm/tls-gdesc-neg.d: New test.
48 * testsuite/ld-arm/tls-gdesc-neg.s: New test.
50 2019-09-23 Nick Alcock <nick.alcock@oracle.com>
52 * configure.ac (TESTCTFLIB): Set to the .so or .a, like TESTBFDLIB.
53 * Makefile.am (TESTCTFLIB): Use it.
54 (LIBCTF): Use the .la file.
55 (check-DEJAGNU): Use it.
56 * Makefile.in: Regenerated.
57 * configure: Likewise.
59 2019-09-30 Nick Alcock <nick.alcock@oracle.com>
61 * ldlang.h: (struct lang_input_statement_struct): Add the_ctf.
62 (struct elf_sym_strtab): Add forward.
63 (struct elf_strtab_hash): Likewise.
64 (ldlang_ctf_apply_strsym): Declare.
65 (ldlang_write_ctf_late): Likewise.
66 * ldemul.h (ldemul_emit_ctf_early): New.
67 (ldemul_examine_strtab_for_ctf): Likewise.
68 (ld_emulation_xfer_type) <emit_ctf_early>: Likewise.
69 (ld_emulation_xfer_type) <examine_strtab_for_ctf>: Likewise.
70 * ldemul.c (ldemul_emit_ctf_early): New.
71 (ldemul_examine_strtab_for_ctf): Likewise.
72 * ldlang.c: Include ctf-api.h.
73 (CTF_COMPRESSION_THRESHOLD): New.
74 (ctf_output): New. Initialized in...
75 (ldlang_open_ctf): ... this new function. Open all the CTF
76 sections in the input files: mark them non-loaded and empty
77 so as not to copy their contents to the output, but linker-created
78 so the section gets created in the target.
79 (ldlang_merge_ctf): New, merge types via ctf_link_add_ctf and
81 (ldlang_ctf_apply_strsym): New, an examine_strtab callback: wrap
82 ldemul_examine_strtab_for_ctf.
83 (lang_write_ctf): New, write out the CTF section.
84 (ldlang_write_ctf_late): New, late call via bfd's emit_ctf hook.
85 (lang_process): Call ldlang_open_ctf, ldlang_merge_ctf, and
87 * ldmain.c (link_callbacks): Add ldlang_ctf_apply_strsym,
88 ldlang_write_ctf_late.
89 * emultempl/aix.em: Add ctf-api.h.
90 * emultempl/armcoff.em: Likewise.
91 * emultempl/beos.em: Likewise.
92 * emultempl/elf.em: Likewise.
93 * emultempl/generic.em: Likewise.
94 * emultempl/linux.em: Likewise.
95 * emultempl/msp430.em: Likewise.
96 * emultempl/pe.em: Likewise.
97 * emultempl/pep.em: Likewise.
98 * emultempl/ticoff.em: Likewise.
99 * emultempl/vanilla.em: Likewise.
100 * ldcref.c: Likewise.
101 * ldctor.c: Likewise.
103 * ldelfgen.c: Likewise.
104 * ldemul.c: Likewise.
106 * ldfile.c: Likewise.
107 * ldgram.c: Likewise.
109 * ldmain.c: Likewise.
110 * ldmisc.c: Likewise.
112 * ldwrite.c: Likewise.
113 * lexsup.c: Likewise.
115 * pe-dll.c: Likewise.
116 * plugin.c: Likewise.
118 * ldelfgen.c (ldelf_emit_ctf_early): New.
119 (ldelf_examine_strtab_for_ctf): tell libctf about the symtab and
121 (struct ctf_strsym_iter_cb_arg): New, state to do so.
122 (ldelf_ctf_strtab_iter_cb): New: tell libctf about
123 each string in the strtab in turn.
124 (ldelf_ctf_symbols_iter_cb): New, tell libctf
125 about each symbol in the symtab in turn.
126 * ldelfgen.h (struct elf_sym_strtab): Add forward.
127 (struct elf_strtab_hash): Likewise.
128 (struct ctf_file): Likewise.
129 (ldelf_emit_ctf_early): Declare.
130 (ldelf_examine_strtab_for_ctf): Likewise.
131 * emultempl/elf-generic.em (LDEMUL_EMIT_CTF_EARLY): Set it.
132 (LDEMUL_EXAMINE_STRTAB_FOR_CTF): Likewise.
133 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
134 emit_ctf_early and examine_strtab_for_ctf, NULL by default.
135 * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
136 * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
137 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Likewise.
138 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
139 * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Likewise.
140 * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
141 * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
142 * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
143 * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
144 * emultempl/vanilla.em (ld_vanilla_emulation): Likewise.
146 * Makefile.am: Pull in libctf (and zlib, a transitive requirement
147 for compressed CTF section emission). Pass it on to DejaGNU.
148 * configure.ac: Add AM_ZLIB.
149 * aclocal.m4: Added zlib.m4.
150 * Makefile.in: Regenerated.
151 * testsuite/ld-bootstrap/bootstrap.exp: Use it when relinking ld.
153 2019-10-02 Alan Modra <amodra@gmail.com>
155 * ld.texi (-Bsymbolic, -Bsymbolic-functions): Don't mention PIEs.
156 * ld.h (symbolic_enum, dynamic_list_enum),
157 (args_type <symbolic, dynamic_list>): Move to..
158 * lexsup.c (parse_args): ..here, using auto vars opt_symbolic
159 and opt_dynamic_list rather than command_line fields. Only
160 act on -Bsymbolic and -Bsymbolic-functions for shared library
161 output. Free dynamic_list.
163 2019-09-26 Alan Modra <amodra@gmail.com>
166 * ld.texi (-plugin): Revert 2019-03-15 change.
168 2019-09-25 Alan Modra <amodra@gmail.com>
170 * ld.texi (SORT_BY_ALIGNMENT): Reword slightly.
171 (SORT_BY_INIT_PRIORITY): Elucidate.
172 * ldlang.c: Include limits.h.
173 (get_init_priority): Comment. Change param to a section,
174 return an int. Sanity check priority digits. Support sorting
175 more sections with trailing digits. Return -1 on error.
176 (compare_section): Adjust.
178 2019-09-25 Nick Clifton <nickc@redhat.com>
180 * emultempl/avrelf.em (_before_allocation): Silence build warning
183 2019-09-23 H.J. Lu <hongjiu.lu@intel.com>
185 * testsuite/ld-plugin/pr24406-1.c (main): Correct buffer size
188 2019-09-23 Alan Modra <amodra@gmail.com>
190 * deffilep.y: Include bfdlink.h.
192 * ldelfgen.c: Likewise.
195 * emultempl/irix.em: Don't include ld.h, ldmain.h, libiberty.h.
198 2019-09-23 Alan Modra <amodra@gmail.com>
200 * emultempl/m68kelf.em: Include elf32-m68k.h.
202 2019-09-23 Alan Modra <amodra@gmail.com>
204 * emultempl/bfin.em: Include elf32-bfin.h.
206 2019-09-23 Alan Modra <amodra@gmail.com>
208 * emultempl/cr16elf.em: Include elf32-cr16.h.
210 2019-09-23 Alan Modra <amodra@gmail.com>
212 * emultempl/aix.em: Include xcofflink.h.
214 2019-09-23 Alan Modra <amodra@gmail.com>
216 * emultempl/armelf.em: Include elf32-arm.h.
217 * emultempl/pe.em: Move func defines later and include coff-arm.h.
219 2019-09-23 Alan Modra <amodra@gmail.com>
221 * emultempl/aarch64elf.em: Include elfxx-aarch64.h.
223 2019-09-23 Alan Modra <amodra@gmail.com>
225 * emultempl/ia64elf.em: Include elfxx-ia64.h.
227 2019-09-23 Alan Modra <amodra@gmail.com>
229 * emultempl/v850elf.em: Include elf32-v850.h.
231 2019-09-23 Alan Modra <amodra@gmail.com>
233 * emultempl/cskyelf.em: Include elf32-csky.h.
235 2019-09-22 Alan Modra <amodra@gmail.com>
237 * testsuite/ld-srec/sr3.cc (FOO_MSG_LEN): Set to 4.
239 2019-09-20 Nelson Chu <nelson.chu@sifive.com>
241 * testsuite/ld-riscv-elf/weakref32.s: Add relaxable undef weak code.
242 * testsuite/ld-riscv-elf/weakref64.s: Likewise.
243 * testsuite/ld-riscv-elf/weakref32.d: Updated.
244 * testsuite/ld-riscv-elf/weakref64.d: Updated.
246 2019-09-20 Alan Modra <amodra@gmail.com>
248 * emultempl/xtensaelf.em (xtensa_get_section_deps): Comment.
249 Use bfd_section_userdata.
250 (xtensa_set_section_deps): Use bfd_set_section_userdata.
251 * ldlang.c (lang_output_section_get): Use bfd_section_userdata.
252 (sort_def_symbol): Likewise, and bfd_set_section_userdata.
253 (init_os): Use bfd_set_section_userdata.
254 (print_all_symbols): Use bfd_section_userdata.
255 * ldlang.h (get_userdata): Delete.
257 2019-09-20 Alan Modra <amodra@gmail.com>
259 * ldelf.c (ldelf_after_open, ldelf_place_orphan
260 * ldlang.c (walk_wild_file, lang_process): Use bfd_usrdata.
261 (load_symbols, ldlang_add_file): Use bfd_set_usrdata.
262 * ldmain.c (add_archive_element): Use bfd_usrdata.
263 * ldlang.h (bfd_input_just_syms): New inline function.
264 * emultempl/aarch64elf.em (build_section_lists): Use it.
265 * emultempl/mmo.em (mmo_place_orphan): Likewise.
266 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
267 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
268 * emultempl/ppc64elf.em (build_section_lists): Likewise.
270 2019-09-18 Alan Modra <amodra@gmail.com>
272 * ldcref.c, * ldctor.c, * ldelf.c, * ldlang.c, * pe-dll.c,
273 * emultempl/aarch64elf.em, * emultempl/aix.em,
274 * emultempl/armcoff.em, * emultempl/armelf.em,
275 * emultempl/cr16elf.em, * emultempl/cskyelf.em,
276 * emultempl/m68hc1xelf.em, * emultempl/m68kelf.em,
277 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
278 * emultempl/mmo.em, * emultempl/msp430.em,
279 * emultempl/nios2elf.em, * emultempl/pe.em, * emultempl/pep.em,
280 * emultempl/ppc64elf.em, * emultempl/xtensaelf.em: Update
281 throughout for bfd section macro and function changes.
283 2019-09-18 Alan Modra <amodra@gmail.com>
285 * ldcref.c (check_reloc_refs): Update bfd_get_section to
288 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
290 * Makefile.in: Re-generate.
291 * configure: Re-generate.
293 2019-09-18 Alan Modra <amodra@gmail.com>
295 * ldlang.c (stricpy, strcut, name_compare): Constify params.
296 (get_first_input_target): Make return and "target" const.
298 2019-09-18 Alan Modra <amodra@gmail.com>
300 * emultempl/pe.em (after_open): Use bfd_set_filename.
301 * emultempl/pep.em (after_open): Use bfd_set_filename.
303 2019-09-16 Alan Modra <amodra@gmail.com>
306 * ldelf.c: Include safe-ctype.h.
308 2019-09-16 Phil Blundell <pb@pbcl.net>
310 * Makefile.in, configure: Regenerated.
312 2019-09-13 Alan Modra <amodra@gmail.com>
314 * ldlang.c (new_afile): Remove add_to_list parameter.
315 (lang_add_input_file): Update new_afile calls.
316 (lookup_name): Splice input_statement added by new_afile into
317 statement_list after current input_file_chain entry.
318 (lang_process): Update comment.
320 2019-09-12 Alan Modra <amodra@gmail.com>
322 * ldlang.c (print_input_statement): Do not exclude linker created
325 2019-09-12 Alan Modra <amodra@gmail.com>
328 * ldlang.c (lang_process): Remove assertion. Comment.
330 2019-09-11 Alan Modra <amodra@gmail.com>
332 * emultempl/elf32.em: Remove "misnamed" comment. Rename to..
333 * emultempl/elf.em: ..this.
334 * configure.ac (elf_list_options): Adjust TEMPLATE_NAME grep.
335 * emulparams/aarch64cloudabi.sh (TEMPLATE_NAME): Set to elf.
336 * emulparams/aarch64elf.sh: Likewise.
337 * emulparams/aarch64elf32.sh: Likewise.
338 * emulparams/aarch64fbsd.sh: Likewise.
339 * emulparams/aarch64linux.sh: Likewise.
340 * emulparams/aarch64linux32.sh: Likewise.
341 * emulparams/arcelf.sh: Likewise.
342 * emulparams/arcelf_prof.sh: Likewise.
343 * emulparams/arclinux.sh: Likewise.
344 * emulparams/arclinux_prof.sh: Likewise.
345 * emulparams/arcv2elf.sh: Likewise.
346 * emulparams/arcv2elfx.sh: Likewise.
347 * emulparams/armelf.sh: Likewise.
348 * emulparams/armelf_fuchsia.sh: Likewise.
349 * emulparams/armelf_linux.sh: Likewise.
350 * emulparams/armelf_phoenix.sh: Likewise.
351 * emulparams/armnto.sh: Likewise.
352 * emulparams/avr1.sh: Likewise.
353 * emulparams/avr2.sh: Likewise.
354 * emulparams/avr25.sh: Likewise.
355 * emulparams/avr3.sh: Likewise.
356 * emulparams/avr31.sh: Likewise.
357 * emulparams/avr35.sh: Likewise.
358 * emulparams/avr4.sh: Likewise.
359 * emulparams/avr5.sh: Likewise.
360 * emulparams/avr51.sh: Likewise.
361 * emulparams/avr6.sh: Likewise.
362 * emulparams/avrtiny.sh: Likewise.
363 * emulparams/avrxmega1.sh: Likewise.
364 * emulparams/avrxmega2.sh: Likewise.
365 * emulparams/avrxmega3.sh: Likewise.
366 * emulparams/avrxmega4.sh: Likewise.
367 * emulparams/avrxmega5.sh: Likewise.
368 * emulparams/avrxmega6.sh: Likewise.
369 * emulparams/avrxmega7.sh: Likewise.
370 * emulparams/criself.sh: Likewise.
371 * emulparams/crislinux.sh: Likewise.
372 * emulparams/cskyelf.sh: Likewise.
373 * emulparams/d10velf.sh: Likewise.
374 * emulparams/elf32_sparc.sh: Likewise.
375 * emulparams/elf32_spu.sh: Likewise.
376 * emulparams/elf32_tic6x_le.sh: Likewise.
377 * emulparams/elf32_x86_64.sh: Likewise.
378 * emulparams/elf32am33lin.sh: Likewise.
379 * emulparams/elf32bfin.sh: Likewise.
380 * emulparams/elf32bfinfd.sh: Likewise.
381 * emulparams/elf32bmip.sh: Likewise.
382 * emulparams/elf32bmipn32-defs.sh: Likewise.
383 * emulparams/elf32cr16.sh: Likewise.
384 * emulparams/elf32cr16c.sh: Likewise.
385 * emulparams/elf32crx.sh: Likewise.
386 * emulparams/elf32epiphany.sh: Likewise.
387 * emulparams/elf32epiphany_4x4.sh: Likewise.
388 * emulparams/elf32frvfd.sh: Likewise.
389 * emulparams/elf32ip2k.sh: Likewise.
390 * emulparams/elf32lm32.sh: Likewise.
391 * emulparams/elf32lm32fd.sh: Likewise.
392 * emulparams/elf32lriscv-defs.sh: Likewise.
393 * emulparams/elf32m32c.sh: Likewise.
394 * emulparams/elf32mb_linux.sh: Likewise.
395 * emulparams/elf32mbel_linux.sh: Likewise.
396 * emulparams/elf32mcore.sh: Likewise.
397 * emulparams/elf32mep.sh: Likewise.
398 * emulparams/elf32metag.sh: Likewise.
399 * emulparams/elf32microblaze.sh: Likewise.
400 * emulparams/elf32mipswindiss.sh: Likewise.
401 * emulparams/elf32or1k.sh: Likewise.
402 * emulparams/elf32ppccommon.sh: Likewise.
403 * emulparams/elf32rl78.sh: Likewise.
404 * emulparams/elf32rx.sh: Likewise.
405 * emulparams/elf32tilegx.sh: Likewise.
406 * emulparams/elf32tilepro.sh: Likewise.
407 * emulparams/elf32vax.sh: Likewise.
408 * emulparams/elf32visium.sh: Likewise.
409 * emulparams/elf32xc16x.sh: Likewise.
410 * emulparams/elf32xc16xl.sh: Likewise.
411 * emulparams/elf32xc16xs.sh: Likewise.
412 * emulparams/elf32xstormy16.sh: Likewise.
413 * emulparams/elf32xtensa.sh: Likewise.
414 * emulparams/elf64_aix.sh: Likewise.
415 * emulparams/elf64_ia64.sh: Likewise.
416 * emulparams/elf64_s390.sh: Likewise.
417 * emulparams/elf64_sparc.sh: Likewise.
418 * emulparams/elf64alpha.sh: Likewise.
419 * emulparams/elf64bpf.sh: Likewise.
420 * emulparams/elf64hppa.sh: Likewise.
421 * emulparams/elf64mmix.sh: Likewise.
422 * emulparams/elf64rdos.sh: Likewise.
423 * emulparams/elf64tilegx.sh: Likewise.
424 * emulparams/elf_i386.sh: Likewise.
425 * emulparams/elf_i386_be.sh: Likewise.
426 * emulparams/elf_i386_ldso.sh: Likewise.
427 * emulparams/elf_i386_vxworks.sh: Likewise.
428 * emulparams/elf_iamcu.sh: Likewise.
429 * emulparams/elf_k1om.sh: Likewise.
430 * emulparams/elf_l1om.sh: Likewise.
431 * emulparams/elf_s390.sh: Likewise.
432 * emulparams/elf_x86_64.sh: Likewise.
433 * emulparams/h8300elf.sh: Likewise.
434 * emulparams/h8300elf_linux.sh: Likewise.
435 * emulparams/hppa64linux.sh: Likewise.
436 * emulparams/hppaelf.sh: Likewise.
437 * emulparams/hppalinux.sh: Likewise.
438 * emulparams/i386lynx.sh: Likewise.
439 * emulparams/i386moss.sh: Likewise.
440 * emulparams/i386nto.sh: Likewise.
441 * emulparams/m32relf.sh: Likewise.
442 * emulparams/m32relf_linux.sh: Likewise.
443 * emulparams/m68hc11elf.sh: Likewise.
444 * emulparams/m68hc11elfb.sh: Likewise.
445 * emulparams/m68hc12elf.sh: Likewise.
446 * emulparams/m68hc12elfb.sh: Likewise.
447 * emulparams/m68kelf.sh: Likewise.
448 * emulparams/mn10300.sh: Likewise.
449 * emulparams/nds32elf.sh: Likewise.
450 * emulparams/nds32elf16m.sh: Likewise.
451 * emulparams/nds32elf_linux.sh: Likewise.
452 * emulparams/nios2elf.sh: Likewise.
453 * emulparams/nios2linux.sh: Likewise.
454 * emulparams/pruelf.sh: Likewise.
455 * emulparams/score3_elf.sh: Likewise.
456 * emulparams/shelf.sh: Likewise.
457 * emulparams/shelf_nto.sh: Likewise.
458 * emulparams/shelf_vxworks.sh: Likewise.
459 * emulparams/shlelf_linux.sh: Likewise.
460 * emulparams/shlelf_nto.sh: Likewise.
461 * emulparams/v850.sh: Likewise.
462 * emulparams/v850_rh850.sh: Likewise.
463 * ldelf.c: Update comment.
465 * emultempl/aarch64elf.em: Likewise.
466 * emultempl/alphaelf.em: Likewise.
467 * emultempl/arclinux.em: Likewise.
468 * emultempl/armelf.em: Likewise.
469 * emultempl/avrelf.em: Likewise.
470 * emultempl/bfin.em: Likewise.
471 * emultempl/cr16elf.em: Likewise.
472 * emultempl/crxelf.em: Likewise.
473 * emultempl/cskyelf.em: Likewise.
474 * emultempl/elf-generic.em: Likewise.
475 * emultempl/elf-x86.em: Likewise.
476 * emultempl/epiphanyelf_4x4.em: Likewise.
477 * emultempl/hppaelf.em: Likewise.
478 * emultempl/ia64elf.em: Likewise.
479 * emultempl/m68hc1xelf.em: Likewise.
480 * emultempl/m68kelf.em: Likewise.
481 * emultempl/metagelf.em: Likewise.
482 * emultempl/mmix-elfnmmo.em: Likewise.
483 * emultempl/mmixelf.em: Likewise.
484 * emultempl/mmo.em: Likewise.
485 * emultempl/needrelax.em: Likewise.
486 * emultempl/nios2elf.em: Likewise.
487 * emultempl/ppc32elf.em: Likewise.
488 * emultempl/ppc64elf.em: Likewise.
489 * emultempl/pruelf.em: Likewise.
490 * emultempl/rxelf.em: Likewise.
491 * emultempl/scoreelf.em: Likewise.
492 * emultempl/spuelf.em: Likewise.
493 * emultempl/tic6xdsbt.em: Likewise.
494 * emultempl/v850elf.em: Likewise.
495 * emultempl/vms.em: Likewise.
496 * emultempl/vxworks.em: Likewise.
497 * emultempl/xtensaelf.em: Likewise.
498 * scripttempl/arclinux.sc: Likewise.
499 * scripttempl/armbpabi.sc: Likewise.
500 * scripttempl/elf.sc: Likewise.
501 * scripttempl/elf64bpf.sc: Likewise.
502 * scripttempl/elf64hppa.sc: Likewise.
503 * scripttempl/elf_chaos.sc: Likewise.
504 * scripttempl/elfarc.sc: Likewise.
505 * scripttempl/elfarcv2.sc: Likewise.
506 * scripttempl/elfd10v.sc: Likewise.
507 * scripttempl/elfm68hc11.sc: Likewise.
508 * scripttempl/elfm68hc12.sc: Likewise.
509 * scripttempl/elfm9s12z.sc: Likewise.
510 * scripttempl/elfxgate.sc: Likewise.
511 * scripttempl/elfxtensa.sc: Likewise.
512 * scripttempl/epiphany_4x4.sc: Likewise.
513 * scripttempl/iq2000.sc: Likewise.
514 * scripttempl/mep.sc: Likewise.
515 * scripttempl/nds32elf.sc: Likewise.
516 * scripttempl/v850.sc: Likewise.
517 * scripttempl/v850_rh850.sc: Likewise.
518 * scripttempl/xstormy16.sc: Likewise.
519 * testsuite/ld-arm/arm-dyn.ld: Likewise.
520 * testsuite/ld-arm/arm-lib.ld: Likewise.
521 * testsuite/ld-arm/arm-no-rel-plt.ld: Likewise.
522 * testsuite/ld-arm/fdpic-main.ld: Likewise.
523 * testsuite/ld-arm/fdpic-shared.ld: Likewise.
524 * testsuite/ld-elf/elf.exp: Likewise.
525 * testsuite/ld-elf/orphan-region.d: Likewise.
526 * testsuite/ld-elf/orphan.d: Likewise.
527 * testsuite/ld-elf/pr349.d: Likewise.
528 * testsuite/ld-elf/warn2.d: Likewise.
529 * testsuite/ld-elfvsb/elf-offset.ld: Likewise.
530 * testsuite/ld-mips-elf/mips-dyn.ld: Likewise.
531 * testsuite/ld-mips-elf/mips-lib.ld: Likewise.
532 * testsuite/ld-scripts/dynamic-sections.t: Likewise.
533 * testsuite/ld-shared/elf-offset.ld: Likewise.
534 * configure: Regenerate.
536 2019-09-11 Alan Modra <amodra@gmail.com>
538 * Makefile.am (ALL_EMUL_EXTRA_OFILES): Add ldelf and ldelfgen.
539 (CFILES, HFILES, EXTRA_ld_new_SOURCES): Likewise.
540 * configure.tgt: Formatting.
541 (targ_extra_ofiles): Init to ldelf.o ldelfgen.o, reset to just
542 ldelfgen.o for generic ELF targets, and empty for non-ELF.
543 * emultempl/aarch64elf.em (gldaarch64_layout_sections_again): Use
545 (gld${EMULATION_NAME}_after_allocation): Likewise.
546 (real_func, aarch64_for_each_input_file_wrapper),
547 (aarch64_lang_for_each_input_file): Delete.
548 (lang_for_each_input_file): Don't define.
549 * emultempl/alphaelf.em (alpha_after_parse): Use ldelf_map_segments.
550 * emultempl/armelf.em (gldarm_layout_sections_again): Likewise.
551 (gld${EMULATION_NAME}_after_allocation): Likewise.
552 (real_func, arm_for_each_input_file_wrapper),
553 (arm_lang_for_each_input_file): Delete.
554 (lang_for_each_input_file): Don't define.
555 * emultempl/cr16elf.em (cr16elf_after_parse): Use ldelf_map_segments.
556 * emultempl/crxelf.em (crxelf_after_parse): Likewise. Delete
558 * emultempl/cskyelf.em (gldcsky_layout_sections_again): Use
560 (gld${EMULATION_NAME}_after_allocation): Likewise.
561 (real_func, csky_for_each_input_file_wrapper),
562 (csky_lang_for_each_input_file): Delete.
563 (lang_for_each_input_file): Don't define.
564 * emultempl/genelf.em: Include ldelfgen.h.
565 (gld${EMULATION_NAME}_before_allocation): Use ldelf_map_segments.
566 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
567 (hppaelf_layout_sections_again): Likewise.
568 (gld${EMULATION_NAME}_after_allocation): Likewise.
569 (real_func, hppa_for_each_input_file_wrapper),
570 (hppa_lang_for_each_input_file): Delete.
571 (lang_for_each_input_file): Don't define.
572 * emultempl/ia64elf.em (ia64elf_after_parse): Use ldelf_map_segments.
573 * emultempl/m68hc1xelf.em (real_func),
574 (m68hc11_for_each_input_file_wrapper),
575 (m68hc11_lang_for_each_input_file): Delete.
576 (lang_for_each_input_file): Don't define.
577 * emultempl/metagelf.em (metagelf_layout_sections_again): Use
579 (gld${EMULATION_NAME}_after_allocation): Likewise.
580 (real_func, metag_for_each_input_file_wrapper),
581 (metag_lang_for_each_input_file): Delete.
582 (lang_for_each_input_file): Don't define.
583 * emultempl/mipself.em (real_func),
584 (mips_for_each_input_file_wrapper),
585 (mips_lang_for_each_input_file): Delete.
586 (lang_for_each_input_file): Don't define.
587 * emultempl/mmo.em: Don't include elf-bfd.h, do include ldelfgen.h.
588 (gld${EMULATION_NAME}_after_allocation): Use ldelf_map_segments.
589 * emultempl/nds32elf.em (nds32_elf_after_parse): Use ldelf_after_parse.
590 (nds32_elf_after_allocation): Comment fix.
591 * emultempl/nios2elf.em (nios2elf_layout_sections_again): Use
593 (gld${EMULATION_NAME}_after_allocation): Likewise.
594 (real_func, nios2_for_each_input_file_wrapper),
595 (nios2_lang_for_each_input_file): Delete.
596 (lang_for_each_input_file): Don't define.
597 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_load_symbols): Delete
599 (ppc_recognized_file): Call ldelf_load_symbols.
600 * emultempl/ppc64elf.em (ppc_layout_sections_again): Likewise.
601 (gld${EMULATION_NAME}_after_allocation): Likewise.
602 (real_func, ppc_for_each_input_file_wrapper),
603 (ppc_lang_for_each_input_file): Delete.
604 (lang_for_each_input_file): Don't define.
605 (gld${EMULATION_NAME}_load_symbols): Don't declare.
606 (ppc64_recognized_file): Call ldelf_load_symbols.
607 * emultempl/riscvelf.em (gld${EMULATION_NAME}_after_allocation):
608 Use ldelf_map_segments.
609 * emultempl/spuelf.em (spu_place_special_section): Use
611 * emultempl/tic6xdsbt.em (gld${EMULATION_NAME}_after_allocation):
612 Use ldelf_map_segments.
613 * emultempl/vms.em: Include ldelfgen.h.
614 (gld${EMULATION_NAME}_after_allocation): Use ldelf_map_segments.
615 * emultempl/elf32.em: Remove unnecessary headers, include ldelf.h
616 and ldelfgen.h. Move much of file content to..
617 * ldelf.c: ..here. New file.
619 * emultempl/elf-generic.em: Move gld${EMULATION_NAME}_map_segments..
620 * ldelfgen.c: ..to here.
621 * ldelfgen.h: New file.
622 * ldlang.c (lang_for_each_input_file): Adjust to only call func
624 (lang_for_each_file): Likewise.
625 * po/SRC-POTFILES.in: Regenerate.
626 * Makefile.in: Regenerate.
628 2019-09-11 Alan Modra <amodra@gmail.com>
630 * ldmisc.c: Don't #include elf-bfd.h or coff-bfd.h.
631 (vfinfo): Use bfd_group_name.
633 2019-09-11 Alan Modra <amodra@gmail.com>
635 * plugin.c (asymbol_from_plugin_symbol): Move code handling
636 ELF common symbols to block handling ELF visibility. Simplify
639 2019-09-09 H.J. Lu <hongjiu.lu@intel.com>
642 * testsuite/ld-i386/property-1.r: Adjust for new output format
644 * testsuite/ld-i386/property-1a.r: Likewise.
645 * testsuite/ld-i386/property-2.r: Likewise.
646 * testsuite/ld-i386/property-2a.r: Likewise.
647 * testsuite/ld-i386/property-3.r: Likewise.
648 * testsuite/ld-i386/property-3a.r: Likewise.
649 * testsuite/ld-i386/property-4.r: Likewise.
650 * testsuite/ld-i386/property-4a.r: Likewise.
651 * testsuite/ld-i386/property-5.r: Likewise.
652 * testsuite/ld-i386/property-5a.r: Likewise.
653 * testsuite/ld-i386/property-6.r: Likewise.
654 * testsuite/ld-i386/property-7.r: Likewise.
655 * testsuite/ld-i386/property-7a.r: Likewise.
656 * testsuite/ld-i386/property-1.r: Likewise.
657 * testsuite/ld-i386/property-1a.r: Likewise.
658 * testsuite/ld-i386/property-2.r: Likewise.
659 * testsuite/ld-i386/property-2a.r: Likewise.
660 * testsuite/ld-i386/property-3.r: Likewise.
661 * testsuite/ld-i386/property-3a.r: Likewise.
662 * testsuite/ld-i386/property-4.r: Likewise.
663 * testsuite/ld-i386/property-4a.r: Likewise.
664 * testsuite/ld-i386/property-5.r: Likewise.
665 * testsuite/ld-i386/property-5a.r: Likewise.
666 * testsuite/ld-i386/property-6.r: Likewise.
667 * testsuite/ld-i386/property-7.r: Likewise.
668 * testsuite/ld-i386/property-7a.r: Likewise.
670 2019-09-09 Phil Blundell <pb@pbcl.net>
672 binutils 2.33 branch created.
674 2019-09-06 Alan Modra <amodra@gmail.com>
676 * emultempl/beos.em (sort_by_file_name): Use appropriate
677 intermediary variables.
678 (sort_by_section_name): Likewise.
680 2019-09-06 Alan Modra <amodra@gmail.com>
682 * emultempl/elf32.em (gld${EMULATION_NAME}_search_needed): Constify
684 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
685 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
687 2019-09-05 Eric Botcazou <ebotcazou@adacore.com>
690 * pe-dll.c (pe_find_data_imports): Replace again the original name of
691 the undefined symbol with the __imp_ prefixed one after it is resolved.
693 2019-09-05 Alan Modra <amodra@gmail.com>
695 * testsuite/ld-powerpc/pcrelopt.s,
696 * testsuite/ld-powerpc/pcrelopt.d: Test offset and prefix in
699 2019-08-29 Alan Modra <amodra@gmail.com>
702 * plugin.c (get_symbols): Test link_info.wrap_hash before calling
705 2019-08-22 Tamar Christina <tamar.christina@arm.com>
708 * testsuite/ld-aarch64/aarch64-elf.exp (undef-tls, weak-tls): New.
709 * testsuite/ld-aarch64/undef-tls.d: New test.
710 * testsuite/ld-aarch64/undef-tls.s: New test.
711 * testsuite/ld-aarch64/weak-tls.d: New test.
712 * testsuite/ld-aarch64/weak-tls.s: New test.
714 2019-08-20 Tamar Christina <tamar.christina@arm.com>
716 * testsuite/ld-arm/cortex-a8-fix-b-plt.d: Update Testcase.
717 * testsuite/ld-arm/cortex-a8-fix-b-rel-arm.d: Likewise.
718 * testsuite/ld-arm/cortex-a8-fix-bcc-plt.d: Likewise.
719 * testsuite/ld-arm/farcall-cond-thumb-arm.d: Likewise.
720 * testsuite/ld-arm/farcall-mixed-app.d: Likewise.
721 * testsuite/ld-arm/farcall-mixed-app2.d: Likewise.
722 * testsuite/ld-arm/farcall-mixed-lib-v4t.d: Likewise.
723 * testsuite/ld-arm/farcall-thumb-arm-pic-veneer.d: Likewise.
724 * testsuite/ld-arm/farcall-thumb-arm-short.d: Likewise.
725 * testsuite/ld-arm/farcall-thumb-arm.d: Likewise.
726 * testsuite/ld-arm/farcall-thumb-thumb-pic-veneer.d: Likewise.
727 * testsuite/ld-arm/farcall-thumb-thumb.d: Likewise.
728 * testsuite/ld-arm/fix-arm1176-on.d: Likewise.
729 * testsuite/ld-arm/ifunc-10.dd: Likewise.
730 * testsuite/ld-arm/ifunc-2.dd: Likewise.
731 * testsuite/ld-arm/ifunc-4.dd: Likewise.
732 * testsuite/ld-arm/ifunc-6.dd: Likewise.
733 * testsuite/ld-arm/ifunc-8.dd: Likewise.
734 * testsuite/ld-arm/jump-reloc-veneers-long.d: Likewise.
735 * testsuite/ld-arm/mixed-app.d: Likewise.
736 * testsuite/ld-arm/thumb2-b-interwork.d: Likewise.
737 * testsuite/ld-arm/tls-longplt.d: Likewise.
738 * testsuite/ld-arm/tls-thumb1.d: Likewise.
740 2019-08-16 H.J. Lu <hongjiu.lu@intel.com>
743 * testsuite/ld-x86-64/pr24905-x32.d: New file.
744 * testsuite/ld-x86-64/pr24905.d: Likewise.
745 * testsuite/ld-x86-64/pr24905.s: Likewise.
746 * testsuite/ld-x86-64/pr24905.t: Likewise.
747 * testsuite/ld-x86-64/x86-64.exp: Run pr24905 and pr24905-x32.
749 2019-08-16 Christophe Lyon <christophe.lyon@linaro.org>
751 * emulparams/armelf.sh (OTHER_SECTIONS): Add support for noinit
754 2019-08-16 Alan Modra <amodra@gmail.com>
756 * emultempl/ppc32elf.em (ppc_before_allocation): Force running
757 prelim_size_sections before deciding whether branch trampolines
760 2019-08-15 Jim Wilson <jimw@sifive.com>
762 * testsuite/ld-riscv-elf/c-lui-2.d: New.
763 * testsuite/ld-riscv-elf/c-lui-2.ld: New.
764 * testsuite/ld-riscv-elf/c-lui-2.s: New.
765 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run the c-lui-2 test.
767 2019-08-10 Alan Modra <amodra@gmail.com>
769 * ldlang.h (enum statement_enum): Sort.
770 (union lang_statement_union): Sort.
772 2019-08-10 Alan Modra <amodra@gmail.com>
774 * ldlang.h (lang_common_statement_type): Delete.
775 (lang_object_symbols_statement_type): Delete.
776 (union lang_statement_union): Remove common_statement and
777 object_symbols_statement.
779 2019-08-10 Alan Modra <amodra@gmail.com>
781 * ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop, exp_trinop),
782 (exp_unop, exp_nameop, exp_assop, exp_assert): Remove casts of
783 stat_alloc return value.
784 * ldlang.c (new_statement, new_afile, sort_def_symbol),
785 (lang_memory_region_lookup, lang_memory_region_alias),
786 (ldlang_add_undef, ldlang_add_require_defined, insert_pad),
787 (lang_add_gc_name, lang_new_phdr): Likewise.
788 * lexsup.c (set_segment_start): Likewise.
790 2019-08-10 Alan Modra <amodra@gmail.com>
792 * ldlang.h (lang_input_statement_type): Make next
793 and next_real_file a lang_input_statement_type pointer.
794 (lang_statement_append): Delete prototype.
795 (LANG_FOR_EACH_INPUT_STATEMENT): Update for lang_input_statement_type
797 * ldmain.c (add_archive_element): Likewise.
798 * ldlang.c: Likewise throughout.
799 (lang_statement_append): Make static. Make element and field
800 void pointers. Remove casts in calls.
801 (lang_check): Use a lang_input_statement_type pointer for "file".
802 (find_rescan_insertion): Similarly for "iter" and return value.
803 (lang_process): Similarly for "insert", "iter" and "temp".
804 * emultempl/spuelf.em (embedded_spu_file): Likewise.
805 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Expand
806 lang_statment_append call.
808 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
810 * emulparams/elf32bmip.sh: Add .MIPS.xhash section.
811 * emulparams/elf32bmipn32-defs.sh: Add .MIPS.xhash section.
812 * emulparams/elf64bmip-defs.sh: Add .MIPS.xhash section.
813 * emultempl/mipself.em: Remove mips_after_parse function.
814 * testsuite/ld-elf/hash.d: Update comment.
815 * testsuite/ld-mips-elf/hash1.d: New test.
816 * testsuite/ld-mips-elf/hash1.s: Ditto.
817 * testsuite/ld-mips-elf/hash1a.d: Remove.
818 * testsuite/ld-mips-elf/hash1b.d: Ditto.
819 * testsuite/ld-mips-elf/hash1c.d: Ditto
820 * testsuite/ld-mips-elf/hash2.d: New test.
821 * testsuite/ld-mips-elf/mips-elf.exp: New tests.
822 * testsuite/ld-mips-elf/start.s: New test.
824 2019-08-08 Nick Clifton <nickc@redhat.com>
827 * testsuite/ld-aarch64/bti-plt-2.d: Adjust for new output format
829 * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
830 * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
831 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
832 * testsuite/ld-aarch64/bti-warn.d: Likewise.
833 * testsuite/ld-aarch64/property-bti-pac1.d: Likewise.
834 * testsuite/ld-aarch64/property-bti-pac2.d: Likewise.
835 * testsuite/ld-aarch64/property-bti-pac3.d: Likewise.
836 * testsuite/ld-elf/x86-feature-1a.rd: Likewise.
837 * testsuite/ld-elf/x86-feature-1b.rd: Likewise.
838 * testsuite/ld-elf/x86-feature-1c.rd: Likewise.
839 * testsuite/ld-elf/x86-feature-1d.rd: Likewise.
840 * testsuite/ld-elf/x86-feature-1e.rd: Likewise.
841 * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
842 * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
843 * testsuite/ld-i386/pr23372a.d: Likewise.
844 * testsuite/ld-i386/pr23372c.d: Likewise.
845 * testsuite/ld-i386/pr23486a.d: Likewise.
846 * testsuite/ld-i386/pr23486b.d: Likewise.
847 * testsuite/ld-i386/pr23486c.d: Likewise.
848 * testsuite/ld-i386/pr23486d.d: Likewise.
849 * testsuite/ld-i386/pr24322a.d: Likewise.
850 * testsuite/ld-i386/pr24322b.d: Likewise.
851 * testsuite/ld-i386/property-x86-3.d: Likewise.
852 * testsuite/ld-i386/property-x86-4a.d: Likewise.
853 * testsuite/ld-i386/property-x86-5.d: Likewise.
854 * testsuite/ld-i386/property-x86-cet1.d: Likewise.
855 * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
856 * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
857 * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
858 * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
859 * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
860 * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
861 * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
862 * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
863 * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
864 * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
865 * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
866 * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
867 * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
868 * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
869 * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
870 * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
871 * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
872 * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
873 * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
874 * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
875 * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
876 * testsuite/ld-x86-64/pr23372a-x32.d: Likewise.
877 * testsuite/ld-x86-64/pr23372a.d: Likewise.
878 * testsuite/ld-x86-64/pr23372c-x32.d: Likewise.
879 * testsuite/ld-x86-64/pr23372c.d: Likewise.
880 * testsuite/ld-x86-64/pr23486a-x32.d: Likewise.
881 * testsuite/ld-x86-64/pr23486a.d: Likewise.
882 * testsuite/ld-x86-64/pr23486b-x32.d: Likewise.
883 * testsuite/ld-x86-64/pr23486b.d: Likewise.
884 * testsuite/ld-x86-64/pr23486c-x32.d: Likewise.
885 * testsuite/ld-x86-64/pr23486c.d: Likewise.
886 * testsuite/ld-x86-64/pr23486d-x32.d: Likewise.
887 * testsuite/ld-x86-64/pr23486d.d: Likewise.
888 * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
889 * testsuite/ld-x86-64/pr24322a.d: Likewise.
890 * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
891 * testsuite/ld-x86-64/pr24322b.d: Likewise.
892 * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
893 * testsuite/ld-x86-64/pr24458a.d: Likewise.
894 * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
895 * testsuite/ld-x86-64/pr24458b.d: Likewise.
896 * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
897 * testsuite/ld-x86-64/pr24458c.d: Likewise.
898 * testsuite/ld-x86-64/property-1.r: Likewise.
899 * testsuite/ld-x86-64/property-1a.r: Likewise.
900 * testsuite/ld-x86-64/property-2.r: Likewise.
901 * testsuite/ld-x86-64/property-2a.r: Likewise.
902 * testsuite/ld-x86-64/property-3.r: Likewise.
903 * testsuite/ld-x86-64/property-3a.r: Likewise.
904 * testsuite/ld-x86-64/property-4.r: Likewise.
905 * testsuite/ld-x86-64/property-4a.r: Likewise.
906 * testsuite/ld-x86-64/property-5.r: Likewise.
907 * testsuite/ld-x86-64/property-5a.r: Likewise.
908 * testsuite/ld-x86-64/property-6.r: Likewise.
909 * testsuite/ld-x86-64/property-7.r: Likewise.
910 * testsuite/ld-x86-64/property-7a.r: Likewise.
911 * testsuite/ld-x86-64/property-x86-3-x32.d: Likewise.
912 * testsuite/ld-x86-64/property-x86-3.d: Likewise.
913 * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
914 * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
915 * testsuite/ld-x86-64/property-x86-5-x32.d: Likewise.
916 * testsuite/ld-x86-64/property-x86-5.d: Likewise.
917 * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
918 * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
919 * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
920 * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
921 * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
922 * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
923 * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
924 * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
925 * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
926 * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
927 * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
928 * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
929 * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
930 * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
931 * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
932 * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
933 * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
934 * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
935 * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
936 * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
937 * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
938 * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
939 * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
940 * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
941 * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
942 * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
943 * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
944 * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
945 * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
946 * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
947 * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
948 * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
949 * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
950 * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
951 * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
952 * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
954 2019-08-07 Jose E. Marchesi <jose.marchesi@oracle.com>
956 * scripttempl/elf64bpf.sc: Adapted from elf.sc.
957 * emulparams/elf64bpf.sh (SCRIPT_NAME): Use elf64bpf.
959 * testsuite/ld-bpf/call-1.d: Do not expect a warning regarding an
960 undefined entry symbol.
961 * testsuite/ld-bpf/jump-1.d: Likewise.
962 * testsuite/ld-undefined/undefined.exp: Do not pass '-e entry' to
963 ld in BPF targets, and do not expect line number information.
964 * testsuite/ld-srec/srec.exp (run_srec_test): xfail s-record tests
967 2019-08-06 Alan Modra <amodra@gmail.com>
970 * ldlang.c (find_replacements_insert_point): Return "before" flag.
971 (find_next_input_statement): New function.
972 (lang_process): When placing recompiled LTO objects before a
973 claimed archive, place them immediately before in the statement
976 2019-08-06 Alan Modra <amodra@gmail.com>
979 * ldlang.c (plugin_undefs): New static var.
980 (open_input_bfds <lang_group_statement_enum>): Loop on
981 plugin_undefs and hitting plugin_insert point.
982 (lang_process <lto_plugin_active>): Set plugin_undefs.
984 2019-08-02 Alan Modra <amodra@gmail.com>
986 * testsuite/ld-powerpc/tlsie.s: Correct medium model ELF sequence.
988 2019-08-01 Alan Modra <amodra@gmail.com>
991 * ldlang.c (process_insert_statements): Add start of list
992 parameter. Use rather than lang_os_list.head. Process insert
993 statements inside group statements with a recursive call.
994 (lang_process): Adjust process_insert_statements call.
995 * lexsup.c (parse_args): Warn when adding missing --end-group.
997 2019-08-01 Alan Modra <amodra@gmail.com>
999 * ldlang.h (lang_os_list): Rename from lang_output_section_statement.
1000 * ldlang.c: Likewise throughout file.
1001 * emultempl/alphaelf.em: Likewise.
1002 * emultempl/elf32.em: Likewise.
1003 * emultempl/mmo.em: Likewise.
1004 * emultempl/pe.em: Likewise.
1005 * emultempl/pep.em: Likewise.
1006 * emultempl/ppc32elf.em: Likewise.
1007 * emultempl/spuelf.em: Likewise.
1009 2019-07-26 Alan Modra <amodra@gmail.com>
1011 * testsuite/ld-plugin/lto-3r.d: Accept D for powerpc64 descriptors.
1012 * testsuite/ld-plugin/lto-5r.d: Likewise.
1014 2019-07-24 H.J. Lu <hongjiu.lu@intel.com>
1016 * testsuite/ld-plugin/lto-3r.d: Restored. Check foo instead
1018 * testsuite/ld-plugin/lto-5r.d: Likewise.
1019 * testsuite/ld-plugin/lto.exp: Run lto-3r and lto-5r tests.
1021 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
1023 * ld-arc/relax-local-pic.d: New test.
1024 * ld-arc/relax-local-pic.s: New file.
1026 2019-07-22 Martin Liska <mliska@suse.cz>
1028 * testsuite/ld-plugin/lto-3r.d: Remove.
1029 * testsuite/ld-plugin/lto-5r.d: Remove.
1030 * testsuite/ld-plugin/lto.exp: Do not run lto-3r and lto-5r
1033 2019-07-23 Alan Modra <amodra@gmail.com>
1035 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Condition
1036 SHF_GNU_MBIND on osabi. Set output elf_gnu_osabi_mbind.
1038 2019-07-23 Alan Modra <amodra@gmail.com>
1040 * testsuite/ld-elf/size-1.d,
1041 * testsuite/ld-elf/size-1.s,
1042 * testsuite/ld-elf/size-1.t: New test.
1043 * testsuite/ld-elf/size-2.d,
1044 * testsuite/ld-elf/size-2.s,
1045 * testsuite/ld-elf/size-2.t: New test.
1046 * testsuite/ld-scripts/size-1.d,
1047 * testsuite/ld-scripts/size-1.s,
1048 * testsuite/ld-scripts/size-1.t,
1049 * testsuite/ld-scripts/size-2.s,
1050 * testsuite/ld-scripts/size-2.d,
1051 * testsuite/ld-scripts/size-2.t,
1052 * testsuite/ld-scripts/size.exp: Delete.
1054 2019-07-22 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1056 * ld/testsuite/ld-arm/cmse_main_sec_debug.d: Modify regexps to
1057 allow for output from a arm-none-linux-gnueabihf target.
1059 2019-07-20 Alan Modra <amodra@gmail.com>
1062 * ldlex.l (comment): Check for 0 return from YY_INPUT, not EOF.
1064 2019-07-19 Alan Modra <amodra@gmail.com>
1066 * testsuite/ld-powerpc/tlsgd.d,
1067 * testsuite/ld-powerpc/tlsgd.s,
1068 * testsuite/ld-powerpc/tlsie.d,
1069 * testsuite/ld-powerpc/tlsie.s,
1070 * testsuite/ld-powerpc/tlsld.d,
1071 * testsuite/ld-powerpc/tlsld.s: New tests.
1072 * testsuite/ld-powerpc/powerpc.exp: Run them.
1074 2019-07-19 Alan Modra <amodra@gmail.com>
1076 * testsuite/ld-powerpc/tlsldopt.d: Rename from tlsld.d.
1077 * testsuite/ld-powerpc/tlsldopt.s: Rename from tlsld.s.
1078 * testsuite/ld-powerpc/tlsldopt32.d: Rename from tlsld32.d.
1079 * testsuite/ld-powerpc/tlsldopt32.s: Rename from tlsld32.s.
1080 * testsuite/ld-powerpc/powerpc.exp: Update.
1082 2019-07-19 Alan Modra <amodra@gmail.com>
1085 * testsuite/ld-elf/pr24819.d: xfail for genelf targets.
1087 2019-07-18 H.J. Lu <hongjiu.lu@intel.com>
1090 * emultempl/elf32.em (elf_orphan_compatible): Return FALSE for
1091 member of output section group when doing a relocatable link.
1092 * testsuite/ld-elf/pr24819.d: New file.
1093 * testsuite/ld-elf/pr24819.s: Likewise.
1095 2019-07-13 Alan Modra <amodra@gmail.com>
1097 * testsuite/ld-powerpc/tlsso.r: Update.
1098 * testsuite/ld-powerpc/tlsso32.g: Update.
1099 * testsuite/ld-powerpc/tlsso32.r: Update.
1100 * testsuite/ld-powerpc/tlstocso.r: Update.
1101 * testsuite/ld-cris/tls-dso-dtpoffd2.d: Update.
1102 * testsuite/ld-cris/tls-dso-dtpoffd4.d: Update.
1103 * testsuite/ld-cris/tls-dso-tpoffgotcomm1.d: Update.
1104 * testsuite/ld-cris/tls-gd-1.d: Update.
1105 * testsuite/ld-cris/tls-gd-1h.d: Update.
1106 * testsuite/ld-cris/tls-gd-2.d: Update.
1107 * testsuite/ld-cris/tls-gd-2h.d: Update.
1108 * testsuite/ld-cris/tls-ie-10.d: Update.
1109 * testsuite/ld-cris/tls-ie-11.d: Update.
1110 * testsuite/ld-cris/tls-ie-8.d: Update.
1111 * testsuite/ld-cris/tls-ie-9.d: Update.
1112 * testsuite/ld-cris/tls-js1.d: Update.
1113 * testsuite/ld-cris/tls-ld-4.d: Update.
1114 * testsuite/ld-cris/tls-ld-5.d: Update.
1115 * testsuite/ld-cris/tls-ld-6.d: Update.
1116 * testsuite/ld-cris/tls-ld-7.d: Update.
1117 * testsuite/ld-cris/tls-ldgd-14.d: Update.
1118 * testsuite/ld-cris/tls-ldgd-15.d: Update.
1119 * testsuite/ld-cris/tls-ldgdx-14.d: Update.
1120 * testsuite/ld-cris/tls-ldgdx-15.d: Update.
1121 * testsuite/ld-cris/tls-local-54.d: Update.
1122 * testsuite/ld-cris/tls-local-60.d: Update.
1123 * testsuite/ld-cris/tls-local-61.d: Update.
1124 * testsuite/ld-cris/tls-local-63.d: Update.
1125 * testsuite/ld-cris/tls-local-64.d: Update.
1126 * testsuite/ld-cris/tls-ok-30.d: Update.
1127 * testsuite/ld-cris/tls-ok-32.d: Update.
1128 * testsuite/ld-cris/tls-ok-34.d: Update.
1129 * testsuite/ld-mips-elf/tls-multi-got-1.got: Update.
1130 * testsuite/ld-mips-elf/tls-multi-got-1.r: Update.
1131 * testsuite/ld-mips-elf/tlsdyn-pie-o32.d: Update.
1132 * testsuite/ld-mips-elf/tlsdyn-pie-o32.got: Update.
1133 * testsuite/ld-mips-elf/tlslib-o32-hidden.got: Update.
1134 * testsuite/ld-mips-elf/tlslib-o32-ver.got: Update.
1135 * testsuite/ld-mips-elf/tlslib-o32.got: Update.
1136 * testsuite/ld-s390/tlspic.rd: Update.
1137 * testsuite/ld-s390/tlspic_64.rd: Update.
1138 * testsuite/ld-sparc/tlssunnopic32.rd: Update.
1139 * testsuite/ld-sparc/tlssunnopic64.rd: Update.
1140 * testsuite/ld-sparc/tlssunpic32.rd: Update.
1141 * testsuite/ld-sparc/tlssunpic64.rd: Update.
1143 2019-07-13 Alan Modra <amodra@gmail.com>
1146 * ldlang.h (enum section_type): Add first_overlay_section.
1147 * ldlang.c (lang_add_section): Adjust switch statement.
1148 (map_input_to_output_sections): Likewise.
1149 (lang_size_sections_1): Always set last_os for first overlay section.
1150 (lang_leave_overlay): Set sectype to first_overlay_section.
1152 2019-07-08 Alan Modra <amodra@gmail.com>
1154 * testsuite/ld-powerpc/callstub-1.d: Pass -melf64ppc to ld.
1155 * testsuite/ld-powerpc/callstub-2.d: Likewise.
1157 2019-07-04 Jan Beulich <jbeulich@suse.com>
1159 * testsuite/ld-elf/group9.s: Correct argument of .type.
1161 2019-07-02 Nick Clifton <nickc@redhat.com>
1164 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Include the
1165 LINKER_CREATED section flag when creating the stub section.
1167 2019-07-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1169 * testsuite/ld-arm/arm-elf.exp: Add tests.
1170 * testsuite/ld-arm/cmse_main.s: New test.
1171 * testsuite/ld-arm/cmse_main_sec_debug.d: Likewise.
1172 * testsuite/ld-arm/cmse_sec_debug.s: Likewise.
1174 2019-07-01 Nick Clifton <nickc@redhat.com>
1177 * testsuite/ld-arm/unwind-4.d: Adjust for corrected calculation of
1180 2019-06-28 Alan Modra <amodra@gmail.com>
1182 * testsuite/ld-powerpc/callstub-1.d,
1183 * testsuite/ld-powerpc/callstub-1.s: New test.
1184 * testsuite/ld-powerpc/callstub-2.d,
1185 * testsuite/ld-powerpc/callstub-2.s: New test.
1186 * testsuite/ld-powerpc/powerpc.exp: Run them.
1188 2019-06-25 Jan Beulich <jbeulich@suse.com>
1190 * plugin.c (get_lto_kind, get_lto_resolution,
1191 get_lto_visibility): Rename "index" to "idx".
1193 2019-06-24 H.J. Lu <hongjiu.lu@intel.com>
1196 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24721 tests.
1197 * testsuite/ld-x86-64/pr24721-x32.d: New file.
1198 * testsuite/ld-x86-64/pr24721.d: Likewise.
1199 * testsuite/ld-x86-64/pr24721.map: Likewise.
1200 * testsuite/ld-x86-64/pr24721a.s: Likewise.
1201 * testsuite/ld-x86-64/pr24721b.s: Likewise.
1203 2019-06-23 Alan Modra <amodra@gmail.com>
1206 * testsuite/ld-powerpc/elfv2exe.d: Update.
1207 * testsuite/ld-powerpc/elfv2so.d: Update.
1209 2019-06-14 Szabolcs Nagy <szabolcs.nagy@arm.com>
1211 * testsuite/ld-aarch64/aarch64-elf.exp: Add emit-relocs-22 and -23.
1212 * testsuite/ld-aarch64/emit-relocs-22.d: New test.
1213 * testsuite/ld-aarch64/emit-relocs-22.s: New test.
1214 * testsuite/ld-aarch64/emit-relocs-23.d: New test.
1215 * testsuite/ld-aarch64/emit-relocs-23.s: New test.
1217 2019-06-14 Alan Modra <amodra@gmail.com>
1219 * Makefile.in: Regenerate.
1220 * configure: Regenerate.
1222 2019-06-14 Alan Modra <amodra@gmail.com>
1225 * testsuite/ld-alpha/tlsbin.rd: Update.
1226 * testsuite/ld-alpha/tlsbinr.rd: Update.
1227 * testsuite/ld-alpha/tlspic.rd: Update.
1229 2019-06-07 Maciej W. Rozycki <macro@wdc.com>
1231 * ld.texi (Options): Also document `-rpath' option restrictions
1232 in the description of the option itself.
1234 2019-06-06 Sudakshina Das <sudi.das@arm.com>
1236 * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
1237 * testsuite/ld-aarch64/property-bti-pac4-a.d: New test.
1238 * testsuite/ld-aarch64/property-bti-pac4-b.d: New test.
1239 * testsuite/ld-aarch64/property-bti-pac4.s: New test.
1241 2019-06-06 Sudakshina Das <sudi.das@arm.com>
1243 * NEWS: Update options names.
1244 * emultempl/aarch64elf.em (OPTION_FORCE_BTI, OPTION_PAC_PLT): Remove.
1245 (PARSE_AND_LIST_LONGOPTS): Remove force-bti and pac-plt.
1246 (PARSE_AND_LIST_OPTIONS): Update to -z.
1247 (PARSE_AND_LIST_ARGS_CASE_Z_AARCH64): New.
1248 (PARSE_AND_LIST_ARGS_CASE_Z): Add PARSE_AND_LIST_ARGS_CASE_Z_AARCH64.
1249 (PARSE_AND_LIST_ARGS_CASES): Move cases for these options.
1250 * testsuite/ld-aarch64/bti-pac-plt-1.d: Update option.
1251 * testsuite/ld-aarch64/bti-pac-plt-2.d: Likewise.
1252 * testsuite/ld-aarch64/bti-plt-1.d: Likewise.
1253 * testsuite/ld-aarch64/bti-plt-2.d: Likewise.
1254 * testsuite/ld-aarch64/bti-plt-3.d: Likewise.
1255 * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
1256 * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
1257 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
1258 * testsuite/ld-aarch64/bti-warn.d: Likewise.
1259 * testsuite/ld-aarch64/pac-plt-1.d: Likewise.
1260 * testsuite/ld-aarch64/pac-plt-2.d: Likewise.
1262 2019-05-30 Nick Clifton <nickc@redhat.com>
1265 * testsuite/ld-elf/ver_def.vd: Update expected output.
1267 2019-05-30 Alan Modra <amodra@gmail.com>
1270 * emulparams/m9s12zelf.sh (TEMPLATE_NAME): Set to generic.
1271 (EXTRA_EM_FILE): Define to genelf.
1272 * testsuite/lib/ld-lib.exp (uses_genelf): Add s12z.
1274 2019-05-30 Alan Modra <amodra@gmail.com>
1276 * testsuite/lib/ld-lib.exp (run_ld_link_tests): Support procedure
1277 calls in optional "xfail" args.
1278 (run_ld_link_exec_tests): Likewise.
1280 (uses_genelf): Rename from is_generic_elf. Delete bogus semicolons.
1281 * testsuite/ld-scripts/align.exp: Rename is_generic_elf call.
1282 * testsuite/ld-elf/elf.exp: Use is_generic and uses_genelf. Delete
1284 * testsuite/ld-elf/sec64k.exp: Use is_generic.
1285 * testsuite/ld-elf/shared.exp: Likewise.
1286 * testsuite/ld-discard/extern.d: Use is_generic in xfail.
1287 * testsuite/ld-discard/start.d: Likewise.
1288 * testsuite/ld-discard/static.d: Likewise.
1289 * testsuite/ld-elf/attributes.d: Likewise.
1290 * testsuite/ld-elf/group1.d: Likewise.
1291 * testsuite/ld-elf/group3b.d: Likewise.
1292 * testsuite/ld-elf/group8a.d: Likewise.
1293 * testsuite/ld-elf/group8b.d: Likewise.
1294 * testsuite/ld-elf/group9a.d: Likewise.
1295 * testsuite/ld-elf/group9b.d: Likewise.
1296 * testsuite/ld-elf/linkonce2.d: Likewise.
1297 * testsuite/ld-elf/merge2.d: Likewise.
1298 * testsuite/ld-elf/merge3.d: Likewise.
1299 * testsuite/ld-elf/pr12851.d: Likewise.
1300 * testsuite/ld-elf/pr12975.d: Likewise.
1301 * testsuite/ld-elf/pr13177.d: Likewise.
1302 * testsuite/ld-elf/pr13195.d: Likewise.
1303 * testsuite/ld-elf/pr17550c.d: Likewise.
1304 * testsuite/ld-elf/pr17550d.d: Likewise.
1305 * testsuite/ld-elf/pr17615.d: Likewise.
1306 * testsuite/ld-elf/pr21562a.d: Likewise.
1307 * testsuite/ld-elf/pr21562b.d: Likewise.
1308 * testsuite/ld-elf/pr21562c.d: Likewise.
1309 * testsuite/ld-elf/pr21562d.d: Likewise.
1310 * testsuite/ld-elf/pr21562i.d: Likewise.
1311 * testsuite/ld-elf/pr21562j.d: Likewise.
1312 * testsuite/ld-elf/pr21562k.d: Likewise.
1313 * testsuite/ld-elf/pr21562l.d: Likewise.
1314 * testsuite/ld-elf/pr21562m.d: Likewise.
1315 * testsuite/ld-elf/pr21562n.d: Likewise.
1316 * testsuite/ld-elf/pr22677.d: Likewise.
1317 * testsuite/ld-elf/pr22836-1a.d: Likewise.
1318 * testsuite/ld-elf/pr22836-1b.d: Likewise.
1319 * testsuite/ld-elf/warn3.d: Likewise.
1320 * testsuite/ld-elf/warn1.d: Likewise and xfail sparc solaris
1321 targets rather than notarget.
1322 * testsuite/ld-elf/compressed1d.d: Use uses_genelf in xfail.
1323 * testsuite/ld-elf/orphan-10.d: Likewise.
1324 * testsuite/ld-elf/orphan-9.d: Likewise.
1325 * testsuite/ld-elf/orphan-region.d: Likewise.
1326 * testsuite/ld-elf/orphan.d: Likewise.
1327 * testsuite/ld-elf/orphan3.d: Likewise.
1328 * testsuite/ld-elf/pr20528a.d: Likewise.
1329 * testsuite/ld-elf/pr20528b.d: Likewise.
1330 * testsuite/ld-elf/pr23658-1a.d: Likewise.
1331 * testsuite/ld-elf/pr23658-1b.d: Likewise.
1332 * testsuite/ld-elf/pr349.d: Likewise.
1333 * testsuite/ld-elf/warn2.d: Likewise and xfail sparc solaris
1334 targets rather than notarget.
1335 * testsuite/ld-elf/merge.d: Correct ms1-*-* to mt-*-*.
1337 2019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com>
1339 * testsuite/ld-mips-elf/undefweak-overflow.s: Remove test case
1340 for pcrel_hi/pcrel_lo.
1341 * testsuite/ld-mips-elf/undefweak-overflow.d: Update to match.
1342 * testsuite/ld-mips-elf/reloc-pcrel-r6.s: New test source.
1343 * testsuite/ld-mips-elf/reloc-pcrel-r6.d: New test linker script.
1344 * testsuite/ld-mips-elf/reloc-pcrel-r6.ld: New test.
1345 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
1347 2019-05-28 Alan Modra <amodra@gmail.com>
1350 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Check that
1351 the output is coff before accessing coff tdata.
1352 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
1354 2019-05-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
1356 * testsuite/ld-aarch64/variant_pcs-now.d: Use --hash-style=sysv.
1357 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
1359 2019-05-27 Alan Modra <amodra@gmail.com>
1362 * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): Set
1363 BFS_KEEP on group signature symbol.
1365 2019-04-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
1367 * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
1368 * testsuite/ld-aarch64/variant_pcs-1.s: New asm for tests.
1369 * testsuite/ld-aarch64/variant_pcs-2.s: New asm for tests.
1370 * testsuite/ld-aarch64/variant_pcs-now.d: New test.
1371 * testsuite/ld-aarch64/variant_pcs-r.d: New test.
1372 * testsuite/ld-aarch64/variant_pcs-shared.d: New test.
1373 * testsuite/ld-aarch64/variant_pcs.ld: New linker script for tests.
1375 2019-05-24 Alan Modra <amodra@gmail.com>
1377 * po/BLD-POTFILES.in: Regenerate.
1379 2019-05-24 Alan Modra <amodra@gmail.com>
1381 * testsuite/ld-powerpc/notoc2.d,
1382 * testsuite/ld-powerpc/notoc2.s: New test.
1383 * testsuite/ld-powerpc/powerpc.exp: Run it.
1385 2019-05-24 Alan Modra <amodra@gmail.com>
1387 * testsuite/ld-powerpc/pcrelopt.s,
1388 * testsuite/ld-powerpc/pcrelopt.d,
1389 * testsuite/ld-powerpc/pcrelopt.sec: New test.
1390 * testsuite/ld-powerpc/powerpc.exp: Run it.
1392 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
1394 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64bpf.c.
1395 * Makefile.in (prefix): Regenerate.
1396 * configure.tgt (targ_extra_ofiles): Add case for bpf-*-* targets.
1397 * emulparams/elf64bpf.sh: New file.
1398 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
1399 bpf-*-* to the list of targets not supporting gc-sections.
1400 * testsuite/ld-bpf/bar.s: New file.
1401 * testsuite/ld-bpf/jump-1.d: Likewise.
1402 * testsuite/ld-bpf/foo.s: Likewise.
1403 * testsuite/ld-bpf/call-1.d: Likewise.
1404 * testsuite/ld-bpf/bpf.exp: Likewise.
1405 * testsuite/ld-bpf/baz.s: Likewise.
1407 2019-05-23 Alan Modra <amodra@gmail.com>
1410 * ldfile.c (enum script_open_style): New.
1411 (struct script_name_list): New.
1412 (ldfile_open_command_file_1): Take a script_open_style param
1413 rather than booleans. Adjust callers. Only fail when -T or
1414 default -T script is invoked twice.
1415 (ldfile_try_open_bfd): Revert last change.
1417 2019-05-22 Julius Werner <jwerner@chromium.org>
1418 Nick Clifton <nickc@redhat.com>
1421 * ld/ldfile.c: (ldfile_open_command_file_1): Add new parameter -
1422 is_script. If true check that the file has not already been
1423 parsed as a linker script.
1424 (ldfile_open_script_file): New function.
1425 (ldfile_try_open_bfd): Use the new function in place of
1426 ldfile_open_command_line.
1427 * ldmain.c (main): Likewise.
1428 * lexsup.c (parse_args): Use the new function for opening linker
1429 scripts with the -T option.
1430 * ldfile.h (ldfile_open_script_file): Add prototype.
1432 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
1434 * testsuite/ld-mips-elf/pic-reloc-5.s: Add tests for
1435 %tprel_hi and %tprel_lo relocations.
1436 * testsuite/ld-mips-elf/pic-reloc-6.s: Likewise.
1437 * testsuite/ld-mips-elf/pic-reloc-5.d: Update accordingly.
1438 * testsuite/ld-mips-elf/pic-reloc-6.d: Likewise.
1439 * testsuite/ld-mips-elf/pic-reloc-tls.ld: New test linker
1442 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
1444 * testsuite/ld-mips-elf/pic-reloc-5.d: New test.
1445 * testsuite/ld-mips-elf/pic-reloc-6.d: New test.
1446 * testsuite/ld-mips-elf/pic-reloc-7.d: New test.
1447 * testsuite/ld-mips-elf/pic-reloc-5.s: New test source.
1448 * testsuite/ld-mips-elf/pic-reloc-6.s: New test source.
1449 * testsuite/ld-mips-elf/pic-reloc-7.s: New test source.
1450 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1452 2019-05-21 Matthew Fortune <matthew.fortune@mips.com>
1453 Faraz Shahbazker <fshahbazker@wavecomp.com>
1455 * emultempl/mipself.em (compact_branches): New static variable.
1456 (mips_create_output_section_statements): Call
1457 _bfd_mips_elf_compact_branches.
1458 (PARSE_AND_LIST_PROLOGUE): Add OPTION_COMPACT_BRANCHES and
1459 OPTION_NO_COMPACT_BRANCHES.
1460 (PARSE_AND_LIST_LONGOPTS): Add compact-branches,
1461 no-compact-branches.
1462 (PARSE_AND_LIST_OPTIONS): Add --compact-branches,
1463 --no-compact-branches.
1464 (PARSE_AND_LIST_ARGS_CASES): Handle the above.
1465 * ld.texinfo: Document --compact-branches, --no-compact-branches.
1466 * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.dd: New test.
1467 * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.nd: New test.
1468 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.dd: New test.
1469 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.gd: New test.
1470 * testsuite/ld-mips-elf/pic-and-nonpic-1a-r6.s: New test source.
1471 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.s: New test source.
1472 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1474 2019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
1476 * testsuite/ld-arm/arm-elf.exp: Add tests
1477 * testsuite/ld-arm/bfs-0.s: New test.
1478 * testsuite/ld-arm/bfs-1.s: New test.
1479 * testsuite/ld-arm/branch-futures.d: New test.
1481 2019-05-21 Tamar Christina <tamar.christina@arm.com>
1484 * emultempl/aarch64elf.em (PARSE_AND_LIST_LONGOPTS): Add optional args
1486 * NEWS: Add changes to flag.
1487 (PARSE_AND_LIST_OPTIONS): Update help descriptions.
1488 (PARSE_AND_LIST_ARGS_CASES): Add new options to parser.
1489 * testsuite/ld-aarch64/aarch64-elf.exp: Add new run_dump_tests.
1490 * testsuite/ld-aarch64/erratum843419-adr.d: New test.
1491 * testsuite/ld-aarch64/erratum843419-adrp.d: New test.
1492 * testsuite/ld-aarch64/erratum843419-far-adr.d: New test.
1493 * testsuite/ld-aarch64/erratum843419-far-full.d: New test.
1494 * testsuite/ld-aarch64/erratum843419-far.s: New test.
1495 * testsuite/ld-aarch64/erratum843419-full.d: New test.
1496 * testsuite/ld-aarch64/erratum843419-near.s: New test.
1497 * testsuite/ld-aarch64/erratum843419-no-args.d: New test.
1499 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
1502 * ld/testsuite/ld-avr/relax-insn-at-range-boundary.d: New test.
1503 * ld/testsuite/ld-avr/relax-insn-at-range-boundary.s: New test.
1505 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
1508 * testsuite/ld-avr/wraparound-range-boundary.d: New test.
1509 * testsuite/ld-avr/wraparound-range-boundary.s: New test.
1511 2019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
1514 * testsuite/ld-mips-elf/reloc-6a.s: Specify .text section for
1515 global code symbols.
1516 * testsuite/ld-mips-elf/reloc-6b.s: Likewise.
1518 2019-05-17 Alan Modra <amodra@gmail.com>
1521 * plugin.c (plugin_notice): Do not let a common symbol override
1522 a non-common definition in IR.
1524 2019-05-09 Dimitar Dimitrov <dimitar@dinux.eu>
1526 * scripttempl/pru.sc (__init_array_begin, __init_array_begin):
1529 2019-05-08 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
1532 * ldbuildid.c (generate_build_id): Cast return value from
1533 GetProcAddress in order to avoid a compile time warning.
1535 2019-05-06 Alan Modra <amodra@gmail.com>
1537 * testsuite/ld-undefined/weak-undef.exp: Don't xfail pj.
1539 2019-05-04 Alan Modra <amodra@gmail.com>
1541 * testsuite/ld-scripts/fill.d: Don't xfail m32c
1542 * testsuite/ld-scripts/fill16.d: Likewise.
1544 2019-05-04 Alan Modra <amodra@gmail.com>
1547 * testsuite/ld-elf/pr14156a.d: Allow for .init/.fini being a
1548 data section on hppa64.
1549 * testsuite/ld-elf/pr14156b.d: Likewise.
1550 * testsuite/ld-scripts/pr18963.t: Map standard sections to set
1551 output section flags.
1552 * testsuite/ld-scripts/sane1.t: Likewise.
1553 * testsuite/ld-elf/init-fini-arrays.s: Reference __init_array_start
1554 and __fini_array_start. Define __start et al.
1555 * testsuite/ld-elf/pr24511.d: New test.
1557 2019-04-30 Alan Modra <amodra@gmail.com>
1559 * testsuite/ld-powerpc/elfv2exe.d: Update.
1560 * testsuite/ld-powerpc/elfv2so.d: Update.
1561 * testsuite/ld-powerpc/tocopt.d: Update.
1562 * testsuite/ld-powerpc/tocopt.s: Update.
1563 * testsuite/ld-powerpc/tocopt5.d: Update.
1564 * testsuite/ld-powerpc/tocopt5.s: Update.
1565 * testsuite/ld-powerpc/tocopt7.d: Update.
1566 * testsuite/ld-powerpc/tocopt7.s: Update.
1567 * testsuite/ld-powerpc/tocopt8.d: Update.
1568 * testsuite/ld-powerpc/tocopt8.s: Update.
1570 2019-04-30 Alan Modra <amodra@gmail.com>
1572 * ld.texi (How GNU properties are merged): Avoid pod2man error.
1575 2019-04-26 H.J. Lu <hongjiu.lu@intel.com>
1578 * testsuite/ld-plugin/lto.exp: Run PR ld/24486 tests.
1579 * testsuite/ld-plugin/pr24486a.c: New file.
1580 * testsuite/ld-plugin/pr24486b.c: Likewise.
1581 * testsuite/ld-plugin/pr24486c.c: Likewise.
1583 2019-04-26 Nick Clifton <nickc@redhat.com>
1585 * po/ru.po: Updated Russian translation.
1587 2019-04-26 Christopher Yeleighton <giecrilj@stegny.2a.pl>
1589 * ld.texi: Properly hyphenate the word "specific".
1591 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
1594 * ld.texi: Remove LTO warning from --wrap.
1595 * plugin.c (get_symbols): Update resolution for wrapper and
1597 * testsuite/ld-plugin/lto.exp: Run ld/24406 tests.
1598 * testsuite/ld-plugin/pr24406-1.c: New file.
1599 * testsuite/ld-plugin/pr24406-2a.c: Likewise.
1600 * testsuite/ld-plugin/pr24406-2b.c: Likewise.
1602 2019-04-25 Sudakshina Das <sudi.das@arm.com>
1604 * testsuite/ld-aarch64/bti-pac-plt-1.d: Update.
1605 * testsuite/ld-aarch64/bti-pac-plt-2.d: Update.
1606 * testsuite/ld-aarch64/bti-plt-1.d: Update.
1607 * testsuite/ld-aarch64/bti-plt-3.d: Update.
1608 * testsuite/ld-aarch64/bti-plt-5.d: Update.
1609 * testsuite/ld-aarch64/pac-plt-1.d: Update.
1610 * testsuite/ld-aarch64/pac-plt-2.d: Update.
1612 2019-04-24 Sandra Loosemore <sandra@codesourcery.com>
1614 * testsuite/config/default.exp: Use [check_compiler_available]
1615 instead of [which $CC].
1616 * testsuite/ld-auto-import/auto-import.exp: Likewise.
1617 * testsuite/ld-cygwin/exe-export.exp: Likewise.
1618 * testsuite/ld-elf/audit.exp: Likewise.
1619 * testsuite/ld-elf/compress.exp: Likewise.
1620 * testsuite/ld-elf/dwarf.exp: Likewise.
1621 * testsuite/ld-elf/elf.exp: Likewise.
1622 * testsuite/ld-elf/indirect.exp: Likewise.
1623 * testsuite/ld-elf/linux-x86.exp: Likewise.
1624 * testsuite/ld-elf/shared.exp: Likewise.
1625 * testsuite/ld-elf/tls.exp: Likewise.
1626 * testsuite/ld-elf/wrap.exp: Likewise.
1627 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
1628 * testsuite/ld-elfvers/vers.exp: Likewise.
1629 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
1630 * testsuite/ld-elfweak/elfweak.exp: Likewise.
1631 * testsuite/ld-gc/gc.exp: Likewise.
1632 * testsuite/ld-i386/i386.exp: Likewise.
1633 * testsuite/ld-i386/no-plt.exp: Likewise.
1634 * testsuite/ld-i386/tls.exp: Likewise.
1635 * testsuite/ld-ifunc/ifunc.exp: Likewise.
1636 * testsuite/ld-mn10300/mn10300.exp: Likewise.
1637 * testsuite/ld-pe/pe-compile.exp: Likewise.
1638 * testsuite/ld-pe/pe-run.exp: Likewise.
1639 * testsuite/ld-pe/pe-run2.exp: Likewise.
1640 * testsuite/ld-pie/pie.exp: Likewise.
1641 * testsuite/ld-plugin/lto.exp: Likewise.
1642 * testsuite/ld-plugin/plugin.exp: Likewise.
1643 * testsuite/ld-scripts/crossref.exp: Likewise.
1644 * testsuite/ld-sh/sh.exp: Likewise.
1645 * testsuite/ld-shared/shared.exp: Likewise.
1646 * testsuite/ld-size/size.exp: Likewise.
1647 * testsuite/ld-srec/srec.exp: Likewise.
1648 * testsuite/ld-undefined/undefined.exp: Likewise.
1649 * testsuite/ld-unique/unique.exp: Likewise.
1650 * testsuite/ld-x86-64/mpx.exp: Likewise.
1651 * testsuite/ld-x86-64/no-plt.exp: Likewise.
1652 * testsuite/ld-x86-64/tls.exp: Likewise.
1653 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1654 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Call
1655 check_compiler_available before trying to use the compiler.
1656 (run_cc_link_tests): Likewise.
1657 (check_compiler_available): New. Use it instead of [which $CC].
1659 2019-04-23 Alan Modra <amodra@gmail.com>
1661 * Makefile.am (GENDEPDIR): New var, used..
1662 (GENSCRIPTS): ..here.
1663 * Makefile.in: Regenerate.
1664 * genscripts.sh: Test for $DEPDIR set before every use.
1666 2019-04-22 Matthew Fortune <matthew.fortune@mips.com>
1668 * testsuite/ld-mips-elf/mips-elf-flags.exp: Fix expected ASEs
1671 2019-04-19 Alan Modra <amodra@gmail.com>
1673 * testsuite/ld-gc/skip-map-discarded.s: Add section attributes.
1674 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
1675 s12z to list of targets not supporting --gc-sections.
1677 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
1679 * testsuite/ld-i386/i386.exp: Run pr18801a and pr18801b instead
1681 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1682 * testsuite/ld-i386/pr18801.d: Removed.
1683 * testsuite/ld-x86-64/pr18801.d: Likewise.
1684 * testsuite/ld-i386/pr18801a.d: New file.
1685 * testsuite/ld-i386/pr18801b.d: Likewise.
1686 * testsuite/ld-x86-64/pr18801a.d: Likewise.
1687 * testsuite/ld-x86-64/pr18801b.d: Likewise.
1688 * testsuite/ld-x86-64/pie2.d: Suggest -fPIE instead of -fPIC.
1689 * testsuite/ld-x86-64/pie2.d: Likewise.
1690 * testsuite/ld-x86-64/pr19719.d: Likewise.
1691 * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
1692 * testsuite/ld-x86-64/pr19969.d: Likewise.
1693 * testsuite/ld-x86-64/pr21997-1a.err: Likewise.
1694 * testsuite/ld-x86-64/pr21997-1b.err: Likewise.
1695 * testsuite/ld-x86-64/pr22001-1a.err: Likewise.
1696 * testsuite/ld-x86-64/pr22001-1b.err: Likewise.
1697 * testsuite/ld-x86-64/pr22791-1.err: Likewise.
1699 2019-04-17 H.J. Lu <hongjiu.lu@intel.com>
1702 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24458 tests.
1703 * testsuite/ld-x86-64/pr24458.s: New file.
1704 * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
1705 * testsuite/ld-x86-64/pr24458a.d: Likewise.
1706 * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
1707 * testsuite/ld-x86-64/pr24458b.d: Likewise.
1708 * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
1709 * testsuite/ld-x86-64/pr24458c.d: Likewise.
1711 2019-04-17 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1713 * config/tc-msp430.c (msp430_make_init_symbols): Define __crt0_init_bss
1714 symbol when .lower.bss or .either.bss sections exist.
1715 Define __crt0_movedata when .lower.data or .either.data sections exist.
1716 * testsuite/gas/msp430/either-data-bss-sym.d: New test.
1717 * testsuite/gas/msp430/low-data-bss-sym.d: New test.
1718 * testsuite/gas/msp430/either-data-bss-sym.s: New test source.
1719 * testsuite/gas/msp430/low-data-bss-sym.s: New test source.
1720 * testsuite/gas/msp430/msp430.exp: Run new tests.
1721 Enable large code model when running -mdata-region={upper,either}
1724 2019-04-16 Alan Modra <amodra@gmail.com>
1726 * testsuite/ld-scripts/pr20302.d: Don't run for ns32k-*-*.
1727 * testsuite/ld-scripts/section-match-1.d: Likewise.
1728 * testsuite/ld-undefined/require-defined.exp: Likewise.
1730 2019-04-15 Faraz Shahbazker <fshahbazker@wavecomp.com>
1732 * testsuite/ld-gc/gc.exp: Skip print-map-discarded test for non-ELF
1735 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1737 * testsuite/ld-arm/bfcsel.s: New.
1738 * testsuite/ld-arm/bfcsel.d: New.
1739 * testsuite/ld-arm/arm-elf.exp: Add above test.
1741 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1743 * testsuite/ld-arm/bfl.s: New.
1744 * testsuite/ld-arm/bfl.d: New.
1745 * testsuite/ld-arm/arm-elf.exp: Add above test.
1747 2019-04-15 Sudakshina Das <sudi.das@arm.com>
1749 * testsuite/ld-arm/bf.s: New.
1750 * testsuite/ld-arm/bf.d: New.
1751 * testsuite/ld-arm/arm-elf.exp: Add above test.
1753 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1755 * testsuite/ld-arm/attr-merge-13.attr: New test.
1756 * testsuite/ld-arm/attr-merge-13a.s: New test.
1757 * testsuite/ld-arm/attr-merge-13b.s: New test.
1759 2019-04-13 Alan Modra <amodra@gmail.com>
1761 * Makefile.am (GENSCRIPTS): Pass LIB_PATH as a parameter. Add
1763 (ELF_DEPS, ELF_GEN_DEPS, ELF_X86_DEPS): Delete.
1764 (ALL_EMULATION_SOURCES, ALL_64_EMULATION_SOURCES): Depend on
1766 (e*.c): Delete all dependencies, instead include dependencies
1768 * Makefile.in: Regenerate.
1769 * configure.ac (source_sh): Define and use function.
1770 * configure: Regenerate.
1771 * emulparams/aarch64cloudabib.sh, * emulparams/aarch64elf32b.sh,
1772 * emulparams/aarch64elfb.sh, * emulparams/aarch64fbsdb.sh,
1773 * emulparams/aarch64linux32b.sh, * emulparams/aarch64linuxb.sh,
1774 * emulparams/arcelf.sh, * emulparams/arcelf_prof.sh,
1775 * emulparams/arclinux.sh, * emulparams/arclinux_nps.sh,
1776 * emulparams/arclinux_prof.sh, * emulparams/arcv2elf.sh,
1777 * emulparams/arcv2elfx.sh, * emulparams/armelf_fbsd.sh,
1778 * emulparams/armelf_linux_eabi.sh,
1779 * emulparams/armelf_linux_fdpiceabi.sh,
1780 * emulparams/armelf_nacl.sh, * emulparams/armelf_nbsd.sh,
1781 * emulparams/armelf_vxworks.sh, * emulparams/armelfb.sh,
1782 * emulparams/armelfb_fbsd.sh, * emulparams/armelfb_fuchsia.sh,
1783 * emulparams/armelfb_linux.sh, * emulparams/armelfb_linux_eabi.sh,
1784 * emulparams/armelfb_linux_fdpiceabi.sh,
1785 * emulparams/armelfb_nacl.sh, * emulparams/armelfb_nbsd.sh,
1786 * emulparams/armsymbian.sh, * emulparams/cskyelf_linux.sh,
1787 * emulparams/elf32_sparc_sol2.sh,
1788 * emulparams/elf32_sparc_vxworks.sh, * emulparams/elf32_tic6x_be.sh,
1789 * emulparams/elf32_tic6x_elf_be.sh,
1790 * emulparams/elf32_tic6x_elf_le.sh,
1791 * emulparams/elf32_tic6x_linux_be.sh,
1792 * emulparams/elf32_tic6x_linux_le.sh,
1793 * emulparams/elf32_x86_64.sh, * emulparams/elf32_x86_64_nacl.sh,
1794 * emulparams/elf32b4300.sh, * emulparams/elf32bfinfd.sh,
1795 * emulparams/elf32bmipn32.sh, * emulparams/elf32bsmip.sh,
1796 * emulparams/elf32btsmip.sh, * emulparams/elf32btsmip_fbsd.sh,
1797 * emulparams/elf32btsmipn32.sh, * emulparams/elf32btsmipn32_fbsd.sh,
1798 * emulparams/elf32ebmip.sh, * emulparams/elf32ebmipvxworks.sh,
1799 * emulparams/elf32elmip.sh, * emulparams/elf32elmipvxworks.sh,
1800 * emulparams/elf32frvfd.sh, * emulparams/elf32l4300.sh,
1801 * emulparams/elf32lm32fd.sh, * emulparams/elf32lmip.sh,
1802 * emulparams/elf32lppc.sh, * emulparams/elf32lppclinux.sh,
1803 * emulparams/elf32lppcnto.sh, * emulparams/elf32lppcsim.sh,
1804 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
1805 * emulparams/elf32lriscv.sh, * emulparams/elf32lriscv_ilp32.sh,
1806 * emulparams/elf32lriscv_ilp32f.sh, * emulparams/elf32lsmip.sh,
1807 * emulparams/elf32ltsmip.sh, * emulparams/elf32ltsmip_fbsd.sh,
1808 * emulparams/elf32ltsmipn32.sh, * emulparams/elf32ltsmipn32_fbsd.sh,
1809 * emulparams/elf32microblazeel.sh, * emulparams/elf32or1k_linux.sh,
1810 * emulparams/elf32ppc.sh, * emulparams/elf32ppc_fbsd.sh,
1811 * emulparams/elf32ppccommon.sh, * emulparams/elf32ppclinux.sh,
1812 * emulparams/elf32ppcnto.sh, * emulparams/elf32ppcsim.sh,
1813 * emulparams/elf32ppcvxworks.sh, * emulparams/elf32ppcwindiss.sh,
1814 * emulparams/elf32tilegx_be.sh, * emulparams/elf64_ia64_fbsd.sh,
1815 * emulparams/elf64_sparc_fbsd.sh, * emulparams/elf64_sparc_sol2.sh,
1816 * emulparams/elf64alpha_fbsd.sh, * emulparams/elf64alpha_nbsd.sh,
1817 * emulparams/elf64bmip-defs.sh, * emulparams/elf64bmip.sh,
1818 * emulparams/elf64btsmip.sh, * emulparams/elf64btsmip_fbsd.sh,
1819 * emulparams/elf64lppc.sh, * emulparams/elf64lriscv-defs.sh,
1820 * emulparams/elf64lriscv.sh, * emulparams/elf64lriscv_lp64.sh,
1821 * emulparams/elf64lriscv_lp64f.sh, * emulparams/elf64ltsmip.sh,
1822 * emulparams/elf64ltsmip_fbsd.sh, * emulparams/elf64ppc.sh,
1823 * emulparams/elf64ppc_fbsd.sh, * emulparams/elf64rdos.sh,
1824 * emulparams/elf64tilegx_be.sh, * emulparams/elf_i386.sh,
1825 * emulparams/elf_i386_be.sh, * emulparams/elf_i386_fbsd.sh,
1826 * emulparams/elf_i386_ldso.sh, * emulparams/elf_i386_nacl.sh,
1827 * emulparams/elf_i386_sol2.sh, * emulparams/elf_i386_vxworks.sh,
1828 * emulparams/elf_iamcu.sh, * emulparams/elf_k1om.sh,
1829 * emulparams/elf_k1om_fbsd.sh, * emulparams/elf_l1om.sh,
1830 * emulparams/elf_l1om_fbsd.sh, * emulparams/elf_x86_64.sh,
1831 * emulparams/elf_x86_64_cloudabi.sh,
1832 * emulparams/elf_x86_64_fbsd.sh, * emulparams/elf_x86_64_nacl.sh,
1833 * emulparams/elf_x86_64_sol2.sh, * emulparams/h8300helf.sh,
1834 * emulparams/h8300helf_linux.sh, * emulparams/h8300hnelf.sh,
1835 * emulparams/h8300self.sh, * emulparams/h8300self_linux.sh,
1836 * emulparams/h8300snelf.sh, * emulparams/h8300sxelf.sh,
1837 * emulparams/h8300sxelf_linux.sh, * emulparams/h8300sxnelf.sh,
1838 * emulparams/hppanbsd.sh, * emulparams/hppaobsd.sh,
1839 * emulparams/m32rlelf.sh, * emulparams/m32rlelf_linux.sh,
1840 * emulparams/m68kelfnbsd.sh, * emulparams/mn10300.sh,
1841 * emulparams/msp430X.sh, * emulparams/nds32belf.sh,
1842 * emulparams/nds32belf16m.sh, * emulparams/nds32belf_linux.sh,
1843 * emulparams/pjlelf.sh, * emulparams/ppclynx.sh,
1844 * emulparams/score7_elf.sh, * emulparams/shelf_fd.sh,
1845 * emulparams/shelf_linux.sh, * emulparams/shelf_nbsd.sh,
1846 * emulparams/shelf_uclinux.sh, * emulparams/shelf_vxworks.sh,
1847 * emulparams/shl.sh, * emulparams/shlelf.sh,
1848 * emulparams/shlelf_fd.sh, * emulparams/shlelf_nbsd.sh,
1849 * emulparams/shlelf_vxworks.sh: Use source_sh.
1850 * genscripts.sh: Adjust for changed parameters. Emit dependencies
1851 for e*.c to .deps/*.Pc.
1852 (source_sh): New function, use it throughout to source scripts.
1853 * genscrba.sh (source_em): Use source_sh.
1855 2019-04-13 Alan Modra <amodra@gmail.com>
1857 * configure.ac (TDIRS): Build up tdirs in this variable and
1858 AC_SUBST, also using AM_SUBST_NOTMAKE.
1859 * configure: Regenerate.
1860 * Makefile.am (DISTCLEANFILES): Remove tdirs.
1861 * Makefile.in: Regenerate.
1863 2019-04-12 Nick Clifton <nickc@redhat.com>
1866 * ld.texi (Output Section Attributes): Add ALIGN_WITH_INPUT to
1867 example of section attributes.
1869 2019-04-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
1871 * NEWS: Mention new option --no-print-map-discarded.
1872 * ld.h (ld_config_type) <print_map_discarded>: New field.
1873 * ldlang.c (lang_map): Conditionally output discarded sections
1874 in map files based on configuration option.
1875 * ldlex.h (option_values) <OPTION_PRINT_MAP_DISCARDED,
1876 OPTION_NO_PRINT_MAP_DISCARDED>: New.
1877 * ldmain.c (main): Enabled print_map_discarded by default.
1878 * lexsup.c (ld_options): Add new command-line options.
1879 (parse_args) <OPTION_NO_PRINT_MAP_DISCARDED,
1880 OPTION_PRINT_MAP_DISCARDED>: New cases.
1881 * ld.texi: Document new options.
1882 * testsuite/ld-gc/gc.exp: Add new test.
1883 * testsuite/ld-gc/skip-map-discarded.s: New file.
1884 * testsuite/ld-gc/skip-map-discarded.d: New file.
1885 * testsuite/ld-gc/skip-map-discarded.map: New file.
1887 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1889 * ld.texi: Document -z cet-report=[none|warning|error].
1890 * emulparams/cet.sh: Add -z cet-report=[none|warning|error].
1891 * testsuite/ld-i386/i386.exp: Run -z cet-report=[warning|error]
1893 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1894 * testsuite/ld-i386/property-x86-cet1.d: New file.
1895 * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
1896 * testsuite/ld-i386/property-x86-cet2b.d: Likewise.
1897 * testsuite/ld-i386/property-x86-cet3a.d: Likewise.
1898 * testsuite/ld-i386/property-x86-cet3b.d: Likewise.
1899 * testsuite/ld-i386/property-x86-cet4a.d: Likewise.
1900 * testsuite/ld-i386/property-x86-cet4b.d: Likewise.
1901 * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
1902 * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
1903 * testsuite/ld-i386/property-x86-cet6.d: Likewise.
1904 * testsuite/ld-x86-64/property-x86-cet.s: Likewise.
1905 * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
1906 * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
1907 * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
1908 * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
1909 * testsuite/ld-x86-64/property-x86-cet2b-x32.d: Likewise.
1910 * testsuite/ld-x86-64/property-x86-cet2b.d: Likewise.
1911 * testsuite/ld-x86-64/property-x86-cet3a-x32.d: Likewise.
1912 * testsuite/ld-x86-64/property-x86-cet3a.d: Likewise.
1913 * testsuite/ld-x86-64/property-x86-cet3b-x32.d: Likewise.
1914 * testsuite/ld-x86-64/property-x86-cet3b.d: Likewise.
1915 * testsuite/ld-x86-64/property-x86-cet4a-x32.d: Likewise.
1916 * testsuite/ld-x86-64/property-x86-cet4a.d: Likewise.
1917 * testsuite/ld-x86-64/property-x86-cet4b-x32.d: Likewise.
1918 * testsuite/ld-x86-64/property-x86-cet4b.d: Likewise.
1919 * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
1920 * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
1921 * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
1922 * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
1923 * testsuite/ld-x86-64/property-x86-cet6-x32.d: Likewise.
1924 * testsuite/ld-x86-64/property-x86-cet6.d: Likewise.
1926 2019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1928 * testsuite/config/default.exp (STATIC_PIE_LDFLAGS): New. Set
1929 to "-static-pie" if target compiler supports it.
1930 * testsuite/ld-elf/elf.exp: Run -static-pie tests if
1931 $STATIC_PIE_LDFLAGS isn't empty.
1932 * testsuite/ld-ifunc/ifunc.exp: Likewise.
1934 2019-04-11 Tamar Christina <tamar.christina@arm.com>
1937 * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
1938 * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: New test.
1940 2019-04-10 H.J. Lu <hongjiu.lu@intel.com>
1942 * scripttempl/elf.sc (CREATE_PIC): New. Set for CREATE_SHLIB or
1944 (__rel_iplt_start): Don't define for CREATE_PIC.
1945 (__rel_iplt_end): Likewise.
1946 (__rela_iplt_start): Likewise.
1947 (__rela_iplt_end): Likewise.
1949 2019-04-10 Alan Modra <amodra@gmail.com>
1951 * testsuite/ld-elf/shared.exp: Don't xfail PR ld/20995 for
1954 2019-04-10 Alan Modra <amodra@gmail.com>
1956 * emultempl/cskyelf.em (csk_elf_before_parse): New function,
1957 setting use_branch_stub false for linux.
1958 (csky_elf_create_output_section_statements): Do emit this
1959 function and all others in the file for linux, plus the branch
1960 option control. Disable branch stubs when non-ELF.
1962 2019-04-10 Alan Modra <amodra@gmail.com>
1964 * Makefile.am (eskyelf.c, eskyelf_linux.c): Depend on cskyelf.em.
1965 (ecskyelf_linux.c): Depend on cskyelf.sh.
1966 (eelf32microblazeel.c): Depend on elf32microblaze.sh.
1967 * Makefile.in: Regenerate.
1968 * emulparams/cskyelf.sh: Comment regarding cskelf_linux.sh.
1969 (PAGE_SIZE): Don't define.
1970 * emulparams/cskyelf_linux.sh: Source sckyelf.sh, leaving just
1971 the differing variable defs/undefs.
1972 * emulparams/elf32mcore.sh (PAGE_SIZE): Don't define.
1973 * emulparams/elf32microblaze.sh: Comment re. elf32microblazeel.sh.
1974 (OUTPUT_FORMAT): Use BIG_OUTPUT_FORMAT.
1975 (PAGE_SIZE): Don't define.
1976 * emulparams/elf32microblazeel.sh: Source elf32microblaze.sh,
1977 leaving just the differing OUTPUT_FORMAT.
1979 2019-04-10 Alan Modra <amodra@gmail.com>
1981 * po/BLD-POTFILES.in: Regenerate.
1983 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1985 * testsuite/ld-elf/shared.exp: XFAIL PR ld/20995 tests for
1986 lynxos and nto targets.
1988 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1990 * Makefile.am (ALL_EMULATION_SOURCES): Remove eelf_i386_chaos.c.
1991 (eelf_i386_chaos.c): Removed.
1992 * Makefile.in: Regenerated.
1993 * configure.tgt: Remove i[3-7]86-*-kaos*.
1994 * emulparams/elf_i386_chaos.sh: Removed.
1996 2019-04-08 H.J. Lu <hongjiu.lu@intel.com>
1998 * emulparams/elf_i386_be.sh (EXTRA_EM_FILE): New.
1999 * emulparams/i386moss.sh (EXTRA_EM_FILE): Likewise.
2001 2019-04-08 Alan Modra <amodra@gmail.com>
2003 * emulparams/elf64rdos.sh (EXTRA_EM_FILE): Define.
2004 * emulparams/i386lynx.sh (EXTRA_EM_FILE): Define.
2005 * emulparams/i386nto.sh (EXTRA_EM_FILE): Define.
2007 2019-04-06 H.J. Lu <hongjiu.lu@intel.com>
2009 * Makefile.am (ELF_X86_DEPS): Add $(srcdir)/emultempl/elf-x86.em.
2010 (eelf_i386_sol2.c): Also depend on
2011 $(srcdir)/emultempl/solaris2-x86.em.
2012 (eelf_x86_64_sol2.c): Likewise.
2013 * Makefile.in: Regenerated.
2014 * emulparams/call_nop.sh: Set x86-specific linker options via
2016 * emulparams/cet.sh: Likewise.
2017 * emulparams/reloc_overflow.sh: Likewise.
2018 * emulparams/elf32_x86_64.sh (EXTRA_EM_FILE): New. Set to
2020 * emulparams/elf_i386.sh: Likewise.
2021 * emulparams/elf_i386_be.sh: Likewise.
2022 * emulparams/elf_i386_chaos.sh: Likewise.
2023 * emulparams/elf_i386_ldso.sh: Likewise.
2024 * emulparams/elf_i386_vxworks.sh: Likewise.
2025 * emulparams/elf_iamcu.sh: Likewise.
2026 * emulparams/elf_k1om.sh: Likewise.
2027 * emulparams/elf_l1om.sh: Likewise.
2028 * emulparams/elf_x86_64.sh: Likewise.
2029 * emulparams/elf_i386_sol2.sh (EXTRA_EM_FILE): Changed to
2031 * emulparams/elf_x86_64_sol2.sh: Likewise.
2032 * emultempl/elf-x86.em: New file.
2033 * emultempl/solaris2-x86.em: Likewise.
2034 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Don't
2035 set link_info.call_nop_byte.
2037 2019-04-05 Alan Modra <amodra@gmail.com>
2039 * testsuite/ld-powerpc/tlsexe32.d: Remove trailing spaces.
2040 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
2041 * testsuite/ld-powerpc/tlsopt5_32.d: Likewise.
2043 2019-04-03 Alan Modra <amodra@gmail.com>
2046 ldlex.l (SYMBOLNAMECHAR1): Don't match '/'.
2047 (<EXPRESSION>"/DISCARD/"): New.
2049 2019-04-03 Alan Modra <amodra@gmail.com>
2051 * ldlex.l: Formatting.
2052 (CMDFILENAMECHAR, CMDFILENAMECHAR1): Delete.
2053 (FILENAMECHAR1, SYMBOLNAMECHAR1, FILENAMECHAR, WILDCHAR),
2054 (NOCFILENAMECHAR): Remove duplicate chars. Reorder.
2055 (SYMBOLCHARN): Likewise. Rename to SYMBOLNAMECHAR.
2056 (<INPUTLIST>"$SYSROOT"..): Delete rule.
2058 2019-03-29 Max Filippov <jcmvbkbc@gmail.com>
2060 * testsuite/ld-xtensa/relax-undef-weak-pie-export-dynamic.d: New
2062 * testsuite/ld-xtensa/xtensa.exp
2063 (relax-undef-weak-pie-export-dynamic): Add new test.
2065 2019-03-26 Martin Liska <mliska@suse.cz>
2067 * plugin.c (get_symbols): Add lto_kind_str, lto_resolution_str,
2068 lto_visibility_str and use then to inform about plugin-symbols.
2069 * testsuite/ld-plugin/plugin-12.d: Adjust expected pattern.
2071 2019-03-25 Tamar Christina <tamar.christina@arm.com>
2073 * testsuite/ld-arm/jump-reloc-veneers-cond-long.d: Update disassembly.
2074 * testsuite/ld-arm/jump-reloc-veneers-long.d: Update disassembly.
2076 2019-03-21 Sudakshina Das <sudi.das@arm.com>
2078 * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
2079 * testsuite/ld-aarch64/bti-plt-1.s: Add .ifdef for PAC note section.
2080 * testsuite/ld-aarch64/bti-plt-6.d: Update warning.
2081 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
2082 * testsuite/ld-aarch64/bti-warn.d: New test.
2084 2019-03-21 Alan Modra <amodra@gmail.com>
2086 * testsuite/ld-elf/fini2.s: Reduce alignment.
2087 * testsuite/ld-elf/fini3.s: Likewise.
2088 * testsuite/ld-elf/finin.s: Likewise.
2089 * testsuite/ld-elf/init2.s: Likewise.
2090 * testsuite/ld-elf/init3.s: Likewise.
2091 * testsuite/ld-elf/initn.s: Likewise.
2092 * testsuite/ld-elf/pr14156a.d: Don't xfail m68hc1*-* or xgate-*.
2093 * testsuite/ld-elf/pr14156b.d: Don't xfail xgate-*.
2095 2019-03-21 Alan Modra <amodra@gmail.com>
2097 * scripttempl/alpha.sc, * scripttempl/armbpabi.sc,
2098 * scripttempl/crisaout.sc, * scripttempl/elf32cr16.sc,
2099 * scripttempl/elf32crx.sc, * scripttempl/elf32xc16x.sc,
2100 * scripttempl/elf32xc16xl.sc, * scripttempl/elf32xc16xs.sc,
2101 * scripttempl/elf64hppa.sc, * scripttempl/elf_chaos.sc,
2102 * scripttempl/elfarc.sc, * scripttempl/elfarcv2.sc,
2103 * scripttempl/elfd30v.sc, * scripttempl/elfm68hc11.sc,
2104 * scripttempl/elfm68hc12.sc, * scripttempl/elfm9s12z.sc,
2105 * scripttempl/elfmicroblaze.sc, * scripttempl/elfxgate.sc,
2106 * scripttempl/elfxtensa.sc, * scripttempl/epiphany_4x4.sc,
2107 * scripttempl/ft32.sc, * scripttempl/i386beos.sc,
2108 * scripttempl/iq2000.sc, * scripttempl/mcorepe.sc,
2109 * scripttempl/mep.sc, * scripttempl/mips.sc, * scripttempl/moxie.sc,
2110 * scripttempl/pe.sc, * scripttempl/pep.sc, * scripttempl/ppcpe.sc,
2111 * scripttempl/tic4xcoff.sc, * scripttempl/tic80coff.sc,
2112 * scripttempl/v850.sc, * scripttempl/v850_rh850.sc,
2113 * scripttempl/visium.sc, * scripttempl/xstormy16.sc: Add KEEP and
2114 SORT_NONE to .init and .fini wildcards.
2115 * scripttempl/elf32xc16x.sc,
2116 * scripttempl/elf32xc16xl.sc,
2117 * scripttempl/elf32xc16xs.sc: Add .fini wildcard.
2118 * scripttempl/elf_chaos.sc: Add .init output section.
2119 * scripttempl/elfd30v.sc: Remove duplicate .init.
2120 * scripttempl/elfm68hc11.sc, * scripttempl/elfm68hc12.sc,
2121 * scripttempl/elfm9s12z.sc, * scripttempl/elfxgate.sc: Remove
2122 duplicate .init, and add .fini wildcard.
2123 * scripttempl/ppcpe.sc (INIT, FINI): Delete.
2124 * ldlang.c (update_wild_statements): Special case .init and
2125 .fini in the wildcard, not the output section.
2127 2019-03-21 Alan Modra <amodra@gmail.com>
2129 * emulparams/elf32lm32fd.sh (DYNAMIC_LINK): Undef.
2131 2019-03-21 Alan Modra <amodra@gmail.com>
2133 * ldlang.c (lang_size_sections_1): Set SEC_KEEP on
2134 create_object_symbols_section.
2135 * testsuite/ld-elf/pr22319.d: Don't xfail dlx.
2137 2019-03-18 Alan Modra <amodra@gmail.com>
2139 * testsuite/ld-elf/merge.d: Remove csky from xfails, add moxie.
2140 * testsuite/ld-elf/pr21884.d: Remove csky from xfails.
2141 * testsuite/ld-elf/shared.exp: Add csky to list not xfailing pr22374.
2142 * testsuite/ld-unique/pr21529.d: Remove csky from xfails
2144 2019-03-15 Nick Clifton <nickc@redhat.com>
2147 * ld.texi (-plugin): Correct the path used to locate linker
2150 2019-03-13 Sudakshina Das <sudi.das@arm.com>
2152 * NEWS: Document --pac-plt.
2153 * emultempl/aarch64elf.em (OPTION_PAC_PLT): New.
2154 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add pac-plt.
2155 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_PAC_PLT.
2156 * testsuite/ld-aarch64/aarch64-elf.exp: Add the following tests.
2157 * testsuite/ld-aarch64/bti-pac-plt-1.d: New test.
2158 * testsuite/ld-aarch64/bti-pac-plt-2.d: New test.
2159 * testsuite/ld-aarch64/pac-plt-1.d: New test.
2160 * testsuite/ld-aarch64/pac-plt-2.d: New test.
2161 * testsuite/ld-aarch64/bti-plt-1.s: Add .ifndef directive.
2163 2019-03-13 Sudakshina Das <sudi.das@arm.com>
2164 Szabolcs Nagy <szabolcs.nagy@arm.com>
2166 * NEWS: Document --force-bti.
2167 * emultempl/aarch64elf.em (plt_type, bti_type, OPTION_FORCE_BTI): New.
2168 (PARSE_AND_LIST_SHORTOPTS, PARSE_AND_LIST_OPTIONS): Add force-bti.
2169 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_FORCE_BTI.
2170 * testsuite/ld-aarch64/aarch64-elf.exp: Add all the tests below.
2171 * testsuite/ld-aarch64/bti-plt-1.d: New test.
2172 * testsuite/ld-aarch64/bti-plt-1.s: New test.
2173 * testsuite/ld-aarch64/bti-plt-2.d: New test.
2174 * testsuite/ld-aarch64/bti-plt-3.d: New test.
2175 * testsuite/ld-aarch64/bti-plt-4.d: New test.
2176 * testsuite/ld-aarch64/bti-plt-5.d: New test.
2177 * testsuite/ld-aarch64/bti-plt-6.d: New test.
2178 * testsuite/ld-aarch64/bti-plt-7.d: New test.
2179 * testsuite/ld-aarch64/bti-plt-so.s: New test.
2180 * testsuite/ld-aarch64/bti-plt.ld: New test.
2182 2019-03-13 Sudakshina Das <sudi.das@arm.com>
2184 * NEWS: Document GNU_PROPERTY_AARCH64_FEATURE_1_BTI and
2185 GNU_PROPERTY_AARCH64_FEATURE_1_PAC.
2186 * testsuite/ld-aarch64/aarch64-elf.exp: Add run commands for new tests.
2187 * testsuite/ld-aarch64/property-bti-pac1.d: New test.
2188 * testsuite/ld-aarch64/property-bti-pac1.s: New test.
2189 * testsuite/ld-aarch64/property-bti-pac2.d: New test.
2190 * testsuite/ld-aarch64/property-bti-pac2.s: New test.
2191 * testsuite/ld-aarch64/property-bti-pac3.d: New test.
2193 2019-03-13 H.J. Lu <hongjiu.lu@intel.com>
2196 * testsuite/ld-i386/i386.exp: Run PR ld/24322 tests.
2197 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2198 * testsuite/ld-i386/pr24322a.d: New file.
2199 * testsuite/ld-i386/pr24322b.d: Likewise.
2200 * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
2201 * testsuite/ld-x86-64/pr24322a.d: Likewise.
2202 * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
2203 * testsuite/ld-x86-64/pr24322b.d: Likewise.
2204 * testsuite/ld-x86-64/pr24322a.s: Likewise.
2205 * testsuite/ld-x86-64/pr24322b.s: Likewise.
2206 * testsuite/ld-x86-64/pr24322c.s: Likewise.
2208 2019-03-06 Nick Bowler <nbowler@draconx.ca>
2211 * ldexp.c (fold_name): Allow lookups of the LENGTH and ORIGIN
2212 attributes during the first phase.
2214 2019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
2216 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
2217 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
2220 * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
2221 * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
2222 * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
2223 * testsuite/ld-s390/tlsbin.dd: Likewise.
2224 * testsuite/ld-s390/tlsbin.rd: Likewise.
2225 * testsuite/ld-s390/tlsbin.sd: Likewise.
2226 * testsuite/ld-s390/tlsbin_64.dd: Likewise.
2227 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
2228 * testsuite/ld-s390/tlsbin_64.sd: Likewise.
2229 * testsuite/ld-s390/tlspic.dd: Likewise.
2230 * testsuite/ld-s390/tlspic.rd: Likewise.
2231 * testsuite/ld-s390/tlspic.sd: Likewise.
2232 * testsuite/ld-s390/tlspic_64.dd: Likewise.
2233 * testsuite/ld-s390/tlspic_64.rd: Likewise.
2234 * testsuite/ld-s390/tlspic_64.sd: Likewise.
2235 * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
2237 2019-02-27 H.J. Lu <hongjiu.lu@intel.com>
2240 * testsuite/ld-i386/i386.exp: Run PR ld/24276 test.
2241 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2242 * testsuite/ld-i386/pr24276.dso: New file.
2243 * testsuite/ld-i386/pr24276.warn: Likewise.
2244 * testsuite/ld-x86-64/pr24276.dso: Likewise.
2245 * testsuite/ld-x86-64/pr24276.warn: Likewise.
2247 2019-02-20 Eric Tsai <erictsai@cadence.com>
2249 * testsuite/ld-xtensa/call_overflow.d: New test definition.
2250 * testsuite/ld-xtensa/call_overflow1.s: New test source.
2251 * testsuite/ld-xtensa/call_overflow2.s: New test source.
2252 * testsuite/ld-xtensa/call_overflow3.s: New test source.
2253 * testsuite/ld-xtensa/xtensa.exp: Add call_overflow test.
2255 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
2257 * testsuite/ld-elf/elf.exp: Remove Hurd XFAILs.
2259 2019-02-12 Nick Clifton <nickc@redhat.com>
2261 * po/fr.po: Updated French translation.
2263 2019-02-09 Vineet Gupta <vgupta@synopsys.com>
2265 * emultempl/arclinux.em: Delete special INIT/FINI handling.
2267 2019-02-07 Nick Clifton <nickc@redhat.com>
2270 * ld.texi (Options): Add missing word to the description of the
2271 --start-group option.
2273 2019-02-06 Alan Modra <amodra@gmail.com>
2276 * testsuite/ld-scripts/pr24008.d: Pass with extra target
2279 2019-02-05 H.J. Lu <hongjiu.lu@intel.com>
2282 * testsuite/ld-x86-64/pr24151a-x32.d: New file.
2283 * testsuite/ld-x86-64/pr24151a.d: Likewise.
2284 * testsuite/ld-x86-64/pr24151a.s: Likewise.
2285 * testsuite/ld-x86-64/x86-64.exp: Run pr24151a and pr24151a-x32.
2287 2019-01-31 Alan Modra <amodra@gmail.com>
2289 * NEWS: Mention -t change.
2290 * ld.texi (--trace/-t): Expand documentation a little.
2292 2019-01-29 H.J. Lu <hongjiu.lu@intel.com>
2295 * testsuite/ld-scripts/defined.exp: Run pr24008.
2296 * testsuite/ld-scripts/pr24008.d: New file.
2297 * testsuite/ld-scripts/pr24008.map: Likewise.
2298 * testsuite/ld-scripts/pr24008.s: Likewise.
2299 * testsuite/ld-scripts/pr24008.t: Likewise.
2301 2019-01-29 Eric Botcazou <ebotcazou@adacore.com>
2303 * testsuite/ld-ifunc/ifunc.exp: Skip pr23169 on SPARC.
2305 2019-01-28 Alan Modra <amodra@gmail.com>
2308 * ldexp.h (lang_phase_type): Add lang_fixed_phase_enum.
2309 * ldexp.c (fold_name): Move expld.assign_name check later to
2310 avoid an extra lookup.
2311 (exp_fold_tree_1): When lang_fixed_phase_enum, don't change symbol
2312 values, and don't clear expld.assign_name.
2313 * ldlang.c (lang_map): Set expld.phase to lang_fixed_phase_enum.
2314 (print_assignment): Resolve entire assignment expression.
2315 Don't access symbol u.def unless symbol is defined.
2317 2019-01-25 Nick Clifton <nickc@redhat.com>
2319 * po/bg.po: Updated Bulgarian translation.
2321 2019-01-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
2323 * ld.texi (--wrap): Add warning that LTO may make this feature
2326 2019-01-21 Nick Clifton <nickc@redhat.com>
2328 * po/uk.po: Updated Ukranian translation.
2329 * po/pr_BR.po: Updated Brazilian Portuguese translation.
2331 2019-01-21 Nick Clifton <nickc@redhat.com>
2334 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Update
2335 expected error message.
2337 2019-01-19 Nick Clifton <nickc@redhat.com>
2339 * configure: Regenerate.
2340 * po/ld.pot: Regenerate.
2342 2018-06-24 Nick Clifton <nickc@redhat.com>
2344 2.32 branch created.
2346 2019-01-16 Kito Cheng <kito@andestech.com>
2348 * testsuite/ld-elf/orphan-region.d: XFAIL for RISC-V, because add new
2350 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Add new tests.
2351 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: New test.
2352 * testsuite/ld-riscv-elf/attr-merge-arch-01a.s: Likewise.
2353 * testsuite/ld-riscv-elf/attr-merge-arch-01b.s: Likewise.
2354 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
2355 * testsuite/ld-riscv-elf/attr-merge-arch-02a.s: Likewise.
2356 * testsuite/ld-riscv-elf/attr-merge-arch-02b.s: Likewise.
2357 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
2358 * testsuite/ld-riscv-elf/attr-merge-arch-03a.s: Likewise.
2359 * testsuite/ld-riscv-elf/attr-merge-arch-03b.s: Likewise.
2360 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
2361 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01a.s: Likewise.
2362 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01b.s: Likewise.
2363 * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
2364 * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
2365 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
2366 * testsuite/ld-riscv-elf/attr-merge-stack-align-a.s: Likewise.
2367 * testsuite/ld-riscv-elf/attr-merge-stack-align-b.s: Likewise.
2368 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-a.s: Likewise.
2369 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-b.s: Likewise.
2370 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed.d: Likewise.
2371 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
2372 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
2373 * testsuite/ld-riscv-elf/attr-merge-strict-align-01a.s: Likewise.
2374 * testsuite/ld-riscv-elf/attr-merge-strict-align-01b.s: Likewise.
2375 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
2376 * testsuite/ld-riscv-elf/attr-merge-strict-align-02a.s: Likewise.
2377 * testsuite/ld-riscv-elf/attr-merge-strict-align-02b.s: Likewise.
2378 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
2379 * testsuite/ld-riscv-elf/attr-merge-strict-align-03a.s: Likewise.
2380 * testsuite/ld-riscv-elf/attr-merge-strict-align-03b.s: Likewise.
2381 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
2382 * testsuite/ld-riscv-elf/attr-merge-strict-align-04a.s: Likewise.
2383 * testsuite/ld-riscv-elf/attr-merge-strict-align-04b.s: Likewise.
2384 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
2385 * testsuite/ld-riscv-elf/attr-merge-strict-align-05a.s: Likewise.
2386 * testsuite/ld-riscv-elf/attr-merge-strict-align-05b.s: Likewise.
2388 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
2391 * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
2392 * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
2393 * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
2394 * testsuite/ld-s390/tlsbin.dd: Likewise.
2395 * testsuite/ld-s390/tlsbin.rd: Likewise.
2396 * testsuite/ld-s390/tlsbin.sd: Likewise.
2397 * testsuite/ld-s390/tlsbin_64.dd: Likewise.
2398 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
2399 * testsuite/ld-s390/tlsbin_64.sd: Likewise.
2400 * testsuite/ld-s390/tlspic.dd: Likewise.
2401 * testsuite/ld-s390/tlspic.rd: Likewise.
2402 * testsuite/ld-s390/tlspic.sd: Likewise.
2403 * testsuite/ld-s390/tlspic_64.dd: Likewise.
2404 * testsuite/ld-s390/tlspic_64.rd: Likewise.
2405 * testsuite/ld-s390/tlspic_64.sd: Likewise.
2406 * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
2408 2019-01-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
2410 * ld.texi (--wrap): Add example to emphasise that only undefined
2411 references are replaced by the linker.
2413 2019-01-09 Nick Clifton <nickc@redhat.com>
2415 * po/es.po: Updated Spanish translation.
2417 2019-01-09 Andrew Paprocki <andrew@ishiboo.com>
2419 * configure: Regenerate.
2421 2019-01-08 Alan Modra <amodra@gmail.com>
2423 * testsuite/ld-elf/sec64k.exp: Use . rather than $objdir in
2424 generated source file names.
2425 * testsuite/ld-m68k/m68k-got.exp: Likewise.
2427 2019-01-01 Alan Modra <amodra@gmail.com>
2429 Update year range in copyright notice of all files.
2431 For older changes see ChangeLog-2018
2433 Copyright (C) 2019 Free Software Foundation, Inc.
2435 Copying and distribution of this file, with or without modification,
2436 are permitted in any medium without royalty provided the copyright
2437 notice and this notice are preserved.
2443 version-control: never