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