Use bfd_get_filename throughout ld
[deliverable/binutils-gdb.git] / ld / ChangeLog
1 2020-05-19 Alan Modra <amodra@gmail.com>
2
3 * emultempl/beos.em (sort_by_file_name): Use bfd_get_filename
4 rather than accessing bfd->filename directly.
5 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Likewise.
6 * emultempl/pep.em (gld_${EMULATION_NAME}_after_open): Likewise.
7 * emultempl/spuelf.em (embedded_spu_file): Likewise.
8 * ldlang.c (input_statement_is_archive_path, wild_sort),
9 (check_excluded_libs): Likewise.
10 * ldmain.c (add_archive_element): Likewise.
11 * ldmisc.c (vfinfo): Likewise.
12 * pe-dll.c (auto_export, generate_edata, pe_create_import_fixup),
13 (pe_dll_generate_implib, pe_process_import_defs): Likewise.
14 * plugin.c (plugin_object_p): Likewise.
15
16 2020-05-18 Douglas B Rupp <rupp@adacore.com>
17
18 * ldemul.h (ldemul_print_symbol): New.
19 (ld_emulation_xfer_type) <print_symbol): Likewise.
20 * ldemul.c (ldemul_print_symbol): New.
21 * ldlang.c (SECTION_NAME_MAP_LANGTH): Move to ...
22 (print_one_symbol): Make global and move declaration to ...
23 (print_all_symbols): Rename print_one_symbol to ldemul_print_symbol
24 (print_input_section): Likewise
25 * ldlang.h: ... here.
26 * emultempl/aix.em (gld${EMULATION_NAME}_print_symbol): New.
27 (ld_emulation_xfer_struct): Use it.
28 * emultempl/armcoff.em (ld_emulation_xfer_struct): Add print_symbol
29 and default to NULL.
30 * emultempl/beos.em (ld_emulation_xfer_struct): Likewise
31 * emultempl/elf.em (ld_emulation_xfer_struct): Likewise
32 * emultempl/generic.em (ld_emulation_xfer_struct): Likewise
33 * emultempl/linux.em (ld_emulation_xfer_struct): Likewise
34 * emultempl/msp430.em (ld_emulation_xfer_struct): Likewise
35 * emultempl/pe.em (ld_emulation_xfer_struct): Likewise
36 * emultempl/pep.em (ld_emulation_xfer_struct): Likewise
37 * emultempl/ticoff.em (ld_emulation_xfer_struct): Likewise
38 * emultempl/vanilla.em (ld_emulation_xfer_struct): Likewise
39
40 2020-05-18 Sergei Trofimovich <siarheit@google.com>
41
42 * ldmain.c (add_archive_element): Fix s/claimi/claim/ typo
43 in info message.
44
45 2020-05-18 Nick Clifton <nickc@redhat.com>
46
47 * po/sv.po: Update Swedish translation.
48
49 2020-05-18 Nick Clifton <nickc@redhat.com>
50
51 PR 25993
52 * emultempl/pe.em (_after_open): Check for duplicate filename
53 pointers before renaming the dll.
54 * emultempl/pep.em (_after_open): Likewise.
55
56 2020-05-13 Nick Clifton <nickc@redhat.com>
57
58 PR 25979
59 * lexsup.c (elf_shlib_list_options): Include the default value for
60 the hash style in the output text.
61
62 2020-05-11 Alan Modra <amodra@gmail.com>
63
64 * testsuite/ld-powerpc/pcrelopt.s: Add lxvp and stxvp.
65 * testsuite/ld-powerpc/pcrelopt.d: Update.
66
67 2020-05-11 Alan Modra <amodra@gmail.com>
68
69 * testsuite/ld-powerpc/callstub-1.d: Use -mpower10/-Mpower10 in
70 place of -mfuture/-Mfuture.
71 * testsuite/ld-powerpc/notoc2.d: Likewise.
72 * testsuite/ld-powerpc/powerpc.exp: Likewise.
73 * testsuite/ld-powerpc/tlsgd.d: Likewise.
74 * testsuite/ld-powerpc/tlsie.d: Likewise.
75 * testsuite/ld-powerpc/tlsld.d: Likewise.
76
77 2020-05-11 Nick Clifton <nickc@redhat.com>
78
79 * po/es.po: Updated Spanish translation.
80
81 2020-05-01 Wilco Dijkstra <wdijkstr@arm.com>
82
83 PR ld/25665
84 * testsuite/ld-aarch64/farcall-group.s: New large group test.
85 * testsuite/ld-aarch64/farcall-group.d: New test driver.
86 * testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
87
88 2020-05-01 Alan Modra <amodra@gmail.com>
89
90 PR 25882
91 * ldlang.c (lang_check): Call bfd_merge_private_bfd_data for
92 shared libraries.
93
94 2020-05-01 Alan Modra <amodra@gmail.com>
95
96 * po/BLD-POTFILES.in: Regenerate.
97
98 2020-04-30 Alex Coplan <alex.coplan@arm.com>
99
100 * testsuite/ld-aarch64/erratum843419_tls_ie.d: Use udf in disassembly.
101 * testsuite/ld-aarch64/farcall-b-section.d: Likewise.
102 * testsuite/ld-aarch64/farcall-back.d: Likewise.
103 * testsuite/ld-aarch64/farcall-bl-section.d: Likewise.
104
105 2020-04-30 Nick Clifton <nickc@redhat.com>
106
107 * testsuite/ld-elf/compress1c.d: XFAIL if thet target linker does
108 not support the -shared command line option.
109 * /ld-elf/compressed1c.d: Likewise.
110 * /ld-elf/compressed1e.d: Likewise.
111 * /ld-elf/dynamic1.d: Likewise.
112 * /ld-elf/dynsym1.d: Likewise.
113 * /ld-elf/ehdr_start-shared.d: Likewise.
114 * /ld-elf/exclude3b.d: Likewise.
115 * /ld-elf/global1.d: Likewise.
116 * /ld-elf/hash.d: Likewise.
117 * /ld-elf/local1.d: Likewise.
118 * /ld-elf/mbind1b.d: Likewise.
119 * /ld-elf/now-1.d: Likewise.
120 * /ld-elf/now-2.d: Likewise.
121 * /ld-elf/now-3.d: Likewise.
122 * /ld-elf/now-4.d: Likewise.
123 * /ld-elf/pr12975.d: Likewise.
124 * /ld-elf/pr13177.d: Likewise.
125 * /ld-elf/pr13195.d: Likewise.
126 * /ld-elf/pr16322.d: Likewise.
127 * /ld-elf/pr16498a.d: Likewise.
128 * /ld-elf/pr16498b.d: Likewise.
129 * /ld-elf/pr17615.d: Likewise.
130 * /ld-elf/pr19162.d: Likewise.
131 * /ld-elf/pr19698.d: Likewise.
132 * /ld-elf/pr20513c.d: Likewise.
133 * /ld-elf/pr20513d.d: Likewise.
134 * /ld-elf/pr21389a.d: Likewise.
135 * /ld-elf/pr21389b.d: Likewise.
136 * /ld-elf/pr21389c.d: Likewise.
137 * /ld-elf/pr21562a.d: Likewise.
138 * /ld-elf/pr21562b.d: Likewise.
139 * /ld-elf/pr21562c.d: Likewise.
140 * /ld-elf/pr21562d.d: Likewise.
141 * /ld-elf/pr21562e.d: Likewise.
142 * /ld-elf/pr21562f.d: Likewise.
143 * /ld-elf/pr21562g.d: Likewise.
144 * /ld-elf/pr21562h.d: Likewise.
145 * /ld-elf/pr21562i.d: Likewise.
146 * /ld-elf/pr21562j.d: Likewise.
147 * /ld-elf/pr21562k.d: Likewise.
148 * /ld-elf/pr21562l.d: Likewise.
149 * /ld-elf/pr21562m.d: Likewise.
150 * /ld-elf/pr21562n.d: Likewise.
151 * /ld-elf/pr21903a.d: Likewise.
152 * /ld-elf/pr21903b.d: Likewise.
153 * /ld-elf/pr22269b.d: Likewise.
154 * /ld-elf/pr22393-1a.d: Likewise.
155 * /ld-elf/pr22393-1b.d: Likewise.
156 * /ld-elf/pr23658-1c.d: Likewise.
157 * /ld-elf/pr25708.d: Likewise.
158 * /ld-elf/rpath-1.d: Likewise.
159 * /ld-elf/rpath-2.d: Likewise.
160 * /ld-elf/runpath-1.d: Likewise.
161 * /ld-elf/runpath-2.d: Likewise.
162 * /ld-elf/sizeofb.d: Likewise.
163 * /ld-elf/startofb.d: Likewise.
164 * /ld-elf/strtab.d: Likewise.
165 * /ld-elf/textaddr2.d: Likewise.
166 * /ld-elf/textaddr5.d: Likewise.
167 * /ld-elf/textaddr6.d: Likewise.
168 * /ld-elf/unknown2.d: Likewise.
169 * /ld-undefined/entry-3.d: Likewise.
170 * /ld-undefined/entry-4.d: Likewise.
171 * /ld-elf/mbind1c.d: XFAIL if the target linker does not support
172 the -pie option.
173 * /ld-elf/pie.d: Likewise.
174 * /ld-elf/pr19539.d: Likewise.
175 * /ld-elf/pr21903d.d: Likewise.
176 * /ld-elf/pr22269a.d: Likewise.
177 * /ld-elf/pr22393-1c.d: Likewise.
178 * /ld-elf/pr22393-1d.d: Likewise.
179 * /ld-elf/pr22423.d: Likewise.
180 * /ld-elf/loadaddr1.d: Expect to fail on the rx-linux target.
181 * /ld-elf/loadaddr2.d: Likewise.
182 * /ld-elf/pr22393-1e.d: Likewise.
183 * /ld-elf/pr22393-1f.d: Likewise.
184 * /ld-elf/textaddr1.d: Likewise.
185 * /ld-elf/textaddr4.d: Likewise.
186
187 2020-04-30 Yoshinori Sato <ysato@users.sourceforge.jp>
188
189 * emulparams/elf32rx_linux.sh: New rx-linux emulation.
190 * emultempl/rxlinux.em: New.
191 * configure.tgt: Add rx-linux.
192 * Makefile.am: Add eelf32rx_linux.c
193 * Makefile.in: Regenerate.
194
195 2020-04-29 Max Filippov <jcmvbkbc@gmail.com>
196
197 * testsuite/ld-xtensa/relax-diff1.d: New test definition.
198 * testsuite/ld-xtensa/relax-diff1.s: New test source.
199 * testsuite/ld-xtensa/relax-ndiff.d: New test definition.
200 * testsuite/ld-xtensa/relax-ndiff.s: New test source.
201 * testsuite/ld-xtensa/xtensa.exp: (relax-diff1)
202 (relax-ndiff): New tests.
203
204 2020-04-29 Stephen Casner <casner@acm.org>
205
206 PR 25829
207 * testsuite/ld-scripts/default-script.exp: Add --image-base=0 to
208 LDFLAGS for targets *-*-mingw64 x86_64-*-cygwin.
209 * testsuite/ld-scripts/default-script1.d: No longer have to skip
210 test for those targets.
211 * testsuite/ld-scripts/default-script2.d: Likewise.
212 * testsuite/ld-scripts/default-script3.d: Likewise.
213 * testsuite/ld-scripts/default-script4.d: Likewise.
214
215 2020-04-27 Tamar Christina <tamar.christina@arm.com>
216
217 * pe-dll.c (pe_detail_list): Add pe-bigobj-i386.
218
219 2020-04-22 Max Filippov <jcmvbkbc@gmail.com>
220
221 PR ld/25861
222 * testsuite/ld-xtensa/relax-loc.d: New test definition.
223 * testsuite/ld-xtensa/relax-loc.s: New test source.
224 * testsuite/ld-xtensa/xtensa.exp (relax-loc): New test.
225
226 2020-04-22 Fangrui Song <maskray@google.com>
227
228 PR ld/25806
229 * ldlang.h (struct lang_input_statement_struct): Add extra_search_path.
230 * ldlang.c (current_input_file): New.
231 (ldirname): New.
232 (new_afile): Add from_filename parameter. Set extra_search_path.
233 (lang_add_input_file): Pass current_input_file to new_afile.
234 (load_symbols): Set current_input_file.
235 * ldfile.c (ldfile_open_file): If extra_search_path has been set
236 then scan it for the file that needs to be opened.
237 * ld.texi: Document the new behaviour.
238 * NEWS: Mention the new feature.
239
240 2020-04-22 Alan Modra <amodra@gmail.com>
241
242 * testsuite/ld-scripts/default-script1.d: Correct mingw skip.
243 * testsuite/ld-scripts/default-script2.d: Likewise.
244 * testsuite/ld-scripts/default-script3.d: Likewise.
245 * testsuite/ld-scripts/default-script4.d: Likewise.
246
247 2020-04-21 Stephen Casner <casner@acm.org>
248
249 PR 25829
250 * testsuite/ld-scripts/script.exp (check_script)
251 (extract_symbol_test): Make test addresses fit in 16 bits.
252 * testsuite/ld-scripts/memory.t: Likewise.
253 * testsuite/ld-scripts/memory_sym.t (TXT_LENGTH): Likewise.
254 * testsuite/ld-scripts/default-script.t (_START): Likewise.
255 * testsuite/ld-scripts/default-script1.d: Likewise.
256 * testsuite/ld-scripts/default-script2.d: Likewise.
257 * testsuite/ld-scripts/default-script3.d: Likewise.
258 * testsuite/ld-scripts/default-script4.d: Likewise.
259 * testsuite/ld-scripts/empty-address-1.t: Likewise.
260 * testsuite/ld-scripts/empty-address-1.d: Likewise.
261 * testsuite/ld-scripts/empty-address-2a.d: Likewise.
262 * testsuite/ld-scripts/empty-address-2b.d: Likewise.
263 * testsuite/ld-misc/start.s: .long -> .dc.a to allow relocation to
264 fit target address size.
265 * testsuite/ld-scripts/empty-address-1.s: Likewise.
266 * testsuite/ld-scripts/empty-address-2.s: Likewise.
267
268 2020-04-21 H.J. Lu <hongjiu.lu@intel.com>
269
270 PR ld/25849
271 * ldelfgen.c (ldelf_map_segments): Call
272 elf_backend_strip_zero_sized_dynamic_sections.
273 * testsuite/ld-alpha/tlsbinr.rd: Updated.
274
275 2020-04-20 Alan Modra <amodra@gmail.com>
276
277 * testsuite/ld-powerpc/tlsopt5.s: Rename foo to aaaaa.
278 * testsuite/ld-powerpc/tlsopt5.d: Adjust to suit.
279 * testsuite/ld-powerpc/tlsopt6.d: Likewise.
280
281 2020-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
282
283 * testsuite/ld-elf/warn1.d: Don't xfail on 64-bit Solaris/SPARC.
284 * testsuite/ld-elf/warn2.d: Likewise.
285
286 2020-04-18 H.J. Lu <hongjiu.lu@intel.com>
287
288 * testsuite/ld-elf/elf.exp (ASFLAGS): Add "--defsym NO_SET=1" for
289 alpha target.
290 * testsuite/ld-elf/pr19789.s: Use "=" if NO_SET is defined.
291
292 2020-04-16 Stephen Casner <casner@acm.org>
293
294 PR 18963
295 * testsuite/ld-scripts/pr18963.t: Reduce section sizes to fit in
296 16-bit address space.
297 * testsuite/ld-scripts/pr18963.d: Likewise.
298
299 2020-04-17 Juan Manuel Guerrero <juan.guerrero@gmx.de>
300 Jan W. Jagersma <jwjagersma@gmail.com>
301
302 * scripttempl/i386go32.sc: Provide symbol _environ. Link in
303 .ctors and .dtors. Discard LTO sections.
304
305 2020-04-17 Nick Clifton <nickc@redhat.com>
306
307 * testsuite/config/default.exp: If not already set then create the
308 CCC_OVERRIDE_OPTIONS environment variable to help when running the
309 testsuite with clang.
310 * testsuite/ld-elf/pr22269-1.c: Add a missing return statement.
311 * testsuite/ld-elfvers/vers.exp: Add checks to detect if files
312 were built before attempting to copy them.
313
314 2020-04-15 Fangrui Song <maskray@google.com>
315
316 PR binutils/24613
317 * lexsup.c (parse_args): Change RM_GENERATE_WARNING and
318 RM_GENERATE_ERROR to RM_DIAGNOSE.
319 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Change
320 RM_GENERATE_ERROR to RM_DIAGNOSE.
321 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Likewise.
322
323 2020-04-14 Stephen Casner <casner@acm.org>
324
325 PR ld/25677
326 * emulparams/pdp11.sh (SCRIPT_NAME): Change to pdp11.
327 (EXTRA_EM_FILE): New, add emulation file pdp11.
328 * scripttempl/pdp11.sc: New, derived from aout.sc without
329 irrelevant input sections.
330 * emultempl/pdp11.em (_add_options, _handle_option)
331 (_list_options): New. Add options -z, --imagic for pdp11-aout.
332 (_before_parse): Make --omagic be default instead of --nmagic.
333 (_get_script): Modify special-case linker script for --imagic.
334 * lexsup.c (parse_args): Explictly set config.text_read_only for -n.
335 * ld.texi (Options): Add documentation of PDP11-specific options.
336 (Options): Fix unrelated typo to --no-compact-branches.
337 * gen-doc.texi: @set PDP11.
338 * testsuite/ld-pdp11/pdp11.exp: New, start pdp11 testing.
339 * testsuite/ld-pdp11/sections.s: New, source for options tests.
340 * testsuite/ld-pdp11/imagic.d: New, test --imagic format.
341 * testsuite/ld-pdp11/imagicz.d: New, test -z (imagic) format.
342 * testsuite/ld-pdp11/nmagic.d: New, test --nmagic format.
343 * testsuite/ld-pdp11/omagic.d: New, test --omagic format.
344
345 2020-04-14 H.J. Lu <hongjiu.lu@intel.com>
346
347 PR binutils/25707
348 * testsuite/ld-arm/armthumb-lib.sym: Updated.
349 * testsuite/ld-arm/farcall-mixed-app.sym: Likewise.
350 * testsuite/ld-arm/farcall-mixed-app2.sym: Likewise.
351 * testsuite/ld-arm/fdpic-main-m.sym: Likewise.
352 * testsuite/ld-arm/fdpic-main.sym: Likewise.
353 * testsuite/ld-arm/fdpic-shared-m.sym: Likewise.
354 * testsuite/ld-arm/fdpic-shared.sym: Likewise.
355 * testsuite/ld-arm/mixed-app.sym: Likewise.
356 * testsuite/ld-arm/mixed-lib.sym: Likewise.
357 * testsuite/ld-arm/preempt-app.sym: Likewise.
358 * testsuite/ld-elf/hash.d: Likewise.
359 * testsuite/ld-elf/pr13195.d: Likewise.
360 * testsuite/ld-elfvsb/hidden2.d: Likewise.
361 * testsuite/ld-mips-elf/hash2.d: Likewise.
362
363 2020-04-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
364
365 * testsuite/ld-shared/shared.exp: Remove dangling comments.
366 xfail shared non PIC tests on Solaris.
367
368 2020-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
369
370 * testsuite/ld-elf/shared.exp: Add -Av9 to AFLAGS_PIC on sparc*-*-*.
371
372 2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
373
374 * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): Replace
375 nopie with available.
376
377 2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
378
379 * testsuite/config/default.exp (NOCF_PROTECTION_CFLAGS): New.
380 Set to "-fcf-protection=none" if target compiler supports it.
381 * testsuite/ld-srec/srec.exp: Add $NOCF_PROTECTION_CFLAGS to
382 CC and CXX.
383 * testsuite/ld-x86-64/x86-64.exp: Add $NOCF_PROTECTION_CFLAGS
384 to PLT BND tests.
385
386 2020-04-02 H.J. Lu <hongjiu.lu@intel.com>
387
388 * testsuite/ld-elf/linux-x86.exp (check_pr25749a): Compile with
389 -I../bfd.
390 (check_pr25749b): Likewise.
391
392 2020-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
393
394 * testsuite/ld-ifunc/ifunc-10-i386.d: Remove *-*-solaris2* from
395 notarget.
396 * ifunc-11-i386.d: Likewise.
397 * ifunc-12-i386.d: Likewise.
398 * ifunc-13-i386.d: Likewise.
399 * ifunc-14a-i386.d: Likewise.
400 * ifunc-14b-i386.d: Likewise.
401 * ifunc-14c-i386.d: Likewise.
402 * ifunc-14d-i386.d: Likewise.
403 * ifunc-14e-i386.d: Likewise.
404 * ifunc-14f-i386.d: Likewise.
405 * ifunc-15-i386.d: Likewise.
406 * ifunc-16-i386-now.d: Likewise.
407 * ifunc-16-i386.d: Likewise.
408 * ifunc-17a-i386.d: Likewise.
409 * ifunc-17b-i386.d: Likewise.
410 * ifunc-18a-i386.d: Likewise.
411 * ifunc-18b-i386.d: Likewise.
412 * ifunc-19a-i386.d: Likewise.
413 * ifunc-19b-i386.d: Likewise.
414 * ifunc-2-i386-now.d: Likewise.
415 * ifunc-2-i386.d: Likewise.
416 * ifunc-2-local-i386-now.d: Likewise.
417 * ifunc-2-local-i386.d: Likewise.
418 * ifunc-20-i386.d: Likewise.
419 * ifunc-21-i386.d: Likewise.
420 * ifunc-22-i386.d: Likewise.
421 * ifunc-5a-i386.d: Likewise.
422 * ifunc-5a-local-i386.d: Likewise.
423 * ifunc-5b-i386.d: Likewise.
424 * ifunc-5b-local-i386.d: Likewise.
425 * ifunc-5r-local-i386.d: Likewise.
426 * ifunc-6a-i386.d: Likewise.
427 * ifunc-6b-i386.d: Likewise.
428 * ifunc-7a-i386.d: Likewise.
429 * ifunc-7b-i386.d: Likewise.
430 * ifunc-8-i386.d: Likewise.
431 * ifunc-9-i386.d: Likewise.
432 * pr17154-i386-now.d: Likewise.
433 * pr17154-i386.d: Likewise.
434
435 * ifunc-23a-x86.d: Remove notarget.
436 * ifunc-24a-x86.d: Likewise.
437 * ifunc-25a-x86.d: Likewise.
438
439 2020-04-02 Nick Clifton <nickc@redhat.com>
440
441 PR ld/25747
442 * ldfile.c (ldfile_open_file): Fix typo in warning message.
443
444 2020-04-01 H.J. Lu <hongjiu.lu@intel.com>
445
446 PR ld/25749
447 PR ld/25754
448 * testsuite/ld-elf/linux-x86.exp: Run ld/25749 tests.
449 * testsuite/ld-elf/pr25749-1.c: New file.
450 * testsuite/ld-elf/pr25749-1a.c: Likewise.
451 * testsuite/ld-elf/pr25749-1b.c: Likewise.
452 * testsuite/ld-elf/pr25749-1b.err: Likewise.
453 * testsuite/ld-elf/pr25749-1c.c: Likewise.
454 * testsuite/ld-elf/pr25749-1d.c: Likewise.
455 * testsuite/ld-elf/pr25749-2.c: Likewise.
456 * testsuite/ld-elf/pr25749-2a.s: Likewise.
457 * testsuite/ld-elf/pr25749-2b.s: Likewise.
458 * testsuite/ld-elf/pr25749.rd: Likewise.
459 * testsuite/ld-elf/pr25754-1a.c: Likewise.
460 * testsuite/ld-elf/pr25754-1b.s: Likewise.
461 * testsuite/ld-elf/pr25754-2a.c: Likewise.
462 * testsuite/ld-elf/pr25754-2b.err: Likewise.
463 * testsuite/ld-elf/pr25754-2b.s: Likewise.
464 * testsuite/ld-elf/pr25754-3a.c: Likewise.
465 * testsuite/ld-elf/pr25754-3b.s: Likewise.
466 * testsuite/ld-elf/pr25754-4a.c: Likewise.
467 * testsuite/ld-elf/pr25754-4b.s: Likewise.
468 * testsuite/ld-elf/pr25754-4c.s: Likewise.
469 * testsuite/ld-elf/pr25754-5a.c: Likewise.
470 * testsuite/ld-elf/pr25754-5b.s: Likewise.
471 * testsuite/ld-elf/pr25754-5c.s: Likewise.
472 * testsuite/ld-elf/pr25754-6a.c: Likewise.
473 * testsuite/ld-elf/pr25754-6b.s: Likewise.
474 * testsuite/ld-x86-64/pr19609-6a.d: Don't expect linker error.
475
476 2020-04-01 Tamar Christina <tamar.christina@arm.com>
477
478 PR ld/16017
479 * testsuite/ld-arm/arm-elf.exp (thumb-plt, thumb-plt-got): Skip for NaCL.
480
481 2020-04-01 Nick Clifton <nickc@redhat.com>
482
483 PR ld/25747
484 * ldfile.c (ldfile_open_file): If a search for a library fails,
485 but there is a file that would match if it had a "lib" prefix to
486 its name, then tell the user.
487
488 2020-04-01 Tamar Christina <tamar.christina@arm.com>
489
490 PR ld/16017
491 * testsuite/ld-arm/arm-elf.exp (thumb-plt-got): New.
492 * testsuite/ld-arm/thumb-plt-got.d: New test.
493
494 2020-04-01 Tamar Christina <tamar.christina@arm.com>
495
496 * testsuite/ld-arm/arm-elf.exp (thumb-plt): New.
497 * testsuite/ld-arm/thumb-plt.d: New test.
498 * testsuite/ld-arm/thumb-plt.s: New test.
499
500 2020-04-01 Hans-Peter Nilsson <hp@bitrange.com>
501
502 * testsuite/ld-scripts/defined4.d: Don't xfail mmix-*-*.
503
504 2020-03-30 Nick Clifton <nickc@redhat.com>
505
506 PR binutils/25662
507 * emultempl/pe.em (after_open): Replace initialisation of the
508 insert_timestamp field in the pe_data structure with an
509 initialisation of the timestamp field.
510 * emultemp/pep.em: Likewise.
511 * pe-dll.c (fill_edata): Use the timestamp field in the pe_data
512 structure instead of the insert_timestamp field.
513
514 2020-03-28 H.J. Lu <hongjiu.lu@intel.com>
515
516 PR 25732
517 * emulparams/elf_i386_ldso.sh (COMMONPAGESIZE): New.
518 * testsuite/ld-elf/shared.exp:Don't xfail pr20995-2 tests for
519 Solaris.
520
521 2020-03-27 H.J. Lu <hongjiu.lu@intel.com>
522
523 PR 25732
524 * testsuite/ld-elf/shared.exp: Xfail pr20995-2 tests for Solaris.
525
526 2020-03-27 H.J. Lu <hongjiu.lu@intel.com>
527
528 PR 25732
529 * testsuite/ld-ifunc/ifunc-23a-x86.d: Add notarget for Solaris.
530 * testsuite/ld-ifunc/ifunc-24a-x86.d: Likewise.
531 * testsuite/ld-ifunc/ifunc-25a-x86.d: Likewise.
532
533 2020-03-25 Alan Modra <amodra@gmail.com>
534
535 * testsuite/ld-elf/compress1c.d: xfail h8300.
536 * testsuite/ld-elf/compressed1c.d: Likewise.
537 * testsuite/ld-elf/compressed1e.d: Likewise.
538 * testsuite/ld-elf/dynamic1.d: Likewise.
539 * testsuite/ld-elf/dynsym1.d: Likewise.
540 * testsuite/ld-elf/ehdr_start-shared.d: Likewise.
541 * testsuite/ld-elf/exclude3b.d: Likewise.
542 * testsuite/ld-elf/export-class.exp: Don't run without -shared support.
543 * testsuite/ld-elf/global1.d: xfail h8300.
544 * testsuite/ld-elf/hash.d: Likewise.
545 * testsuite/ld-elf/loadaddr1.d: Likewise.
546 * testsuite/ld-elf/loadaddr2.d: Likewise.
547 * testsuite/ld-elf/local1.d: Likewise.
548 * testsuite/ld-elf/mbind1b.d: Likewise.
549 * testsuite/ld-elf/mbind1c.d: Likewise.
550 * testsuite/ld-elf/now-1.d: Likewise.
551 * testsuite/ld-elf/now-2.d: Likewise.
552 * testsuite/ld-elf/now-3.d: Likewise.
553 * testsuite/ld-elf/now-4.d: Likewise.
554 * testsuite/ld-elf/pie.d: Likewise.
555 * testsuite/ld-elf/pr12975.d: Likewise.
556 * testsuite/ld-elf/pr13177.d: Likewise.
557 * testsuite/ld-elf/pr13195.d: Likewise.
558 * testsuite/ld-elf/pr16322.d: Likewise.
559 * testsuite/ld-elf/pr16498a.d: Likewise.
560 * testsuite/ld-elf/pr16498b.d: Likewise.
561 * testsuite/ld-elf/pr17615.d: Likewise.
562 * testsuite/ld-elf/pr19162.d: Likewise.
563 * testsuite/ld-elf/pr19539.d: Likewise.
564 * testsuite/ld-elf/pr19617a.d: Likewise.
565 * testsuite/ld-elf/pr19698.d: Likewise.
566 * testsuite/ld-elf/pr20513c.d: Likewise.
567 * testsuite/ld-elf/pr20513d.d: Likewise.
568 * testsuite/ld-elf/pr21389a.d: Likewise.
569 * testsuite/ld-elf/pr21389b.d: Likewise.
570 * testsuite/ld-elf/pr21389c.d: Likewise.
571 * testsuite/ld-elf/pr21562a.d: Likewise.
572 * testsuite/ld-elf/pr21562b.d: Likewise.
573 * testsuite/ld-elf/pr21562c.d: Likewise.
574 * testsuite/ld-elf/pr21562d.d: Likewise.
575 * testsuite/ld-elf/pr21562e.d: Likewise.
576 * testsuite/ld-elf/pr21562f.d: Likewise.
577 * testsuite/ld-elf/pr21562g.d: Likewise.
578 * testsuite/ld-elf/pr21562h.d: Likewise.
579 * testsuite/ld-elf/pr21562i.d: Likewise.
580 * testsuite/ld-elf/pr21562j.d: Likewise.
581 * testsuite/ld-elf/pr21562k.d: Likewise.
582 * testsuite/ld-elf/pr21562l.d: Likewise.
583 * testsuite/ld-elf/pr21562m.d: Likewise.
584 * testsuite/ld-elf/pr21562n.d: Likewise.
585 * testsuite/ld-elf/pr21903a.d: Likewise.
586 * testsuite/ld-elf/pr21903b.d: Likewise.
587 * testsuite/ld-elf/pr21903d.d: Likewise.
588 * testsuite/ld-elf/pr22269a.d: Likewise.
589 * testsuite/ld-elf/pr22269b.d: Likewise.
590 * testsuite/ld-elf/pr22393-1a.d: Likewise.
591 * testsuite/ld-elf/pr22393-1b.d: Likewise.
592 * testsuite/ld-elf/pr22393-1c.d: Likewise.
593 * testsuite/ld-elf/pr22393-1d.d: Likewise.
594 * testsuite/ld-elf/pr22393-1e.d: Likewise.
595 * testsuite/ld-elf/pr22393-1f.d: Likewise.
596 * testsuite/ld-elf/pr22423.d: Likewise.
597 * testsuite/ld-elf/pr22450.d: xfail avr, crx, h8300, ip2k, m68hc11,
598 and xc16x.
599 * testsuite/ld-elf/pr23658-1c.d: xfail h8300.
600 * testsuite/ld-elf/pr25708.d: xfail h8300 and hppa64.
601 * testsuite/ld-elf/rpath-1.d: xfail h8300.
602 * testsuite/ld-elf/rpath-2.d: Likewise.
603 * testsuite/ld-elf/runpath-1.d: Likewise.
604 * testsuite/ld-elf/runpath-2.d: Likewise.
605 * testsuite/ld-elf/sizeofb.d: Likewise.
606 * testsuite/ld-elf/startofb.d: Likewise.
607 * testsuite/ld-elf/strtab.d: Likewise.
608 * testsuite/ld-elf/textaddr1.d: Likewise.
609 * testsuite/ld-elf/textaddr2.d: Likewise.
610 * testsuite/ld-elf/textaddr4.d: Likewise.
611 * testsuite/ld-elf/textaddr5.d: Likewise.
612 * testsuite/ld-elf/textaddr6.d: Likewise.
613 * testsuite/ld-elf/unknown2.d: Likewise.
614 * testsuite/ld-undefined/entry-3.d: Likewise.
615 * testsuite/ld-undefined/entry-4.d: Likewise.
616 * testsuite/ld-h8300/h8300.exp: Pass appropriate ld -m option.
617 * testsuite/ld-h8300/gcsection.d: Remove ld -m option and relax
618 file format match.
619 * testsuite/ld-h8300/relax-2.d: Likewise.
620 * testsuite/ld-h8300/relax-3.d: Likewise.
621 * testsuite/ld-h8300/relax-4.d: Likewise.
622 * testsuite/ld-h8300/relax-5.d: Likewise.
623 * testsuite/ld-h8300/relax-6.d: Likewise.
624 * testsuite/ld-h8300/relax-7.d: Likewise.
625 * testsuite/ld-h8300/relax.d: Relax file format match.
626
627 2020-03-24 H.J. Lu <hongjiu.lu@intel.com>
628
629 PR binutils/25708
630 * testsuite/ld-elf/pr25708.d: New file.
631
632 2020-03-23 Alan Modra <amodra@gmail.com>
633
634 * Makefile.am (ALL_EMULATION_SOURCES): Reinstate ei386aout.c.
635 Include ei386aout dep file.
636 * Makefile.in: Regenerate.
637 * po/BLD-POTFILES.in: Regenerate.
638
639 2020-03-20 H.J. Lu <hongjiu.lu@intel.com>
640
641 * testsuite/ld-plugin/lto.exp (lto_link_tests): Run PR ld/25355
642 test only for GCC 10 or newer.
643
644 2020-03-20 Alan Modra <amodra@gmail.com>
645
646 * testplug.c (parse_symdefstr): Use %hhi to read sym->def, and
647 clear new fields.
648 * testplug2.c (parse_symdefstr): Likewise.
649 * testplug3.c (parse_symdefstr): Likewise.
650 * testplug4.c (parse_symdefstr): Likewise.
651
652 2020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
653
654 * testsuite/ld-arm/non-contiguous-arm4.d: Fix expected output.
655 * testsuite/ld-powerpc/non-contiguous-powerpc.d: Likewise.
656
657 2020-03-18 Christophe Lyon <christophe.lyon@linaro.org>
658
659 * emultempl/xtensaelf.em: Emit a fatal error message
660 instead of calling abort.
661 * ldlang.c: Likewise.
662
663 2020-03-14 Alan Modra <amodra@gmail.com>
664
665 * testsuite/ld-elf/non-contiguous.d: Don't xfail generic ELF
666 targets. Don't skip xtensa, xfail instead.
667
668 2020-03-13 Christophe Lyon <christophe.lyon@linaro.org>
669
670 * ldlang.c (lang_add_section): Add support for
671 non_contiguous_regions.
672 (size_input_section): Likewise.
673 (lang_size_sections_1): Likewise.
674 (process_insert_statements): Likewise.
675 * ldlex.h (option_values): Add OPTION_NON_CONTIGUOUS_REGIONS and
676 OPTION_NON_CONTIGUOUS_REGIONS_WARNINGS.
677 * lexsup.c (ld_options): Add entries for
678 --enable-non-contiguous-regions and
679 --enable-non-contiguous-regions-warnings.
680 (parse_args): Handle it.
681 * NEWS: Add --enable-non-contiguous-regions and
682 --enable-non-contiguous-regions-warnings.
683 * ld.texi: Add --enable-non-contiguous-regions and
684 --enable-non-contiguous-regions-warnings documentation.
685 * emultempl/armelf.em (elf32_arm_add_stub_section): Add
686 SEC_LINKER_CREATED flag.
687 * emultempl/xtensaelf.em (ld_build_required_section_dependence):
688 Emit an error when --enable-non-contiguous-regions is used.
689 * testsuite/ld-elf/non-contiguous.d: New.
690 * testsuite/ld-elf/non-contiguous.ld: New.
691 * testsuite/ld-elf/non-contiguous.s: New.
692 * testsuite/ld-arm/arm-elf.exp: Run the new tests.
693 * testsuite/ld-arm/arm-elf/non-contiguous-arm.s: New.
694 * testsuite/ld-arm/arm-elf/non-contiguous-arm.d: New.
695 * testsuite/ld-arm/arm-elf/non-contiguous-arm.ld: New.
696 * testsuite/ld-arm/arm-elf/non-contiguous-arm2.d: New.
697 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
698 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.d: New.
699 * testsuite/ld-arm/arm-elf/non-contiguous-arm3.ld: New.
700 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.d: New.
701 * testsuite/ld-arm/arm-elf/non-contiguous-arm4.ld: New.
702 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.d: New.
703 * testsuite/ld-arm/arm-elf/non-contiguous-arm5.ld: New.
704 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.d: New.
705 * testsuite/ld-arm/arm-elf/non-contiguous-arm6.ld: New.
706 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
707 * testsuite/ld-powerpc/non-contiguous-powerpc.d: New.
708 * testsuite/ld-powerpc/non-contiguous-powerpc.ld: New.
709 * testsuite/ld-powerpc/non-contiguous-powerpc.sd: New.
710 * testsuite/ld-powerpc/non-contiguous-powerpc64.d: New.
711
712 2020-03-13 H.J. Lu <hongjiu.lu@intel.com>
713
714 PR ld/24920
715 * emulparams/elf32_x86_64.sh: Use static.sh.
716 * emulparams/elf_i386.sh: Likewise.
717 * emulparams/elf_x86_64.sh: Likewise.
718 * emulparams/static.sh: New file.
719 * emultempl/elf-x86.em: Include "ldlex.h".
720 * testsuite/ld-elf/pr24920.err: New file.
721 * testsuite/ld-elf/linux-x86.exp: Run ld/24920 tests.
722
723 2020-03-13 Christian Eggers <ceggers@gmx.de>
724
725 * ldexp.c (fold_name): Return SIZEOF_HEADERS in bytes.
726
727 2020-03-11 Alan Modra <amodra@gmail.com>
728
729 * ldelf.c (elf_orphan_compatible): Return false when two sections
730 have differing SHF_MASKPROC or SHF_MASKOS flags.
731
732 2020-03-05 Alan Modra <amodra@gmail.com>
733
734 PR 25570
735 * ldlang.c (lang_size_sections_1): Don't report changes on
736 second and subsequent iterations that make no change in
737 alignment from that already reported.
738
739 2020-03-05 Alan Modra <amodra@gmail.com>
740
741 PR 25570
742 * ldlang.c (lang_sizing_iteration): New static var.
743 (lang_size_sections_1): Warn about no memory region only on first
744 iteration. Warn about changing start address on first iteration
745 then any delta from that on subsequent iterations. Report a signed
746 delta.
747 (one_lang_size_sections_pass): Increment lang_sizing_iteration.
748
749 2020-03-03 Nick Clifton <nickc@redhat.com>
750
751 PR 25588
752 * ld.texi (Options): Update the description of the --rpath-link
753 option.
754
755 2020-03-02 Alan Modra <amodra@gmail.com>
756
757 * plugin.c (plugin_object_p): Return a bfd_cleanup.
758 (plugin_cleanup): New function.
759
760 2020-03-01 H.J. Lu <hongjiu.lu@intel.com>
761
762 PR ld/25618
763 * plugin.c (plugin_object_p): Copy the no_export field to the IR
764 dummy object.
765 * testsuite/ld-plugin/lto.exp (lto_link_elf_tests): Add
766 PR ld/25618 tests.
767 * testsuite/ld-plugin/pr25618.d: New file.
768 * testsuite/ld-plugin/pr25618a.cc: Likewise.
769 * testsuite/ld-plugin/pr25618a.h: Likewise.
770 * testsuite/ld-plugin/pr25618b.cc: Likewise.
771 * testsuite/ld-plugin/pr25618b.h: Likewise.
772
773 2020-02-27 Alan Modra <amodra@gmail.com>
774
775 PR 24511
776 * testsuite/ld-mmix/b-fixo2.d: Adjust for .data change.
777 * testsuite/ld-mmix/sec-2.d: Likewise.
778 * testsuite/ld-mmix/sec-3.d: Likewise.
779 * testsuite/ld-mmix/sec-4.d: Likewise.
780 * testsuite/ld-mmix/spec802.d: Likewise.
781 * testsuite/ld-mmix/spec803.d: Likewise.
782 * testsuite/ld-mmix/spec804.d: Likewise.
783 * testsuite/ld-mmix/spec805.d: Likewise.
784 * testsuite/ld-mmix/spec806.d: Likewise.
785 * testsuite/ld-mmix/spec807.d: Likewise.
786 * testsuite/ld-mmix/spec808.d: Likewise.
787
788 2020-02-26 H.J. Lu <hongjiu.lu@intel.com>
789
790 PR ld/25593
791 * testsuite/ld-plugin/lto.exp: Run PR ld/25593 tests.
792 * testsuite/ld-plugin/pr25593.d: New file.
793 * testsuite/ld-plugin/pr25593a-1.c: Likewise.
794 * testsuite/ld-plugin/pr25593a-2.c: Likewise.
795 * testsuite/ld-plugin/pr25593b.c: Likewise.
796 * testsuite/ld-plugin/pr25593c.c: Likewise.
797 * testsuite/ld-plugin/pr25593d.c: Likewise.
798 * testsuite/ld-plugin/pr25593e.c: Likewise.
799
800 2020-02-26 Alan Modra <amodra@gmail.com>
801
802 * emultempl/cskyelf.em: Indent labels correctly.
803 * ldfile.c: Likewise.
804 * ldlang.c: Likewise.
805 * plugin.c: Likewise.
806
807 2020-02-26 Alan Modra <amodra@gmail.com>
808
809 PR 25593
810 * ldelf.c (ldelf_try_needed): Add DT_NEEDED lib to input_bfds.
811 (ldelf_after_open): Save state of input_bfds list before loading
812 DT_NEEDED libs. Traverse input_bfds list adding DT_NEEDED tags.
813 Restore input_bfds list.
814 * testsuite/ld-cris/gotplt1.d: Adjust for changed .dynstr order.
815
816 2020-02-24 Nick Clifton <nickc@redhat.com>
817
818 * po/fr.po: Update French translation.
819
820 2020-02-22 Alan Modra <amodra@gmail.com>
821
822 PR 25585
823 * NEWS: Mention better "PHDR segment not covered by LOAD segment"
824 checking.
825
826 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
827
828 PR 25537
829 * emultempl/z80.em: Remove machine compatability checking.
830
831 2020-02-19 Sergey Belyashov <sergey.belyashov@gmail.com>
832
833 PR 25517
834 * testsuite/ld-z80/arch_ez80_adl.d: Update command line.
835 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
836 * testsuite/ld-z80/arch_r800.d: Likewise.
837 * testsuite/ld-z80/arch_z180.d: Likewise.
838 * testsuite/ld-z80/arch_z80n.d: Likewise.
839 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
840 * testsuite/ld-z80/comb_arch_z180_z80.d: Likewise.
841 * testsuite/ld-z80/comb_arch_z80_ez80.d: Likewise.
842 * testsuite/ld-z80/comb_arch_z80_z180.d: Likewise.
843 * testsuite/ld-z80/comb_arch_z80_z80n.d: Likewise.
844 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
845 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
846 * testsuite/ld-z80/relocs_f_ez80.d: Likewise.
847 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
848 * testsuite/ld-z80/relocs_f_z80n.d: Likewise.
849
850 2020-02-19 Alan Modra <amodra@gmail.com>
851
852 * testsuite/ld-plugin/pr25355.d: Allow alpha-linux nm result.
853
854 2020-02-10 H.J. Lu <hongjiu.lu@intel.com>
855
856 PR binutils/25355
857 * testsuite/ld-plugin/lto.exp: Run PR binutils/25355 test.
858 * testsuite/ld-plugin/pr25355.c: New file.
859 * testsuite/ld-plugin/pr25355.d: Likewise.
860 * testsuite/lib/ld-lib.exp (run_cc_link_tests): Support compile
861 only dump.
862
863 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
864
865 * testsuite/ld-unique/unique.exp (contains_unique_symbol): Updated.
866
867 2020-02-07 Sergey Belyashov <sergey.belyashov@gmail.com>
868
869 PR 25469
870 * emulparams/elf32z80.sh: Use z80 emulation.
871 * emultempl/z80.em: Make generic to both COFF and ELF Z80 emulations.
872 * emultempl/z80elf.em: Delete.
873 * testsuite/ld-elf/pr22450.d: Expect to fail for the Z80.
874 * testsuite/ld-elf/sec64k.exp: Fix Z80 assembly.
875 * testsuite/ld-unique/pr21529.s: Avoid register name conflict.
876 * testsuite/ld-unique/unique.s: Likewise.
877 * testsuite/ld-unique/unique_empty.s: Likewise.
878 * testsuite/ld-unique/unique_shared.s: Likewise.
879 * testsuite/ld-unique/unique.d: Updated expected output.
880 * testsuite/ld-z80/arch_z80n.d: New file.
881 * testsuite/ld-z80/comb_arch_z80_z80n.d: New file.
882 * testsuite/ld-z80/labels.s: Add more labels.
883 * testsuite/ld-z80/relocs.s: Add more reloc tests.
884 * testsuite/ld-z80/relocs_f_z80n.d: New file
885
886 2020-02-07 H.J. Lu <hongjiu.lu@intel.com>
887
888 PR ld/25022
889 * testsuite/ld-elf/pr25022.d: Xfail more targets which don't use
890 ldelf_before_place_orphans.
891
892 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
893
894 PR ld/25022
895 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Add
896 before_place_orphans_default.
897 * emultempl/armcoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
898 * emultempl/beos.em (ld_${EMULATION_NAME}_emulation): Likewise.
899 * emultempl/generic.em (ld_${EMULATION_NAME}_emulation): Likewise.
900 * emultempl/linux.em (ld_${EMULATION_NAME}_emulation): Likewise.
901 * emultempl/msp430.em (ld_${EMULATION_NAME}_emulation): Likewise.
902 * emultempl/pe.em (ld_${EMULATION_NAME}_emulation): Likewise.
903 * emultempl/pep.em (ld_${EMULATION_NAME}_emulation): Likewise.
904 * emultempl/ticoff.em (ld_${EMULATION_NAME}_emulation): Likewise.
905 * emultempl/vanilla.em (ld_${EMULATION_NAME}_emulation): Likewise.
906 * emultempl/elf.em (ld_${EMULATION_NAME}_emulation): Use
907 ldelf_before_place_orphans.
908 * ldelf.c (ldelf_before_place_orphans): New.
909 * ldelf.h (ldelf_before_place_orphans): Likewise.
910 * ldemul.c (ldemul_before_place_orphans): Likewise.
911 (before_place_orphans_default): Likewise.
912 * ldemul.h (ldemul_before_place_orphans): Likewise.
913 (before_place_orphans_default): Likewise.
914 (ld_emulation_xfer_struct): Add before_place_orphans.
915 * ldlang.c (lang_process): Call ldemul_before_place_orphans
916 before lang_place_orphans.
917 * testsuite/ld-elf/pr25022.d: New file.
918 * testsuite/ld-elf/pr25022.s: Likewise.
919 * testsuite/ld-elf/pr25022.t: Likewise.
920
921 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
922
923 PR ld/25490
924 * testsuite/ld-elf/pr25490-1.d: New file.
925 * testsuite/ld-elf/pr25490-1.s: Likewise.
926
927 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
928
929 PR ld/24526
930 PR ld/25021
931 PR ld/25490
932 * testsuite/ld-elf/elf.exp: Run PR ld/25490 tests.
933 * testsuite/ld-elf/pr24526.d: New file.
934 * testsuite/ld-elf/pr24526.s: Likewise.
935 * testsuite/ld-elf/pr25021.d: Likewise.
936 * testsuite/ld-elf/pr25021.s: Likewise.
937 * testsuite/ld-elf/pr25490-2-16.rd: Likewise.
938 * testsuite/ld-elf/pr25490-2-32.rd: Likewise.
939 * testsuite/ld-elf/pr25490-2-64.rd: Likewise.
940 * testsuite/ld-elf/pr25490-2.s: Likewise.
941 * testsuite/ld-elf/pr25490-3-16.rd: Likewise.
942 * testsuite/ld-elf/pr25490-3-32.rd: Likewise.
943 * testsuite/ld-elf/pr25490-3-64.rd: Likewise.
944 * testsuite/ld-elf/pr25490-3.s: Likewise.
945 * testsuite/ld-elf/pr25490-4-16.rd: Likewise.
946 * testsuite/ld-elf/pr25490-4-32.rd: Likewise.
947 * testsuite/ld-elf/pr25490-4-64.rd: Likewise.
948 * testsuite/ld-elf/pr25490-4.s: Likewise.
949 * testsuite/ld-elf/pr25490-5-16.rd: Likewise.
950 * testsuite/ld-elf/pr25490-5-32.rd: Likewise.
951 * testsuite/ld-elf/pr25490-5-64.rd: Likewise.
952 * testsuite/ld-elf/pr25490-5.s: Likewise.
953 * testsuite/ld-elf/pr25490-6-16.rd: Likewise.
954 * testsuite/ld-elf/pr25490-6-32.rd: Likewise.
955 * testsuite/ld-elf/pr25490-6-64.rd: Likewise.
956 * testsuite/ld-elf/pr25490-6.s: Likewise.
957
958 2020-02-06 H.J. Lu <hongjiu.lu@intel.com>
959
960 * testsuite/lib/ld-lib.exp (check_gc_sections_available): Mark
961 z80 as not supported.
962
963 2020-02-06 Alan Modra <amodra@gmail.com>
964
965 * testsuite/ld-ifunc/ifunc.exp: Enable for more targets, specifying
966 targets that don't support ifunc rather than ones that do.
967 (contains_irelative_reloc): Match R_PARISC_IPLT.
968 * testsuite/ld-ifunc/lib.c: Don't use .set in asm.
969 * testsuite/ld-ifunc/ifunc-23-x86.s,
970 * testsuite/ld-ifunc/ifunc-24-x86.s,
971 * testsuite/ld-ifunc/ifunc-25-x86.s,
972 * testsuite/ld-ifunc/ifunc-4-local-x86.s,
973 * testsuite/ld-ifunc/ifunc-4-x86.s: Define _main.
974 * testsuite/ld-ifunc/ifunc-10-i386.d,
975 * testsuite/ld-ifunc/ifunc-11-i386.d,
976 * testsuite/ld-ifunc/ifunc-12-i386.d,
977 * testsuite/ld-ifunc/ifunc-13-i386.d,
978 * testsuite/ld-ifunc/ifunc-14a-i386.d,
979 * testsuite/ld-ifunc/ifunc-14b-i386.d,
980 * testsuite/ld-ifunc/ifunc-14c-i386.d,
981 * testsuite/ld-ifunc/ifunc-14d-i386.d,
982 * testsuite/ld-ifunc/ifunc-14e-i386.d,
983 * testsuite/ld-ifunc/ifunc-14f-i386.d,
984 * testsuite/ld-ifunc/ifunc-15-i386.d,
985 * testsuite/ld-ifunc/ifunc-16-i386-now.d,
986 * testsuite/ld-ifunc/ifunc-16-i386.d,
987 * testsuite/ld-ifunc/ifunc-17a-i386.d,
988 * testsuite/ld-ifunc/ifunc-17b-i386.d,
989 * testsuite/ld-ifunc/ifunc-18a-i386.d,
990 * testsuite/ld-ifunc/ifunc-18b-i386.d,
991 * testsuite/ld-ifunc/ifunc-19a-i386.d,
992 * testsuite/ld-ifunc/ifunc-19b-i386.d,
993 * testsuite/ld-ifunc/ifunc-2-i386-now.d,
994 * testsuite/ld-ifunc/ifunc-2-i386.d,
995 * testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
996 * testsuite/ld-ifunc/ifunc-2-local-i386.d,
997 * testsuite/ld-ifunc/ifunc-20-i386.d,
998 * testsuite/ld-ifunc/ifunc-21-i386.d,
999 * testsuite/ld-ifunc/ifunc-22-i386.d,
1000 * testsuite/ld-ifunc/ifunc-26.d,
1001 * testsuite/ld-ifunc/ifunc-5a-i386.d,
1002 * testsuite/ld-ifunc/ifunc-5a-local-i386.d,
1003 * testsuite/ld-ifunc/ifunc-5b-i386.d,
1004 * testsuite/ld-ifunc/ifunc-5b-local-i386.d,
1005 * testsuite/ld-ifunc/ifunc-5r-local-i386.d,
1006 * testsuite/ld-ifunc/ifunc-6a-i386.d,
1007 * testsuite/ld-ifunc/ifunc-6b-i386.d,
1008 * testsuite/ld-ifunc/ifunc-7a-i386.d,
1009 * testsuite/ld-ifunc/ifunc-7b-i386.d,
1010 * testsuite/ld-ifunc/ifunc-8-i386.d,
1011 * testsuite/ld-ifunc/ifunc-9-i386.d,
1012 * testsuite/ld-ifunc/pr17154-i386-now.d,
1013 * testsuite/ld-ifunc/pr17154-i386.d: xfail lynxos, nto, and solaris.
1014
1015 2020-02-06 Alan Modra <amodra@gmail.com>
1016
1017 * testsuite/lib/ld-lib.exp (is_generic): Delete.
1018 * testsuite/ld-unique/unique.exp: Exclude tic6x.
1019
1020 2020-02-06 Alan Modra <amodra@gmail.com>
1021
1022 * configure.tgt (i[3-7]86-*-moss*): Don't clear targ_extra_ofiles.
1023 (i[3-7]86-*-openbsd*, x86_64-*-openbsd*): Add.
1024
1025 2020-02-02 H.J. Lu <hongjiu.lu@intel.com>
1026
1027 PR gas/25380
1028 * testsuite/ld-i386/pr22001-1c.S: Use "unique,N" in .section
1029 directives.
1030 * testsuite/ld-i386/tls-gd1.S: Likewise.
1031 * testsuite/ld-x86-64/pr21481b.S: Likewise.
1032
1033 2020-01-30 Jan Beulich <jbeulich@suse.com>
1034
1035 * ld.texi: Remove space between @option and brace.
1036
1037 2020-01-29 Alan Modra <amodra@gmail.com>
1038
1039 PR 25477
1040 * ldelf.c (ldelf_check_ld_so_conf): Add prefix parameter and
1041 correct concat.
1042 (ldelf_after_open): Add prefix parameter.
1043 * ldelf.h (ldelf_after_open): Update prototype.
1044 * emultempl/elf.em (gld${EMULATION_NAME}_after_open): Pass $prefix
1045 to ldelf_after_open.
1046 * Makefile.am: Correct z80 dependencies.
1047 * Makefile.in: Regenerate.
1048
1049 2020-01-28 Alan Modra <amodra@gmail.com>
1050
1051 * ldexp.c (fold_name): Don't print bfd_link_hash_lookup failed
1052 in first phase.
1053
1054 2020-01-27 Alan Modra <amodra@gmail.com>
1055
1056 * testsuite/ld-elfvers/vers.exp: Replace case statements with
1057 switch statements.
1058 * testsuite/ld-ifunc/ifunc.exp: Likewise.
1059 * testsuite/ld-unique/unique.exp: Likewise.
1060
1061 2020-01-27 H.J. Lu <hongjiu.lu@intel.com>
1062 Alan Modra <amodra@gmail.com>
1063
1064 PR ld/25458
1065 * testsuite/ld-elf/pr25458.map: New file.
1066 * testsuite/ld-elf/pr25458.rd: Likewise.
1067 * testsuite/ld-elf/pr25458a.s: Likewise.
1068 * testsuite/ld-elf/pr25458b.s: Likewise.
1069 * testsuite/ld-elf/shared.exp: Run PR ld/25458 test.
1070
1071 2020-01-22 H.J. Lu <hongjiu.lu@intel.com>
1072
1073 PR ld/25416
1074 * testsuite/ld-x86-64/tls.exp: Skip GNU2 TLS tests only without
1075 compiler support.
1076
1077 2020-01-22 Alan Modra <amodra@gmail.com>
1078
1079 * testsuite/ld-powerpc/tlsdesc3.d,
1080 * testsuite/ld-powerpc/tlsdesc3.wf,
1081 * testsuite/ld-powerpc/tlsdesc4.d,
1082 * testsuite/ld-powerpc/tlsdesc4.s,
1083 * testsuite/ld-powerpc/tlsdesc4.wf: New tests.
1084 * testsuite/ld-powerpc/powerpc.exp: Run them.
1085
1086 2020-01-22 Alan Modra <amodra@gmail.com>
1087
1088 * emultempl/ppc64elf.em (ppc64_opt, PARSE_AND_LIST_LONGOPTS),
1089 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Support
1090 --tls-get-addr-regsave and --no-tls-get-addr-regsave.
1091 (params): Init new field.
1092 * ld.texi (--tls-get-addr-regsave, --no-tls-get-addr-regsave):
1093 Document.
1094 * testsuite/ld-powerpc/tlsdesc.s,
1095 * testsuite/ld-powerpc/tlsdesc.d,
1096 * testsuite/ld-powerpc/tlsdesc.wf,
1097 * testsuite/ld-powerpc/tlsdesc2.d,
1098 * testsuite/ld-powerpc/tlsdesc2.wf,
1099 * testsuite/ld-powerpc/tlsexenors.d,
1100 * testsuite/ld-powerpc/tlsexenors.r,
1101 * testsuite/ld-powerpc/tlsexers.d,
1102 * testsuite/ld-powerpc/tlsexers.r,
1103 * testsuite/ld-powerpc/tlsexetocnors.d,
1104 * testsuite/ld-powerpc/tlsexetocrs.d,
1105 * testsuite/ld-powerpc/tlsexetocrs.r,
1106 * testsuite/ld-powerpc/tlsopt6.d,
1107 * testsuite/ld-powerpc/tlsopt6.wf: New.
1108 * testsuite/ld-powerpc/powerpc.exp: Run new tests.
1109
1110 2020-01-22 Yuri Chornoivan <yurchor@mageia.org>
1111
1112 PR 25417
1113 * ldlang.c (ldlang_open_ctf): Fix error message typo.
1114 * emultempl/z80elf.em (z80_elf_after_open): Likewise.
1115
1116 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
1117
1118 * testsuite/ld-elf/pr23900-1.d: Adjusted.
1119
1120 2020-01-21 H.J. Lu <hongjiu.lu@intel.com>
1121
1122 * testsuite/ld-elf/pr23900-1.d: Also pass -l to readelf.
1123
1124 2020-01-20 Nick Clifton <nickc@redhat.com>
1125
1126 * po/pt_BR.po: Updated Brazilian Portuguese translation.
1127 * po/uk.po: Updated Ukranian translation.
1128
1129 2020-01-20 H.J. Lu <hongjiu.lu@intel.com>
1130
1131 PR ld/25416
1132 * testsuite/ld-x86-64/pr25416-1.s: New file
1133 * testsuite/ld-x86-64/pr25416-1a.d: Likewise.
1134 * testsuite/ld-x86-64/pr25416-1b.d: Likewise.
1135 * testsuite/ld-x86-64/pr25416-1.s: Likewise.
1136 * testsuite/ld-x86-64/pr25416-2.s: Likewise.
1137 * testsuite/ld-x86-64/pr25416-2a.d: Likewise.
1138 * testsuite/ld-x86-64/pr25416-2b.d: Likewise.
1139 * testsuite/ld-x86-64/pr25416-3.d: Likewise.
1140 * testsuite/ld-x86-64/pr25416-3.s: Likewise.
1141 * testsuite/ld-x86-64/pr25416-4.d: Likewise.
1142 * testsuite/ld-x86-64/pr25416-4.s: Likewise.
1143 * testsuite/ld-x86-64/pr25416-5a.c: Likewise.
1144 * testsuite/ld-x86-64/pr25416-5b.s: Likewise.
1145 * testsuite/ld-x86-64/pr25416-5c.s: Likewise.
1146 * testsuite/ld-x86-64/pr25416-5d.s: Likewise.
1147 * testsuite/ld-x86-64/pr25416-5e.s: Likewise.
1148 * testsuite/ld-x86-64/x86-64.exp: Run PR ld/25416 tests.
1149
1150 2020-01-20 Alan Modra <amodra@gmail.com>
1151
1152 * testsuite/ld-powerpc/tlsexe.d: Match new __tls_get_addr stub.
1153 * testsuite/ld-powerpc/tlsexeno.d: Likewise.
1154 * testsuite/ld-powerpc/tlsexetoc.d: Likewise.
1155 * testsuite/ld-powerpc/tlsexetocno.d: Likewise.
1156 * testsuite/ld-powerpc/tlsopt5.d: Likewise.
1157
1158 2020-01-18 Roland McGrath <mcgrathr@google.com>
1159
1160 * testsuite/ld-x86-64/align-branch-1.d: Loosen instruction regexps
1161 to admit whatever absolute address. The label-relative address is
1162 what the test needs to verify.
1163
1164 2020-01-18 Nick Clifton <nickc@redhat.com>
1165
1166 * configure: Regenerate.
1167 * po/ld.pot: Regenerate.
1168
1169 2020-01-18 Nick Clifton <nickc@redhat.com>
1170
1171 Binutils 2.34 branch created.
1172
1173 2020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1174
1175 * scripttempl/elf32msp430_3.sc: Remove.
1176
1177 2020-01-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1178
1179 * scripttempl/elf32msp430.sc: Add input section rules for
1180 .upper.{text,data,rodata,bss}.
1181 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
1182 * testsuite/ld-msp430-elf/upper-input-sections.s: New test.
1183
1184 2020-01-15 Lars Brinkhoff <lars@nocrew.org>
1185
1186 PR 20694
1187 * temulparams/pdp11.sh (TARGET_PAGE_SIZE): Set to 8192.
1188
1189 2020-01-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1190
1191 * testsuite/ld-msp430-elf/msp430-elf.exp: Run new test.
1192 * testsuite/ld-msp430-elf/reloc-lo-430x.s: New test.
1193
1194 2020-01-15 Alan Modra <amodra@gmail.com>
1195
1196 * testsuite/ld-powerpc/ambiguousv1b.d: Adjust expected output.
1197 * testsuite/ld-powerpc/funref.s: Align func_tab.
1198 * testsuite/ld-powerpc/funref2.s: Likewise.
1199 * testsuite/ld-powerpc/funv1.s: Add dot symbols.
1200
1201 2020-01-14 Lili Cui <lili.cui@intel.com>
1202
1203 * testsuite/ld-i386/align-branch-1.d: Updated for i686-pc-elf.
1204
1205 2020-01-13 Alan Modra <amodra@gmail.com>
1206
1207 * po/BLD-POTFILES.in: Regenerate.
1208
1209 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
1210
1211 * testsuite/ld-arc/relax-local-pic.d: Improve matching patterns.
1212
1213 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
1214
1215 * Makefile.am: Remove earcelf_prof.c and earclinux_prof.c
1216 emulations.
1217 * configure.tgt: Likewise.
1218 * Makefile.in: Regenerate.
1219 * emulparams/arcelf_prof.sh: Remove file.
1220 * emulparams/arclinux_prof.sh: Likewise.
1221
1222 2020-01-13 Claudiu Zissulescu <claziss@gmail.com>
1223
1224 * scripttempl/elfarcv2.sc : Allow interrupt vector table to be
1225 located at an arbitrary address. Use DWARF.sc file.
1226 * scripttempl/elfarc.sc: Use DWARF.sc file.
1227
1228 2020-01-07 Alan Modra <amodra@gmail.com>
1229
1230 * testsuite/ld-mips-elf/eh-frame5.s,
1231 * testsuite/ld-mips-elf/ehdr_start-new.s,
1232 * testsuite/ld-mips-elf/ehdr_start-o32.s,
1233 * testsuite/ld-mips-elf/mips16-call-global-1.s,
1234 * testsuite/ld-mips-elf/mips16-intermix-1.s,
1235 * testsuite/ld-mips-elf/mips16-pic-1b.s,
1236 * testsuite/ld-mips-elf/mips16-pic-4c.s,
1237 * testsuite/ld-mips-elf/no-shared-1-n64.s,
1238 * testsuite/ld-mips-elf/no-shared-1-o32.s,
1239 * testsuite/ld-mips-elf/pic-and-nonpic-1b-micromips.s,
1240 * testsuite/ld-mips-elf/pic-and-nonpic-1b.s,
1241 * testsuite/ld-mips-elf/pic-and-nonpic-2a.s,
1242 * testsuite/ld-mips-elf/pic-and-nonpic-3b.s,
1243 * testsuite/ld-mips-elf/pic-and-nonpic-4b.s,
1244 * testsuite/ld-mips-elf/pic-and-nonpic-5a.s,
1245 * testsuite/ld-mips-elf/pic-and-nonpic-6-n32c.s,
1246 * testsuite/ld-mips-elf/pic-and-nonpic-6-n64c.s,
1247 * testsuite/ld-mips-elf/pic-and-nonpic-6-o32c.s,
1248 * testsuite/ld-mips-elf/pie.s,
1249 * testsuite/ld-mips-elf/relax-jalr.s: Revert 2019-12-17 change.
1250
1251 2020-01-06 Nick Clifton <nickc@redhat.com>
1252
1253 PR 25327
1254 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
1255 command line when building libcomm1.o and pr13250 tests.
1256 * testsuite/ld-plugin/lto.exp: Likewise for pr20267 tests.
1257
1258 2020-01-06 Nick Clifton <nickc@redhat.com>
1259
1260 PR 25326
1261 * testsuite/ld-elf/shared.exp: Add -fcommon option to compiler
1262 command line when building pr19579 binaries.
1263
1264 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
1265
1266 * emultempl/pe.em: Add new option --enable-reloc-section.
1267 * emultempl/pep.em: Likewise.
1268 * ld.texi: Document --enable-reloc-section.
1269 * pe-dll.c (pe_dll_build_sections): Use pe_dll_enable_reloc_section.
1270 (pe_dll_fill_sections): Simplify by calling pe_exe_fill_sections.
1271 * pe-dll.h: Add extern declaration of option flag.
1272 * pep-dll.c (pe_dll_enable_reloc_section):
1273 Add alias define for pep_dll_enable_reloc_section.
1274 * pep-dll.h: Add extern declaration of option flag.
1275
1276 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
1277
1278 * Makefile.am: Add new target z80-elf
1279 * configure.tgt: Likewise.
1280 * Makefile.in: Regenerate.
1281 * emultempl/z80.em: Add support for eZ80 and Z180 architectures.
1282 * emulparams/elf32z80.sh: New file.
1283 * emultempl/z80elf.em: Likewise.
1284 * testsuite/ld-elf/comm-data4.s: Fix for Z80.
1285 * testsuite/ld-elf/comm-data5.s: Fix for Z80.
1286 * testsuite/ld-scripts/fill16.d: Fix for Z80.
1287 * testsuite/ld-z80/arch_ez80_adl.d: Likewise.
1288 * testsuite/ld-z80/arch_ez80_z80.d: Likewise.
1289 * testsuite/ld-z80/arch_r800.d: Likewise.
1290 * testsuite/ld-z80/arch_z180.d: Likewise.
1291 * testsuite/ld-z80/arch_z80.d: Likewise.
1292 * testsuite/ld-z80/comb_arch_ez80_z80.d: Likewise.
1293 * testsuite/ld-z80/comb_arch_z180.d: Likewise.
1294 * testsuite/ld-z80/labels.s: Likewise.
1295 * testsuite/ld-z80/relocs.s: Likewise.
1296 * testsuite/ld-z80/relocs_b_ez80.d: Likewise.
1297 * testsuite/ld-z80/relocs_b_z80.d: Likewise.
1298 * testsuite/ld-z80/relocs_f_z80.d: Likewise.
1299 * testsuite/ld-z80/z80.exp: Likewise.
1300 * NEWS: Mention the new support.
1301
1302 2020-01-02 Tamar Christina <tamar.christina@arm.com>
1303
1304 PR 25210
1305 PR 24753
1306 * emultempl/aarch64elf.em (elf${ELFSIZE}_aarch64_add_stub_section):
1307 Remove SEC_LINKER_CREATED.
1308 * testsuite/ld-aarch64/aarch64-elf.exp: Add erratum835769-843419.
1309 * testsuite/ld-aarch64/erratum835769-843419.d: New test.
1310
1311 2020-01-01 Alan Modra <amodra@gmail.com>
1312
1313 Update year range in copyright notice of all files.
1314
1315 For older changes see ChangeLog-2019
1316 \f
1317 Copyright (C) 2020 Free Software Foundation, Inc.
1318
1319 Copying and distribution of this file, with or without modification,
1320 are permitted in any medium without royalty provided the copyright
1321 notice and this notice are preserved.
1322
1323 Local Variables:
1324 mode: change-log
1325 left-margin: 8
1326 fill-column: 74
1327 version-control: never
1328 End:
This page took 0.092091 seconds and 4 git commands to generate.