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