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