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