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