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