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