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