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