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