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