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