Stop the BFD library from complaining if a segment has no sections attached to it.
[deliverable/binutils-gdb.git] / ld / ChangeLog
... / ...
CommitLineData
12020-02-06 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR ld/25022
4 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
5 before_place_orphans_default.
6 * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
7 * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
8 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
9 * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Likewise.
10 * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
11 * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
12 * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
13 * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
14 * emultempl/vanilla.em (ld_${EMULATION_NAME}_emulation): Likewise.
15 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Use
16 ldelf_before_place_orphans.
17 * ldelf.c (ldelf_before_place_orphans): New.
18 * ldelf.h (ldelf_before_place_orphans): Likewise.
19 * ldemul.c (ldemul_before_place_orphans): Likewise.
20 (before_place_orphans_default): Likewise.
21 * ldemul.h (ldemul_before_place_orphans): Likewise.
22 (before_place_orphans_default): Likewise.
23 (ld_emulation_xfer_struct): Add before_place_orphans.
24 * ldlang.c (lang_process): Call ldemul_before_place_orphans
25 before lang_place_orphans.
26 * testsuite/ld-elf/pr25022.d: New file.
27 * testsuite/ld-elf/pr25022.s: Likewise.
28 * testsuite/ld-elf/pr25022.t: Likewise.
29
302020-02-06 H.J. Lu <hongjiu.lu@intel.com>
31
32 PR ld/25490
33 * testsuite/ld-elf/pr25490-1.d: New file.
34 * testsuite/ld-elf/pr25490-1.s: Likewise.
35
362020-02-06 H.J. Lu <hongjiu.lu@intel.com>
37
38 PR ld/24526
39 PR ld/25021
40 PR ld/25490
41 * testsuite/ld-elf/elf.exp: Run PR ld/25490 tests.
42 * testsuite/ld-elf/pr24526.d: New file.
43 * testsuite/ld-elf/pr24526.s: Likewise.
44 * testsuite/ld-elf/pr25021.d: Likewise.
45 * testsuite/ld-elf/pr25021.s: Likewise.
46 * testsuite/ld-elf/pr25490-2-16.rd: Likewise.
47 * testsuite/ld-elf/pr25490-2-32.rd: Likewise.
48 * testsuite/ld-elf/pr25490-2-64.rd: Likewise.
49 * testsuite/ld-elf/pr25490-2.s: Likewise.
50 * testsuite/ld-elf/pr25490-3-16.rd: Likewise.
51 * testsuite/ld-elf/pr25490-3-32.rd: Likewise.
52 * testsuite/ld-elf/pr25490-3-64.rd: Likewise.
53 * testsuite/ld-elf/pr25490-3.s: Likewise.
54 * testsuite/ld-elf/pr25490-4-16.rd: Likewise.
55 * testsuite/ld-elf/pr25490-4-32.rd: Likewise.
56 * testsuite/ld-elf/pr25490-4-64.rd: Likewise.
57 * testsuite/ld-elf/pr25490-4.s: Likewise.
58 * testsuite/ld-elf/pr25490-5-16.rd: Likewise.
59 * testsuite/ld-elf/pr25490-5-32.rd: Likewise.
60 * testsuite/ld-elf/pr25490-5-64.rd: Likewise.
61 * testsuite/ld-elf/pr25490-5.s: Likewise.
62 * testsuite/ld-elf/pr25490-6-16.rd: Likewise.
63 * testsuite/ld-elf/pr25490-6-32.rd: Likewise.
64 * testsuite/ld-elf/pr25490-6-64.rd: Likewise.
65 * testsuite/ld-elf/pr25490-6.s: Likewise.
66
672020-02-06 H.J. Lu <hongjiu.lu@intel.com>
68
69 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark
70 z80 as not supported.
71
722020-02-06 Alan Modra <amodra@gmail.com>
73
74 * testsuite/ld-ifunc/ifunc.exp: Enable for more targets, specifying
75 targets that don't support ifunc rather than ones that do.
76 (contains_irelative_reloc): Match R_PARISC_IPLT.
77 * testsuite/ld-ifunc/lib.c: Don't use .set in asm.
78 * testsuite/ld-ifunc/ifunc-23-x86.s,
79 * testsuite/ld-ifunc/ifunc-24-x86.s,
80 * testsuite/ld-ifunc/ifunc-25-x86.s,
81 * testsuite/ld-ifunc/ifunc-4-local-x86.s,
82 * testsuite/ld-ifunc/ifunc-4-x86.s: Define _main.
83 * testsuite/ld-ifunc/ifunc-10-i386.d,
84 * testsuite/ld-ifunc/ifunc-11-i386.d,
85 * testsuite/ld-ifunc/ifunc-12-i386.d,
86 * testsuite/ld-ifunc/ifunc-13-i386.d,
87 * testsuite/ld-ifunc/ifunc-14a-i386.d,
88 * testsuite/ld-ifunc/ifunc-14b-i386.d,
89 * testsuite/ld-ifunc/ifunc-14c-i386.d,
90 * testsuite/ld-ifunc/ifunc-14d-i386.d,
91 * testsuite/ld-ifunc/ifunc-14e-i386.d,
92 * testsuite/ld-ifunc/ifunc-14f-i386.d,
93 * testsuite/ld-ifunc/ifunc-15-i386.d,
94 * testsuite/ld-ifunc/ifunc-16-i386-now.d,
95 * testsuite/ld-ifunc/ifunc-16-i386.d,
96 * testsuite/ld-ifunc/ifunc-17a-i386.d,
97 * testsuite/ld-ifunc/ifunc-17b-i386.d,
98 * testsuite/ld-ifunc/ifunc-18a-i386.d,
99 * testsuite/ld-ifunc/ifunc-18b-i386.d,
100 * testsuite/ld-ifunc/ifunc-19a-i386.d,
101 * testsuite/ld-ifunc/ifunc-19b-i386.d,
102 * testsuite/ld-ifunc/ifunc-2-i386-now.d,
103 * testsuite/ld-ifunc/ifunc-2-i386.d,
104 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
105 * testsuite/ld-ifunc/ifunc-2-local-i386.d,
106 * testsuite/ld-ifunc/ifunc-20-i386.d,
107 * testsuite/ld-ifunc/ifunc-21-i386.d,
108 * testsuite/ld-ifunc/ifunc-22-i386.d,
109 * testsuite/ld-ifunc/ifunc-26.d,
110 * testsuite/ld-ifunc/ifunc-5a-i386.d,
111 * testsuite/ld-ifunc/ifunc-5a-local-i386.d,
112 * testsuite/ld-ifunc/ifunc-5b-i386.d,
113 * testsuite/ld-ifunc/ifunc-5b-local-i386.d,
114 * testsuite/ld-ifunc/ifunc-5r-local-i386.d,
115 * testsuite/ld-ifunc/ifunc-6a-i386.d,
116 * testsuite/ld-ifunc/ifunc-6b-i386.d,
117 * testsuite/ld-ifunc/ifunc-7a-i386.d,
118 * testsuite/ld-ifunc/ifunc-7b-i386.d,
119 * testsuite/ld-ifunc/ifunc-8-i386.d,
120 * testsuite/ld-ifunc/ifunc-9-i386.d,
121 * testsuite/ld-ifunc/pr17154-i386-now.d,
122 * testsuite/ld-ifunc/pr17154-i386.d: xfail lynxos, nto, and solaris.
123
1242020-02-06 Alan Modra <amodra@gmail.com>
125
126 * testsuite/lib/ld-lib.exp (is_generic): Delete.
127 * testsuite/ld-unique/unique.exp: Exclude tic6x.
128
1292020-02-06 Alan Modra <amodra@gmail.com>
130
131 * configure.tgt (i[3-7]86-*-moss*): Don't clear targ_extra_ofiles.
132 (i[3-7]86-*-openbsd*, x86_64-*-openbsd*): Add.
133
1342020-02-02 H.J. Lu <hongjiu.lu@intel.com>
135
136 PR gas/25380
137 * testsuite/ld-i386/pr22001-1c.S: Use "unique,N" in .section
138 directives.
139 * testsuite/ld-i386/tls-gd1.S: Likewise.
140 * testsuite/ld-x86-64/pr21481b.S: Likewise.
141
1422020-01-30 Jan Beulich <jbeulich@suse.com>
143
144 * ld.texi: Remove space between @option and brace.
145
1462020-01-29 Alan Modra <amodra@gmail.com>
147
148 PR 25477
149 * ldelf.c (ldelf_check_ld_so_conf): Add prefix parameter and
150 correct concat.
151 (ldelf_after_open): Add prefix parameter.
152 * ldelf.h (ldelf_after_open): Update prototype.
153 * emultempl/elf.em (gld${EMULATION_NAME}_after_open): Pass $prefix
154 to ldelf_after_open.
155 * Makefile.am: Correct z80 dependencies.
156 * Makefile.in: Regenerate.
157
1582020-01-28 Alan Modra <amodra@gmail.com>
159
160 * ldexp.c (fold_name): Don't print bfd_link_hash_lookup failed
161 in first phase.
162
1632020-01-27 Alan Modra <amodra@gmail.com>
164
165 * testsuite/ld-elfvers/vers.exp: Replace case statements with
166 switch statements.
167 * testsuite/ld-ifunc/ifunc.exp: Likewise.
168 * testsuite/ld-unique/unique.exp: Likewise.
169
1702020-01-27 H.J. Lu <hongjiu.lu@intel.com>
171 Alan Modra <amodra@gmail.com>
172
173 PR ld/25458
174 * testsuite/ld-elf/pr25458.map: New file.
175 * testsuite/ld-elf/pr25458.rd: Likewise.
176 * testsuite/ld-elf/pr25458a.s: Likewise.
177 * testsuite/ld-elf/pr25458b.s: Likewise.
178 * testsuite/ld-elf/shared.exp: Run PR ld/25458 test.
179
1802020-01-22 H.J. Lu <hongjiu.lu@intel.com>
181
182 PR ld/25416
183 * testsuite/ld-x86-64/tls.exp: Skip GNU2 TLS tests only without
184 compiler support.
185
1862020-01-22 Alan Modra <amodra@gmail.com>
187
188 * testsuite/ld-powerpc/tlsdesc3.d,
189 * testsuite/ld-powerpc/tlsdesc3.wf,
190 * testsuite/ld-powerpc/tlsdesc4.d,
191 * testsuite/ld-powerpc/tlsdesc4.s,
192 * testsuite/ld-powerpc/tlsdesc4.wf: New tests.
193 * testsuite/ld-powerpc/powerpc.exp: Run them.
194
1952020-01-22 Alan Modra <amodra@gmail.com>
196
197 * emultempl/ppc64elf.em (ppc64_opt, PARSE_AND_LIST_LONGOPTS),
198 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Support
199 --tls-get-addr-regsave and --no-tls-get-addr-regsave.
200 (params): Init new field.
201 * ld.texi (--tls-get-addr-regsave, --no-tls-get-addr-regsave):
202 Document.
203 * testsuite/ld-powerpc/tlsdesc.s,
204 * testsuite/ld-powerpc/tlsdesc.d,
205 * testsuite/ld-powerpc/tlsdesc.wf,
206 * testsuite/ld-powerpc/tlsdesc2.d,
207 * testsuite/ld-powerpc/tlsdesc2.wf,
208 * testsuite/ld-powerpc/tlsexenors.d,
209 * testsuite/ld-powerpc/tlsexenors.r,
210 * testsuite/ld-powerpc/tlsexers.d,
211 * testsuite/ld-powerpc/tlsexers.r,
212 * testsuite/ld-powerpc/tlsexetocnors.d,
213 * testsuite/ld-powerpc/tlsexetocrs.d,
214 * testsuite/ld-powerpc/tlsexetocrs.r,
215 * testsuite/ld-powerpc/tlsopt6.d,
216 * testsuite/ld-powerpc/tlsopt6.wf: New.
217 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
218
2192020-01-22 Yuri Chornoivan <yurchor@mageia.org>
220
221 PR 25417
222 * ldlang.c (ldlang_open_ctf): Fix error message typo.
223 * emultempl/z80elf.em (z80_elf_after_open): Likewise.
224
2252020-01-21 H.J. Lu <hongjiu.lu@intel.com>
226
227 * testsuite/ld-elf/pr23900-1.d: Adjusted.
228
2292020-01-21 H.J. Lu <hongjiu.lu@intel.com>
230
231 * testsuite/ld-elf/pr23900-1.d: Also pass -l to readelf.
232
2332020-01-20 Nick Clifton <nickc@redhat.com>
234
235 * po/pt_BR.po: Updated Brazilian Portuguese translation.
236 * po/uk.po: Updated Ukranian translation.
237
2382020-01-20 H.J. Lu <hongjiu.lu@intel.com>
239
240 PR ld/25416
241 * testsuite/ld-x86-64/pr25416-1.s: New file
242 * testsuite/ld-x86-64/pr25416-1a.d: Likewise.
243 * testsuite/ld-x86-64/pr25416-1b.d: Likewise.
244 * testsuite/ld-x86-64/pr25416-1.s: Likewise.
245 * testsuite/ld-x86-64/pr25416-2.s: Likewise.
246 * testsuite/ld-x86-64/pr25416-2a.d: Likewise.
247 * testsuite/ld-x86-64/pr25416-2b.d: Likewise.
248 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
249 * testsuite/ld-x86-64/pr25416-3.s: Likewise.
250 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
251 * testsuite/ld-x86-64/pr25416-4.s: Likewise.
252 * testsuite/ld-x86-64/pr25416-5a.c: Likewise.
253 * testsuite/ld-x86-64/pr25416-5b.s: Likewise.
254 * testsuite/ld-x86-64/pr25416-5c.s: Likewise.
255 * testsuite/ld-x86-64/pr25416-5d.s: Likewise.
256 * testsuite/ld-x86-64/pr25416-5e.s: Likewise.
257 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/25416 tests.
258
2592020-01-20 Alan Modra <amodra@gmail.com>
260
261 * testsuite/ld-powerpc/tlsexe.d: Match new __tls_get_addr stub.
262 * testsuite/ld-powerpc/tlsexeno.d: Likewise.
263 * testsuite/ld-powerpc/tlsexetoc.d: Likewise.
264 * testsuite/ld-powerpc/tlsexetocno.d: Likewise.
265 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
266
2672020-01-18 Roland McGrath <mcgrathr@google.com>
268
269 * testsuite/ld-x86-64/align-branch-1.d: Loosen instruction regexps
270 to admit whatever absolute address. The label-relative address is
271 what the test needs to verify.
272
2732020-01-18 Nick Clifton <nickc@redhat.com>
274
275 * configure: Regenerate.
276 * po/ld.pot: Regenerate.
277
2782020-01-18 Nick Clifton <nickc@redhat.com>
279
280 Binutils 2.34 branch created.
281
2822020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
283
284 * scripttempl/elf32msp430_3.sc: Remove.
285
2862020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
287
288 * scripttempl/elf32msp430.sc: Add input section rules for
289 .upper.{text,data,rodata,bss}.
290 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
291 * testsuite/ld-msp430-elf/upper-input-sections.s: New test.
292
2932020-01-15 Lars Brinkhoff <lars@nocrew.org>
294
295 PR 20694
296 * temulparams/pdp11.sh (TARGET_PAGE_SIZE): Set to 8192.
297
2982020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
299
300 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
301 * testsuite/ld-msp430-elf/reloc-lo-430x.s: New test.
302
3032020-01-15 Alan Modra <amodra@gmail.com>
304
305 * testsuite/ld-powerpc/ambiguousv1b.d: Adjust expected output.
306 * testsuite/ld-powerpc/funref.s: Align func_tab.
307 * testsuite/ld-powerpc/funref2.s: Likewise.
308 * testsuite/ld-powerpc/funv1.s: Add dot symbols.
309
3102020-01-14 Lili Cui <lili.cui@intel.com>
311
312 * testsuite/ld-i386/align-branch-1.d: Updated for i686-pc-elf.
313
3142020-01-13 Alan Modra <amodra@gmail.com>
315
316 * po/BLD-POTFILES.in: Regenerate.
317
3182020-01-13 Claudiu Zissulescu <claziss@gmail.com>
319
320 * testsuite/ld-arc/relax-local-pic.d: Improve matching patterns.
321
3222020-01-13 Claudiu Zissulescu <claziss@gmail.com>
323
324 * Makefile.am: Remove earcelf_prof.c and earclinux_prof.c
325 emulations.
326 * configure.tgt: Likewise.
327 * Makefile.in: Regenerate.
328 * emulparams/arcelf_prof.sh: Remove file.
329 * emulparams/arclinux_prof.sh: Likewise.
330
3312020-01-13 Claudiu Zissulescu <claziss@gmail.com>
332
333 * scripttempl/elfarcv2.sc : Allow interrupt vector table to be
334 located at an arbitrary address. Use DWARF.sc file.
335 * scripttempl/elfarc.sc: Use DWARF.sc file.
336
3372020-01-07 Alan Modra <amodra@gmail.com>
338
339 * testsuite/ld-mips-elf/eh-frame5.s,
340 * testsuite/ld-mips-elf/ehdr_start-new.s,
341 * testsuite/ld-mips-elf/ehdr_start-o32.s,
342 * testsuite/ld-mips-elf/mips16-call-global-1.s,
343 * testsuite/ld-mips-elf/mips16-intermix-1.s,
344 * testsuite/ld-mips-elf/mips16-pic-1b.s,
345 * testsuite/ld-mips-elf/mips16-pic-4c.s,
346 * testsuite/ld-mips-elf/no-shared-1-n64.s,
347 * testsuite/ld-mips-elf/no-shared-1-o32.s,
348 * testsuite/ld-mips-elf/pic-and-nonpic-1b-micromips.s,
349 * testsuite/ld-mips-elf/pic-and-nonpic-1b.s,
350 * testsuite/ld-mips-elf/pic-and-nonpic-2a.s,
351 * testsuite/ld-mips-elf/pic-and-nonpic-3b.s,
352 * testsuite/ld-mips-elf/pic-and-nonpic-4b.s,
353 * testsuite/ld-mips-elf/pic-and-nonpic-5a.s,
354 * testsuite/ld-mips-elf/pic-and-nonpic-6-n32c.s,
355 * testsuite/ld-mips-elf/pic-and-nonpic-6-n64c.s,
356 * testsuite/ld-mips-elf/pic-and-nonpic-6-o32c.s,
357 * testsuite/ld-mips-elf/pie.s,
358 * testsuite/ld-mips-elf/relax-jalr.s: Revert 2019-12-17 change.
359
3602020-01-06 Nick Clifton <nickc@redhat.com>
361
362 PR 25327
363 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
364 command line when building libcomm1.o and pr13250 tests.
365 * testsuite/ld-plugin/lto.exp: Likewise for pr20267 tests.
366
3672020-01-06 Nick Clifton <nickc@redhat.com>
368
369 PR 25326
370 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
371 command line when building pr19579 binaries.
372
3732020-01-03 Hannes Domani <ssbssa@yahoo.de>
374
375 * emultempl/pe.em: Add new option --enable-reloc-section.
376 * emultempl/pep.em: Likewise.
377 * ld.texi: Document --enable-reloc-section.
378 * pe-dll.c (pe_dll_build_sections): Use pe_dll_enable_reloc_section.
379 (pe_dll_fill_sections): Simplify by calling pe_exe_fill_sections.
380 * pe-dll.h: Add extern declaration of option flag.
381 * pep-dll.c (pe_dll_enable_reloc_section):
382 Add alias define for pep_dll_enable_reloc_section.
383 * pep-dll.h: Add extern declaration of option flag.
384
3852020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
386
387 * Makefile.am: Add new target z80-elf
388 * configure.tgt: Likewise.
389 * Makefile.in: Regenerate.
390 * emultempl/z80.em: Add support for eZ80 and Z180 architectures.
391 * emulparams/elf32z80.sh: New file.
392 * emultempl/z80elf.em: Likewise.
393 * testsuite/ld-elf/comm-data4.s: Fix for Z80.
394 * testsuite/ld-elf/comm-data5.s: Fix for Z80.
395 * testsuite/ld-scripts/fill16.d: Fix for Z80.
396 * testsuite/ld-z80/arch_ez80_adl.d: Likewise.
397 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
398 * testsuite/ld-z80/arch_r800.d: Likewise.
399 * testsuite/ld-z80/arch_z180.d: Likewise.
400 * testsuite/ld-z80/arch_z80.d: Likewise.
401 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
402 * testsuite/ld-z80/comb_arch_z180.d: Likewise.
403 * testsuite/ld-z80/labels.s: Likewise.
404 * testsuite/ld-z80/relocs.s: Likewise.
405 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
406 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
407 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
408 * testsuite/ld-z80/z80.exp: Likewise.
409 * NEWS: Mention the new support.
410
4112020-01-02 Tamar Christina <tamar.christina@arm.com>
412
413 PR 25210
414 PR 24753
415 * emultempl/aarch64elf.em (elf${ELFSIZE}_aarch64_add_stub_section):
416 Remove SEC_LINKER_CREATED.
417 * testsuite/ld-aarch64/aarch64-elf.exp: Add erratum835769-843419.
418 * testsuite/ld-aarch64/erratum835769-843419.d: New test.
419
4202020-01-01 Alan Modra <amodra@gmail.com>
421
422 Update year range in copyright notice of all files.
423
424For older changes see ChangeLog-2019
425\f
426Copyright (C) 2020 Free Software Foundation, Inc.
427
428Copying and distribution of this file, with or without modification,
429are permitted in any medium without royalty provided the copyright
430notice and this notice are preserved.
431
432Local Variables:
433mode: change-log
434left-margin: 8
435fill-column: 74
436version-control: never
437End:
This page took 0.035286 seconds and 4 git commands to generate.