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