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