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