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