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