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