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