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