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