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