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