Replace "use use" in a warning message with "use".
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2020-04-02 Nick Clifton <nickc@redhat.com>
2
3 PR ld/25747
4 * ldfile.c (ldfile_open_file): Fix typo in warning message.
5
6 2020-04-01 H.J. Lu <hongjiu.lu@intel.com>
7
8 PR ld/25749
9 PR ld/25754
10 * testsuite/ld-elf/linux-x86.exp: Run ld/25749 tests.
11 * testsuite/ld-elf/pr25749-1.c: New file.
12 * testsuite/ld-elf/pr25749-1a.c: Likewise.
13 * testsuite/ld-elf/pr25749-1b.c: Likewise.
14 * testsuite/ld-elf/pr25749-1b.err: Likewise.
15 * testsuite/ld-elf/pr25749-1c.c: Likewise.
16 * testsuite/ld-elf/pr25749-1d.c: Likewise.
17 * testsuite/ld-elf/pr25749-2.c: Likewise.
18 * testsuite/ld-elf/pr25749-2a.s: Likewise.
19 * testsuite/ld-elf/pr25749-2b.s: Likewise.
20 * testsuite/ld-elf/pr25749.rd: Likewise.
21 * testsuite/ld-elf/pr25754-1a.c: Likewise.
22 * testsuite/ld-elf/pr25754-1b.s: Likewise.
23 * testsuite/ld-elf/pr25754-2a.c: Likewise.
24 * testsuite/ld-elf/pr25754-2b.err: Likewise.
25 * testsuite/ld-elf/pr25754-2b.s: Likewise.
26 * testsuite/ld-elf/pr25754-3a.c: Likewise.
27 * testsuite/ld-elf/pr25754-3b.s: Likewise.
28 * testsuite/ld-elf/pr25754-4a.c: Likewise.
29 * testsuite/ld-elf/pr25754-4b.s: Likewise.
30 * testsuite/ld-elf/pr25754-4c.s: Likewise.
31 * testsuite/ld-elf/pr25754-5a.c: Likewise.
32 * testsuite/ld-elf/pr25754-5b.s: Likewise.
33 * testsuite/ld-elf/pr25754-5c.s: Likewise.
34 * testsuite/ld-elf/pr25754-6a.c: Likewise.
35 * testsuite/ld-elf/pr25754-6b.s: Likewise.
36 * testsuite/ld-x86-64/pr19609-6a.d: Don't expect linker error.
37
38 2020-04-01 Tamar Christina <tamar.christina@arm.com>
39
40 PR ld/16017
41 * testsuite/ld-arm/arm-elf.exp (thumb-plt, thumb-plt-got): Skip for NaCL.
42
43 2020-04-01 Nick Clifton <nickc@redhat.com>
44
45 PR ld/25747
46 * ldfile.c (ldfile_open_file): If a search for a library fails,
47 but there is a file that would match if it had a "lib" prefix to
48 its name, then tell the user.
49
50 2020-04-01 Tamar Christina <tamar.christina@arm.com>
51
52 PR ld/16017
53 * testsuite/ld-arm/arm-elf.exp (thumb-plt-got): New.
54 * testsuite/ld-arm/thumb-plt-got.d: New test.
55
56 2020-04-01 Tamar Christina <tamar.christina@arm.com>
57
58 * testsuite/ld-arm/arm-elf.exp (thumb-plt): New.
59 * testsuite/ld-arm/thumb-plt.d: New test.
60 * testsuite/ld-arm/thumb-plt.s: New test.
61
62 2020-04-01 Hans-Peter Nilsson <hp@bitrange.com>
63
64 * testsuite/ld-scripts/defined4.d: Don't xfail mmix-*-*.
65
66 2020-03-30 Nick Clifton <nickc@redhat.com>
67
68 PR binutils/25662
69 * emultempl/pe.em (after_open): Replace initialisation of the
70 insert_timestamp field in the pe_data structure with an
71 initialisation of the timestamp field.
72 * emultemp/pep.em: Likewise.
73 * pe-dll.c (fill_edata): Use the timestamp field in the pe_data
74 structure instead of the insert_timestamp field.
75
76 2020-03-28 H.J. Lu <hongjiu.lu@intel.com>
77
78 PR 25732
79 * emulparams/elf_i386_ldso.sh (COMMONPAGESIZE): New.
80 * testsuite/ld-elf/shared.exp:Don't xfail pr20995-2 tests for
81 Solaris.
82
83 2020-03-27 H.J. Lu <hongjiu.lu@intel.com>
84
85 PR 25732
86 * testsuite/ld-elf/shared.exp: Xfail pr20995-2 tests for Solaris.
87
88 2020-03-27 H.J. Lu <hongjiu.lu@intel.com>
89
90 PR 25732
91 * testsuite/ld-ifunc/ifunc-23a-x86.d: Add notarget for Solaris.
92 * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
93 * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
94
95 2020-03-25 Alan Modra <amodra@gmail.com>
96
97 * testsuite/ld-elf/compress1c.d: xfail h8300.
98 * testsuite/ld-elf/compressed1c.d: Likewise.
99 * testsuite/ld-elf/compressed1e.d: Likewise.
100 * testsuite/ld-elf/dynamic1.d: Likewise.
101 * testsuite/ld-elf/dynsym1.d: Likewise.
102 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
103 * testsuite/ld-elf/exclude3b.d: Likewise.
104 * testsuite/ld-elf/export-class.exp: Don't run without -shared support.
105 * testsuite/ld-elf/global1.d: xfail h8300.
106 * testsuite/ld-elf/hash.d: Likewise.
107 * testsuite/ld-elf/loadaddr1.d: Likewise.
108 * testsuite/ld-elf/loadaddr2.d: Likewise.
109 * testsuite/ld-elf/local1.d: Likewise.
110 * testsuite/ld-elf/mbind1b.d: Likewise.
111 * testsuite/ld-elf/mbind1c.d: Likewise.
112 * testsuite/ld-elf/now-1.d: Likewise.
113 * testsuite/ld-elf/now-2.d: Likewise.
114 * testsuite/ld-elf/now-3.d: Likewise.
115 * testsuite/ld-elf/now-4.d: Likewise.
116 * testsuite/ld-elf/pie.d: Likewise.
117 * testsuite/ld-elf/pr12975.d: Likewise.
118 * testsuite/ld-elf/pr13177.d: Likewise.
119 * testsuite/ld-elf/pr13195.d: Likewise.
120 * testsuite/ld-elf/pr16322.d: Likewise.
121 * testsuite/ld-elf/pr16498a.d: Likewise.
122 * testsuite/ld-elf/pr16498b.d: Likewise.
123 * testsuite/ld-elf/pr17615.d: Likewise.
124 * testsuite/ld-elf/pr19162.d: Likewise.
125 * testsuite/ld-elf/pr19539.d: Likewise.
126 * testsuite/ld-elf/pr19617a.d: Likewise.
127 * testsuite/ld-elf/pr19698.d: Likewise.
128 * testsuite/ld-elf/pr20513c.d: Likewise.
129 * testsuite/ld-elf/pr20513d.d: Likewise.
130 * testsuite/ld-elf/pr21389a.d: Likewise.
131 * testsuite/ld-elf/pr21389b.d: Likewise.
132 * testsuite/ld-elf/pr21389c.d: Likewise.
133 * testsuite/ld-elf/pr21562a.d: Likewise.
134 * testsuite/ld-elf/pr21562b.d: Likewise.
135 * testsuite/ld-elf/pr21562c.d: Likewise.
136 * testsuite/ld-elf/pr21562d.d: Likewise.
137 * testsuite/ld-elf/pr21562e.d: Likewise.
138 * testsuite/ld-elf/pr21562f.d: Likewise.
139 * testsuite/ld-elf/pr21562g.d: Likewise.
140 * testsuite/ld-elf/pr21562h.d: Likewise.
141 * testsuite/ld-elf/pr21562i.d: Likewise.
142 * testsuite/ld-elf/pr21562j.d: Likewise.
143 * testsuite/ld-elf/pr21562k.d: Likewise.
144 * testsuite/ld-elf/pr21562l.d: Likewise.
145 * testsuite/ld-elf/pr21562m.d: Likewise.
146 * testsuite/ld-elf/pr21562n.d: Likewise.
147 * testsuite/ld-elf/pr21903a.d: Likewise.
148 * testsuite/ld-elf/pr21903b.d: Likewise.
149 * testsuite/ld-elf/pr21903d.d: Likewise.
150 * testsuite/ld-elf/pr22269a.d: Likewise.
151 * testsuite/ld-elf/pr22269b.d: Likewise.
152 * testsuite/ld-elf/pr22393-1a.d: Likewise.
153 * testsuite/ld-elf/pr22393-1b.d: Likewise.
154 * testsuite/ld-elf/pr22393-1c.d: Likewise.
155 * testsuite/ld-elf/pr22393-1d.d: Likewise.
156 * testsuite/ld-elf/pr22393-1e.d: Likewise.
157 * testsuite/ld-elf/pr22393-1f.d: Likewise.
158 * testsuite/ld-elf/pr22423.d: Likewise.
159 * testsuite/ld-elf/pr22450.d: xfail avr, crx, h8300, ip2k, m68hc11,
160 and xc16x.
161 * testsuite/ld-elf/pr23658-1c.d: xfail h8300.
162 * testsuite/ld-elf/pr25708.d: xfail h8300 and hppa64.
163 * testsuite/ld-elf/rpath-1.d: xfail h8300.
164 * testsuite/ld-elf/rpath-2.d: Likewise.
165 * testsuite/ld-elf/runpath-1.d: Likewise.
166 * testsuite/ld-elf/runpath-2.d: Likewise.
167 * testsuite/ld-elf/sizeofb.d: Likewise.
168 * testsuite/ld-elf/startofb.d: Likewise.
169 * testsuite/ld-elf/strtab.d: Likewise.
170 * testsuite/ld-elf/textaddr1.d: Likewise.
171 * testsuite/ld-elf/textaddr2.d: Likewise.
172 * testsuite/ld-elf/textaddr4.d: Likewise.
173 * testsuite/ld-elf/textaddr5.d: Likewise.
174 * testsuite/ld-elf/textaddr6.d: Likewise.
175 * testsuite/ld-elf/unknown2.d: Likewise.
176 * testsuite/ld-undefined/entry-3.d: Likewise.
177 * testsuite/ld-undefined/entry-4.d: Likewise.
178 * testsuite/ld-h8300/h8300.exp: Pass appropriate ld -m option.
179 * testsuite/ld-h8300/gcsection.d: Remove ld -m option and relax
180 file format match.
181 * testsuite/ld-h8300/relax-2.d: Likewise.
182 * testsuite/ld-h8300/relax-3.d: Likewise.
183 * testsuite/ld-h8300/relax-4.d: Likewise.
184 * testsuite/ld-h8300/relax-5.d: Likewise.
185 * testsuite/ld-h8300/relax-6.d: Likewise.
186 * testsuite/ld-h8300/relax-7.d: Likewise.
187 * testsuite/ld-h8300/relax.d: Relax file format match.
188
189 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
190
191 PR binutils/25708
192 * testsuite/ld-elf/pr25708.d: New file.
193
194 2020-03-23 Alan Modra <amodra@gmail.com>
195
196 * Makefile.am (ALL_EMULATION_SOURCES): Reinstate ei386aout.c.
197 Include ei386aout dep file.
198 * Makefile.in: Regenerate.
199 * po/BLD-POTFILES.in: Regenerate.
200
201 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
202
203 * testsuite/ld-plugin/lto.exp (lto_link_tests): Run PR ld/25355
204 test only for GCC 10 or newer.
205
206 2020-03-20 Alan Modra <amodra@gmail.com>
207
208 * testplug.c (parse_symdefstr): Use %hhi to read sym->def, and
209 clear new fields.
210 * testplug2.c (parse_symdefstr): Likewise.
211 * testplug3.c (parse_symdefstr): Likewise.
212 * testplug4.c (parse_symdefstr): Likewise.
213
214 2020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
215
216 * testsuite/ld-arm/non-contiguous-arm4.d: Fix expected output.
217 * testsuite/ld-powerpc/non-contiguous-powerpc.d: Likewise.
218
219 2020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
220
221 * emultempl/xtensaelf.em: Emit a fatal error message
222 instead of calling abort.
223 * ldlang.c: Likewise.
224
225 2020-03-14 Alan Modra <amodra@gmail.com>
226
227 * testsuite/ld-elf/non-contiguous.d: Don't xfail generic ELF
228 targets. Don't skip xtensa, xfail instead.
229
230 2020-03-13 Christophe Lyon <christophe.lyon@linaro.org>
231
232 * ldlang.c (lang_add_section): Add support for
233 non_contiguous_regions.
234 (size_input_section): Likewise.
235 (lang_size_sections_1): Likewise.
236 (process_insert_statements): Likewise.
237 * ldlex.h (option_values): Add OPTION_NON_CONTIGUOUS_REGIONS and
238 OPTION_NON_CONTIGUOUS_REGIONS_WARNINGS.
239 * lexsup.c (ld_options): Add entries for
240 --enable-non-contiguous-regions and
241 --enable-non-contiguous-regions-warnings.
242 (parse_args): Handle it.
243 * NEWS: Add --enable-non-contiguous-regions and
244 --enable-non-contiguous-regions-warnings.
245 * ld.texi: Add --enable-non-contiguous-regions and
246 --enable-non-contiguous-regions-warnings documentation.
247 * emultempl/armelf.em (elf32_arm_add_stub_section): Add
248 SEC_LINKER_CREATED flag.
249 * emultempl/xtensaelf.em (ld_build_required_section_dependence):
250 Emit an error when --enable-non-contiguous-regions is used.
251 * testsuite/ld-elf/non-contiguous.d: New.
252 * testsuite/ld-elf/non-contiguous.ld: New.
253 * testsuite/ld-elf/non-contiguous.s: New.
254 * testsuite/ld-arm/arm-elf.exp: Run the new tests.
255 * testsuite/ld-arm/arm-elf/non-contiguous-arm.s: New.
256 * testsuite/ld-arm/arm-elf/non-contiguous-arm.d: New.
257 * testsuite/ld-arm/arm-elf/non-contiguous-arm.ld: New.
258 * testsuite/ld-arm/arm-elf/non-contiguous-arm2.d: New.
259 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
260 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.d: New.
261 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
262 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.d: New.
263 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.ld: New.
264 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.d: New.
265 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.ld: New.
266 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.d: New.
267 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.ld: New.
268 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
269 * testsuite/ld-powerpc/non-contiguous-powerpc.d: New.
270 * testsuite/ld-powerpc/non-contiguous-powerpc.ld: New.
271 * testsuite/ld-powerpc/non-contiguous-powerpc.sd: New.
272 * testsuite/ld-powerpc/non-contiguous-powerpc64.d: New.
273
274 2020-03-13 H.J. Lu <hongjiu.lu@intel.com>
275
276 PR ld/24920
277 * emulparams/elf32_x86_64.sh: Use static.sh.
278 * emulparams/elf_i386.sh: Likewise.
279 * emulparams/elf_x86_64.sh: Likewise.
280 * emulparams/static.sh: New file.
281 * emultempl/elf-x86.em: Include "ldlex.h".
282 * testsuite/ld-elf/pr24920.err: New file.
283 * testsuite/ld-elf/linux-x86.exp: Run ld/24920 tests.
284
285 2020-03-13 Christian Eggers <ceggers@gmx.de>
286
287 * ldexp.c (fold_name): Return SIZEOF_HEADERS in bytes.
288
289 2020-03-11 Alan Modra <amodra@gmail.com>
290
291 * ldelf.c (elf_orphan_compatible): Return false when two sections
292 have differing SHF_MASKPROC or SHF_MASKOS flags.
293
294 2020-03-05 Alan Modra <amodra@gmail.com>
295
296 PR 25570
297 * ldlang.c (lang_size_sections_1): Don't report changes on
298 second and subsequent iterations that make no change in
299 alignment from that already reported.
300
301 2020-03-05 Alan Modra <amodra@gmail.com>
302
303 PR 25570
304 * ldlang.c (lang_sizing_iteration): New static var.
305 (lang_size_sections_1): Warn about no memory region only on first
306 iteration. Warn about changing start address on first iteration
307 then any delta from that on subsequent iterations. Report a signed
308 delta.
309 (one_lang_size_sections_pass): Increment lang_sizing_iteration.
310
311 2020-03-03 Nick Clifton <nickc@redhat.com>
312
313 PR 25588
314 * ld.texi (Options): Update the description of the --rpath-link
315 option.
316
317 2020-03-02 Alan Modra <amodra@gmail.com>
318
319 * plugin.c (plugin_object_p): Return a bfd_cleanup.
320 (plugin_cleanup): New function.
321
322 2020-03-01 H.J. Lu <hongjiu.lu@intel.com>
323
324 PR ld/25618
325 * plugin.c (plugin_object_p): Copy the no_export field to the IR
326 dummy object.
327 * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Add
328 PR ld/25618 tests.
329 * testsuite/ld-plugin/pr25618.d: New file.
330 * testsuite/ld-plugin/pr25618a.cc: Likewise.
331 * testsuite/ld-plugin/pr25618a.h: Likewise.
332 * testsuite/ld-plugin/pr25618b.cc: Likewise.
333 * testsuite/ld-plugin/pr25618b.h: Likewise.
334
335 2020-02-27 Alan Modra <amodra@gmail.com>
336
337 PR 24511
338 * testsuite/ld-mmix/b-fixo2.d: Adjust for .data change.
339 * testsuite/ld-mmix/sec-2.d: Likewise.
340 * testsuite/ld-mmix/sec-3.d: Likewise.
341 * testsuite/ld-mmix/sec-4.d: Likewise.
342 * testsuite/ld-mmix/spec802.d: Likewise.
343 * testsuite/ld-mmix/spec803.d: Likewise.
344 * testsuite/ld-mmix/spec804.d: Likewise.
345 * testsuite/ld-mmix/spec805.d: Likewise.
346 * testsuite/ld-mmix/spec806.d: Likewise.
347 * testsuite/ld-mmix/spec807.d: Likewise.
348 * testsuite/ld-mmix/spec808.d: Likewise.
349
350 2020-02-26 H.J. Lu <hongjiu.lu@intel.com>
351
352 PR ld/25593
353 * testsuite/ld-plugin/lto.exp: Run PR ld/25593 tests.
354 * testsuite/ld-plugin/pr25593.d: New file.
355 * testsuite/ld-plugin/pr25593a-1.c: Likewise.
356 * testsuite/ld-plugin/pr25593a-2.c: Likewise.
357 * testsuite/ld-plugin/pr25593b.c: Likewise.
358 * testsuite/ld-plugin/pr25593c.c: Likewise.
359 * testsuite/ld-plugin/pr25593d.c: Likewise.
360 * testsuite/ld-plugin/pr25593e.c: Likewise.
361
362 2020-02-26 Alan Modra <amodra@gmail.com>
363
364 * emultempl/cskyelf.em: Indent labels correctly.
365 * ldfile.c: Likewise.
366 * ldlang.c: Likewise.
367 * plugin.c: Likewise.
368
369 2020-02-26 Alan Modra <amodra@gmail.com>
370
371 PR 25593
372 * ldelf.c (ldelf_try_needed): Add DT_NEEDED lib to input_bfds.
373 (ldelf_after_open): Save state of input_bfds list before loading
374 DT_NEEDED libs. Traverse input_bfds list adding DT_NEEDED tags.
375 Restore input_bfds list.
376 * testsuite/ld-cris/gotplt1.d: Adjust for changed .dynstr order.
377
378 2020-02-24 Nick Clifton <nickc@redhat.com>
379
380 * po/fr.po: Update French translation.
381
382 2020-02-22 Alan Modra <amodra@gmail.com>
383
384 PR 25585
385 * NEWS: Mention better "PHDR segment not covered by LOAD segment"
386 checking.
387
388 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
389
390 PR 25537
391 * emultempl/z80.em: Remove machine compatability checking.
392
393 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
394
395 PR 25517
396 * testsuite/ld-z80/arch_ez80_adl.d: Update command line.
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_z80n.d: Likewise.
401 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
402 * testsuite/ld-z80/comb_arch_z180_z80.d: Likewise.
403 * testsuite/ld-z80/comb_arch_z80_ez80.d: Likewise.
404 * testsuite/ld-z80/comb_arch_z80_z180.d: Likewise.
405 * testsuite/ld-z80/comb_arch_z80_z80n.d: Likewise.
406 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
407 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
408 * testsuite/ld-z80/relocs_f_ez80.d: Likewise.
409 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
410 * testsuite/ld-z80/relocs_f_z80n.d: Likewise.
411
412 2020-02-19 Alan Modra <amodra@gmail.com>
413
414 * testsuite/ld-plugin/pr25355.d: Allow alpha-linux nm result.
415
416 2020-02-10 H.J. Lu <hongjiu.lu@intel.com>
417
418 PR binutils/25355
419 * testsuite/ld-plugin/lto.exp: Run PR binutils/25355 test.
420 * testsuite/ld-plugin/pr25355.c: New file.
421 * testsuite/ld-plugin/pr25355.d: Likewise.
422 * testsuite/lib/ld-lib.exp (run_cc_link_tests): Support compile
423 only dump.
424
425 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
426
427 * testsuite/ld-unique/unique.exp (contains_unique_symbol): Updated.
428
429 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
430
431 PR 25469
432 * emulparams/elf32z80.sh: Use z80 emulation.
433 * emultempl/z80.em: Make generic to both COFF and ELF Z80 emulations.
434 * emultempl/z80elf.em: Delete.
435 * testsuite/ld-elf/pr22450.d: Expect to fail for the Z80.
436 * testsuite/ld-elf/sec64k.exp: Fix Z80 assembly.
437 * testsuite/ld-unique/pr21529.s: Avoid register name conflict.
438 * testsuite/ld-unique/unique.s: Likewise.
439 * testsuite/ld-unique/unique_empty.s: Likewise.
440 * testsuite/ld-unique/unique_shared.s: Likewise.
441 * testsuite/ld-unique/unique.d: Updated expected output.
442 * testsuite/ld-z80/arch_z80n.d: New file.
443 * testsuite/ld-z80/comb_arch_z80_z80n.d: New file.
444 * testsuite/ld-z80/labels.s: Add more labels.
445 * testsuite/ld-z80/relocs.s: Add more reloc tests.
446 * testsuite/ld-z80/relocs_f_z80n.d: New file
447
448 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
449
450 PR ld/25022
451 * testsuite/ld-elf/pr25022.d: Xfail more targets which don't use
452 ldelf_before_place_orphans.
453
454 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
455
456 PR ld/25022
457 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
458 before_place_orphans_default.
459 * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
460 * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
461 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
462 * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Likewise.
463 * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
464 * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
465 * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
466 * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
467 * emultempl/vanilla.em (ld_${EMULATION_NAME}_emulation): Likewise.
468 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Use
469 ldelf_before_place_orphans.
470 * ldelf.c (ldelf_before_place_orphans): New.
471 * ldelf.h (ldelf_before_place_orphans): Likewise.
472 * ldemul.c (ldemul_before_place_orphans): Likewise.
473 (before_place_orphans_default): Likewise.
474 * ldemul.h (ldemul_before_place_orphans): Likewise.
475 (before_place_orphans_default): Likewise.
476 (ld_emulation_xfer_struct): Add before_place_orphans.
477 * ldlang.c (lang_process): Call ldemul_before_place_orphans
478 before lang_place_orphans.
479 * testsuite/ld-elf/pr25022.d: New file.
480 * testsuite/ld-elf/pr25022.s: Likewise.
481 * testsuite/ld-elf/pr25022.t: Likewise.
482
483 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
484
485 PR ld/25490
486 * testsuite/ld-elf/pr25490-1.d: New file.
487 * testsuite/ld-elf/pr25490-1.s: Likewise.
488
489 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
490
491 PR ld/24526
492 PR ld/25021
493 PR ld/25490
494 * testsuite/ld-elf/elf.exp: Run PR ld/25490 tests.
495 * testsuite/ld-elf/pr24526.d: New file.
496 * testsuite/ld-elf/pr24526.s: Likewise.
497 * testsuite/ld-elf/pr25021.d: Likewise.
498 * testsuite/ld-elf/pr25021.s: Likewise.
499 * testsuite/ld-elf/pr25490-2-16.rd: Likewise.
500 * testsuite/ld-elf/pr25490-2-32.rd: Likewise.
501 * testsuite/ld-elf/pr25490-2-64.rd: Likewise.
502 * testsuite/ld-elf/pr25490-2.s: Likewise.
503 * testsuite/ld-elf/pr25490-3-16.rd: Likewise.
504 * testsuite/ld-elf/pr25490-3-32.rd: Likewise.
505 * testsuite/ld-elf/pr25490-3-64.rd: Likewise.
506 * testsuite/ld-elf/pr25490-3.s: Likewise.
507 * testsuite/ld-elf/pr25490-4-16.rd: Likewise.
508 * testsuite/ld-elf/pr25490-4-32.rd: Likewise.
509 * testsuite/ld-elf/pr25490-4-64.rd: Likewise.
510 * testsuite/ld-elf/pr25490-4.s: Likewise.
511 * testsuite/ld-elf/pr25490-5-16.rd: Likewise.
512 * testsuite/ld-elf/pr25490-5-32.rd: Likewise.
513 * testsuite/ld-elf/pr25490-5-64.rd: Likewise.
514 * testsuite/ld-elf/pr25490-5.s: Likewise.
515 * testsuite/ld-elf/pr25490-6-16.rd: Likewise.
516 * testsuite/ld-elf/pr25490-6-32.rd: Likewise.
517 * testsuite/ld-elf/pr25490-6-64.rd: Likewise.
518 * testsuite/ld-elf/pr25490-6.s: Likewise.
519
520 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
521
522 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark
523 z80 as not supported.
524
525 2020-02-06 Alan Modra <amodra@gmail.com>
526
527 * testsuite/ld-ifunc/ifunc.exp: Enable for more targets, specifying
528 targets that don't support ifunc rather than ones that do.
529 (contains_irelative_reloc): Match R_PARISC_IPLT.
530 * testsuite/ld-ifunc/lib.c: Don't use .set in asm.
531 * testsuite/ld-ifunc/ifunc-23-x86.s,
532 * testsuite/ld-ifunc/ifunc-24-x86.s,
533 * testsuite/ld-ifunc/ifunc-25-x86.s,
534 * testsuite/ld-ifunc/ifunc-4-local-x86.s,
535 * testsuite/ld-ifunc/ifunc-4-x86.s: Define _main.
536 * testsuite/ld-ifunc/ifunc-10-i386.d,
537 * testsuite/ld-ifunc/ifunc-11-i386.d,
538 * testsuite/ld-ifunc/ifunc-12-i386.d,
539 * testsuite/ld-ifunc/ifunc-13-i386.d,
540 * testsuite/ld-ifunc/ifunc-14a-i386.d,
541 * testsuite/ld-ifunc/ifunc-14b-i386.d,
542 * testsuite/ld-ifunc/ifunc-14c-i386.d,
543 * testsuite/ld-ifunc/ifunc-14d-i386.d,
544 * testsuite/ld-ifunc/ifunc-14e-i386.d,
545 * testsuite/ld-ifunc/ifunc-14f-i386.d,
546 * testsuite/ld-ifunc/ifunc-15-i386.d,
547 * testsuite/ld-ifunc/ifunc-16-i386-now.d,
548 * testsuite/ld-ifunc/ifunc-16-i386.d,
549 * testsuite/ld-ifunc/ifunc-17a-i386.d,
550 * testsuite/ld-ifunc/ifunc-17b-i386.d,
551 * testsuite/ld-ifunc/ifunc-18a-i386.d,
552 * testsuite/ld-ifunc/ifunc-18b-i386.d,
553 * testsuite/ld-ifunc/ifunc-19a-i386.d,
554 * testsuite/ld-ifunc/ifunc-19b-i386.d,
555 * testsuite/ld-ifunc/ifunc-2-i386-now.d,
556 * testsuite/ld-ifunc/ifunc-2-i386.d,
557 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
558 * testsuite/ld-ifunc/ifunc-2-local-i386.d,
559 * testsuite/ld-ifunc/ifunc-20-i386.d,
560 * testsuite/ld-ifunc/ifunc-21-i386.d,
561 * testsuite/ld-ifunc/ifunc-22-i386.d,
562 * testsuite/ld-ifunc/ifunc-26.d,
563 * testsuite/ld-ifunc/ifunc-5a-i386.d,
564 * testsuite/ld-ifunc/ifunc-5a-local-i386.d,
565 * testsuite/ld-ifunc/ifunc-5b-i386.d,
566 * testsuite/ld-ifunc/ifunc-5b-local-i386.d,
567 * testsuite/ld-ifunc/ifunc-5r-local-i386.d,
568 * testsuite/ld-ifunc/ifunc-6a-i386.d,
569 * testsuite/ld-ifunc/ifunc-6b-i386.d,
570 * testsuite/ld-ifunc/ifunc-7a-i386.d,
571 * testsuite/ld-ifunc/ifunc-7b-i386.d,
572 * testsuite/ld-ifunc/ifunc-8-i386.d,
573 * testsuite/ld-ifunc/ifunc-9-i386.d,
574 * testsuite/ld-ifunc/pr17154-i386-now.d,
575 * testsuite/ld-ifunc/pr17154-i386.d: xfail lynxos, nto, and solaris.
576
577 2020-02-06 Alan Modra <amodra@gmail.com>
578
579 * testsuite/lib/ld-lib.exp (is_generic): Delete.
580 * testsuite/ld-unique/unique.exp: Exclude tic6x.
581
582 2020-02-06 Alan Modra <amodra@gmail.com>
583
584 * configure.tgt (i[3-7]86-*-moss*): Don't clear targ_extra_ofiles.
585 (i[3-7]86-*-openbsd*, x86_64-*-openbsd*): Add.
586
587 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
588
589 PR gas/25380
590 * testsuite/ld-i386/pr22001-1c.S: Use "unique,N" in .section
591 directives.
592 * testsuite/ld-i386/tls-gd1.S: Likewise.
593 * testsuite/ld-x86-64/pr21481b.S: Likewise.
594
595 2020-01-30 Jan Beulich <jbeulich@suse.com>
596
597 * ld.texi: Remove space between @option and brace.
598
599 2020-01-29 Alan Modra <amodra@gmail.com>
600
601 PR 25477
602 * ldelf.c (ldelf_check_ld_so_conf): Add prefix parameter and
603 correct concat.
604 (ldelf_after_open): Add prefix parameter.
605 * ldelf.h (ldelf_after_open): Update prototype.
606 * emultempl/elf.em (gld${EMULATION_NAME}_after_open): Pass $prefix
607 to ldelf_after_open.
608 * Makefile.am: Correct z80 dependencies.
609 * Makefile.in: Regenerate.
610
611 2020-01-28 Alan Modra <amodra@gmail.com>
612
613 * ldexp.c (fold_name): Don't print bfd_link_hash_lookup failed
614 in first phase.
615
616 2020-01-27 Alan Modra <amodra@gmail.com>
617
618 * testsuite/ld-elfvers/vers.exp: Replace case statements with
619 switch statements.
620 * testsuite/ld-ifunc/ifunc.exp: Likewise.
621 * testsuite/ld-unique/unique.exp: Likewise.
622
623 2020-01-27 H.J. Lu <hongjiu.lu@intel.com>
624 Alan Modra <amodra@gmail.com>
625
626 PR ld/25458
627 * testsuite/ld-elf/pr25458.map: New file.
628 * testsuite/ld-elf/pr25458.rd: Likewise.
629 * testsuite/ld-elf/pr25458a.s: Likewise.
630 * testsuite/ld-elf/pr25458b.s: Likewise.
631 * testsuite/ld-elf/shared.exp: Run PR ld/25458 test.
632
633 2020-01-22 H.J. Lu <hongjiu.lu@intel.com>
634
635 PR ld/25416
636 * testsuite/ld-x86-64/tls.exp: Skip GNU2 TLS tests only without
637 compiler support.
638
639 2020-01-22 Alan Modra <amodra@gmail.com>
640
641 * testsuite/ld-powerpc/tlsdesc3.d,
642 * testsuite/ld-powerpc/tlsdesc3.wf,
643 * testsuite/ld-powerpc/tlsdesc4.d,
644 * testsuite/ld-powerpc/tlsdesc4.s,
645 * testsuite/ld-powerpc/tlsdesc4.wf: New tests.
646 * testsuite/ld-powerpc/powerpc.exp: Run them.
647
648 2020-01-22 Alan Modra <amodra@gmail.com>
649
650 * emultempl/ppc64elf.em (ppc64_opt, PARSE_AND_LIST_LONGOPTS),
651 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Support
652 --tls-get-addr-regsave and --no-tls-get-addr-regsave.
653 (params): Init new field.
654 * ld.texi (--tls-get-addr-regsave, --no-tls-get-addr-regsave):
655 Document.
656 * testsuite/ld-powerpc/tlsdesc.s,
657 * testsuite/ld-powerpc/tlsdesc.d,
658 * testsuite/ld-powerpc/tlsdesc.wf,
659 * testsuite/ld-powerpc/tlsdesc2.d,
660 * testsuite/ld-powerpc/tlsdesc2.wf,
661 * testsuite/ld-powerpc/tlsexenors.d,
662 * testsuite/ld-powerpc/tlsexenors.r,
663 * testsuite/ld-powerpc/tlsexers.d,
664 * testsuite/ld-powerpc/tlsexers.r,
665 * testsuite/ld-powerpc/tlsexetocnors.d,
666 * testsuite/ld-powerpc/tlsexetocrs.d,
667 * testsuite/ld-powerpc/tlsexetocrs.r,
668 * testsuite/ld-powerpc/tlsopt6.d,
669 * testsuite/ld-powerpc/tlsopt6.wf: New.
670 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
671
672 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
673
674 PR 25417
675 * ldlang.c (ldlang_open_ctf): Fix error message typo.
676 * emultempl/z80elf.em (z80_elf_after_open): Likewise.
677
678 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
679
680 * testsuite/ld-elf/pr23900-1.d: Adjusted.
681
682 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
683
684 * testsuite/ld-elf/pr23900-1.d: Also pass -l to readelf.
685
686 2020-01-20 Nick Clifton <nickc@redhat.com>
687
688 * po/pt_BR.po: Updated Brazilian Portuguese translation.
689 * po/uk.po: Updated Ukranian translation.
690
691 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
692
693 PR ld/25416
694 * testsuite/ld-x86-64/pr25416-1.s: New file
695 * testsuite/ld-x86-64/pr25416-1a.d: Likewise.
696 * testsuite/ld-x86-64/pr25416-1b.d: Likewise.
697 * testsuite/ld-x86-64/pr25416-1.s: Likewise.
698 * testsuite/ld-x86-64/pr25416-2.s: Likewise.
699 * testsuite/ld-x86-64/pr25416-2a.d: Likewise.
700 * testsuite/ld-x86-64/pr25416-2b.d: Likewise.
701 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
702 * testsuite/ld-x86-64/pr25416-3.s: Likewise.
703 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
704 * testsuite/ld-x86-64/pr25416-4.s: Likewise.
705 * testsuite/ld-x86-64/pr25416-5a.c: Likewise.
706 * testsuite/ld-x86-64/pr25416-5b.s: Likewise.
707 * testsuite/ld-x86-64/pr25416-5c.s: Likewise.
708 * testsuite/ld-x86-64/pr25416-5d.s: Likewise.
709 * testsuite/ld-x86-64/pr25416-5e.s: Likewise.
710 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/25416 tests.
711
712 2020-01-20 Alan Modra <amodra@gmail.com>
713
714 * testsuite/ld-powerpc/tlsexe.d: Match new __tls_get_addr stub.
715 * testsuite/ld-powerpc/tlsexeno.d: Likewise.
716 * testsuite/ld-powerpc/tlsexetoc.d: Likewise.
717 * testsuite/ld-powerpc/tlsexetocno.d: Likewise.
718 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
719
720 2020-01-18 Roland McGrath <mcgrathr@google.com>
721
722 * testsuite/ld-x86-64/align-branch-1.d: Loosen instruction regexps
723 to admit whatever absolute address. The label-relative address is
724 what the test needs to verify.
725
726 2020-01-18 Nick Clifton <nickc@redhat.com>
727
728 * configure: Regenerate.
729 * po/ld.pot: Regenerate.
730
731 2020-01-18 Nick Clifton <nickc@redhat.com>
732
733 Binutils 2.34 branch created.
734
735 2020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
736
737 * scripttempl/elf32msp430_3.sc: Remove.
738
739 2020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
740
741 * scripttempl/elf32msp430.sc: Add input section rules for
742 .upper.{text,data,rodata,bss}.
743 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
744 * testsuite/ld-msp430-elf/upper-input-sections.s: New test.
745
746 2020-01-15 Lars Brinkhoff <lars@nocrew.org>
747
748 PR 20694
749 * temulparams/pdp11.sh (TARGET_PAGE_SIZE): Set to 8192.
750
751 2020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
752
753 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
754 * testsuite/ld-msp430-elf/reloc-lo-430x.s: New test.
755
756 2020-01-15 Alan Modra <amodra@gmail.com>
757
758 * testsuite/ld-powerpc/ambiguousv1b.d: Adjust expected output.
759 * testsuite/ld-powerpc/funref.s: Align func_tab.
760 * testsuite/ld-powerpc/funref2.s: Likewise.
761 * testsuite/ld-powerpc/funv1.s: Add dot symbols.
762
763 2020-01-14 Lili Cui <lili.cui@intel.com>
764
765 * testsuite/ld-i386/align-branch-1.d: Updated for i686-pc-elf.
766
767 2020-01-13 Alan Modra <amodra@gmail.com>
768
769 * po/BLD-POTFILES.in: Regenerate.
770
771 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
772
773 * testsuite/ld-arc/relax-local-pic.d: Improve matching patterns.
774
775 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
776
777 * Makefile.am: Remove earcelf_prof.c and earclinux_prof.c
778 emulations.
779 * configure.tgt: Likewise.
780 * Makefile.in: Regenerate.
781 * emulparams/arcelf_prof.sh: Remove file.
782 * emulparams/arclinux_prof.sh: Likewise.
783
784 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
785
786 * scripttempl/elfarcv2.sc : Allow interrupt vector table to be
787 located at an arbitrary address. Use DWARF.sc file.
788 * scripttempl/elfarc.sc: Use DWARF.sc file.
789
790 2020-01-07 Alan Modra <amodra@gmail.com>
791
792 * testsuite/ld-mips-elf/eh-frame5.s,
793 * testsuite/ld-mips-elf/ehdr_start-new.s,
794 * testsuite/ld-mips-elf/ehdr_start-o32.s,
795 * testsuite/ld-mips-elf/mips16-call-global-1.s,
796 * testsuite/ld-mips-elf/mips16-intermix-1.s,
797 * testsuite/ld-mips-elf/mips16-pic-1b.s,
798 * testsuite/ld-mips-elf/mips16-pic-4c.s,
799 * testsuite/ld-mips-elf/no-shared-1-n64.s,
800 * testsuite/ld-mips-elf/no-shared-1-o32.s,
801 * testsuite/ld-mips-elf/pic-and-nonpic-1b-micromips.s,
802 * testsuite/ld-mips-elf/pic-and-nonpic-1b.s,
803 * testsuite/ld-mips-elf/pic-and-nonpic-2a.s,
804 * testsuite/ld-mips-elf/pic-and-nonpic-3b.s,
805 * testsuite/ld-mips-elf/pic-and-nonpic-4b.s,
806 * testsuite/ld-mips-elf/pic-and-nonpic-5a.s,
807 * testsuite/ld-mips-elf/pic-and-nonpic-6-n32c.s,
808 * testsuite/ld-mips-elf/pic-and-nonpic-6-n64c.s,
809 * testsuite/ld-mips-elf/pic-and-nonpic-6-o32c.s,
810 * testsuite/ld-mips-elf/pie.s,
811 * testsuite/ld-mips-elf/relax-jalr.s: Revert 2019-12-17 change.
812
813 2020-01-06 Nick Clifton <nickc@redhat.com>
814
815 PR 25327
816 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
817 command line when building libcomm1.o and pr13250 tests.
818 * testsuite/ld-plugin/lto.exp: Likewise for pr20267 tests.
819
820 2020-01-06 Nick Clifton <nickc@redhat.com>
821
822 PR 25326
823 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
824 command line when building pr19579 binaries.
825
826 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
827
828 * emultempl/pe.em: Add new option --enable-reloc-section.
829 * emultempl/pep.em: Likewise.
830 * ld.texi: Document --enable-reloc-section.
831 * pe-dll.c (pe_dll_build_sections): Use pe_dll_enable_reloc_section.
832 (pe_dll_fill_sections): Simplify by calling pe_exe_fill_sections.
833 * pe-dll.h: Add extern declaration of option flag.
834 * pep-dll.c (pe_dll_enable_reloc_section):
835 Add alias define for pep_dll_enable_reloc_section.
836 * pep-dll.h: Add extern declaration of option flag.
837
838 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
839
840 * Makefile.am: Add new target z80-elf
841 * configure.tgt: Likewise.
842 * Makefile.in: Regenerate.
843 * emultempl/z80.em: Add support for eZ80 and Z180 architectures.
844 * emulparams/elf32z80.sh: New file.
845 * emultempl/z80elf.em: Likewise.
846 * testsuite/ld-elf/comm-data4.s: Fix for Z80.
847 * testsuite/ld-elf/comm-data5.s: Fix for Z80.
848 * testsuite/ld-scripts/fill16.d: Fix for Z80.
849 * testsuite/ld-z80/arch_ez80_adl.d: Likewise.
850 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
851 * testsuite/ld-z80/arch_r800.d: Likewise.
852 * testsuite/ld-z80/arch_z180.d: Likewise.
853 * testsuite/ld-z80/arch_z80.d: Likewise.
854 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
855 * testsuite/ld-z80/comb_arch_z180.d: Likewise.
856 * testsuite/ld-z80/labels.s: Likewise.
857 * testsuite/ld-z80/relocs.s: Likewise.
858 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
859 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
860 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
861 * testsuite/ld-z80/z80.exp: Likewise.
862 * NEWS: Mention the new support.
863
864 2020-01-02 Tamar Christina <tamar.christina@arm.com>
865
866 PR 25210
867 PR 24753
868 * emultempl/aarch64elf.em (elf${ELFSIZE}_aarch64_add_stub_section):
869 Remove SEC_LINKER_CREATED.
870 * testsuite/ld-aarch64/aarch64-elf.exp: Add erratum835769-843419.
871 * testsuite/ld-aarch64/erratum835769-843419.d: New test.
872
873 2020-01-01 Alan Modra <amodra@gmail.com>
874
875 Update year range in copyright notice of all files.
876
877 For older changes see ChangeLog-2019
878 \f
879 Copyright (C) 2020 Free Software Foundation, Inc.
880
881 Copying and distribution of this file, with or without modification,
882 are permitted in any medium without royalty provided the copyright
883 notice and this notice are preserved.
884
885 Local Variables:
886 mode: change-log
887 left-margin: 8
888 fill-column: 74
889 version-control: never
890 End:
This page took 0.053936 seconds and 4 git commands to generate.