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