Fix potential illegal memory access when disassembling corrupt RX binaries.
[deliverable/binutils-gdb.git] / ld / ChangeLog
CommitLineData
dfde93ab
AM
12019-10-16 Alan Modra <amodra@gmail.com>
2
3 * genscripts.sh: Correct comments. Remove outdated comment block
4 saying "Generate 5 or 6 script files..". Remove description of
5 ld options from comment emitted to script files, and order options
6 as per comment block in genscripts.sh saying which scripts are
7 generated.
8
3d9ee7d2
AM
92019-10-14 Alan Modra <amodra@gmail.com>
10
11 * ldctor.h (struct set_element): Make next field a union, adding
12 idx field.
13 * ldctor.c (ctor_cmp): Dereference pointer and lose unnecessary
14 const. Replace final sort on pointer value with final sort on idx.
15 (ldctor_add_set_entry): Adjust next field access.
16 (ldctor_build_sets): Likewise. Set u.idx field for sort.
17
08dec09d
AM
182019-10-14 Alan Modra <amodra@gmail.com>
19
20 * pe-dll.c (reloc_data_type): Add idx field.
21 (reloc_sort): Perform final sort by idx.
22 (generate_reloc): Set idx.
23
4786fbf3
NC
242019-10-13 Nick Clifton <nickc@redhat.com>
25
26 * NEWS: Delete superflous "Changes in 2.33" comment.
27
8610e0fd
AM
282019-10-09 Alan Modra <amodra@gmail.com>
29
30 PR 25081
31 * ldlang.c (lang_size_sections_1): Set lma from section vma
32 rather than dot.
33
64465112
AM
342019-10-08 Alan Modra <amodra@gmail.com>
35
36 * testsuite/ld-powerpc/localgot.s,
37 * testsuite/ld-powerpc/localgot.d: New test.
38 * testsuite/ld-powerpc/powerpc.exp: Run it.
39
c0ea7c52
JL
402019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
41
42 * testsuite/ld-msp430-elf/attr-gnu-main.s: New test.
43 * testsuite/ld-msp430-elf/attr-gnu-obj.s: New test.
44 * testsuite/ld-msp430-elf/attr-gnu-region-lower-upper.d: New test.
45 * testsuite/ld-msp430-elf/attr-gnu-region-lower.d: New test.
46 * testsuite/ld-msp430-elf/attr-gnu-region-upper.d: New test.
47 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new tests.
48
847d5183
AM
492019-10-07 Alan Modra <amodra@gmail.com>
50
51 * ldmisc.c (vfinfo): Save and restore bfd_error around bfd
52 function calls that might set it.
53 * testsuite/ld-elf/indirect.exp: Don't expect "nonrepresentable
54 section" message.
55
c3614cff
AM
562019-10-07 Alan Modra <amodra@gmail.com>
57
58 * testsuite/ld-powerpc/tlsexe.r: Adjust for added TLSMARK symbol.
59 * testsuite/ld-powerpc/tlsexe32.r: Likewise.
60 * testsuite/ld-powerpc/tlsso.r: Likewise.
61 * testsuite/ld-powerpc/tlsso32.r: Likewise.
62 * testsuite/ld-powerpc/tls32no.d,
63 * testsuite/ld-powerpc/tls32no.g: New test files.
64 * testsuite/ld-powerpc/tlsexe32no.d,
65 * testsuite/ld-powerpc/tlsexe32no.g,
66 * testsuite/ld-powerpc/tlsexe32no.r: New test files.
67 * testsuite/ld-powerpc/tlsexeno.d,
68 * testsuite/ld-powerpc/tlsexeno.g,
69 * testsuite/ld-powerpc/tlsexeno.r: New test files.
70 * testsuite/ld-powerpc/tlsexetocno.d,
71 * testsuite/ld-powerpc/tlsexetocno.g: New test files.
72 * testsuite/ld-powerpc/tlsno.d,
73 * testsuite/ld-powerpc/tlsno.g: New test files.
74 * testsuite/ld-powerpc/tlstocno.d,
75 * testsuite/ld-powerpc/tlstocno.g: New test files.
76 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
77
8154f49c
AM
782019-10-07 Alan Modra <amodra@gmail.com>
79
80 * testsuite/ld-arm/tls-gdesc-neg.d: Relax target match.
81
f749f26e
AM
822019-10-04 Alan Modra <amodra@gmail.com>
83
84 * testsuite/ld-powerpc/tlsso.d: Adjust to suit tlsld_got usage change.
85 * testsuite/ld-powerpc/tlsso.g: Likewise.
86 * testsuite/ld-powerpc/tlsso.r: Likewise.
87 * testsuite/ld-powerpc/tlsso32.d: Likewise.
88 * testsuite/ld-powerpc/tlsso32.g: Likewise.
89 * testsuite/ld-powerpc/tlsso32.r: Likewise.
90
b627f562
SN
912019-10-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
92
93 PR ld/25062
94 * testsuite/ld-arm/arm-elf.exp: Update.
95 * testsuite/ld-arm/tls-gdesc-neg.d: New test.
96 * testsuite/ld-arm/tls-gdesc-neg.s: New test.
97
87279e3c
NA
982019-09-23 Nick Alcock <nick.alcock@oracle.com>
99
100 * configure.ac (TESTCTFLIB): Set to the .so or .a, like TESTBFDLIB.
101 * Makefile.am (TESTCTFLIB): Use it.
102 (LIBCTF): Use the .la file.
103 (check-DEJAGNU): Use it.
104 * Makefile.in: Regenerated.
105 * configure: Likewise.
106
1ff6de03
NA
1072019-09-30 Nick Alcock <nick.alcock@oracle.com>
108
109 * ldlang.h: (struct lang_input_statement_struct): Add the_ctf.
110 (struct elf_sym_strtab): Add forward.
111 (struct elf_strtab_hash): Likewise.
112 (ldlang_ctf_apply_strsym): Declare.
113 (ldlang_write_ctf_late): Likewise.
114 * ldemul.h (ldemul_emit_ctf_early): New.
115 (ldemul_examine_strtab_for_ctf): Likewise.
116 (ld_emulation_xfer_type) <emit_ctf_early>: Likewise.
117 (ld_emulation_xfer_type) <examine_strtab_for_ctf>: Likewise.
118 * ldemul.c (ldemul_emit_ctf_early): New.
119 (ldemul_examine_strtab_for_ctf): Likewise.
120 * ldlang.c: Include ctf-api.h.
121 (CTF_COMPRESSION_THRESHOLD): New.
122 (ctf_output): New. Initialized in...
123 (ldlang_open_ctf): ... this new function. Open all the CTF
124 sections in the input files: mark them non-loaded and empty
125 so as not to copy their contents to the output, but linker-created
126 so the section gets created in the target.
127 (ldlang_merge_ctf): New, merge types via ctf_link_add_ctf and
128 ctf_link.
129 (ldlang_ctf_apply_strsym): New, an examine_strtab callback: wrap
130 ldemul_examine_strtab_for_ctf.
131 (lang_write_ctf): New, write out the CTF section.
132 (ldlang_write_ctf_late): New, late call via bfd's emit_ctf hook.
133 (lang_process): Call ldlang_open_ctf, ldlang_merge_ctf, and
134 lang_write_ctf.
135 * ldmain.c (link_callbacks): Add ldlang_ctf_apply_strsym,
136 ldlang_write_ctf_late.
137 * emultempl/aix.em: Add ctf-api.h.
138 * emultempl/armcoff.em: Likewise.
139 * emultempl/beos.em: Likewise.
140 * emultempl/elf.em: Likewise.
141 * emultempl/generic.em: Likewise.
142 * emultempl/linux.em: Likewise.
143 * emultempl/msp430.em: Likewise.
144 * emultempl/pe.em: Likewise.
145 * emultempl/pep.em: Likewise.
146 * emultempl/ticoff.em: Likewise.
147 * emultempl/vanilla.em: Likewise.
148 * ldcref.c: Likewise.
149 * ldctor.c: Likewise.
150 * ldelf.c: Likewise.
151 * ldelfgen.c: Likewise.
152 * ldemul.c: Likewise.
153 * ldexp.c: Likewise.
154 * ldfile.c: Likewise.
155 * ldgram.c: Likewise.
156 * ldlex.l: Likewise.
157 * ldmain.c: Likewise.
158 * ldmisc.c: Likewise.
159 * ldver.c: Likewise.
160 * ldwrite.c: Likewise.
161 * lexsup.c: Likewise.
162 * mri.c: Likewise.
163 * pe-dll.c: Likewise.
164 * plugin.c: Likewise.
165
166 * ldelfgen.c (ldelf_emit_ctf_early): New.
167 (ldelf_examine_strtab_for_ctf): tell libctf about the symtab and
168 strtab.
169 (struct ctf_strsym_iter_cb_arg): New, state to do so.
170 (ldelf_ctf_strtab_iter_cb): New: tell libctf about
171 each string in the strtab in turn.
172 (ldelf_ctf_symbols_iter_cb): New, tell libctf
173 about each symbol in the symtab in turn.
174 * ldelfgen.h (struct elf_sym_strtab): Add forward.
175 (struct elf_strtab_hash): Likewise.
176 (struct ctf_file): Likewise.
177 (ldelf_emit_ctf_early): Declare.
178 (ldelf_examine_strtab_for_ctf): Likewise.
179 * emultempl/elf-generic.em (LDEMUL_EMIT_CTF_EARLY): Set it.
180 (LDEMUL_EXAMINE_STRTAB_FOR_CTF): Likewise.
181 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
182 emit_ctf_early and examine_strtab_for_ctf, NULL by default.
183 * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
184 * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
185 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Likewise.
186 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
187 * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Likewise.
188 * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
189 * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
190 * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
191 * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
192 * emultempl/vanilla.em (ld_vanilla_emulation): Likewise.
193
194 * Makefile.am: Pull in libctf (and zlib, a transitive requirement
195 for compressed CTF section emission). Pass it on to DejaGNU.
196 * configure.ac: Add AM_ZLIB.
197 * aclocal.m4: Added zlib.m4.
198 * Makefile.in: Regenerated.
199 * testsuite/ld-bootstrap/bootstrap.exp: Use it when relinking ld.
200
1914e264
AM
2012019-10-02 Alan Modra <amodra@gmail.com>
202
203 * ld.texi (-Bsymbolic, -Bsymbolic-functions): Don't mention PIEs.
204 * ld.h (symbolic_enum, dynamic_list_enum),
205 (args_type <symbolic, dynamic_list>): Move to..
206 * lexsup.c (parse_args): ..here, using auto vars opt_symbolic
207 and opt_dynamic_list rather than command_line fields. Only
208 act on -Bsymbolic and -Bsymbolic-functions for shared library
209 output. Free dynamic_list.
210
41f37a6f
AM
2112019-09-26 Alan Modra <amodra@gmail.com>
212
213 PR 24262
214 * ld.texi (-plugin): Revert 2019-03-15 change.
215
9a24a276
AM
2162019-09-25 Alan Modra <amodra@gmail.com>
217
218 * ld.texi (SORT_BY_ALIGNMENT): Reword slightly.
219 (SORT_BY_INIT_PRIORITY): Elucidate.
220 * ldlang.c: Include limits.h.
221 (get_init_priority): Comment. Change param to a section,
222 return an int. Sanity check priority digits. Support sorting
223 more sections with trailing digits. Return -1 on error.
224 (compare_section): Adjust.
225
6ba2ed48
NC
2262019-09-25 Nick Clifton <nickc@redhat.com>
227
228 * emultempl/avrelf.em (_before_allocation): Silence build warning
229 using clang.
230
4a41f3fa
L
2312019-09-23 H.J. Lu <hongjiu.lu@intel.com>
232
233 * testsuite/ld-plugin/pr24406-1.c (main): Correct buffer size
234 to read.
235
0b4453c7
AM
2362019-09-23 Alan Modra <amodra@gmail.com>
237
238 * deffilep.y: Include bfdlink.h.
239 * ldelf.c: Likewise.
240 * ldelfgen.c: Likewise.
241 * ldver.c: Likewise.
242 * mri.c: Likewise.
243 * emultempl/irix.em: Don't include ld.h, ldmain.h, libiberty.h.
244 Comment.
245
f5c5b7c1
AM
2462019-09-23 Alan Modra <amodra@gmail.com>
247
248 * emultempl/m68kelf.em: Include elf32-m68k.h.
249
8410a658
AM
2502019-09-23 Alan Modra <amodra@gmail.com>
251
252 * emultempl/bfin.em: Include elf32-bfin.h.
253
ca05ca5e
AM
2542019-09-23 Alan Modra <amodra@gmail.com>
255
256 * emultempl/cr16elf.em: Include elf32-cr16.h.
257
6ea7de32
AM
2582019-09-23 Alan Modra <amodra@gmail.com>
259
260 * emultempl/aix.em: Include xcofflink.h.
261
f37164d7
AM
2622019-09-23 Alan Modra <amodra@gmail.com>
263
264 * emultempl/armelf.em: Include elf32-arm.h.
265 * emultempl/pe.em: Move func defines later and include coff-arm.h.
266
a8bfaadb
AM
2672019-09-23 Alan Modra <amodra@gmail.com>
268
269 * emultempl/aarch64elf.em: Include elfxx-aarch64.h.
270
3352ae99
AM
2712019-09-23 Alan Modra <amodra@gmail.com>
272
273 * emultempl/ia64elf.em: Include elfxx-ia64.h.
274
d48d68b6
AM
2752019-09-23 Alan Modra <amodra@gmail.com>
276
277 * emultempl/v850elf.em: Include elf32-v850.h.
278
6e67e6b0
AM
2792019-09-23 Alan Modra <amodra@gmail.com>
280
281 * emultempl/cskyelf.em: Include elf32-csky.h.
282
a13ba308
AM
2832019-09-22 Alan Modra <amodra@gmail.com>
284
285 * testsuite/ld-srec/sr3.cc (FOO_MSG_LEN): Set to 4.
286
9d1da81b
JW
2872019-09-20 Nelson Chu <nelson.chu@sifive.com>
288
289 * testsuite/ld-riscv-elf/weakref32.s: Add relaxable undef weak code.
290 * testsuite/ld-riscv-elf/weakref64.s: Likewise.
291 * testsuite/ld-riscv-elf/weakref32.d: Updated.
292 * testsuite/ld-riscv-elf/weakref64.d: Updated.
293
a48931cc
AM
2942019-09-20 Alan Modra <amodra@gmail.com>
295
296 * emultempl/xtensaelf.em (xtensa_get_section_deps): Comment.
297 Use bfd_section_userdata.
298 (xtensa_set_section_deps): Use bfd_set_section_userdata.
299 * ldlang.c (lang_output_section_get): Use bfd_section_userdata.
300 (sort_def_symbol): Likewise, and bfd_set_section_userdata.
301 (init_os): Use bfd_set_section_userdata.
302 (print_all_symbols): Use bfd_section_userdata.
303 * ldlang.h (get_userdata): Delete.
304
00f93c44
AM
3052019-09-20 Alan Modra <amodra@gmail.com>
306
307 * ldelf.c (ldelf_after_open, ldelf_place_orphan
308 * ldlang.c (walk_wild_file, lang_process): Use bfd_usrdata.
309 (load_symbols, ldlang_add_file): Use bfd_set_usrdata.
310 * ldmain.c (add_archive_element): Use bfd_usrdata.
311 * ldlang.h (bfd_input_just_syms): New inline function.
312 * emultempl/aarch64elf.em (build_section_lists): Use it.
313 * emultempl/mmo.em (mmo_place_orphan): Likewise.
314 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
315 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
316 * emultempl/ppc64elf.em (build_section_lists): Likewise.
317
fd361982
AM
3182019-09-18 Alan Modra <amodra@gmail.com>
319
320 * ldcref.c, * ldctor.c, * ldelf.c, * ldlang.c, * pe-dll.c,
321 * emultempl/aarch64elf.em, * emultempl/aix.em,
322 * emultempl/armcoff.em, * emultempl/armelf.em,
323 * emultempl/cr16elf.em, * emultempl/cskyelf.em,
324 * emultempl/m68hc1xelf.em, * emultempl/m68kelf.em,
325 * emultempl/mipself.em, * emultempl/mmix-elfnmmo.em,
326 * emultempl/mmo.em, * emultempl/msp430.em,
327 * emultempl/nios2elf.em, * emultempl/pe.em, * emultempl/pep.em,
328 * emultempl/ppc64elf.em, * emultempl/xtensaelf.em: Update
329 throughout for bfd section macro and function changes.
330
e6f7f6d1
AM
3312019-09-18 Alan Modra <amodra@gmail.com>
332
333 * ldcref.c (check_reloc_refs): Update bfd_get_section to
334 bfd_asymbol_section.
335
e0b2a78c
SM
3362019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
337
338 * Makefile.in: Re-generate.
339 * configure: Re-generate.
340
1d38e9d1
AM
3412019-09-18 Alan Modra <amodra@gmail.com>
342
343 * ldlang.c (stricpy, strcut, name_compare): Constify params.
344 (get_first_input_target): Make return and "target" const.
345
90d92a63
AM
3462019-09-18 Alan Modra <amodra@gmail.com>
347
348 * emultempl/pe.em (after_open): Use bfd_set_filename.
349 * emultempl/pep.em (after_open): Use bfd_set_filename.
350
0aa0727c
AM
3512019-09-16 Alan Modra <amodra@gmail.com>
352
353 PR 25002
354 * ldelf.c: Include safe-ctype.h.
355
bb695960
PB
3562019-09-16 Phil Blundell <pb@pbcl.net>
357
358 * Makefile.in, configure: Regenerated.
359
1f1f5b92
AM
3602019-09-13 Alan Modra <amodra@gmail.com>
361
362 * ldlang.c (new_afile): Remove add_to_list parameter.
363 (lang_add_input_file): Update new_afile calls.
364 (lookup_name): Splice input_statement added by new_afile into
365 statement_list after current input_file_chain entry.
366 (lang_process): Update comment.
367
0d41d9a2
AM
3682019-09-12 Alan Modra <amodra@gmail.com>
369
370 * ldlang.c (print_input_statement): Do not exclude linker created
371 BFDs.
372
a19826f4
AM
3732019-09-12 Alan Modra <amodra@gmail.com>
374
375 PR 24981
376 * ldlang.c (lang_process): Remove assertion. Comment.
377
075a2b89
AM
3782019-09-11 Alan Modra <amodra@gmail.com>
379
380 * emultempl/elf32.em: Remove "misnamed" comment. Rename to..
381 * emultempl/elf.em: ..this.
382 * configure.ac (elf_list_options): Adjust TEMPLATE_NAME grep.
383 * emulparams/aarch64cloudabi.sh (TEMPLATE_NAME): Set to elf.
384 * emulparams/aarch64elf.sh: Likewise.
385 * emulparams/aarch64elf32.sh: Likewise.
386 * emulparams/aarch64fbsd.sh: Likewise.
387 * emulparams/aarch64linux.sh: Likewise.
388 * emulparams/aarch64linux32.sh: Likewise.
389 * emulparams/arcelf.sh: Likewise.
390 * emulparams/arcelf_prof.sh: Likewise.
391 * emulparams/arclinux.sh: Likewise.
392 * emulparams/arclinux_prof.sh: Likewise.
393 * emulparams/arcv2elf.sh: Likewise.
394 * emulparams/arcv2elfx.sh: Likewise.
395 * emulparams/armelf.sh: Likewise.
396 * emulparams/armelf_fuchsia.sh: Likewise.
397 * emulparams/armelf_linux.sh: Likewise.
398 * emulparams/armelf_phoenix.sh: Likewise.
399 * emulparams/armnto.sh: Likewise.
400 * emulparams/avr1.sh: Likewise.
401 * emulparams/avr2.sh: Likewise.
402 * emulparams/avr25.sh: Likewise.
403 * emulparams/avr3.sh: Likewise.
404 * emulparams/avr31.sh: Likewise.
405 * emulparams/avr35.sh: Likewise.
406 * emulparams/avr4.sh: Likewise.
407 * emulparams/avr5.sh: Likewise.
408 * emulparams/avr51.sh: Likewise.
409 * emulparams/avr6.sh: Likewise.
410 * emulparams/avrtiny.sh: Likewise.
411 * emulparams/avrxmega1.sh: Likewise.
412 * emulparams/avrxmega2.sh: Likewise.
413 * emulparams/avrxmega3.sh: Likewise.
414 * emulparams/avrxmega4.sh: Likewise.
415 * emulparams/avrxmega5.sh: Likewise.
416 * emulparams/avrxmega6.sh: Likewise.
417 * emulparams/avrxmega7.sh: Likewise.
418 * emulparams/criself.sh: Likewise.
419 * emulparams/crislinux.sh: Likewise.
420 * emulparams/cskyelf.sh: Likewise.
421 * emulparams/d10velf.sh: Likewise.
422 * emulparams/elf32_sparc.sh: Likewise.
423 * emulparams/elf32_spu.sh: Likewise.
424 * emulparams/elf32_tic6x_le.sh: Likewise.
425 * emulparams/elf32_x86_64.sh: Likewise.
426 * emulparams/elf32am33lin.sh: Likewise.
427 * emulparams/elf32bfin.sh: Likewise.
428 * emulparams/elf32bfinfd.sh: Likewise.
429 * emulparams/elf32bmip.sh: Likewise.
430 * emulparams/elf32bmipn32-defs.sh: Likewise.
431 * emulparams/elf32cr16.sh: Likewise.
432 * emulparams/elf32cr16c.sh: Likewise.
433 * emulparams/elf32crx.sh: Likewise.
434 * emulparams/elf32epiphany.sh: Likewise.
435 * emulparams/elf32epiphany_4x4.sh: Likewise.
436 * emulparams/elf32frvfd.sh: Likewise.
437 * emulparams/elf32ip2k.sh: Likewise.
438 * emulparams/elf32lm32.sh: Likewise.
439 * emulparams/elf32lm32fd.sh: Likewise.
440 * emulparams/elf32lriscv-defs.sh: Likewise.
441 * emulparams/elf32m32c.sh: Likewise.
442 * emulparams/elf32mb_linux.sh: Likewise.
443 * emulparams/elf32mbel_linux.sh: Likewise.
444 * emulparams/elf32mcore.sh: Likewise.
445 * emulparams/elf32mep.sh: Likewise.
446 * emulparams/elf32metag.sh: Likewise.
447 * emulparams/elf32microblaze.sh: Likewise.
448 * emulparams/elf32mipswindiss.sh: Likewise.
449 * emulparams/elf32or1k.sh: Likewise.
450 * emulparams/elf32ppccommon.sh: Likewise.
451 * emulparams/elf32rl78.sh: Likewise.
452 * emulparams/elf32rx.sh: Likewise.
453 * emulparams/elf32tilegx.sh: Likewise.
454 * emulparams/elf32tilepro.sh: Likewise.
455 * emulparams/elf32vax.sh: Likewise.
456 * emulparams/elf32visium.sh: Likewise.
457 * emulparams/elf32xc16x.sh: Likewise.
458 * emulparams/elf32xc16xl.sh: Likewise.
459 * emulparams/elf32xc16xs.sh: Likewise.
460 * emulparams/elf32xstormy16.sh: Likewise.
461 * emulparams/elf32xtensa.sh: Likewise.
462 * emulparams/elf64_aix.sh: Likewise.
463 * emulparams/elf64_ia64.sh: Likewise.
464 * emulparams/elf64_s390.sh: Likewise.
465 * emulparams/elf64_sparc.sh: Likewise.
466 * emulparams/elf64alpha.sh: Likewise.
467 * emulparams/elf64bpf.sh: Likewise.
468 * emulparams/elf64hppa.sh: Likewise.
469 * emulparams/elf64mmix.sh: Likewise.
470 * emulparams/elf64rdos.sh: Likewise.
471 * emulparams/elf64tilegx.sh: Likewise.
472 * emulparams/elf_i386.sh: Likewise.
473 * emulparams/elf_i386_be.sh: Likewise.
474 * emulparams/elf_i386_ldso.sh: Likewise.
475 * emulparams/elf_i386_vxworks.sh: Likewise.
476 * emulparams/elf_iamcu.sh: Likewise.
477 * emulparams/elf_k1om.sh: Likewise.
478 * emulparams/elf_l1om.sh: Likewise.
479 * emulparams/elf_s390.sh: Likewise.
480 * emulparams/elf_x86_64.sh: Likewise.
481 * emulparams/h8300elf.sh: Likewise.
482 * emulparams/h8300elf_linux.sh: Likewise.
483 * emulparams/hppa64linux.sh: Likewise.
484 * emulparams/hppaelf.sh: Likewise.
485 * emulparams/hppalinux.sh: Likewise.
486 * emulparams/i386lynx.sh: Likewise.
487 * emulparams/i386moss.sh: Likewise.
488 * emulparams/i386nto.sh: Likewise.
489 * emulparams/m32relf.sh: Likewise.
490 * emulparams/m32relf_linux.sh: Likewise.
491 * emulparams/m68hc11elf.sh: Likewise.
492 * emulparams/m68hc11elfb.sh: Likewise.
493 * emulparams/m68hc12elf.sh: Likewise.
494 * emulparams/m68hc12elfb.sh: Likewise.
495 * emulparams/m68kelf.sh: Likewise.
496 * emulparams/mn10300.sh: Likewise.
497 * emulparams/nds32elf.sh: Likewise.
498 * emulparams/nds32elf16m.sh: Likewise.
499 * emulparams/nds32elf_linux.sh: Likewise.
500 * emulparams/nios2elf.sh: Likewise.
501 * emulparams/nios2linux.sh: Likewise.
502 * emulparams/pruelf.sh: Likewise.
503 * emulparams/score3_elf.sh: Likewise.
504 * emulparams/shelf.sh: Likewise.
505 * emulparams/shelf_nto.sh: Likewise.
506 * emulparams/shelf_vxworks.sh: Likewise.
507 * emulparams/shlelf_linux.sh: Likewise.
508 * emulparams/shlelf_nto.sh: Likewise.
509 * emulparams/v850.sh: Likewise.
510 * emulparams/v850_rh850.sh: Likewise.
511 * ldelf.c: Update comment.
512 * ldelf.h: Likewise.
513 * emultempl/aarch64elf.em: Likewise.
514 * emultempl/alphaelf.em: Likewise.
515 * emultempl/arclinux.em: Likewise.
516 * emultempl/armelf.em: Likewise.
517 * emultempl/avrelf.em: Likewise.
518 * emultempl/bfin.em: Likewise.
519 * emultempl/cr16elf.em: Likewise.
520 * emultempl/crxelf.em: Likewise.
521 * emultempl/cskyelf.em: Likewise.
522 * emultempl/elf-generic.em: Likewise.
523 * emultempl/elf-x86.em: Likewise.
524 * emultempl/epiphanyelf_4x4.em: Likewise.
525 * emultempl/hppaelf.em: Likewise.
526 * emultempl/ia64elf.em: Likewise.
527 * emultempl/m68hc1xelf.em: Likewise.
528 * emultempl/m68kelf.em: Likewise.
529 * emultempl/metagelf.em: Likewise.
530 * emultempl/mmix-elfnmmo.em: Likewise.
531 * emultempl/mmixelf.em: Likewise.
532 * emultempl/mmo.em: Likewise.
533 * emultempl/needrelax.em: Likewise.
534 * emultempl/nios2elf.em: Likewise.
535 * emultempl/ppc32elf.em: Likewise.
536 * emultempl/ppc64elf.em: Likewise.
537 * emultempl/pruelf.em: Likewise.
538 * emultempl/rxelf.em: Likewise.
539 * emultempl/scoreelf.em: Likewise.
540 * emultempl/spuelf.em: Likewise.
541 * emultempl/tic6xdsbt.em: Likewise.
542 * emultempl/v850elf.em: Likewise.
543 * emultempl/vms.em: Likewise.
544 * emultempl/vxworks.em: Likewise.
545 * emultempl/xtensaelf.em: Likewise.
546 * scripttempl/arclinux.sc: Likewise.
547 * scripttempl/armbpabi.sc: Likewise.
548 * scripttempl/elf.sc: Likewise.
549 * scripttempl/elf64bpf.sc: Likewise.
550 * scripttempl/elf64hppa.sc: Likewise.
551 * scripttempl/elf_chaos.sc: Likewise.
552 * scripttempl/elfarc.sc: Likewise.
553 * scripttempl/elfarcv2.sc: Likewise.
554 * scripttempl/elfd10v.sc: Likewise.
555 * scripttempl/elfm68hc11.sc: Likewise.
556 * scripttempl/elfm68hc12.sc: Likewise.
557 * scripttempl/elfm9s12z.sc: Likewise.
558 * scripttempl/elfxgate.sc: Likewise.
559 * scripttempl/elfxtensa.sc: Likewise.
560 * scripttempl/epiphany_4x4.sc: Likewise.
561 * scripttempl/iq2000.sc: Likewise.
562 * scripttempl/mep.sc: Likewise.
563 * scripttempl/nds32elf.sc: Likewise.
564 * scripttempl/v850.sc: Likewise.
565 * scripttempl/v850_rh850.sc: Likewise.
566 * scripttempl/xstormy16.sc: Likewise.
567 * testsuite/ld-arm/arm-dyn.ld: Likewise.
568 * testsuite/ld-arm/arm-lib.ld: Likewise.
569 * testsuite/ld-arm/arm-no-rel-plt.ld: Likewise.
570 * testsuite/ld-arm/fdpic-main.ld: Likewise.
571 * testsuite/ld-arm/fdpic-shared.ld: Likewise.
572 * testsuite/ld-elf/elf.exp: Likewise.
573 * testsuite/ld-elf/orphan-region.d: Likewise.
574 * testsuite/ld-elf/orphan.d: Likewise.
575 * testsuite/ld-elf/pr349.d: Likewise.
576 * testsuite/ld-elf/warn2.d: Likewise.
577 * testsuite/ld-elfvsb/elf-offset.ld: Likewise.
578 * testsuite/ld-mips-elf/mips-dyn.ld: Likewise.
579 * testsuite/ld-mips-elf/mips-lib.ld: Likewise.
580 * testsuite/ld-scripts/dynamic-sections.t: Likewise.
581 * testsuite/ld-shared/elf-offset.ld: Likewise.
582 * configure: Regenerate.
583
d871d478
AM
5842019-09-11 Alan Modra <amodra@gmail.com>
585
586 * Makefile.am (ALL_EMUL_EXTRA_OFILES): Add ldelf and ldelfgen.
587 (CFILES, HFILES, EXTRA_ld_new_SOURCES): Likewise.
588 * configure.tgt: Formatting.
589 (targ_extra_ofiles): Init to ldelf.o ldelfgen.o, reset to just
590 ldelfgen.o for generic ELF targets, and empty for non-ELF.
591 * emultempl/aarch64elf.em (gldaarch64_layout_sections_again): Use
592 ldelf_map_segments.
593 (gld${EMULATION_NAME}_after_allocation): Likewise.
594 (real_func, aarch64_for_each_input_file_wrapper),
595 (aarch64_lang_for_each_input_file): Delete.
596 (lang_for_each_input_file): Don't define.
597 * emultempl/alphaelf.em (alpha_after_parse): Use ldelf_map_segments.
598 * emultempl/armelf.em (gldarm_layout_sections_again): Likewise.
599 (gld${EMULATION_NAME}_after_allocation): Likewise.
600 (real_func, arm_for_each_input_file_wrapper),
601 (arm_lang_for_each_input_file): Delete.
602 (lang_for_each_input_file): Don't define.
603 * emultempl/cr16elf.em (cr16elf_after_parse): Use ldelf_map_segments.
604 * emultempl/crxelf.em (crxelf_after_parse): Likewise. Delete
605 declaration.
606 * emultempl/cskyelf.em (gldcsky_layout_sections_again): Use
607 ldelf_map_segments.
608 (gld${EMULATION_NAME}_after_allocation): Likewise.
609 (real_func, csky_for_each_input_file_wrapper),
610 (csky_lang_for_each_input_file): Delete.
611 (lang_for_each_input_file): Don't define.
612 * emultempl/genelf.em: Include ldelfgen.h.
613 (gld${EMULATION_NAME}_before_allocation): Use ldelf_map_segments.
614 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
615 (hppaelf_layout_sections_again): Likewise.
616 (gld${EMULATION_NAME}_after_allocation): Likewise.
617 (real_func, hppa_for_each_input_file_wrapper),
618 (hppa_lang_for_each_input_file): Delete.
619 (lang_for_each_input_file): Don't define.
620 * emultempl/ia64elf.em (ia64elf_after_parse): Use ldelf_map_segments.
621 * emultempl/m68hc1xelf.em (real_func),
622 (m68hc11_for_each_input_file_wrapper),
623 (m68hc11_lang_for_each_input_file): Delete.
624 (lang_for_each_input_file): Don't define.
625 * emultempl/metagelf.em (metagelf_layout_sections_again): Use
626 ldelf_map_segments.
627 (gld${EMULATION_NAME}_after_allocation): Likewise.
628 (real_func, metag_for_each_input_file_wrapper),
629 (metag_lang_for_each_input_file): Delete.
630 (lang_for_each_input_file): Don't define.
631 * emultempl/mipself.em (real_func),
632 (mips_for_each_input_file_wrapper),
633 (mips_lang_for_each_input_file): Delete.
634 (lang_for_each_input_file): Don't define.
635 * emultempl/mmo.em: Don't include elf-bfd.h, do include ldelfgen.h.
636 (gld${EMULATION_NAME}_after_allocation): Use ldelf_map_segments.
637 * emultempl/nds32elf.em (nds32_elf_after_parse): Use ldelf_after_parse.
638 (nds32_elf_after_allocation): Comment fix.
639 * emultempl/nios2elf.em (nios2elf_layout_sections_again): Use
640 ldelf_map_segments.
641 (gld${EMULATION_NAME}_after_allocation): Likewise.
642 (real_func, nios2_for_each_input_file_wrapper),
643 (nios2_lang_for_each_input_file): Delete.
644 (lang_for_each_input_file): Don't define.
645 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_load_symbols): Delete
646 declaration.
647 (ppc_recognized_file): Call ldelf_load_symbols.
648 * emultempl/ppc64elf.em (ppc_layout_sections_again): Likewise.
649 (gld${EMULATION_NAME}_after_allocation): Likewise.
650 (real_func, ppc_for_each_input_file_wrapper),
651 (ppc_lang_for_each_input_file): Delete.
652 (lang_for_each_input_file): Don't define.
653 (gld${EMULATION_NAME}_load_symbols): Don't declare.
654 (ppc64_recognized_file): Call ldelf_load_symbols.
655 * emultempl/riscvelf.em (gld${EMULATION_NAME}_after_allocation):
656 Use ldelf_map_segments.
657 * emultempl/spuelf.em (spu_place_special_section): Use
658 ldelf_place_orphan.
659 * emultempl/tic6xdsbt.em (gld${EMULATION_NAME}_after_allocation):
660 Use ldelf_map_segments.
661 * emultempl/vms.em: Include ldelfgen.h.
662 (gld${EMULATION_NAME}_after_allocation): Use ldelf_map_segments.
663 * emultempl/elf32.em: Remove unnecessary headers, include ldelf.h
664 and ldelfgen.h. Move much of file content to..
665 * ldelf.c: ..here. New file.
666 * ldelf.h: New file.
667 * emultempl/elf-generic.em: Move gld${EMULATION_NAME}_map_segments..
668 * ldelfgen.c: ..to here.
669 * ldelfgen.h: New file.
670 * ldlang.c (lang_for_each_input_file): Adjust to only call func
671 on real files.
672 (lang_for_each_file): Likewise.
673 * po/SRC-POTFILES.in: Regenerate.
674 * Makefile.in: Regenerate.
675
cb7f4b29
AM
6762019-09-11 Alan Modra <amodra@gmail.com>
677
678 * ldmisc.c: Don't #include elf-bfd.h or coff-bfd.h.
679 (vfinfo): Use bfd_group_name.
680
0410b450
AM
6812019-09-11 Alan Modra <amodra@gmail.com>
682
683 * plugin.c (asymbol_from_plugin_symbol): Move code handling
684 ELF common symbols to block handling ELF visibility. Simplify
685 visibility setting.
686
6715fe29
L
6872019-09-09 H.J. Lu <hongjiu.lu@intel.com>
688
689 PR binutils/24887
690 * testsuite/ld-i386/property-1.r: Adjust for new output format
691 from readelf.
692 * testsuite/ld-i386/property-1a.r: Likewise.
693 * testsuite/ld-i386/property-2.r: Likewise.
694 * testsuite/ld-i386/property-2a.r: Likewise.
695 * testsuite/ld-i386/property-3.r: Likewise.
696 * testsuite/ld-i386/property-3a.r: Likewise.
697 * testsuite/ld-i386/property-4.r: Likewise.
698 * testsuite/ld-i386/property-4a.r: Likewise.
699 * testsuite/ld-i386/property-5.r: Likewise.
700 * testsuite/ld-i386/property-5a.r: Likewise.
701 * testsuite/ld-i386/property-6.r: Likewise.
702 * testsuite/ld-i386/property-7.r: Likewise.
703 * testsuite/ld-i386/property-7a.r: Likewise.
704 * testsuite/ld-i386/property-1.r: Likewise.
705 * testsuite/ld-i386/property-1a.r: Likewise.
706 * testsuite/ld-i386/property-2.r: Likewise.
707 * testsuite/ld-i386/property-2a.r: Likewise.
708 * testsuite/ld-i386/property-3.r: Likewise.
709 * testsuite/ld-i386/property-3a.r: Likewise.
710 * testsuite/ld-i386/property-4.r: Likewise.
711 * testsuite/ld-i386/property-4a.r: Likewise.
712 * testsuite/ld-i386/property-5.r: Likewise.
713 * testsuite/ld-i386/property-5a.r: Likewise.
714 * testsuite/ld-i386/property-6.r: Likewise.
715 * testsuite/ld-i386/property-7.r: Likewise.
716 * testsuite/ld-i386/property-7a.r: Likewise.
717
60391a25
PB
7182019-09-09 Phil Blundell <pb@pbcl.net>
719
720 binutils 2.33 branch created.
721
f5c3a9e3
AM
7222019-09-06 Alan Modra <amodra@gmail.com>
723
724 * emultempl/beos.em (sort_by_file_name): Use appropriate
725 intermediary variables.
726 (sort_by_section_name): Likewise.
727
b16c44de
AM
7282019-09-06 Alan Modra <amodra@gmail.com>
729
730 * emultempl/elf32.em (gld${EMULATION_NAME}_search_needed): Constify
731 variable.
732 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
733 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
734
de07a745
EB
7352019-09-05 Eric Botcazou <ebotcazou@adacore.com>
736
737 PR ld/24574
738 * pe-dll.c (pe_find_data_imports): Replace again the original name of
739 the undefined symbol with the __imp_ prefixed one after it is resolved.
740
77486630
AM
7412019-09-05 Alan Modra <amodra@gmail.com>
742
743 * testsuite/ld-powerpc/pcrelopt.s,
744 * testsuite/ld-powerpc/pcrelopt.d: Test offset and prefix in
745 second instruction.
746
a78fca7b
AM
7472019-08-29 Alan Modra <amodra@gmail.com>
748
749 PR ld/24406
750 * plugin.c (get_symbols): Test link_info.wrap_hash before calling
751 unwrap_hash_lookup.
752
652afeef
TC
7532019-08-22 Tamar Christina <tamar.christina@arm.com>
754
755 PR ld/24601
756 * testsuite/ld-aarch64/aarch64-elf.exp (undef-tls, weak-tls): New.
757 * testsuite/ld-aarch64/undef-tls.d: New test.
758 * testsuite/ld-aarch64/undef-tls.s: New test.
759 * testsuite/ld-aarch64/weak-tls.d: New test.
760 * testsuite/ld-aarch64/weak-tls.s: New test.
761
b4e87f2c
TC
7622019-08-20 Tamar Christina <tamar.christina@arm.com>
763
764 * testsuite/ld-arm/cortex-a8-fix-b-plt.d: Update Testcase.
765 * testsuite/ld-arm/cortex-a8-fix-b-rel-arm.d: Likewise.
766 * testsuite/ld-arm/cortex-a8-fix-bcc-plt.d: Likewise.
767 * testsuite/ld-arm/farcall-cond-thumb-arm.d: Likewise.
768 * testsuite/ld-arm/farcall-mixed-app.d: Likewise.
769 * testsuite/ld-arm/farcall-mixed-app2.d: Likewise.
770 * testsuite/ld-arm/farcall-mixed-lib-v4t.d: Likewise.
771 * testsuite/ld-arm/farcall-thumb-arm-pic-veneer.d: Likewise.
772 * testsuite/ld-arm/farcall-thumb-arm-short.d: Likewise.
773 * testsuite/ld-arm/farcall-thumb-arm.d: Likewise.
774 * testsuite/ld-arm/farcall-thumb-thumb-pic-veneer.d: Likewise.
775 * testsuite/ld-arm/farcall-thumb-thumb.d: Likewise.
776 * testsuite/ld-arm/fix-arm1176-on.d: Likewise.
777 * testsuite/ld-arm/ifunc-10.dd: Likewise.
778 * testsuite/ld-arm/ifunc-2.dd: Likewise.
779 * testsuite/ld-arm/ifunc-4.dd: Likewise.
780 * testsuite/ld-arm/ifunc-6.dd: Likewise.
781 * testsuite/ld-arm/ifunc-8.dd: Likewise.
782 * testsuite/ld-arm/jump-reloc-veneers-long.d: Likewise.
783 * testsuite/ld-arm/mixed-app.d: Likewise.
784 * testsuite/ld-arm/thumb2-b-interwork.d: Likewise.
785 * testsuite/ld-arm/tls-longplt.d: Likewise.
786 * testsuite/ld-arm/tls-thumb1.d: Likewise.
787
81e8046d
L
7882019-08-16 H.J. Lu <hongjiu.lu@intel.com>
789
790 PR ld/24905
791 * testsuite/ld-x86-64/pr24905-x32.d: New file.
792 * testsuite/ld-x86-64/pr24905.d: Likewise.
793 * testsuite/ld-x86-64/pr24905.s: Likewise.
794 * testsuite/ld-x86-64/pr24905.t: Likewise.
795 * testsuite/ld-x86-64/x86-64.exp: Run pr24905 and pr24905-x32.
796
fdfc8cf7
CL
7972019-08-16 Christophe Lyon <christophe.lyon@linaro.org>
798
799 * emulparams/armelf.sh (OTHER_SECTIONS): Add support for noinit
800 section.
801
7df6aecc
AM
8022019-08-16 Alan Modra <amodra@gmail.com>
803
804 * emultempl/ppc32elf.em (ppc_before_allocation): Force running
805 prelim_size_sections before deciding whether branch trampolines
806 might be needed.
807
080a4883
JW
8082019-08-15 Jim Wilson <jimw@sifive.com>
809
810 * testsuite/ld-riscv-elf/c-lui-2.d: New.
811 * testsuite/ld-riscv-elf/c-lui-2.ld: New.
812 * testsuite/ld-riscv-elf/c-lui-2.s: New.
813 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Run the c-lui-2 test.
814
dc02848a
AM
8152019-08-10 Alan Modra <amodra@gmail.com>
816
817 * ldlang.h (enum statement_enum): Sort.
818 (union lang_statement_union): Sort.
819
4cfbdbfd
AM
8202019-08-10 Alan Modra <amodra@gmail.com>
821
822 * ldlang.h (lang_common_statement_type): Delete.
823 (lang_object_symbols_statement_type): Delete.
824 (union lang_statement_union): Remove common_statement and
825 object_symbols_statement.
826
988de25b
AM
8272019-08-10 Alan Modra <amodra@gmail.com>
828
829 * ldexp.c (exp_intop, exp_bigintop, exp_relop, exp_binop, exp_trinop),
830 (exp_unop, exp_nameop, exp_assop, exp_assert): Remove casts of
831 stat_alloc return value.
832 * ldlang.c (new_statement, new_afile, sort_def_symbol),
833 (lang_memory_region_lookup, lang_memory_region_alias),
834 (ldlang_add_undef, ldlang_add_require_defined, insert_pad),
835 (lang_add_gc_name, lang_new_phdr): Likewise.
836 * lexsup.c (set_segment_start): Likewise.
837
36983a93
AM
8382019-08-10 Alan Modra <amodra@gmail.com>
839
840 * ldlang.h (lang_input_statement_type): Make next
841 and next_real_file a lang_input_statement_type pointer.
842 (lang_statement_append): Delete prototype.
843 (LANG_FOR_EACH_INPUT_STATEMENT): Update for lang_input_statement_type
844 change.
845 * ldmain.c (add_archive_element): Likewise.
846 * ldlang.c: Likewise throughout.
847 (lang_statement_append): Make static. Make element and field
848 void pointers. Remove casts in calls.
849 (lang_check): Use a lang_input_statement_type pointer for "file".
850 (find_rescan_insertion): Similarly for "iter" and return value.
851 (lang_process): Similarly for "insert", "iter" and "temp".
852 * emultempl/spuelf.em (embedded_spu_file): Likewise.
853 * emultempl/aix.em (gld${EMULATION_NAME}_before_allocation): Expand
854 lang_statment_append call.
855
f16a9783
MS
8562019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>
857
858 * emulparams/elf32bmip.sh: Add .MIPS.xhash section.
859 * emulparams/elf32bmipn32-defs.sh: Add .MIPS.xhash section.
860 * emulparams/elf64bmip-defs.sh: Add .MIPS.xhash section.
861 * emultempl/mipself.em: Remove mips_after_parse function.
862 * testsuite/ld-elf/hash.d: Update comment.
863 * testsuite/ld-mips-elf/hash1.d: New test.
864 * testsuite/ld-mips-elf/hash1.s: Ditto.
865 * testsuite/ld-mips-elf/hash1a.d: Remove.
866 * testsuite/ld-mips-elf/hash1b.d: Ditto.
867 * testsuite/ld-mips-elf/hash1c.d: Ditto
868 * testsuite/ld-mips-elf/hash2.d: New test.
869 * testsuite/ld-mips-elf/mips-elf.exp: New tests.
870 * testsuite/ld-mips-elf/start.s: New test.
871
dbe15e4e
NC
8722019-08-08 Nick Clifton <nickc@redhat.com>
873
874 PR 24887
875 * testsuite/ld-aarch64/bti-plt-2.d: Adjust for new output format
876 from readelf.
877 * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
878 * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
879 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
880 * testsuite/ld-aarch64/bti-warn.d: Likewise.
881 * testsuite/ld-aarch64/property-bti-pac1.d: Likewise.
882 * testsuite/ld-aarch64/property-bti-pac2.d: Likewise.
883 * testsuite/ld-aarch64/property-bti-pac3.d: Likewise.
884 * testsuite/ld-elf/x86-feature-1a.rd: Likewise.
885 * testsuite/ld-elf/x86-feature-1b.rd: Likewise.
886 * testsuite/ld-elf/x86-feature-1c.rd: Likewise.
887 * testsuite/ld-elf/x86-feature-1d.rd: Likewise.
888 * testsuite/ld-elf/x86-feature-1e.rd: Likewise.
889 * testsuite/ld-i386/ibt-plt-2d.d: Likewise.
890 * testsuite/ld-i386/ibt-plt-3d.d: Likewise.
891 * testsuite/ld-i386/pr23372a.d: Likewise.
892 * testsuite/ld-i386/pr23372c.d: Likewise.
893 * testsuite/ld-i386/pr23486a.d: Likewise.
894 * testsuite/ld-i386/pr23486b.d: Likewise.
895 * testsuite/ld-i386/pr23486c.d: Likewise.
896 * testsuite/ld-i386/pr23486d.d: Likewise.
897 * testsuite/ld-i386/pr24322a.d: Likewise.
898 * testsuite/ld-i386/pr24322b.d: Likewise.
899 * testsuite/ld-i386/property-x86-3.d: Likewise.
900 * testsuite/ld-i386/property-x86-4a.d: Likewise.
901 * testsuite/ld-i386/property-x86-5.d: Likewise.
902 * testsuite/ld-i386/property-x86-cet1.d: Likewise.
903 * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
904 * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
905 * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
906 * testsuite/ld-i386/property-x86-ibt1a.d: Likewise.
907 * testsuite/ld-i386/property-x86-ibt1b.d: Likewise.
908 * testsuite/ld-i386/property-x86-ibt2.d: Likewise.
909 * testsuite/ld-i386/property-x86-ibt3a.d: Likewise.
910 * testsuite/ld-i386/property-x86-ibt3b.d: Likewise.
911 * testsuite/ld-i386/property-x86-ibt4.d: Likewise.
912 * testsuite/ld-i386/property-x86-ibt5.d: Likewise.
913 * testsuite/ld-i386/property-x86-shstk1a.d: Likewise.
914 * testsuite/ld-i386/property-x86-shstk1b.d: Likewise.
915 * testsuite/ld-i386/property-x86-shstk2.d: Likewise.
916 * testsuite/ld-i386/property-x86-shstk3a.d: Likewise.
917 * testsuite/ld-i386/property-x86-shstk3b.d: Likewise.
918 * testsuite/ld-i386/property-x86-shstk4.d: Likewise.
919 * testsuite/ld-i386/property-x86-shstk5.d: Likewise.
920 * testsuite/ld-x86-64/ibt-plt-2d-x32.d: Likewise.
921 * testsuite/ld-x86-64/ibt-plt-2d.d: Likewise.
922 * testsuite/ld-x86-64/ibt-plt-3d-x32.d: Likewise.
923 * testsuite/ld-x86-64/ibt-plt-3d.d: Likewise.
924 * testsuite/ld-x86-64/pr23372a-x32.d: Likewise.
925 * testsuite/ld-x86-64/pr23372a.d: Likewise.
926 * testsuite/ld-x86-64/pr23372c-x32.d: Likewise.
927 * testsuite/ld-x86-64/pr23372c.d: Likewise.
928 * testsuite/ld-x86-64/pr23486a-x32.d: Likewise.
929 * testsuite/ld-x86-64/pr23486a.d: Likewise.
930 * testsuite/ld-x86-64/pr23486b-x32.d: Likewise.
931 * testsuite/ld-x86-64/pr23486b.d: Likewise.
932 * testsuite/ld-x86-64/pr23486c-x32.d: Likewise.
933 * testsuite/ld-x86-64/pr23486c.d: Likewise.
934 * testsuite/ld-x86-64/pr23486d-x32.d: Likewise.
935 * testsuite/ld-x86-64/pr23486d.d: Likewise.
936 * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
937 * testsuite/ld-x86-64/pr24322a.d: Likewise.
938 * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
939 * testsuite/ld-x86-64/pr24322b.d: Likewise.
940 * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
941 * testsuite/ld-x86-64/pr24458a.d: Likewise.
942 * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
943 * testsuite/ld-x86-64/pr24458b.d: Likewise.
944 * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
945 * testsuite/ld-x86-64/pr24458c.d: Likewise.
946 * testsuite/ld-x86-64/property-1.r: Likewise.
947 * testsuite/ld-x86-64/property-1a.r: Likewise.
948 * testsuite/ld-x86-64/property-2.r: Likewise.
949 * testsuite/ld-x86-64/property-2a.r: Likewise.
950 * testsuite/ld-x86-64/property-3.r: Likewise.
951 * testsuite/ld-x86-64/property-3a.r: Likewise.
952 * testsuite/ld-x86-64/property-4.r: Likewise.
953 * testsuite/ld-x86-64/property-4a.r: Likewise.
954 * testsuite/ld-x86-64/property-5.r: Likewise.
955 * testsuite/ld-x86-64/property-5a.r: Likewise.
956 * testsuite/ld-x86-64/property-6.r: Likewise.
957 * testsuite/ld-x86-64/property-7.r: Likewise.
958 * testsuite/ld-x86-64/property-7a.r: Likewise.
959 * testsuite/ld-x86-64/property-x86-3-x32.d: Likewise.
960 * testsuite/ld-x86-64/property-x86-3.d: Likewise.
961 * testsuite/ld-x86-64/property-x86-4a-x32.d: Likewise.
962 * testsuite/ld-x86-64/property-x86-4a.d: Likewise.
963 * testsuite/ld-x86-64/property-x86-5-x32.d: Likewise.
964 * testsuite/ld-x86-64/property-x86-5.d: Likewise.
965 * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
966 * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
967 * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
968 * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
969 * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
970 * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
971 * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
972 * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
973 * testsuite/ld-x86-64/property-x86-ibt1a-x32.d: Likewise.
974 * testsuite/ld-x86-64/property-x86-ibt1a.d: Likewise.
975 * testsuite/ld-x86-64/property-x86-ibt1b-x32.d: Likewise.
976 * testsuite/ld-x86-64/property-x86-ibt1b.d: Likewise.
977 * testsuite/ld-x86-64/property-x86-ibt2-x32.d: Likewise.
978 * testsuite/ld-x86-64/property-x86-ibt2.d: Likewise.
979 * testsuite/ld-x86-64/property-x86-ibt3a-x32.d: Likewise.
980 * testsuite/ld-x86-64/property-x86-ibt3a.d: Likewise.
981 * testsuite/ld-x86-64/property-x86-ibt3b-x32.d: Likewise.
982 * testsuite/ld-x86-64/property-x86-ibt3b.d: Likewise.
983 * testsuite/ld-x86-64/property-x86-ibt4-x32.d: Likewise.
984 * testsuite/ld-x86-64/property-x86-ibt4.d: Likewise.
985 * testsuite/ld-x86-64/property-x86-ibt5-x32.d: Likewise.
986 * testsuite/ld-x86-64/property-x86-ibt5.d: Likewise.
987 * testsuite/ld-x86-64/property-x86-shstk1a-x32.d: Likewise.
988 * testsuite/ld-x86-64/property-x86-shstk1a.d: Likewise.
989 * testsuite/ld-x86-64/property-x86-shstk1b-x32.d: Likewise.
990 * testsuite/ld-x86-64/property-x86-shstk1b.d: Likewise.
991 * testsuite/ld-x86-64/property-x86-shstk2-x32.d: Likewise.
992 * testsuite/ld-x86-64/property-x86-shstk2.d: Likewise.
993 * testsuite/ld-x86-64/property-x86-shstk3a-x32.d: Likewise.
994 * testsuite/ld-x86-64/property-x86-shstk3a.d: Likewise.
995 * testsuite/ld-x86-64/property-x86-shstk3b-x32.d: Likewise.
996 * testsuite/ld-x86-64/property-x86-shstk3b.d: Likewise.
997 * testsuite/ld-x86-64/property-x86-shstk4-x32.d: Likewise.
998 * testsuite/ld-x86-64/property-x86-shstk4.d: Likewise.
999 * testsuite/ld-x86-64/property-x86-shstk5-x32.d: Likewise.
1000 * testsuite/ld-x86-64/property-x86-shstk5.d: Likewise.
1001
fca8e23c
JM
10022019-08-07 Jose E. Marchesi <jose.marchesi@oracle.com>
1003
1004 * scripttempl/elf64bpf.sc: Adapted from elf.sc.
1005 * emulparams/elf64bpf.sh (SCRIPT_NAME): Use elf64bpf.
1006 (EMBEDDED): Define.
1007 * testsuite/ld-bpf/call-1.d: Do not expect a warning regarding an
1008 undefined entry symbol.
1009 * testsuite/ld-bpf/jump-1.d: Likewise.
1010 * testsuite/ld-undefined/undefined.exp: Do not pass '-e entry' to
1011 ld in BPF targets, and do not expect line number information.
1012 * testsuite/ld-srec/srec.exp (run_srec_test): xfail s-record tests
1013 in BPF targets.
1014
128bf1fe
AM
10152019-08-06 Alan Modra <amodra@gmail.com>
1016
1017 PR 24873
1018 * ldlang.c (find_replacements_insert_point): Return "before" flag.
1019 (find_next_input_statement): New function.
1020 (lang_process): When placing recompiled LTO objects before a
1021 claimed archive, place them immediately before in the statement
1022 list.
1023
b02c4f16
AM
10242019-08-06 Alan Modra <amodra@gmail.com>
1025
1026 PR 24873
1027 * ldlang.c (plugin_undefs): New static var.
1028 (open_input_bfds <lang_group_statement_enum>): Loop on
1029 plugin_undefs and hitting plugin_insert point.
1030 (lang_process <lto_plugin_active>): Set plugin_undefs.
1031
1b611b2d
AM
10322019-08-02 Alan Modra <amodra@gmail.com>
1033
1034 * testsuite/ld-powerpc/tlsie.s: Correct medium model ELF sequence.
1035
776ab89f
AM
10362019-08-01 Alan Modra <amodra@gmail.com>
1037
1038 PR 24806
1039 * ldlang.c (process_insert_statements): Add start of list
1040 parameter. Use rather than lang_os_list.head. Process insert
1041 statements inside group statements with a recursive call.
1042 (lang_process): Adjust process_insert_statements call.
1043 * lexsup.c (parse_args): Warn when adding missing --end-group.
1044
5c1e6d53
AM
10452019-08-01 Alan Modra <amodra@gmail.com>
1046
1047 * ldlang.h (lang_os_list): Rename from lang_output_section_statement.
1048 * ldlang.c: Likewise throughout file.
1049 * emultempl/alphaelf.em: Likewise.
1050 * emultempl/elf32.em: Likewise.
1051 * emultempl/mmo.em: Likewise.
1052 * emultempl/pe.em: Likewise.
1053 * emultempl/pep.em: Likewise.
1054 * emultempl/ppc32elf.em: Likewise.
1055 * emultempl/spuelf.em: Likewise.
1056
6e99a238
AM
10572019-07-26 Alan Modra <amodra@gmail.com>
1058
1059 * testsuite/ld-plugin/lto-3r.d: Accept D for powerpc64 descriptors.
1060 * testsuite/ld-plugin/lto-5r.d: Likewise.
1061
8f79c107
L
10622019-07-24 H.J. Lu <hongjiu.lu@intel.com>
1063
1064 * testsuite/ld-plugin/lto-3r.d: Restored. Check foo instead
1065 of __gnu_lto_v.*.
1066 * testsuite/ld-plugin/lto-5r.d: Likewise.
1067 * testsuite/ld-plugin/lto.exp: Run lto-3r and lto-5r tests.
1068
ef551643
CZ
10692019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
1070
1071 * ld-arc/relax-local-pic.d: New test.
1072 * ld-arc/relax-local-pic.s: New file.
1073
19889a58
L
10742019-07-22 Martin Liska <mliska@suse.cz>
1075
1076 * testsuite/ld-plugin/lto-3r.d: Remove.
1077 * testsuite/ld-plugin/lto-5r.d: Remove.
1078 * testsuite/ld-plugin/lto.exp: Do not run lto-3r and lto-5r
1079 tests.
1080
df3a023b
AM
10812019-07-23 Alan Modra <amodra@gmail.com>
1082
1083 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Condition
1084 SHF_GNU_MBIND on osabi. Set output elf_gnu_osabi_mbind.
1085
ec49711a
AM
10862019-07-23 Alan Modra <amodra@gmail.com>
1087
1088 * testsuite/ld-elf/size-1.d,
1089 * testsuite/ld-elf/size-1.s,
1090 * testsuite/ld-elf/size-1.t: New test.
1091 * testsuite/ld-elf/size-2.d,
1092 * testsuite/ld-elf/size-2.s,
1093 * testsuite/ld-elf/size-2.t: New test.
1094 * testsuite/ld-scripts/size-1.d,
1095 * testsuite/ld-scripts/size-1.s,
1096 * testsuite/ld-scripts/size-1.t,
1097 * testsuite/ld-scripts/size-2.s,
1098 * testsuite/ld-scripts/size-2.d,
1099 * testsuite/ld-scripts/size-2.t,
1100 * testsuite/ld-scripts/size.exp: Delete.
1101
0c628bba
SP
11022019-07-22 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1103
1104 * ld/testsuite/ld-arm/cmse_main_sec_debug.d: Modify regexps to
1105 allow for output from a arm-none-linux-gnueabihf target.
1106
9ab3a744
AM
11072019-07-20 Alan Modra <amodra@gmail.com>
1108
1109 PR 24827
1110 * ldlex.l (comment): Check for 0 return from YY_INPUT, not EOF.
1111
c213164a
AM
11122019-07-19 Alan Modra <amodra@gmail.com>
1113
1114 * testsuite/ld-powerpc/tlsgd.d,
1115 * testsuite/ld-powerpc/tlsgd.s,
1116 * testsuite/ld-powerpc/tlsie.d,
1117 * testsuite/ld-powerpc/tlsie.s,
1118 * testsuite/ld-powerpc/tlsld.d,
1119 * testsuite/ld-powerpc/tlsld.s: New tests.
1120 * testsuite/ld-powerpc/powerpc.exp: Run them.
1121
7a708984
AM
11222019-07-19 Alan Modra <amodra@gmail.com>
1123
1124 * testsuite/ld-powerpc/tlsldopt.d: Rename from tlsld.d.
1125 * testsuite/ld-powerpc/tlsldopt.s: Rename from tlsld.s.
1126 * testsuite/ld-powerpc/tlsldopt32.d: Rename from tlsld32.d.
1127 * testsuite/ld-powerpc/tlsldopt32.s: Rename from tlsld32.s.
1128 * testsuite/ld-powerpc/powerpc.exp: Update.
1129
88468fe0
AM
11302019-07-19 Alan Modra <amodra@gmail.com>
1131
1132 PR 24819
1133 * testsuite/ld-elf/pr24819.d: xfail for genelf targets.
1134
54d7dae5
L
11352019-07-18 H.J. Lu <hongjiu.lu@intel.com>
1136
1137 PR ld/24819
1138 * emultempl/elf32.em (elf_orphan_compatible): Return FALSE for
1139 member of output section group when doing a relocatable link.
1140 * testsuite/ld-elf/pr24819.d: New file.
1141 * testsuite/ld-elf/pr24819.s: Likewise.
1142
f26a3287
AM
11432019-07-13 Alan Modra <amodra@gmail.com>
1144
1145 * testsuite/ld-powerpc/tlsso.r: Update.
1146 * testsuite/ld-powerpc/tlsso32.g: Update.
1147 * testsuite/ld-powerpc/tlsso32.r: Update.
1148 * testsuite/ld-powerpc/tlstocso.r: Update.
1149 * testsuite/ld-cris/tls-dso-dtpoffd2.d: Update.
1150 * testsuite/ld-cris/tls-dso-dtpoffd4.d: Update.
1151 * testsuite/ld-cris/tls-dso-tpoffgotcomm1.d: Update.
1152 * testsuite/ld-cris/tls-gd-1.d: Update.
1153 * testsuite/ld-cris/tls-gd-1h.d: Update.
1154 * testsuite/ld-cris/tls-gd-2.d: Update.
1155 * testsuite/ld-cris/tls-gd-2h.d: Update.
1156 * testsuite/ld-cris/tls-ie-10.d: Update.
1157 * testsuite/ld-cris/tls-ie-11.d: Update.
1158 * testsuite/ld-cris/tls-ie-8.d: Update.
1159 * testsuite/ld-cris/tls-ie-9.d: Update.
1160 * testsuite/ld-cris/tls-js1.d: Update.
1161 * testsuite/ld-cris/tls-ld-4.d: Update.
1162 * testsuite/ld-cris/tls-ld-5.d: Update.
1163 * testsuite/ld-cris/tls-ld-6.d: Update.
1164 * testsuite/ld-cris/tls-ld-7.d: Update.
1165 * testsuite/ld-cris/tls-ldgd-14.d: Update.
1166 * testsuite/ld-cris/tls-ldgd-15.d: Update.
1167 * testsuite/ld-cris/tls-ldgdx-14.d: Update.
1168 * testsuite/ld-cris/tls-ldgdx-15.d: Update.
1169 * testsuite/ld-cris/tls-local-54.d: Update.
1170 * testsuite/ld-cris/tls-local-60.d: Update.
1171 * testsuite/ld-cris/tls-local-61.d: Update.
1172 * testsuite/ld-cris/tls-local-63.d: Update.
1173 * testsuite/ld-cris/tls-local-64.d: Update.
1174 * testsuite/ld-cris/tls-ok-30.d: Update.
1175 * testsuite/ld-cris/tls-ok-32.d: Update.
1176 * testsuite/ld-cris/tls-ok-34.d: Update.
1177 * testsuite/ld-mips-elf/tls-multi-got-1.got: Update.
1178 * testsuite/ld-mips-elf/tls-multi-got-1.r: Update.
1179 * testsuite/ld-mips-elf/tlsdyn-pie-o32.d: Update.
1180 * testsuite/ld-mips-elf/tlsdyn-pie-o32.got: Update.
1181 * testsuite/ld-mips-elf/tlslib-o32-hidden.got: Update.
1182 * testsuite/ld-mips-elf/tlslib-o32-ver.got: Update.
1183 * testsuite/ld-mips-elf/tlslib-o32.got: Update.
1184 * testsuite/ld-s390/tlspic.rd: Update.
1185 * testsuite/ld-s390/tlspic_64.rd: Update.
1186 * testsuite/ld-sparc/tlssunnopic32.rd: Update.
1187 * testsuite/ld-sparc/tlssunnopic64.rd: Update.
1188 * testsuite/ld-sparc/tlssunpic32.rd: Update.
1189 * testsuite/ld-sparc/tlssunpic64.rd: Update.
1190
7b243801
AM
11912019-07-13 Alan Modra <amodra@gmail.com>
1192
1193 PR 24786
1194 * ldlang.h (enum section_type): Add first_overlay_section.
1195 * ldlang.c (lang_add_section): Adjust switch statement.
1196 (map_input_to_output_sections): Likewise.
1197 (lang_size_sections_1): Always set last_os for first overlay section.
1198 (lang_leave_overlay): Set sectype to first_overlay_section.
1199
3836e1d1
AM
12002019-07-08 Alan Modra <amodra@gmail.com>
1201
1202 * testsuite/ld-powerpc/callstub-1.d: Pass -melf64ppc to ld.
1203 * testsuite/ld-powerpc/callstub-2.d: Likewise.
1204
f2d4ba38
JB
12052019-07-04 Jan Beulich <jbeulich@suse.com>
1206
1207 * testsuite/ld-elf/group9.s: Correct argument of .type.
1208
125f83f6
NC
12092019-07-02 Nick Clifton <nickc@redhat.com>
1210
1211 PR 24753
1212 * emultempl/aarch64elf.em (_aarch64_add_stub_section): Include the
1213 LINKER_CREATED section flag when creating the stub section.
1214
bb32413f
SP
12152019-07-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
1216
1217 * testsuite/ld-arm/arm-elf.exp: Add tests.
1218 * testsuite/ld-arm/cmse_main.s: New test.
1219 * testsuite/ld-arm/cmse_main_sec_debug.d: Likewise.
1220 * testsuite/ld-arm/cmse_sec_debug.s: Likewise.
1221
539300fb
NC
12222019-07-01 Nick Clifton <nickc@redhat.com>
1223
1224 PR 23839
1225 * testsuite/ld-arm/unwind-4.d: Adjust for corrected calculation of
1226 exidx relocs.
1227
60d53d7f
AM
12282019-06-28 Alan Modra <amodra@gmail.com>
1229
1230 * testsuite/ld-powerpc/callstub-1.d,
1231 * testsuite/ld-powerpc/callstub-1.s: New test.
1232 * testsuite/ld-powerpc/callstub-2.d,
1233 * testsuite/ld-powerpc/callstub-2.s: New test.
1234 * testsuite/ld-powerpc/powerpc.exp: Run them.
1235
8e5cb9a5
JB
12362019-06-25 Jan Beulich <jbeulich@suse.com>
1237
1238 * plugin.c (get_lto_kind, get_lto_resolution,
1239 get_lto_visibility): Rename "index" to "idx".
1240
f93ab3a0
L
12412019-06-24 H.J. Lu <hongjiu.lu@intel.com>
1242
1243 PR ld/24721
1244 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24721 tests.
1245 * testsuite/ld-x86-64/pr24721-x32.d: New file.
1246 * testsuite/ld-x86-64/pr24721.d: Likewise.
1247 * testsuite/ld-x86-64/pr24721.map: Likewise.
1248 * testsuite/ld-x86-64/pr24721a.s: Likewise.
1249 * testsuite/ld-x86-64/pr24721b.s: Likewise.
1250
bb22a418
AM
12512019-06-23 Alan Modra <amodra@gmail.com>
1252
1253 PR 24704
1254 * testsuite/ld-powerpc/elfv2exe.d: Update.
1255 * testsuite/ld-powerpc/elfv2so.d: Update.
1256
e30d1fa1
SN
12572019-06-14 Szabolcs Nagy <szabolcs.nagy@arm.com>
1258
1259 * testsuite/ld-aarch64/aarch64-elf.exp: Add emit-relocs-22 and -23.
1260 * testsuite/ld-aarch64/emit-relocs-22.d: New test.
1261 * testsuite/ld-aarch64/emit-relocs-22.s: New test.
1262 * testsuite/ld-aarch64/emit-relocs-23.d: New test.
1263 * testsuite/ld-aarch64/emit-relocs-23.s: New test.
1264
3a3a077c
AM
12652019-06-14 Alan Modra <amodra@gmail.com>
1266
1267 * Makefile.in: Regenerate.
1268 * configure: Regenerate.
1269
e3fa7860
AM
12702019-06-14 Alan Modra <amodra@gmail.com>
1271
1272 PR 24662
1273 * testsuite/ld-alpha/tlsbin.rd: Update.
1274 * testsuite/ld-alpha/tlsbinr.rd: Update.
1275 * testsuite/ld-alpha/tlspic.rd: Update.
1276
c1b00498
MR
12772019-06-07 Maciej W. Rozycki <macro@wdc.com>
1278
1279 * ld.texi (Options): Also document `-rpath' option restrictions
1280 in the description of the option itself.
1281
237df8fe
SD
12822019-06-06 Sudakshina Das <sudi.das@arm.com>
1283
1284 * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
1285 * testsuite/ld-aarch64/property-bti-pac4-a.d: New test.
1286 * testsuite/ld-aarch64/property-bti-pac4-b.d: New test.
1287 * testsuite/ld-aarch64/property-bti-pac4.s: New test.
1288
8bf6d176
SD
12892019-06-06 Sudakshina Das <sudi.das@arm.com>
1290
1291 * NEWS: Update options names.
1292 * emultempl/aarch64elf.em (OPTION_FORCE_BTI, OPTION_PAC_PLT): Remove.
1293 (PARSE_AND_LIST_LONGOPTS): Remove force-bti and pac-plt.
1294 (PARSE_AND_LIST_OPTIONS): Update to -z.
1295 (PARSE_AND_LIST_ARGS_CASE_Z_AARCH64): New.
1296 (PARSE_AND_LIST_ARGS_CASE_Z): Add PARSE_AND_LIST_ARGS_CASE_Z_AARCH64.
1297 (PARSE_AND_LIST_ARGS_CASES): Move cases for these options.
1298 * testsuite/ld-aarch64/bti-pac-plt-1.d: Update option.
1299 * testsuite/ld-aarch64/bti-pac-plt-2.d: Likewise.
1300 * testsuite/ld-aarch64/bti-plt-1.d: Likewise.
1301 * testsuite/ld-aarch64/bti-plt-2.d: Likewise.
1302 * testsuite/ld-aarch64/bti-plt-3.d: Likewise.
1303 * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
1304 * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
1305 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
1306 * testsuite/ld-aarch64/bti-warn.d: Likewise.
1307 * testsuite/ld-aarch64/pac-plt-1.d: Likewise.
1308 * testsuite/ld-aarch64/pac-plt-2.d: Likewise.
1309
ae9ac79e
NC
13102019-05-30 Nick Clifton <nickc@redhat.com>
1311
1312 PR 24627
1313 * testsuite/ld-elf/ver_def.vd: Update expected output.
1314
6ff185b8
AM
13152019-05-30 Alan Modra <amodra@gmail.com>
1316
1317 PR 24596
1318 * emulparams/m9s12zelf.sh (TEMPLATE_NAME): Set to generic.
1319 (EXTRA_EM_FILE): Define to genelf.
1320 * testsuite/lib/ld-lib.exp (uses_genelf): Add s12z.
1321
1336939d
AM
13222019-05-30 Alan Modra <amodra@gmail.com>
1323
1324 * testsuite/lib/ld-lib.exp (run_ld_link_tests): Support procedure
1325 calls in optional "xfail" args.
1326 (run_ld_link_exec_tests): Likewise.
1327 (is_generic): New.
1328 (uses_genelf): Rename from is_generic_elf. Delete bogus semicolons.
1329 * testsuite/ld-scripts/align.exp: Rename is_generic_elf call.
1330 * testsuite/ld-elf/elf.exp: Use is_generic and uses_genelf. Delete
1331 xfail_implib var.
1332 * testsuite/ld-elf/sec64k.exp: Use is_generic.
1333 * testsuite/ld-elf/shared.exp: Likewise.
1334 * testsuite/ld-discard/extern.d: Use is_generic in xfail.
1335 * testsuite/ld-discard/start.d: Likewise.
1336 * testsuite/ld-discard/static.d: Likewise.
1337 * testsuite/ld-elf/attributes.d: Likewise.
1338 * testsuite/ld-elf/group1.d: Likewise.
1339 * testsuite/ld-elf/group3b.d: Likewise.
1340 * testsuite/ld-elf/group8a.d: Likewise.
1341 * testsuite/ld-elf/group8b.d: Likewise.
1342 * testsuite/ld-elf/group9a.d: Likewise.
1343 * testsuite/ld-elf/group9b.d: Likewise.
1344 * testsuite/ld-elf/linkonce2.d: Likewise.
1345 * testsuite/ld-elf/merge2.d: Likewise.
1346 * testsuite/ld-elf/merge3.d: Likewise.
1347 * testsuite/ld-elf/pr12851.d: Likewise.
1348 * testsuite/ld-elf/pr12975.d: Likewise.
1349 * testsuite/ld-elf/pr13177.d: Likewise.
1350 * testsuite/ld-elf/pr13195.d: Likewise.
1351 * testsuite/ld-elf/pr17550c.d: Likewise.
1352 * testsuite/ld-elf/pr17550d.d: Likewise.
1353 * testsuite/ld-elf/pr17615.d: Likewise.
1354 * testsuite/ld-elf/pr21562a.d: Likewise.
1355 * testsuite/ld-elf/pr21562b.d: Likewise.
1356 * testsuite/ld-elf/pr21562c.d: Likewise.
1357 * testsuite/ld-elf/pr21562d.d: Likewise.
1358 * testsuite/ld-elf/pr21562i.d: Likewise.
1359 * testsuite/ld-elf/pr21562j.d: Likewise.
1360 * testsuite/ld-elf/pr21562k.d: Likewise.
1361 * testsuite/ld-elf/pr21562l.d: Likewise.
1362 * testsuite/ld-elf/pr21562m.d: Likewise.
1363 * testsuite/ld-elf/pr21562n.d: Likewise.
1364 * testsuite/ld-elf/pr22677.d: Likewise.
1365 * testsuite/ld-elf/pr22836-1a.d: Likewise.
1366 * testsuite/ld-elf/pr22836-1b.d: Likewise.
1367 * testsuite/ld-elf/warn3.d: Likewise.
1368 * testsuite/ld-elf/warn1.d: Likewise and xfail sparc solaris
1369 targets rather than notarget.
1370 * testsuite/ld-elf/compressed1d.d: Use uses_genelf in xfail.
1371 * testsuite/ld-elf/orphan-10.d: Likewise.
1372 * testsuite/ld-elf/orphan-9.d: Likewise.
1373 * testsuite/ld-elf/orphan-region.d: Likewise.
1374 * testsuite/ld-elf/orphan.d: Likewise.
1375 * testsuite/ld-elf/orphan3.d: Likewise.
1376 * testsuite/ld-elf/pr20528a.d: Likewise.
1377 * testsuite/ld-elf/pr20528b.d: Likewise.
1378 * testsuite/ld-elf/pr23658-1a.d: Likewise.
1379 * testsuite/ld-elf/pr23658-1b.d: Likewise.
1380 * testsuite/ld-elf/pr349.d: Likewise.
1381 * testsuite/ld-elf/warn2.d: Likewise and xfail sparc solaris
1382 targets rather than notarget.
1383 * testsuite/ld-elf/merge.d: Correct ms1-*-* to mt-*-*.
1384
1e129bbe
FS
13852019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com>
1386
1387 * testsuite/ld-mips-elf/undefweak-overflow.s: Remove test case
1388 for pcrel_hi/pcrel_lo.
1389 * testsuite/ld-mips-elf/undefweak-overflow.d: Update to match.
1390 * testsuite/ld-mips-elf/reloc-pcrel-r6.s: New test source.
1391 * testsuite/ld-mips-elf/reloc-pcrel-r6.d: New test linker script.
1392 * testsuite/ld-mips-elf/reloc-pcrel-r6.ld: New test.
1393 * testsuite/ld-mips-elf/mips-elf.exp: Run the new test.
1394
eabf307f
AM
13952019-05-28 Alan Modra <amodra@gmail.com>
1396
1397 PR 24596
1398 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Check that
1399 the output is coff before accessing coff tdata.
1400 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
1401
65f381e7
SN
14022019-05-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
1403
1404 * testsuite/ld-aarch64/variant_pcs-now.d: Use --hash-style=sysv.
1405 * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
1406
3d7d6a6f
AM
14072019-05-27 Alan Modra <amodra@gmail.com>
1408
1409 PR 24596
1410 * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): Set
1411 BFS_KEEP on group signature symbol.
1412
823710d5
SN
14132019-04-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
1414
1415 * testsuite/ld-aarch64/aarch64-elf.exp: Add new tests.
1416 * testsuite/ld-aarch64/variant_pcs-1.s: New asm for tests.
1417 * testsuite/ld-aarch64/variant_pcs-2.s: New asm for tests.
1418 * testsuite/ld-aarch64/variant_pcs-now.d: New test.
1419 * testsuite/ld-aarch64/variant_pcs-r.d: New test.
1420 * testsuite/ld-aarch64/variant_pcs-shared.d: New test.
1421 * testsuite/ld-aarch64/variant_pcs.ld: New linker script for tests.
1422
405b5bd8
AM
14232019-05-24 Alan Modra <amodra@gmail.com>
1424
1425 * po/BLD-POTFILES.in: Regenerate.
1426
04bdff6a
AM
14272019-05-24 Alan Modra <amodra@gmail.com>
1428
1429 * testsuite/ld-powerpc/notoc2.d,
1430 * testsuite/ld-powerpc/notoc2.s: New test.
1431 * testsuite/ld-powerpc/powerpc.exp: Run it.
1432
4a421c53
AM
14332019-05-24 Alan Modra <amodra@gmail.com>
1434
1435 * testsuite/ld-powerpc/pcrelopt.s,
1436 * testsuite/ld-powerpc/pcrelopt.d,
1437 * testsuite/ld-powerpc/pcrelopt.sec: New test.
1438 * testsuite/ld-powerpc/powerpc.exp: Run it.
1439
8376927b
JM
14402019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com>
1441
1442 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64bpf.c.
1443 * Makefile.in (prefix): Regenerate.
1444 * configure.tgt (targ_extra_ofiles): Add case for bpf-*-* targets.
1445 * emulparams/elf64bpf.sh: New file.
1446 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
1447 bpf-*-* to the list of targets not supporting gc-sections.
1448 * testsuite/ld-bpf/bar.s: New file.
1449 * testsuite/ld-bpf/jump-1.d: Likewise.
1450 * testsuite/ld-bpf/foo.s: Likewise.
1451 * testsuite/ld-bpf/call-1.d: Likewise.
1452 * testsuite/ld-bpf/bpf.exp: Likewise.
1453 * testsuite/ld-bpf/baz.s: Likewise.
1454
82d7a6f4
AM
14552019-05-23 Alan Modra <amodra@gmail.com>
1456
1457 PR 24576
1458 * ldfile.c (enum script_open_style): New.
1459 (struct script_name_list): New.
1460 (ldfile_open_command_file_1): Take a script_open_style param
1461 rather than booleans. Adjust callers. Only fail when -T or
1462 default -T script is invoked twice.
1463 (ldfile_try_open_bfd): Revert last change.
1464
6ec6968b
NC
14652019-05-22 Julius Werner <jwerner@chromium.org>
1466 Nick Clifton <nickc@redhat.com>
1467
1468 PR 24576
1469 * ld/ldfile.c: (ldfile_open_command_file_1): Add new parameter -
1470 is_script. If true check that the file has not already been
1471 parsed as a linker script.
1472 (ldfile_open_script_file): New function.
1473 (ldfile_try_open_bfd): Use the new function in place of
1474 ldfile_open_command_line.
1475 * ldmain.c (main): Likewise.
1476 * lexsup.c (parse_args): Use the new function for opening linker
1477 scripts with the -T option.
1478 * ldfile.h (ldfile_open_script_file): Add prototype.
1479
b474a202
FS
14802019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
1481
1482 * testsuite/ld-mips-elf/pic-reloc-5.s: Add tests for
1483 %tprel_hi and %tprel_lo relocations.
1484 * testsuite/ld-mips-elf/pic-reloc-6.s: Likewise.
1485 * testsuite/ld-mips-elf/pic-reloc-5.d: Update accordingly.
1486 * testsuite/ld-mips-elf/pic-reloc-6.d: Likewise.
1487 * testsuite/ld-mips-elf/pic-reloc-tls.ld: New test linker
1488 script file.
1489
304f09d0
FS
14902019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com>
1491
1492 * testsuite/ld-mips-elf/pic-reloc-5.d: New test.
1493 * testsuite/ld-mips-elf/pic-reloc-6.d: New test.
1494 * testsuite/ld-mips-elf/pic-reloc-7.d: New test.
1495 * testsuite/ld-mips-elf/pic-reloc-5.s: New test source.
1496 * testsuite/ld-mips-elf/pic-reloc-6.s: New test source.
1497 * testsuite/ld-mips-elf/pic-reloc-7.s: New test source.
1498 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1499
3734320d
MF
15002019-05-21 Matthew Fortune <matthew.fortune@mips.com>
1501 Faraz Shahbazker <fshahbazker@wavecomp.com>
1502
1503 * emultempl/mipself.em (compact_branches): New static variable.
1504 (mips_create_output_section_statements): Call
1505 _bfd_mips_elf_compact_branches.
1506 (PARSE_AND_LIST_PROLOGUE): Add OPTION_COMPACT_BRANCHES and
1507 OPTION_NO_COMPACT_BRANCHES.
1508 (PARSE_AND_LIST_LONGOPTS): Add compact-branches,
1509 no-compact-branches.
1510 (PARSE_AND_LIST_OPTIONS): Add --compact-branches,
1511 --no-compact-branches.
1512 (PARSE_AND_LIST_ARGS_CASES): Handle the above.
1513 * ld.texinfo: Document --compact-branches, --no-compact-branches.
1514 * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.dd: New test.
1515 * testsuite/ld-mips-elf/pic-and-nonpic-1-r6.nd: New test.
1516 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.dd: New test.
1517 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.gd: New test.
1518 * testsuite/ld-mips-elf/pic-and-nonpic-1a-r6.s: New test source.
1519 * testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.s: New test source.
1520 * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
1521
e6f65e75
AV
15222019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
1523
1524 * testsuite/ld-arm/arm-elf.exp: Add tests
1525 * testsuite/ld-arm/bfs-0.s: New test.
1526 * testsuite/ld-arm/bfs-1.s: New test.
1527 * testsuite/ld-arm/branch-futures.d: New test.
1528
739b5c9c
TC
15292019-05-21 Tamar Christina <tamar.christina@arm.com>
1530
1531 PR ld/24373
1532 * emultempl/aarch64elf.em (PARSE_AND_LIST_LONGOPTS): Add optional args
1533 to flags.
1534 * NEWS: Add changes to flag.
1535 (PARSE_AND_LIST_OPTIONS): Update help descriptions.
1536 (PARSE_AND_LIST_ARGS_CASES): Add new options to parser.
1537 * testsuite/ld-aarch64/aarch64-elf.exp: Add new run_dump_tests.
1538 * testsuite/ld-aarch64/erratum843419-adr.d: New test.
1539 * testsuite/ld-aarch64/erratum843419-adrp.d: New test.
1540 * testsuite/ld-aarch64/erratum843419-far-adr.d: New test.
1541 * testsuite/ld-aarch64/erratum843419-far-full.d: New test.
1542 * testsuite/ld-aarch64/erratum843419-far.s: New test.
1543 * testsuite/ld-aarch64/erratum843419-full.d: New test.
1544 * testsuite/ld-aarch64/erratum843419-near.s: New test.
1545 * testsuite/ld-aarch64/erratum843419-no-args.d: New test.
1546
7622049e
SKS
15472019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
1548
1549 PR ld/24571
1550 * ld/testsuite/ld-avr/relax-insn-at-range-boundary.d: New test.
1551 * ld/testsuite/ld-avr/relax-insn-at-range-boundary.s: New test.
1552
338ba755
SKS
15532019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com>
1554
1555 PR ld/24564
1556 * testsuite/ld-avr/wraparound-range-boundary.d: New test.
1557 * testsuite/ld-avr/wraparound-range-boundary.s: New test.
1558
d8734380
FS
15592019-05-20 Faraz Shahbazker <fshahbazker@wavecomp.com>
1560
1561 PR 14798
1562 * testsuite/ld-mips-elf/reloc-6a.s: Specify .text section for
1563 global code symbols.
1564 * testsuite/ld-mips-elf/reloc-6b.s: Likewise.
1565
af4fa23f
AM
15662019-05-17 Alan Modra <amodra@gmail.com>
1567
1568 PR 24567
1569 * plugin.c (plugin_notice): Do not let a common symbol override
1570 a non-common definition in IR.
1571
dd318999
DD
15722019-05-09 Dimitar Dimitrov <dimitar@dinux.eu>
1573
1574 * scripttempl/pru.sc (__init_array_begin, __init_array_begin):
1575 Rename.
1576
46752c37
PS
15772019-05-08 Pekka Seppänen <pexu@sourceware.mail.kapsi.fi>
1578
1579 PR 24536
1580 * ldbuildid.c (generate_build_id): Cast return value from
1581 GetProcAddress in order to avoid a compile time warning.
1582
e1cbf07a
AM
15832019-05-06 Alan Modra <amodra@gmail.com>
1584
1585 * testsuite/ld-undefined/weak-undef.exp: Don't xfail pj.
1586
27cdfa03
AM
15872019-05-04 Alan Modra <amodra@gmail.com>
1588
1589 * testsuite/ld-scripts/fill.d: Don't xfail m32c
1590 * testsuite/ld-scripts/fill16.d: Likewise.
1591
a288c270
AM
15922019-05-04 Alan Modra <amodra@gmail.com>
1593
1594 PR 24511
1595 * testsuite/ld-elf/pr14156a.d: Allow for .init/.fini being a
1596 data section on hppa64.
1597 * testsuite/ld-elf/pr14156b.d: Likewise.
1598 * testsuite/ld-scripts/pr18963.t: Map standard sections to set
1599 output section flags.
1600 * testsuite/ld-scripts/sane1.t: Likewise.
1601 * testsuite/ld-elf/init-fini-arrays.s: Reference __init_array_start
1602 and __fini_array_start. Define __start et al.
1603 * testsuite/ld-elf/pr24511.d: New test.
1604
066f4018
AM
16052019-04-30 Alan Modra <amodra@gmail.com>
1606
1607 * testsuite/ld-powerpc/elfv2exe.d: Update.
1608 * testsuite/ld-powerpc/elfv2so.d: Update.
1609 * testsuite/ld-powerpc/tocopt.d: Update.
1610 * testsuite/ld-powerpc/tocopt.s: Update.
1611 * testsuite/ld-powerpc/tocopt5.d: Update.
1612 * testsuite/ld-powerpc/tocopt5.s: Update.
1613 * testsuite/ld-powerpc/tocopt7.d: Update.
1614 * testsuite/ld-powerpc/tocopt7.s: Update.
1615 * testsuite/ld-powerpc/tocopt8.d: Update.
1616 * testsuite/ld-powerpc/tocopt8.s: Update.
1617
06ddcada
AM
16182019-04-30 Alan Modra <amodra@gmail.com>
1619
1620 * ld.texi (How GNU properties are merged): Avoid pod2man error.
1621 Correct example.
1622
c54f1524
L
16232019-04-26 H.J. Lu <hongjiu.lu@intel.com>
1624
1625 PR ld/24486
1626 * testsuite/ld-plugin/lto.exp: Run PR ld/24486 tests.
1627 * testsuite/ld-plugin/pr24486a.c: New file.
1628 * testsuite/ld-plugin/pr24486b.c: Likewise.
1629 * testsuite/ld-plugin/pr24486c.c: Likewise.
1630
8e1920d6
NC
16312019-04-26 Nick Clifton <nickc@redhat.com>
1632
1633 * po/ru.po: Updated Russian translation.
1634
a094d01f
CY
16352019-04-26 Christopher Yeleighton <giecrilj@stegny.2a.pl>
1636
1637 * ld.texi: Properly hyphenate the word "specific".
1638
6fe014bc
L
16392019-04-25 H.J. Lu <hongjiu.lu@intel.com>
1640
1641 PR ld/24406
1642 * ld.texi: Remove LTO warning from --wrap.
1643 * plugin.c (get_symbols): Update resolution for wrapper and
1644 wrapped symbols.
1645 * testsuite/ld-plugin/lto.exp: Run ld/24406 tests.
1646 * testsuite/ld-plugin/pr24406-1.c: New file.
1647 * testsuite/ld-plugin/pr24406-2a.c: Likewise.
1648 * testsuite/ld-plugin/pr24406-2b.c: Likewise.
1649
68bb0359
SD
16502019-04-25 Sudakshina Das <sudi.das@arm.com>
1651
1652 * testsuite/ld-aarch64/bti-pac-plt-1.d: Update.
1653 * testsuite/ld-aarch64/bti-pac-plt-2.d: Update.
1654 * testsuite/ld-aarch64/bti-plt-1.d: Update.
1655 * testsuite/ld-aarch64/bti-plt-3.d: Update.
1656 * testsuite/ld-aarch64/bti-plt-5.d: Update.
1657 * testsuite/ld-aarch64/pac-plt-1.d: Update.
1658 * testsuite/ld-aarch64/pac-plt-2.d: Update.
1659
44ed8092
SL
16602019-04-24 Sandra Loosemore <sandra@codesourcery.com>
1661
1662 * testsuite/config/default.exp: Use [check_compiler_available]
1663 instead of [which $CC].
1664 * testsuite/ld-auto-import/auto-import.exp: Likewise.
1665 * testsuite/ld-cygwin/exe-export.exp: Likewise.
1666 * testsuite/ld-elf/audit.exp: Likewise.
1667 * testsuite/ld-elf/compress.exp: Likewise.
1668 * testsuite/ld-elf/dwarf.exp: Likewise.
1669 * testsuite/ld-elf/elf.exp: Likewise.
1670 * testsuite/ld-elf/indirect.exp: Likewise.
1671 * testsuite/ld-elf/linux-x86.exp: Likewise.
1672 * testsuite/ld-elf/shared.exp: Likewise.
1673 * testsuite/ld-elf/tls.exp: Likewise.
1674 * testsuite/ld-elf/wrap.exp: Likewise.
1675 * testsuite/ld-elfcomm/elfcomm.exp: Likewise.
1676 * testsuite/ld-elfvers/vers.exp: Likewise.
1677 * testsuite/ld-elfvsb/elfvsb.exp: Likewise.
1678 * testsuite/ld-elfweak/elfweak.exp: Likewise.
1679 * testsuite/ld-gc/gc.exp: Likewise.
1680 * testsuite/ld-i386/i386.exp: Likewise.
1681 * testsuite/ld-i386/no-plt.exp: Likewise.
1682 * testsuite/ld-i386/tls.exp: Likewise.
1683 * testsuite/ld-ifunc/ifunc.exp: Likewise.
1684 * testsuite/ld-mn10300/mn10300.exp: Likewise.
1685 * testsuite/ld-pe/pe-compile.exp: Likewise.
1686 * testsuite/ld-pe/pe-run.exp: Likewise.
1687 * testsuite/ld-pe/pe-run2.exp: Likewise.
1688 * testsuite/ld-pie/pie.exp: Likewise.
1689 * testsuite/ld-plugin/lto.exp: Likewise.
1690 * testsuite/ld-plugin/plugin.exp: Likewise.
1691 * testsuite/ld-scripts/crossref.exp: Likewise.
1692 * testsuite/ld-sh/sh.exp: Likewise.
1693 * testsuite/ld-shared/shared.exp: Likewise.
1694 * testsuite/ld-size/size.exp: Likewise.
1695 * testsuite/ld-srec/srec.exp: Likewise.
1696 * testsuite/ld-undefined/undefined.exp: Likewise.
1697 * testsuite/ld-unique/unique.exp: Likewise.
1698 * testsuite/ld-x86-64/mpx.exp: Likewise.
1699 * testsuite/ld-x86-64/no-plt.exp: Likewise.
1700 * testsuite/ld-x86-64/tls.exp: Likewise.
1701 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1702 * testsuite/lib/ld-lib.exp (run_ld_link_exec_tests): Call
1703 check_compiler_available before trying to use the compiler.
1704 (run_cc_link_tests): Likewise.
1705 (check_compiler_available): New. Use it instead of [which $CC].
1706
cc9519e7
AM
17072019-04-23 Alan Modra <amodra@gmail.com>
1708
1709 * Makefile.am (GENDEPDIR): New var, used..
1710 (GENSCRIPTS): ..here.
1711 * Makefile.in: Regenerate.
1712 * genscripts.sh: Test for $DEPDIR set before every use.
1713
6f38008b
MF
17142019-04-22 Matthew Fortune <matthew.fortune@mips.com>
1715
1716 * testsuite/ld-mips-elf/mips-elf-flags.exp: Fix expected ASEs
1717 for M5100.
1718
fce97736
AM
17192019-04-19 Alan Modra <amodra@gmail.com>
1720
1721 * testsuite/ld-gc/skip-map-discarded.s: Add section attributes.
1722 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Add
1723 s12z to list of targets not supporting --gc-sections.
1724
9a7f0679
L
17252019-04-17 H.J. Lu <hongjiu.lu@intel.com>
1726
1727 * testsuite/ld-i386/i386.exp: Run pr18801a and pr18801b instead
1728 of pr18801.
1729 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1730 * testsuite/ld-i386/pr18801.d: Removed.
1731 * testsuite/ld-x86-64/pr18801.d: Likewise.
1732 * testsuite/ld-i386/pr18801a.d: New file.
1733 * testsuite/ld-i386/pr18801b.d: Likewise.
1734 * testsuite/ld-x86-64/pr18801a.d: Likewise.
1735 * testsuite/ld-x86-64/pr18801b.d: Likewise.
1736 * testsuite/ld-x86-64/pie2.d: Suggest -fPIE instead of -fPIC.
1737 * testsuite/ld-x86-64/pie2.d: Likewise.
1738 * testsuite/ld-x86-64/pr19719.d: Likewise.
1739 * testsuite/ld-x86-64/pr19807-2a.d: Likewise.
1740 * testsuite/ld-x86-64/pr19969.d: Likewise.
1741 * testsuite/ld-x86-64/pr21997-1a.err: Likewise.
1742 * testsuite/ld-x86-64/pr21997-1b.err: Likewise.
1743 * testsuite/ld-x86-64/pr22001-1a.err: Likewise.
1744 * testsuite/ld-x86-64/pr22001-1b.err: Likewise.
1745 * testsuite/ld-x86-64/pr22791-1.err: Likewise.
1746
4e84a8f8
L
17472019-04-17 H.J. Lu <hongjiu.lu@intel.com>
1748
1749 PR ld/24458
1750 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/24458 tests.
1751 * testsuite/ld-x86-64/pr24458.s: New file.
1752 * testsuite/ld-x86-64/pr24458a-x32.d: Likewise.
1753 * testsuite/ld-x86-64/pr24458a.d: Likewise.
1754 * testsuite/ld-x86-64/pr24458b-x32.d: Likewise.
1755 * testsuite/ld-x86-64/pr24458b.d: Likewise.
1756 * testsuite/ld-x86-64/pr24458c-x32.d: Likewise.
1757 * testsuite/ld-x86-64/pr24458c.d: Likewise.
1758
e25de718
JL
17592019-04-17 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1760
1761 * config/tc-msp430.c (msp430_make_init_symbols): Define __crt0_init_bss
1762 symbol when .lower.bss or .either.bss sections exist.
1763 Define __crt0_movedata when .lower.data or .either.data sections exist.
1764 * testsuite/gas/msp430/either-data-bss-sym.d: New test.
1765 * testsuite/gas/msp430/low-data-bss-sym.d: New test.
1766 * testsuite/gas/msp430/either-data-bss-sym.s: New test source.
1767 * testsuite/gas/msp430/low-data-bss-sym.s: New test source.
1768 * testsuite/gas/msp430/msp430.exp: Run new tests.
1769 Enable large code model when running -mdata-region={upper,either}
1770 tests.
1771
a0fb9615
AM
17722019-04-16 Alan Modra <amodra@gmail.com>
1773
1774 * testsuite/ld-scripts/pr20302.d: Don't run for ns32k-*-*.
1775 * testsuite/ld-scripts/section-match-1.d: Likewise.
1776 * testsuite/ld-undefined/require-defined.exp: Likewise.
1777
86333705
FS
17782019-04-15 Faraz Shahbazker <fshahbazker@wavecomp.com>
1779
1780 * testsuite/ld-gc/gc.exp: Skip print-map-discarded test for non-ELF
1781 targets.
1782
f6b2b12d
AV
17832019-04-15 Sudakshina Das <sudi.das@arm.com>
1784
1785 * testsuite/ld-arm/bfcsel.s: New.
1786 * testsuite/ld-arm/bfcsel.d: New.
1787 * testsuite/ld-arm/arm-elf.exp: Add above test.
1788
65d1bc05
AV
17892019-04-15 Sudakshina Das <sudi.das@arm.com>
1790
1791 * testsuite/ld-arm/bfl.s: New.
1792 * testsuite/ld-arm/bfl.d: New.
1793 * testsuite/ld-arm/arm-elf.exp: Add above test.
1794
4389b29a
AV
17952019-04-15 Sudakshina Das <sudi.das@arm.com>
1796
1797 * testsuite/ld-arm/bf.s: New.
1798 * testsuite/ld-arm/bf.d: New.
1799 * testsuite/ld-arm/arm-elf.exp: Add above test.
1800
031254f2
AV
18012019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
1802
1803 * testsuite/ld-arm/attr-merge-13.attr: New test.
1804 * testsuite/ld-arm/attr-merge-13a.s: New test.
1805 * testsuite/ld-arm/attr-merge-13b.s: New test.
1806
c40e31a1
AM
18072019-04-13 Alan Modra <amodra@gmail.com>
1808
1809 * Makefile.am (GENSCRIPTS): Pass LIB_PATH as a parameter. Add
1810 DEPDIR parameter.
1811 (ELF_DEPS, ELF_GEN_DEPS, ELF_X86_DEPS): Delete.
1812 (ALL_EMULATION_SOURCES, ALL_64_EMULATION_SOURCES): Depend on
1813 $GEN_DEPENDS.
1814 (e*.c): Delete all dependencies, instead include dependencies
1815 from $DEPDIR/*.Pc.
1816 * Makefile.in: Regenerate.
1817 * configure.ac (source_sh): Define and use function.
1818 * configure: Regenerate.
1819 * emulparams/aarch64cloudabib.sh, * emulparams/aarch64elf32b.sh,
1820 * emulparams/aarch64elfb.sh, * emulparams/aarch64fbsdb.sh,
1821 * emulparams/aarch64linux32b.sh, * emulparams/aarch64linuxb.sh,
1822 * emulparams/arcelf.sh, * emulparams/arcelf_prof.sh,
1823 * emulparams/arclinux.sh, * emulparams/arclinux_nps.sh,
1824 * emulparams/arclinux_prof.sh, * emulparams/arcv2elf.sh,
1825 * emulparams/arcv2elfx.sh, * emulparams/armelf_fbsd.sh,
1826 * emulparams/armelf_linux_eabi.sh,
1827 * emulparams/armelf_linux_fdpiceabi.sh,
1828 * emulparams/armelf_nacl.sh, * emulparams/armelf_nbsd.sh,
1829 * emulparams/armelf_vxworks.sh, * emulparams/armelfb.sh,
1830 * emulparams/armelfb_fbsd.sh, * emulparams/armelfb_fuchsia.sh,
1831 * emulparams/armelfb_linux.sh, * emulparams/armelfb_linux_eabi.sh,
1832 * emulparams/armelfb_linux_fdpiceabi.sh,
1833 * emulparams/armelfb_nacl.sh, * emulparams/armelfb_nbsd.sh,
1834 * emulparams/armsymbian.sh, * emulparams/cskyelf_linux.sh,
1835 * emulparams/elf32_sparc_sol2.sh,
1836 * emulparams/elf32_sparc_vxworks.sh, * emulparams/elf32_tic6x_be.sh,
1837 * emulparams/elf32_tic6x_elf_be.sh,
1838 * emulparams/elf32_tic6x_elf_le.sh,
1839 * emulparams/elf32_tic6x_linux_be.sh,
1840 * emulparams/elf32_tic6x_linux_le.sh,
1841 * emulparams/elf32_x86_64.sh, * emulparams/elf32_x86_64_nacl.sh,
1842 * emulparams/elf32b4300.sh, * emulparams/elf32bfinfd.sh,
1843 * emulparams/elf32bmipn32.sh, * emulparams/elf32bsmip.sh,
1844 * emulparams/elf32btsmip.sh, * emulparams/elf32btsmip_fbsd.sh,
1845 * emulparams/elf32btsmipn32.sh, * emulparams/elf32btsmipn32_fbsd.sh,
1846 * emulparams/elf32ebmip.sh, * emulparams/elf32ebmipvxworks.sh,
1847 * emulparams/elf32elmip.sh, * emulparams/elf32elmipvxworks.sh,
1848 * emulparams/elf32frvfd.sh, * emulparams/elf32l4300.sh,
1849 * emulparams/elf32lm32fd.sh, * emulparams/elf32lmip.sh,
1850 * emulparams/elf32lppc.sh, * emulparams/elf32lppclinux.sh,
1851 * emulparams/elf32lppcnto.sh, * emulparams/elf32lppcsim.sh,
1852 * emulparams/elf32lr5900.sh, * emulparams/elf32lr5900n32.sh,
1853 * emulparams/elf32lriscv.sh, * emulparams/elf32lriscv_ilp32.sh,
1854 * emulparams/elf32lriscv_ilp32f.sh, * emulparams/elf32lsmip.sh,
1855 * emulparams/elf32ltsmip.sh, * emulparams/elf32ltsmip_fbsd.sh,
1856 * emulparams/elf32ltsmipn32.sh, * emulparams/elf32ltsmipn32_fbsd.sh,
1857 * emulparams/elf32microblazeel.sh, * emulparams/elf32or1k_linux.sh,
1858 * emulparams/elf32ppc.sh, * emulparams/elf32ppc_fbsd.sh,
1859 * emulparams/elf32ppccommon.sh, * emulparams/elf32ppclinux.sh,
1860 * emulparams/elf32ppcnto.sh, * emulparams/elf32ppcsim.sh,
1861 * emulparams/elf32ppcvxworks.sh, * emulparams/elf32ppcwindiss.sh,
1862 * emulparams/elf32tilegx_be.sh, * emulparams/elf64_ia64_fbsd.sh,
1863 * emulparams/elf64_sparc_fbsd.sh, * emulparams/elf64_sparc_sol2.sh,
1864 * emulparams/elf64alpha_fbsd.sh, * emulparams/elf64alpha_nbsd.sh,
1865 * emulparams/elf64bmip-defs.sh, * emulparams/elf64bmip.sh,
1866 * emulparams/elf64btsmip.sh, * emulparams/elf64btsmip_fbsd.sh,
1867 * emulparams/elf64lppc.sh, * emulparams/elf64lriscv-defs.sh,
1868 * emulparams/elf64lriscv.sh, * emulparams/elf64lriscv_lp64.sh,
1869 * emulparams/elf64lriscv_lp64f.sh, * emulparams/elf64ltsmip.sh,
1870 * emulparams/elf64ltsmip_fbsd.sh, * emulparams/elf64ppc.sh,
1871 * emulparams/elf64ppc_fbsd.sh, * emulparams/elf64rdos.sh,
1872 * emulparams/elf64tilegx_be.sh, * emulparams/elf_i386.sh,
1873 * emulparams/elf_i386_be.sh, * emulparams/elf_i386_fbsd.sh,
1874 * emulparams/elf_i386_ldso.sh, * emulparams/elf_i386_nacl.sh,
1875 * emulparams/elf_i386_sol2.sh, * emulparams/elf_i386_vxworks.sh,
1876 * emulparams/elf_iamcu.sh, * emulparams/elf_k1om.sh,
1877 * emulparams/elf_k1om_fbsd.sh, * emulparams/elf_l1om.sh,
1878 * emulparams/elf_l1om_fbsd.sh, * emulparams/elf_x86_64.sh,
1879 * emulparams/elf_x86_64_cloudabi.sh,
1880 * emulparams/elf_x86_64_fbsd.sh, * emulparams/elf_x86_64_nacl.sh,
1881 * emulparams/elf_x86_64_sol2.sh, * emulparams/h8300helf.sh,
1882 * emulparams/h8300helf_linux.sh, * emulparams/h8300hnelf.sh,
1883 * emulparams/h8300self.sh, * emulparams/h8300self_linux.sh,
1884 * emulparams/h8300snelf.sh, * emulparams/h8300sxelf.sh,
1885 * emulparams/h8300sxelf_linux.sh, * emulparams/h8300sxnelf.sh,
1886 * emulparams/hppanbsd.sh, * emulparams/hppaobsd.sh,
1887 * emulparams/m32rlelf.sh, * emulparams/m32rlelf_linux.sh,
1888 * emulparams/m68kelfnbsd.sh, * emulparams/mn10300.sh,
1889 * emulparams/msp430X.sh, * emulparams/nds32belf.sh,
1890 * emulparams/nds32belf16m.sh, * emulparams/nds32belf_linux.sh,
1891 * emulparams/pjlelf.sh, * emulparams/ppclynx.sh,
1892 * emulparams/score7_elf.sh, * emulparams/shelf_fd.sh,
1893 * emulparams/shelf_linux.sh, * emulparams/shelf_nbsd.sh,
1894 * emulparams/shelf_uclinux.sh, * emulparams/shelf_vxworks.sh,
1895 * emulparams/shl.sh, * emulparams/shlelf.sh,
1896 * emulparams/shlelf_fd.sh, * emulparams/shlelf_nbsd.sh,
1897 * emulparams/shlelf_vxworks.sh: Use source_sh.
1898 * genscripts.sh: Adjust for changed parameters. Emit dependencies
1899 for e*.c to .deps/*.Pc.
1900 (source_sh): New function, use it throughout to source scripts.
1901 * genscrba.sh (source_em): Use source_sh.
1902
50ff67e6
AM
19032019-04-13 Alan Modra <amodra@gmail.com>
1904
1905 * configure.ac (TDIRS): Build up tdirs in this variable and
1906 AC_SUBST, also using AM_SUBST_NOTMAKE.
1907 * configure: Regenerate.
1908 * Makefile.am (DISTCLEANFILES): Remove tdirs.
1909 * Makefile.in: Regenerate.
1910
3bbec4bd
NC
19112019-04-12 Nick Clifton <nickc@redhat.com>
1912
1913 PR 24450
1914 * ld.texi (Output Section Attributes): Add ALIGN_WITH_INPUT to
1915 example of section attributes.
1916
035801ce
FS
19172019-04-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
1918
1919 * NEWS: Mention new option --no-print-map-discarded.
1920 * ld.h (ld_config_type) <print_map_discarded>: New field.
1921 * ldlang.c (lang_map): Conditionally output discarded sections
1922 in map files based on configuration option.
1923 * ldlex.h (option_values) <OPTION_PRINT_MAP_DISCARDED,
1924 OPTION_NO_PRINT_MAP_DISCARDED>: New.
1925 * ldmain.c (main): Enabled print_map_discarded by default.
1926 * lexsup.c (ld_options): Add new command-line options.
1927 (parse_args) <OPTION_NO_PRINT_MAP_DISCARDED,
1928 OPTION_PRINT_MAP_DISCARDED>: New cases.
1929 * ld.texi: Document new options.
1930 * testsuite/ld-gc/gc.exp: Add new test.
1931 * testsuite/ld-gc/skip-map-discarded.s: New file.
1932 * testsuite/ld-gc/skip-map-discarded.d: New file.
1933 * testsuite/ld-gc/skip-map-discarded.map: New file.
1934
233a0083
L
19352019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1936
1937 * ld.texi: Document -z cet-report=[none|warning|error].
1938 * emulparams/cet.sh: Add -z cet-report=[none|warning|error].
1939 * testsuite/ld-i386/i386.exp: Run -z cet-report=[warning|error]
1940 tests.
1941 * testsuite/ld-x86-64/x86-64.exp: Likewise.
1942 * testsuite/ld-i386/property-x86-cet1.d: New file.
1943 * testsuite/ld-i386/property-x86-cet2a.d: Likewise.
1944 * testsuite/ld-i386/property-x86-cet2b.d: Likewise.
1945 * testsuite/ld-i386/property-x86-cet3a.d: Likewise.
1946 * testsuite/ld-i386/property-x86-cet3b.d: Likewise.
1947 * testsuite/ld-i386/property-x86-cet4a.d: Likewise.
1948 * testsuite/ld-i386/property-x86-cet4b.d: Likewise.
1949 * testsuite/ld-i386/property-x86-cet5a.d: Likewise.
1950 * testsuite/ld-i386/property-x86-cet5b.d: Likewise.
1951 * testsuite/ld-i386/property-x86-cet6.d: Likewise.
1952 * testsuite/ld-x86-64/property-x86-cet.s: Likewise.
1953 * testsuite/ld-x86-64/property-x86-cet1-x32.d: Likewise.
1954 * testsuite/ld-x86-64/property-x86-cet1.d: Likewise.
1955 * testsuite/ld-x86-64/property-x86-cet2a-x32.d: Likewise.
1956 * testsuite/ld-x86-64/property-x86-cet2a.d: Likewise.
1957 * testsuite/ld-x86-64/property-x86-cet2b-x32.d: Likewise.
1958 * testsuite/ld-x86-64/property-x86-cet2b.d: Likewise.
1959 * testsuite/ld-x86-64/property-x86-cet3a-x32.d: Likewise.
1960 * testsuite/ld-x86-64/property-x86-cet3a.d: Likewise.
1961 * testsuite/ld-x86-64/property-x86-cet3b-x32.d: Likewise.
1962 * testsuite/ld-x86-64/property-x86-cet3b.d: Likewise.
1963 * testsuite/ld-x86-64/property-x86-cet4a-x32.d: Likewise.
1964 * testsuite/ld-x86-64/property-x86-cet4a.d: Likewise.
1965 * testsuite/ld-x86-64/property-x86-cet4b-x32.d: Likewise.
1966 * testsuite/ld-x86-64/property-x86-cet4b.d: Likewise.
1967 * testsuite/ld-x86-64/property-x86-cet5a-x32.d: Likewise.
1968 * testsuite/ld-x86-64/property-x86-cet5a.d: Likewise.
1969 * testsuite/ld-x86-64/property-x86-cet5b-x32.d: Likewise.
1970 * testsuite/ld-x86-64/property-x86-cet5b.d: Likewise.
1971 * testsuite/ld-x86-64/property-x86-cet6-x32.d: Likewise.
1972 * testsuite/ld-x86-64/property-x86-cet6.d: Likewise.
1973
b3d7a867
L
19742019-04-11 H.J. Lu <hongjiu.lu@intel.com>
1975
1976 * testsuite/config/default.exp (STATIC_PIE_LDFLAGS): New. Set
1977 to "-static-pie" if target compiler supports it.
1978 * testsuite/ld-elf/elf.exp: Run -static-pie tests if
1979 $STATIC_PIE_LDFLAGS isn't empty.
1980 * testsuite/ld-ifunc/ifunc.exp: Likewise.
1981
ce12121b
TC
19822019-04-11 Tamar Christina <tamar.christina@arm.com>
1983
1984 PR ld/24302
1985 * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
1986 * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: New test.
1987
795e3bb7
L
19882019-04-10 H.J. Lu <hongjiu.lu@intel.com>
1989
1990 * scripttempl/elf.sc (CREATE_PIC): New. Set for CREATE_SHLIB or
1991 CREATE_PIE.
1992 (__rel_iplt_start): Don't define for CREATE_PIC.
1993 (__rel_iplt_end): Likewise.
1994 (__rela_iplt_start): Likewise.
1995 (__rela_iplt_end): Likewise.
1996
e6aded7c
AM
19972019-04-10 Alan Modra <amodra@gmail.com>
1998
1999 * testsuite/ld-elf/shared.exp: Don't xfail PR ld/20995 for
2000 powerpc-nto.
2001
53b81c6d
AM
20022019-04-10 Alan Modra <amodra@gmail.com>
2003
2004 * emultempl/cskyelf.em (csk_elf_before_parse): New function,
2005 setting use_branch_stub false for linux.
2006 (csky_elf_create_output_section_statements): Do emit this
2007 function and all others in the file for linux, plus the branch
2008 option control. Disable branch stubs when non-ELF.
2009
c55b17b8
AM
20102019-04-10 Alan Modra <amodra@gmail.com>
2011
2012 * Makefile.am (eskyelf.c, eskyelf_linux.c): Depend on cskyelf.em.
2013 (ecskyelf_linux.c): Depend on cskyelf.sh.
2014 (eelf32microblazeel.c): Depend on elf32microblaze.sh.
2015 * Makefile.in: Regenerate.
2016 * emulparams/cskyelf.sh: Comment regarding cskelf_linux.sh.
2017 (PAGE_SIZE): Don't define.
2018 * emulparams/cskyelf_linux.sh: Source sckyelf.sh, leaving just
2019 the differing variable defs/undefs.
2020 * emulparams/elf32mcore.sh (PAGE_SIZE): Don't define.
2021 * emulparams/elf32microblaze.sh: Comment re. elf32microblazeel.sh.
2022 (OUTPUT_FORMAT): Use BIG_OUTPUT_FORMAT.
2023 (PAGE_SIZE): Don't define.
2024 * emulparams/elf32microblazeel.sh: Source elf32microblaze.sh,
2025 leaving just the differing OUTPUT_FORMAT.
2026
6feda627
AM
20272019-04-10 Alan Modra <amodra@gmail.com>
2028
2029 * po/BLD-POTFILES.in: Regenerate.
2030
c93c0e7f
L
20312019-04-08 H.J. Lu <hongjiu.lu@intel.com>
2032
2033 * testsuite/ld-elf/shared.exp: XFAIL PR ld/20995 tests for
2034 lynxos and nto targets.
2035
3ae61bb6
L
20362019-04-08 H.J. Lu <hongjiu.lu@intel.com>
2037
2038 * Makefile.am (ALL_EMULATION_SOURCES): Remove eelf_i386_chaos.c.
2039 (eelf_i386_chaos.c): Removed.
2040 * Makefile.in: Regenerated.
2041 * configure.tgt: Remove i[3-7]86-*-kaos*.
2042 * emulparams/elf_i386_chaos.sh: Removed.
2043
da9b5f7b
L
20442019-04-08 H.J. Lu <hongjiu.lu@intel.com>
2045
2046 * emulparams/elf_i386_be.sh (EXTRA_EM_FILE): New.
2047 * emulparams/i386moss.sh (EXTRA_EM_FILE): Likewise.
2048
d970ee2b
AM
20492019-04-08 Alan Modra <amodra@gmail.com>
2050
2051 * emulparams/elf64rdos.sh (EXTRA_EM_FILE): Define.
2052 * emulparams/i386lynx.sh (EXTRA_EM_FILE): Define.
2053 * emulparams/i386nto.sh (EXTRA_EM_FILE): Define.
2054
5b9c07b2
L
20552019-04-06 H.J. Lu <hongjiu.lu@intel.com>
2056
2057 * Makefile.am (ELF_X86_DEPS): Add $(srcdir)/emultempl/elf-x86.em.
2058 (eelf_i386_sol2.c): Also depend on
2059 $(srcdir)/emultempl/solaris2-x86.em.
2060 (eelf_x86_64_sol2.c): Likewise.
2061 * Makefile.in: Regenerated.
2062 * emulparams/call_nop.sh: Set x86-specific linker options via
2063 params.
2064 * emulparams/cet.sh: Likewise.
2065 * emulparams/reloc_overflow.sh: Likewise.
2066 * emulparams/elf32_x86_64.sh (EXTRA_EM_FILE): New. Set to
2067 "elf-x86".
2068 * emulparams/elf_i386.sh: Likewise.
2069 * emulparams/elf_i386_be.sh: Likewise.
2070 * emulparams/elf_i386_chaos.sh: Likewise.
2071 * emulparams/elf_i386_ldso.sh: Likewise.
2072 * emulparams/elf_i386_vxworks.sh: Likewise.
2073 * emulparams/elf_iamcu.sh: Likewise.
2074 * emulparams/elf_k1om.sh: Likewise.
2075 * emulparams/elf_l1om.sh: Likewise.
2076 * emulparams/elf_x86_64.sh: Likewise.
2077 * emulparams/elf_i386_sol2.sh (EXTRA_EM_FILE): Changed to
2078 "solaris2-x86".
2079 * emulparams/elf_x86_64_sol2.sh: Likewise.
2080 * emultempl/elf-x86.em: New file.
2081 * emultempl/solaris2-x86.em: Likewise.
2082 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Don't
2083 set link_info.call_nop_byte.
2084
c2b1c275
AM
20852019-04-05 Alan Modra <amodra@gmail.com>
2086
2087 * testsuite/ld-powerpc/tlsexe32.d: Remove trailing spaces.
2088 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
2089 * testsuite/ld-powerpc/tlsopt5_32.d: Likewise.
2090
1c6aafe8
AM
20912019-04-03 Alan Modra <amodra@gmail.com>
2092
2093 PR 24411
2094 ldlex.l (SYMBOLNAMECHAR1): Don't match '/'.
2095 (<EXPRESSION>"/DISCARD/"): New.
2096
092da96a
AM
20972019-04-03 Alan Modra <amodra@gmail.com>
2098
2099 * ldlex.l: Formatting.
2100 (CMDFILENAMECHAR, CMDFILENAMECHAR1): Delete.
2101 (FILENAMECHAR1, SYMBOLNAMECHAR1, FILENAMECHAR, WILDCHAR),
2102 (NOCFILENAMECHAR): Remove duplicate chars. Reorder.
2103 (SYMBOLCHARN): Likewise. Rename to SYMBOLNAMECHAR.
2104 (<INPUTLIST>"$SYSROOT"..): Delete rule.
2105
2487ef07
MF
21062019-03-29 Max Filippov <jcmvbkbc@gmail.com>
2107
2108 * testsuite/ld-xtensa/relax-undef-weak-pie-export-dynamic.d: New
2109 test definition.
2110 * testsuite/ld-xtensa/xtensa.exp
2111 (relax-undef-weak-pie-export-dynamic): Add new test.
2112
7ea79cb3 21132019-03-26 Martin Liska <mliska@suse.cz>
2114
2115 * plugin.c (get_symbols): Add lto_kind_str, lto_resolution_str,
2116 lto_visibility_str and use then to inform about plugin-symbols.
2117 * testsuite/ld-plugin/plugin-12.d: Adjust expected pattern.
2118
796d6298
TC
21192019-03-25 Tamar Christina <tamar.christina@arm.com>
2120
2121 * testsuite/ld-arm/jump-reloc-veneers-cond-long.d: Update disassembly.
2122 * testsuite/ld-arm/jump-reloc-veneers-long.d: Update disassembly.
2123
4e539114
SD
21242019-03-21 Sudakshina Das <sudi.das@arm.com>
2125
2126 * testsuite/ld-aarch64/aarch64-elf.exp: Add new test.
2127 * testsuite/ld-aarch64/bti-plt-1.s: Add .ifdef for PAC note section.
2128 * testsuite/ld-aarch64/bti-plt-6.d: Update warning.
2129 * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
2130 * testsuite/ld-aarch64/bti-warn.d: New test.
2131
f84bd465
AM
21322019-03-21 Alan Modra <amodra@gmail.com>
2133
2134 * testsuite/ld-elf/fini2.s: Reduce alignment.
2135 * testsuite/ld-elf/fini3.s: Likewise.
2136 * testsuite/ld-elf/finin.s: Likewise.
2137 * testsuite/ld-elf/init2.s: Likewise.
2138 * testsuite/ld-elf/init3.s: Likewise.
2139 * testsuite/ld-elf/initn.s: Likewise.
2140 * testsuite/ld-elf/pr14156a.d: Don't xfail m68hc1*-* or xgate-*.
2141 * testsuite/ld-elf/pr14156b.d: Don't xfail xgate-*.
2142
2d3181c7
AM
21432019-03-21 Alan Modra <amodra@gmail.com>
2144
2145 * scripttempl/alpha.sc, * scripttempl/armbpabi.sc,
2146 * scripttempl/crisaout.sc, * scripttempl/elf32cr16.sc,
2147 * scripttempl/elf32crx.sc, * scripttempl/elf32xc16x.sc,
2148 * scripttempl/elf32xc16xl.sc, * scripttempl/elf32xc16xs.sc,
2149 * scripttempl/elf64hppa.sc, * scripttempl/elf_chaos.sc,
2150 * scripttempl/elfarc.sc, * scripttempl/elfarcv2.sc,
2151 * scripttempl/elfd30v.sc, * scripttempl/elfm68hc11.sc,
2152 * scripttempl/elfm68hc12.sc, * scripttempl/elfm9s12z.sc,
2153 * scripttempl/elfmicroblaze.sc, * scripttempl/elfxgate.sc,
2154 * scripttempl/elfxtensa.sc, * scripttempl/epiphany_4x4.sc,
2155 * scripttempl/ft32.sc, * scripttempl/i386beos.sc,
2156 * scripttempl/iq2000.sc, * scripttempl/mcorepe.sc,
2157 * scripttempl/mep.sc, * scripttempl/mips.sc, * scripttempl/moxie.sc,
2158 * scripttempl/pe.sc, * scripttempl/pep.sc, * scripttempl/ppcpe.sc,
2159 * scripttempl/tic4xcoff.sc, * scripttempl/tic80coff.sc,
2160 * scripttempl/v850.sc, * scripttempl/v850_rh850.sc,
2161 * scripttempl/visium.sc, * scripttempl/xstormy16.sc: Add KEEP and
2162 SORT_NONE to .init and .fini wildcards.
2163 * scripttempl/elf32xc16x.sc,
2164 * scripttempl/elf32xc16xl.sc,
2165 * scripttempl/elf32xc16xs.sc: Add .fini wildcard.
2166 * scripttempl/elf_chaos.sc: Add .init output section.
2167 * scripttempl/elfd30v.sc: Remove duplicate .init.
2168 * scripttempl/elfm68hc11.sc, * scripttempl/elfm68hc12.sc,
2169 * scripttempl/elfm9s12z.sc, * scripttempl/elfxgate.sc: Remove
2170 duplicate .init, and add .fini wildcard.
2171 * scripttempl/ppcpe.sc (INIT, FINI): Delete.
2172 * ldlang.c (update_wild_statements): Special case .init and
2173 .fini in the wildcard, not the output section.
2174
980a2e42
AM
21752019-03-21 Alan Modra <amodra@gmail.com>
2176
2177 * emulparams/elf32lm32fd.sh (DYNAMIC_LINK): Undef.
2178
3b6c1966
AM
21792019-03-21 Alan Modra <amodra@gmail.com>
2180
2181 * ldlang.c (lang_size_sections_1): Set SEC_KEEP on
2182 create_object_symbols_section.
2183 * testsuite/ld-elf/pr22319.d: Don't xfail dlx.
2184
28a66f07
AM
21852019-03-18 Alan Modra <amodra@gmail.com>
2186
2187 * testsuite/ld-elf/merge.d: Remove csky from xfails, add moxie.
2188 * testsuite/ld-elf/pr21884.d: Remove csky from xfails.
2189 * testsuite/ld-elf/shared.exp: Add csky to list not xfailing pr22374.
2190 * testsuite/ld-unique/pr21529.d: Remove csky from xfails
2191
1c82ed74
NC
21922019-03-15 Nick Clifton <nickc@redhat.com>
2193
2194 PR 24262
2195 * ld.texi (-plugin): Correct the path used to locate linker
2196 plugins.
2197
1dbade74
SD
21982019-03-13 Sudakshina Das <sudi.das@arm.com>
2199
2200 * NEWS: Document --pac-plt.
2201 * emultempl/aarch64elf.em (OPTION_PAC_PLT): New.
2202 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add pac-plt.
2203 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_PAC_PLT.
2204 * testsuite/ld-aarch64/aarch64-elf.exp: Add the following tests.
2205 * testsuite/ld-aarch64/bti-pac-plt-1.d: New test.
2206 * testsuite/ld-aarch64/bti-pac-plt-2.d: New test.
2207 * testsuite/ld-aarch64/pac-plt-1.d: New test.
2208 * testsuite/ld-aarch64/pac-plt-2.d: New test.
2209 * testsuite/ld-aarch64/bti-plt-1.s: Add .ifndef directive.
2210
37c18eed
SD
22112019-03-13 Sudakshina Das <sudi.das@arm.com>
2212 Szabolcs Nagy <szabolcs.nagy@arm.com>
2213
2214 * NEWS: Document --force-bti.
2215 * emultempl/aarch64elf.em (plt_type, bti_type, OPTION_FORCE_BTI): New.
2216 (PARSE_AND_LIST_SHORTOPTS, PARSE_AND_LIST_OPTIONS): Add force-bti.
2217 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_FORCE_BTI.
2218 * testsuite/ld-aarch64/aarch64-elf.exp: Add all the tests below.
2219 * testsuite/ld-aarch64/bti-plt-1.d: New test.
2220 * testsuite/ld-aarch64/bti-plt-1.s: New test.
2221 * testsuite/ld-aarch64/bti-plt-2.d: New test.
2222 * testsuite/ld-aarch64/bti-plt-3.d: New test.
2223 * testsuite/ld-aarch64/bti-plt-4.d: New test.
2224 * testsuite/ld-aarch64/bti-plt-5.d: New test.
2225 * testsuite/ld-aarch64/bti-plt-6.d: New test.
2226 * testsuite/ld-aarch64/bti-plt-7.d: New test.
2227 * testsuite/ld-aarch64/bti-plt-so.s: New test.
2228 * testsuite/ld-aarch64/bti-plt.ld: New test.
2229
cd702818
SD
22302019-03-13 Sudakshina Das <sudi.das@arm.com>
2231
2232 * NEWS: Document GNU_PROPERTY_AARCH64_FEATURE_1_BTI and
2233 GNU_PROPERTY_AARCH64_FEATURE_1_PAC.
2234 * testsuite/ld-aarch64/aarch64-elf.exp: Add run commands for new tests.
2235 * testsuite/ld-aarch64/property-bti-pac1.d: New test.
2236 * testsuite/ld-aarch64/property-bti-pac1.s: New test.
2237 * testsuite/ld-aarch64/property-bti-pac2.d: New test.
2238 * testsuite/ld-aarch64/property-bti-pac2.s: New test.
2239 * testsuite/ld-aarch64/property-bti-pac3.d: New test.
2240
44b27f95
L
22412019-03-13 H.J. Lu <hongjiu.lu@intel.com>
2242
2243 PR ld/24322
2244 * testsuite/ld-i386/i386.exp: Run PR ld/24322 tests.
2245 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2246 * testsuite/ld-i386/pr24322a.d: New file.
2247 * testsuite/ld-i386/pr24322b.d: Likewise.
2248 * testsuite/ld-x86-64/pr24322a-x32.d: Likewise.
2249 * testsuite/ld-x86-64/pr24322a.d: Likewise.
2250 * testsuite/ld-x86-64/pr24322b-x32.d: Likewise.
2251 * testsuite/ld-x86-64/pr24322b.d: Likewise.
2252 * testsuite/ld-x86-64/pr24322a.s: Likewise.
2253 * testsuite/ld-x86-64/pr24322b.s: Likewise.
2254 * testsuite/ld-x86-64/pr24322c.s: Likewise.
2255
912ebfa0
NB
22562019-03-06 Nick Bowler <nbowler@draconx.ca>
2257
2258 PR 24289
2259 * ldexp.c (fold_name): Allow lookups of the LENGTH and ORIGIN
2260 attributes during the first phase.
2261
24801b15
AK
22622019-03-01 Andreas Krebbel <krebbel@linux.ibm.com>
2263
2264 This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335.
2265 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
2266
2267 PR 20113
2268 * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
2269 * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
2270 * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
2271 * testsuite/ld-s390/tlsbin.dd: Likewise.
2272 * testsuite/ld-s390/tlsbin.rd: Likewise.
2273 * testsuite/ld-s390/tlsbin.sd: Likewise.
2274 * testsuite/ld-s390/tlsbin_64.dd: Likewise.
2275 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
2276 * testsuite/ld-s390/tlsbin_64.sd: Likewise.
2277 * testsuite/ld-s390/tlspic.dd: Likewise.
2278 * testsuite/ld-s390/tlspic.rd: Likewise.
2279 * testsuite/ld-s390/tlspic.sd: Likewise.
2280 * testsuite/ld-s390/tlspic_64.dd: Likewise.
2281 * testsuite/ld-s390/tlspic_64.rd: Likewise.
2282 * testsuite/ld-s390/tlspic_64.sd: Likewise.
2283 * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
2284
5cfe428c
L
22852019-02-27 H.J. Lu <hongjiu.lu@intel.com>
2286
2287 PR ld/24276
2288 * testsuite/ld-i386/i386.exp: Run PR ld/24276 test.
2289 * testsuite/ld-x86-64/x86-64.exp: Likewise.
2290 * testsuite/ld-i386/pr24276.dso: New file.
2291 * testsuite/ld-i386/pr24276.warn: Likewise.
2292 * testsuite/ld-x86-64/pr24276.dso: Likewise.
2293 * testsuite/ld-x86-64/pr24276.warn: Likewise.
2294
eed62915
MF
22952019-02-20 Eric Tsai <erictsai@cadence.com>
2296
2297 * testsuite/ld-xtensa/call_overflow.d: New test definition.
2298 * testsuite/ld-xtensa/call_overflow1.s: New test source.
2299 * testsuite/ld-xtensa/call_overflow2.s: New test source.
2300 * testsuite/ld-xtensa/call_overflow3.s: New test source.
2301 * testsuite/ld-xtensa/xtensa.exp: Add call_overflow test.
2302
abc163a4
TS
23032019-02-14 Thomas Schwinge <thomas@codesourcery.com>
2304
2305 * testsuite/ld-elf/elf.exp: Remove Hurd XFAILs.
2306
e4865945
NC
23072019-02-12 Nick Clifton <nickc@redhat.com>
2308
2309 * po/fr.po: Updated French translation.
2310
a0e90a73
CZ
23112019-02-09 Vineet Gupta <vgupta@synopsys.com>
2312
2313 * emultempl/arclinux.em: Delete special INIT/FINI handling.
2314
5d3db3e2
NC
23152019-02-07 Nick Clifton <nickc@redhat.com>
2316
2317 PR 24175
2318 * ld.texi (Options): Add missing word to the description of the
2319 --start-group option.
2320
4249a53c
AM
23212019-02-06 Alan Modra <amodra@gmail.com>
2322
2323 PR ld/24008
2324 * testsuite/ld-scripts/pr24008.d: Pass with extra target
2325 defined symbols.
2326
83924b38
L
23272019-02-05 H.J. Lu <hongjiu.lu@intel.com>
2328
2329 PR ld/24151
2330 * testsuite/ld-x86-64/pr24151a-x32.d: New file.
2331 * testsuite/ld-x86-64/pr24151a.d: Likewise.
2332 * testsuite/ld-x86-64/pr24151a.s: Likewise.
2333 * testsuite/ld-x86-64/x86-64.exp: Run pr24151a and pr24151a-x32.
2334
4f4690cd
AM
23352019-01-31 Alan Modra <amodra@gmail.com>
2336
2337 * NEWS: Mention -t change.
2338 * ld.texi (--trace/-t): Expand documentation a little.
2339
ad0f979c
L
23402019-01-29 H.J. Lu <hongjiu.lu@intel.com>
2341
2342 PR ld/24008
2343 * testsuite/ld-scripts/defined.exp: Run pr24008.
2344 * testsuite/ld-scripts/pr24008.d: New file.
2345 * testsuite/ld-scripts/pr24008.map: Likewise.
2346 * testsuite/ld-scripts/pr24008.s: Likewise.
2347 * testsuite/ld-scripts/pr24008.t: Likewise.
2348
c49829c3
EB
23492019-01-29 Eric Botcazou <ebotcazou@adacore.com>
2350
2351 * testsuite/ld-ifunc/ifunc.exp: Skip pr23169 on SPARC.
2352
6a846243
AM
23532019-01-28 Alan Modra <amodra@gmail.com>
2354
2355 PR 24008
2356 * ldexp.h (lang_phase_type): Add lang_fixed_phase_enum.
2357 * ldexp.c (fold_name): Move expld.assign_name check later to
2358 avoid an extra lookup.
2359 (exp_fold_tree_1): When lang_fixed_phase_enum, don't change symbol
2360 values, and don't clear expld.assign_name.
2361 * ldlang.c (lang_map): Set expld.phase to lang_fixed_phase_enum.
2362 (print_assignment): Resolve entire assignment expression.
2363 Don't access symbol u.def unless symbol is defined.
2364
9ed1348c
NC
23652019-01-25 Nick Clifton <nickc@redhat.com>
2366
2367 * po/bg.po: Updated Bulgarian translation.
2368
6406a270
SH
23692019-01-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
2370
2371 * ld.texi (--wrap): Add warning that LTO may make this feature
2372 ineffective.
2373
375cd423
NC
23742019-01-21 Nick Clifton <nickc@redhat.com>
2375
2376 * po/uk.po: Updated Ukranian translation.
a6c9b404 2377 * po/pr_BR.po: Updated Brazilian Portuguese translation.
375cd423 2378
acef8081
YC
23792019-01-21 Nick Clifton <nickc@redhat.com>
2380
2381 PR 24108
2382 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Update
2383 expected error message.
2384
f48dfe41
NC
23852019-01-19 Nick Clifton <nickc@redhat.com>
2386
2387 * configure: Regenerate.
2388 * po/ld.pot: Regenerate.
2389
f974f26c
NC
23902018-06-24 Nick Clifton <nickc@redhat.com>
2391
2392 2.32 branch created.
2393
7d7a7d7c
JW
23942019-01-16 Kito Cheng <kito@andestech.com>
2395
2396 * testsuite/ld-elf/orphan-region.d: XFAIL for RISC-V, because add new
2397 section.
2398 * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Add new tests.
2399 * testsuite/ld-riscv-elf/attr-merge-arch-01.d: New test.
2400 * testsuite/ld-riscv-elf/attr-merge-arch-01a.s: Likewise.
2401 * testsuite/ld-riscv-elf/attr-merge-arch-01b.s: Likewise.
2402 * testsuite/ld-riscv-elf/attr-merge-arch-02.d: Likewise.
2403 * testsuite/ld-riscv-elf/attr-merge-arch-02a.s: Likewise.
2404 * testsuite/ld-riscv-elf/attr-merge-arch-02b.s: Likewise.
2405 * testsuite/ld-riscv-elf/attr-merge-arch-03.d: Likewise.
2406 * testsuite/ld-riscv-elf/attr-merge-arch-03a.s: Likewise.
2407 * testsuite/ld-riscv-elf/attr-merge-arch-03b.s: Likewise.
2408 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01.d: Likewise.
2409 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01a.s: Likewise.
2410 * testsuite/ld-riscv-elf/attr-merge-arch-failed-01b.s: Likewise.
2411 * testsuite/ld-riscv-elf/attr-merge-priv-spec-a.s: Likewise.
2412 * testsuite/ld-riscv-elf/attr-merge-priv-spec-b.s: Likewise.
2413 * testsuite/ld-riscv-elf/attr-merge-priv-spec.d: Likewise.
2414 * testsuite/ld-riscv-elf/attr-merge-stack-align-a.s: Likewise.
2415 * testsuite/ld-riscv-elf/attr-merge-stack-align-b.s: Likewise.
2416 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-a.s: Likewise.
2417 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed-b.s: Likewise.
2418 * testsuite/ld-riscv-elf/attr-merge-stack-align-failed.d: Likewise.
2419 * testsuite/ld-riscv-elf/attr-merge-stack-align.d: Likewise.
2420 * testsuite/ld-riscv-elf/attr-merge-strict-align-01.d: Likewise.
2421 * testsuite/ld-riscv-elf/attr-merge-strict-align-01a.s: Likewise.
2422 * testsuite/ld-riscv-elf/attr-merge-strict-align-01b.s: Likewise.
2423 * testsuite/ld-riscv-elf/attr-merge-strict-align-02.d: Likewise.
2424 * testsuite/ld-riscv-elf/attr-merge-strict-align-02a.s: Likewise.
2425 * testsuite/ld-riscv-elf/attr-merge-strict-align-02b.s: Likewise.
2426 * testsuite/ld-riscv-elf/attr-merge-strict-align-03.d: Likewise.
2427 * testsuite/ld-riscv-elf/attr-merge-strict-align-03a.s: Likewise.
2428 * testsuite/ld-riscv-elf/attr-merge-strict-align-03b.s: Likewise.
2429 * testsuite/ld-riscv-elf/attr-merge-strict-align-04.d: Likewise.
2430 * testsuite/ld-riscv-elf/attr-merge-strict-align-04a.s: Likewise.
2431 * testsuite/ld-riscv-elf/attr-merge-strict-align-04b.s: Likewise.
2432 * testsuite/ld-riscv-elf/attr-merge-strict-align-05.d: Likewise.
2433 * testsuite/ld-riscv-elf/attr-merge-strict-align-05a.s: Likewise.
2434 * testsuite/ld-riscv-elf/attr-merge-strict-align-05b.s: Likewise.
2435
5a12586d
MT
24362019-01-14 Maamoun Tarsha <maamountk@hotmail.com>
2437
f466c305 2438 PR 20113
5a12586d
MT
2439 * emulparams/elf64_s390.sh (SEPARATE_GOTPLT): Define.
2440 * emulparams/elf_s390.sh (SEPARATE_GOTPLT): Define.
2441 * testsuite/ld-s390/gotreloc_31-1.dd: Update expected output.
2442 * testsuite/ld-s390/tlsbin.dd: Likewise.
2443 * testsuite/ld-s390/tlsbin.rd: Likewise.
2444 * testsuite/ld-s390/tlsbin.sd: Likewise.
2445 * testsuite/ld-s390/tlsbin_64.dd: Likewise.
2446 * testsuite/ld-s390/tlsbin_64.rd: Likewise.
2447 * testsuite/ld-s390/tlsbin_64.sd: Likewise.
2448 * testsuite/ld-s390/tlspic.dd: Likewise.
2449 * testsuite/ld-s390/tlspic.rd: Likewise.
2450 * testsuite/ld-s390/tlspic.sd: Likewise.
2451 * testsuite/ld-s390/tlspic_64.dd: Likewise.
2452 * testsuite/ld-s390/tlspic_64.rd: Likewise.
2453 * testsuite/ld-s390/tlspic_64.sd: Likewise.
f466c305 2454 * testsuite/ld-s390/s390.exp: Skip s390 tests for tpf targets.
5a12586d 2455
4ea904ed
SH
24562019-01-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
2457
2458 * ld.texi (--wrap): Add example to emphasise that only undefined
2459 references are replaced by the linker.
2460
8379fac6
NC
24612019-01-09 Nick Clifton <nickc@redhat.com>
2462
2463 * po/es.po: Updated Spanish translation.
2464
3107326d
AP
24652019-01-09 Andrew Paprocki <andrew@ishiboo.com>
2466
2467 * configure: Regenerate.
2468
171b8e19
AM
24692019-01-08 Alan Modra <amodra@gmail.com>
2470
2471 * testsuite/ld-elf/sec64k.exp: Use . rather than $objdir in
2472 generated source file names.
2473 * testsuite/ld-m68k/m68k-got.exp: Likewise.
2474
82704155
AM
24752019-01-01 Alan Modra <amodra@gmail.com>
2476
2477 Update year range in copyright notice of all files.
2478
d5c04e1b 2479For older changes see ChangeLog-2018
3499769a 2480\f
d5c04e1b 2481Copyright (C) 2019 Free Software Foundation, Inc.
3499769a
AM
2482
2483Copying and distribution of this file, with or without modification,
2484are permitted in any medium without royalty provided the copyright
2485notice and this notice are preserved.
2486
2487Local Variables:
2488mode: change-log
2489left-margin: 8
2490fill-column: 74
2491version-control: never
2492End:
This page took 0.316466 seconds and 4 git commands to generate.