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