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