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