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