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