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