1 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
4 * emulparams/elf32z80.sh: Use z80 emulation.
5 * emultempl/z80.em: Make generic to both COFF and ELF Z80 emulations.
6 * emultempl/z80elf.em: Delete.
7 * testsuite/ld-elf/pr22450.d: Expect to fail for the Z80.
8 * testsuite/ld-elf/sec64k.exp: Fix Z80 assembly.
9 * testsuite/ld-unique/pr21529.s: Avoid register name conflict.
10 * testsuite/ld-unique/unique.s: Likewise.
11 * testsuite/ld-unique/unique_empty.s: Likewise.
12 * testsuite/ld-unique/unique_shared.s: Likewise.
13 * testsuite/ld-unique/unique.d: Updated expected output.
14 * testsuite/ld-z80/arch_z80n.d: New file.
15 * testsuite/ld-z80/comb_arch_z80_z80n.d: New file.
16 * testsuite/ld-z80/labels.s: Add more labels.
17 * testsuite/ld-z80/relocs.s: Add more reloc tests.
18 * testsuite/ld-z80/relocs_f_z80n.d: New file
20 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
23 * testsuite/ld-elf/pr25022.d: Xfail more targets which don't use
24 ldelf_before_place_orphans.
26 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
29 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
30 before_place_orphans_default.
31 * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
32 * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
33 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
34 * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Likewise.
35 * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
36 * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
37 * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
38 * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
39 * emultempl/vanilla.em (ld_${EMULATION_NAME}_emulation): Likewise.
40 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Use
41 ldelf_before_place_orphans.
42 * ldelf.c (ldelf_before_place_orphans): New.
43 * ldelf.h (ldelf_before_place_orphans): Likewise.
44 * ldemul.c (ldemul_before_place_orphans): Likewise.
45 (before_place_orphans_default): Likewise.
46 * ldemul.h (ldemul_before_place_orphans): Likewise.
47 (before_place_orphans_default): Likewise.
48 (ld_emulation_xfer_struct): Add before_place_orphans.
49 * ldlang.c (lang_process): Call ldemul_before_place_orphans
50 before lang_place_orphans.
51 * testsuite/ld-elf/pr25022.d: New file.
52 * testsuite/ld-elf/pr25022.s: Likewise.
53 * testsuite/ld-elf/pr25022.t: Likewise.
55 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
58 * testsuite/ld-elf/pr25490-1.d: New file.
59 * testsuite/ld-elf/pr25490-1.s: Likewise.
61 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
66 * testsuite/ld-elf/elf.exp: Run PR ld/25490 tests.
67 * testsuite/ld-elf/pr24526.d: New file.
68 * testsuite/ld-elf/pr24526.s: Likewise.
69 * testsuite/ld-elf/pr25021.d: Likewise.
70 * testsuite/ld-elf/pr25021.s: Likewise.
71 * testsuite/ld-elf/pr25490-2-16.rd: Likewise.
72 * testsuite/ld-elf/pr25490-2-32.rd: Likewise.
73 * testsuite/ld-elf/pr25490-2-64.rd: Likewise.
74 * testsuite/ld-elf/pr25490-2.s: Likewise.
75 * testsuite/ld-elf/pr25490-3-16.rd: Likewise.
76 * testsuite/ld-elf/pr25490-3-32.rd: Likewise.
77 * testsuite/ld-elf/pr25490-3-64.rd: Likewise.
78 * testsuite/ld-elf/pr25490-3.s: Likewise.
79 * testsuite/ld-elf/pr25490-4-16.rd: Likewise.
80 * testsuite/ld-elf/pr25490-4-32.rd: Likewise.
81 * testsuite/ld-elf/pr25490-4-64.rd: Likewise.
82 * testsuite/ld-elf/pr25490-4.s: Likewise.
83 * testsuite/ld-elf/pr25490-5-16.rd: Likewise.
84 * testsuite/ld-elf/pr25490-5-32.rd: Likewise.
85 * testsuite/ld-elf/pr25490-5-64.rd: Likewise.
86 * testsuite/ld-elf/pr25490-5.s: Likewise.
87 * testsuite/ld-elf/pr25490-6-16.rd: Likewise.
88 * testsuite/ld-elf/pr25490-6-32.rd: Likewise.
89 * testsuite/ld-elf/pr25490-6-64.rd: Likewise.
90 * testsuite/ld-elf/pr25490-6.s: Likewise.
92 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
94 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark
97 2020-02-06 Alan Modra <amodra@gmail.com>
99 * testsuite/ld-ifunc/ifunc.exp: Enable for more targets, specifying
100 targets that don't support ifunc rather than ones that do.
101 (contains_irelative_reloc): Match R_PARISC_IPLT.
102 * testsuite/ld-ifunc/lib.c: Don't use .set in asm.
103 * testsuite/ld-ifunc/ifunc-23-x86.s,
104 * testsuite/ld-ifunc/ifunc-24-x86.s,
105 * testsuite/ld-ifunc/ifunc-25-x86.s,
106 * testsuite/ld-ifunc/ifunc-4-local-x86.s,
107 * testsuite/ld-ifunc/ifunc-4-x86.s: Define _main.
108 * testsuite/ld-ifunc/ifunc-10-i386.d,
109 * testsuite/ld-ifunc/ifunc-11-i386.d,
110 * testsuite/ld-ifunc/ifunc-12-i386.d,
111 * testsuite/ld-ifunc/ifunc-13-i386.d,
112 * testsuite/ld-ifunc/ifunc-14a-i386.d,
113 * testsuite/ld-ifunc/ifunc-14b-i386.d,
114 * testsuite/ld-ifunc/ifunc-14c-i386.d,
115 * testsuite/ld-ifunc/ifunc-14d-i386.d,
116 * testsuite/ld-ifunc/ifunc-14e-i386.d,
117 * testsuite/ld-ifunc/ifunc-14f-i386.d,
118 * testsuite/ld-ifunc/ifunc-15-i386.d,
119 * testsuite/ld-ifunc/ifunc-16-i386-now.d,
120 * testsuite/ld-ifunc/ifunc-16-i386.d,
121 * testsuite/ld-ifunc/ifunc-17a-i386.d,
122 * testsuite/ld-ifunc/ifunc-17b-i386.d,
123 * testsuite/ld-ifunc/ifunc-18a-i386.d,
124 * testsuite/ld-ifunc/ifunc-18b-i386.d,
125 * testsuite/ld-ifunc/ifunc-19a-i386.d,
126 * testsuite/ld-ifunc/ifunc-19b-i386.d,
127 * testsuite/ld-ifunc/ifunc-2-i386-now.d,
128 * testsuite/ld-ifunc/ifunc-2-i386.d,
129 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
130 * testsuite/ld-ifunc/ifunc-2-local-i386.d,
131 * testsuite/ld-ifunc/ifunc-20-i386.d,
132 * testsuite/ld-ifunc/ifunc-21-i386.d,
133 * testsuite/ld-ifunc/ifunc-22-i386.d,
134 * testsuite/ld-ifunc/ifunc-26.d,
135 * testsuite/ld-ifunc/ifunc-5a-i386.d,
136 * testsuite/ld-ifunc/ifunc-5a-local-i386.d,
137 * testsuite/ld-ifunc/ifunc-5b-i386.d,
138 * testsuite/ld-ifunc/ifunc-5b-local-i386.d,
139 * testsuite/ld-ifunc/ifunc-5r-local-i386.d,
140 * testsuite/ld-ifunc/ifunc-6a-i386.d,
141 * testsuite/ld-ifunc/ifunc-6b-i386.d,
142 * testsuite/ld-ifunc/ifunc-7a-i386.d,
143 * testsuite/ld-ifunc/ifunc-7b-i386.d,
144 * testsuite/ld-ifunc/ifunc-8-i386.d,
145 * testsuite/ld-ifunc/ifunc-9-i386.d,
146 * testsuite/ld-ifunc/pr17154-i386-now.d,
147 * testsuite/ld-ifunc/pr17154-i386.d: xfail lynxos, nto, and solaris.
149 2020-02-06 Alan Modra <amodra@gmail.com>
151 * testsuite/lib/ld-lib.exp (is_generic): Delete.
152 * testsuite/ld-unique/unique.exp: Exclude tic6x.
154 2020-02-06 Alan Modra <amodra@gmail.com>
156 * configure.tgt (i[3-7]86-*-moss*): Don't clear targ_extra_ofiles.
157 (i[3-7]86-*-openbsd*, x86_64-*-openbsd*): Add.
159 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
162 * testsuite/ld-i386/pr22001-1c.S: Use "unique,N" in .section
164 * testsuite/ld-i386/tls-gd1.S: Likewise.
165 * testsuite/ld-x86-64/pr21481b.S: Likewise.
167 2020-01-30 Jan Beulich <jbeulich@suse.com>
169 * ld.texi: Remove space between @option and brace.
171 2020-01-29 Alan Modra <amodra@gmail.com>
174 * ldelf.c (ldelf_check_ld_so_conf): Add prefix parameter and
176 (ldelf_after_open): Add prefix parameter.
177 * ldelf.h (ldelf_after_open): Update prototype.
178 * emultempl/elf.em (gld${EMULATION_NAME}_after_open): Pass $prefix
180 * Makefile.am: Correct z80 dependencies.
181 * Makefile.in: Regenerate.
183 2020-01-28 Alan Modra <amodra@gmail.com>
185 * ldexp.c (fold_name): Don't print bfd_link_hash_lookup failed
188 2020-01-27 Alan Modra <amodra@gmail.com>
190 * testsuite/ld-elfvers/vers.exp: Replace case statements with
192 * testsuite/ld-ifunc/ifunc.exp: Likewise.
193 * testsuite/ld-unique/unique.exp: Likewise.
195 2020-01-27 H.J. Lu <hongjiu.lu@intel.com>
196 Alan Modra <amodra@gmail.com>
199 * testsuite/ld-elf/pr25458.map: New file.
200 * testsuite/ld-elf/pr25458.rd: Likewise.
201 * testsuite/ld-elf/pr25458a.s: Likewise.
202 * testsuite/ld-elf/pr25458b.s: Likewise.
203 * testsuite/ld-elf/shared.exp: Run PR ld/25458 test.
205 2020-01-22 H.J. Lu <hongjiu.lu@intel.com>
208 * testsuite/ld-x86-64/tls.exp: Skip GNU2 TLS tests only without
211 2020-01-22 Alan Modra <amodra@gmail.com>
213 * testsuite/ld-powerpc/tlsdesc3.d,
214 * testsuite/ld-powerpc/tlsdesc3.wf,
215 * testsuite/ld-powerpc/tlsdesc4.d,
216 * testsuite/ld-powerpc/tlsdesc4.s,
217 * testsuite/ld-powerpc/tlsdesc4.wf: New tests.
218 * testsuite/ld-powerpc/powerpc.exp: Run them.
220 2020-01-22 Alan Modra <amodra@gmail.com>
222 * emultempl/ppc64elf.em (ppc64_opt, PARSE_AND_LIST_LONGOPTS),
223 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Support
224 --tls-get-addr-regsave and --no-tls-get-addr-regsave.
225 (params): Init new field.
226 * ld.texi (--tls-get-addr-regsave, --no-tls-get-addr-regsave):
228 * testsuite/ld-powerpc/tlsdesc.s,
229 * testsuite/ld-powerpc/tlsdesc.d,
230 * testsuite/ld-powerpc/tlsdesc.wf,
231 * testsuite/ld-powerpc/tlsdesc2.d,
232 * testsuite/ld-powerpc/tlsdesc2.wf,
233 * testsuite/ld-powerpc/tlsexenors.d,
234 * testsuite/ld-powerpc/tlsexenors.r,
235 * testsuite/ld-powerpc/tlsexers.d,
236 * testsuite/ld-powerpc/tlsexers.r,
237 * testsuite/ld-powerpc/tlsexetocnors.d,
238 * testsuite/ld-powerpc/tlsexetocrs.d,
239 * testsuite/ld-powerpc/tlsexetocrs.r,
240 * testsuite/ld-powerpc/tlsopt6.d,
241 * testsuite/ld-powerpc/tlsopt6.wf: New.
242 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
244 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
247 * ldlang.c (ldlang_open_ctf): Fix error message typo.
248 * emultempl/z80elf.em (z80_elf_after_open): Likewise.
250 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
252 * testsuite/ld-elf/pr23900-1.d: Adjusted.
254 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
256 * testsuite/ld-elf/pr23900-1.d: Also pass -l to readelf.
258 2020-01-20 Nick Clifton <nickc@redhat.com>
260 * po/pt_BR.po: Updated Brazilian Portuguese translation.
261 * po/uk.po: Updated Ukranian translation.
263 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
266 * testsuite/ld-x86-64/pr25416-1.s: New file
267 * testsuite/ld-x86-64/pr25416-1a.d: Likewise.
268 * testsuite/ld-x86-64/pr25416-1b.d: Likewise.
269 * testsuite/ld-x86-64/pr25416-1.s: Likewise.
270 * testsuite/ld-x86-64/pr25416-2.s: Likewise.
271 * testsuite/ld-x86-64/pr25416-2a.d: Likewise.
272 * testsuite/ld-x86-64/pr25416-2b.d: Likewise.
273 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
274 * testsuite/ld-x86-64/pr25416-3.s: Likewise.
275 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
276 * testsuite/ld-x86-64/pr25416-4.s: Likewise.
277 * testsuite/ld-x86-64/pr25416-5a.c: Likewise.
278 * testsuite/ld-x86-64/pr25416-5b.s: Likewise.
279 * testsuite/ld-x86-64/pr25416-5c.s: Likewise.
280 * testsuite/ld-x86-64/pr25416-5d.s: Likewise.
281 * testsuite/ld-x86-64/pr25416-5e.s: Likewise.
282 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/25416 tests.
284 2020-01-20 Alan Modra <amodra@gmail.com>
286 * testsuite/ld-powerpc/tlsexe.d: Match new __tls_get_addr stub.
287 * testsuite/ld-powerpc/tlsexeno.d: Likewise.
288 * testsuite/ld-powerpc/tlsexetoc.d: Likewise.
289 * testsuite/ld-powerpc/tlsexetocno.d: Likewise.
290 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
292 2020-01-18 Roland McGrath <mcgrathr@google.com>
294 * testsuite/ld-x86-64/align-branch-1.d: Loosen instruction regexps
295 to admit whatever absolute address. The label-relative address is
296 what the test needs to verify.
298 2020-01-18 Nick Clifton <nickc@redhat.com>
300 * configure: Regenerate.
301 * po/ld.pot: Regenerate.
303 2020-01-18 Nick Clifton <nickc@redhat.com>
305 Binutils 2.34 branch created.
307 2020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
309 * scripttempl/elf32msp430_3.sc: Remove.
311 2020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
313 * scripttempl/elf32msp430.sc: Add input section rules for
314 .upper.{text,data,rodata,bss}.
315 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
316 * testsuite/ld-msp430-elf/upper-input-sections.s: New test.
318 2020-01-15 Lars Brinkhoff <lars@nocrew.org>
321 * temulparams/pdp11.sh (TARGET_PAGE_SIZE): Set to 8192.
323 2020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
325 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
326 * testsuite/ld-msp430-elf/reloc-lo-430x.s: New test.
328 2020-01-15 Alan Modra <amodra@gmail.com>
330 * testsuite/ld-powerpc/ambiguousv1b.d: Adjust expected output.
331 * testsuite/ld-powerpc/funref.s: Align func_tab.
332 * testsuite/ld-powerpc/funref2.s: Likewise.
333 * testsuite/ld-powerpc/funv1.s: Add dot symbols.
335 2020-01-14 Lili Cui <lili.cui@intel.com>
337 * testsuite/ld-i386/align-branch-1.d: Updated for i686-pc-elf.
339 2020-01-13 Alan Modra <amodra@gmail.com>
341 * po/BLD-POTFILES.in: Regenerate.
343 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
345 * testsuite/ld-arc/relax-local-pic.d: Improve matching patterns.
347 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
349 * Makefile.am: Remove earcelf_prof.c and earclinux_prof.c
351 * configure.tgt: Likewise.
352 * Makefile.in: Regenerate.
353 * emulparams/arcelf_prof.sh: Remove file.
354 * emulparams/arclinux_prof.sh: Likewise.
356 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
358 * scripttempl/elfarcv2.sc : Allow interrupt vector table to be
359 located at an arbitrary address. Use DWARF.sc file.
360 * scripttempl/elfarc.sc: Use DWARF.sc file.
362 2020-01-07 Alan Modra <amodra@gmail.com>
364 * testsuite/ld-mips-elf/eh-frame5.s,
365 * testsuite/ld-mips-elf/ehdr_start-new.s,
366 * testsuite/ld-mips-elf/ehdr_start-o32.s,
367 * testsuite/ld-mips-elf/mips16-call-global-1.s,
368 * testsuite/ld-mips-elf/mips16-intermix-1.s,
369 * testsuite/ld-mips-elf/mips16-pic-1b.s,
370 * testsuite/ld-mips-elf/mips16-pic-4c.s,
371 * testsuite/ld-mips-elf/no-shared-1-n64.s,
372 * testsuite/ld-mips-elf/no-shared-1-o32.s,
373 * testsuite/ld-mips-elf/pic-and-nonpic-1b-micromips.s,
374 * testsuite/ld-mips-elf/pic-and-nonpic-1b.s,
375 * testsuite/ld-mips-elf/pic-and-nonpic-2a.s,
376 * testsuite/ld-mips-elf/pic-and-nonpic-3b.s,
377 * testsuite/ld-mips-elf/pic-and-nonpic-4b.s,
378 * testsuite/ld-mips-elf/pic-and-nonpic-5a.s,
379 * testsuite/ld-mips-elf/pic-and-nonpic-6-n32c.s,
380 * testsuite/ld-mips-elf/pic-and-nonpic-6-n64c.s,
381 * testsuite/ld-mips-elf/pic-and-nonpic-6-o32c.s,
382 * testsuite/ld-mips-elf/pie.s,
383 * testsuite/ld-mips-elf/relax-jalr.s: Revert 2019-12-17 change.
385 2020-01-06 Nick Clifton <nickc@redhat.com>
388 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
389 command line when building libcomm1.o and pr13250 tests.
390 * testsuite/ld-plugin/lto.exp: Likewise for pr20267 tests.
392 2020-01-06 Nick Clifton <nickc@redhat.com>
395 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
396 command line when building pr19579 binaries.
398 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
400 * emultempl/pe.em: Add new option --enable-reloc-section.
401 * emultempl/pep.em: Likewise.
402 * ld.texi: Document --enable-reloc-section.
403 * pe-dll.c (pe_dll_build_sections): Use pe_dll_enable_reloc_section.
404 (pe_dll_fill_sections): Simplify by calling pe_exe_fill_sections.
405 * pe-dll.h: Add extern declaration of option flag.
406 * pep-dll.c (pe_dll_enable_reloc_section):
407 Add alias define for pep_dll_enable_reloc_section.
408 * pep-dll.h: Add extern declaration of option flag.
410 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
412 * Makefile.am: Add new target z80-elf
413 * configure.tgt: Likewise.
414 * Makefile.in: Regenerate.
415 * emultempl/z80.em: Add support for eZ80 and Z180 architectures.
416 * emulparams/elf32z80.sh: New file.
417 * emultempl/z80elf.em: Likewise.
418 * testsuite/ld-elf/comm-data4.s: Fix for Z80.
419 * testsuite/ld-elf/comm-data5.s: Fix for Z80.
420 * testsuite/ld-scripts/fill16.d: Fix for Z80.
421 * testsuite/ld-z80/arch_ez80_adl.d: Likewise.
422 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
423 * testsuite/ld-z80/arch_r800.d: Likewise.
424 * testsuite/ld-z80/arch_z180.d: Likewise.
425 * testsuite/ld-z80/arch_z80.d: Likewise.
426 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
427 * testsuite/ld-z80/comb_arch_z180.d: Likewise.
428 * testsuite/ld-z80/labels.s: Likewise.
429 * testsuite/ld-z80/relocs.s: Likewise.
430 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
431 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
432 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
433 * testsuite/ld-z80/z80.exp: Likewise.
434 * NEWS: Mention the new support.
436 2020-01-02 Tamar Christina <tamar.christina@arm.com>
440 * emultempl/aarch64elf.em (elf${ELFSIZE}_aarch64_add_stub_section):
441 Remove SEC_LINKER_CREATED.
442 * testsuite/ld-aarch64/aarch64-elf.exp: Add erratum835769-843419.
443 * testsuite/ld-aarch64/erratum835769-843419.d: New test.
445 2020-01-01 Alan Modra <amodra@gmail.com>
447 Update year range in copyright notice of all files.
449 For older changes see ChangeLog-2019
451 Copyright (C) 2020 Free Software Foundation, Inc.
453 Copying and distribution of this file, with or without modification,
454 are permitted in any medium without royalty provided the copyright
455 notice and this notice are preserved.
461 version-control: never