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