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