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