Check sh_type/sh_flags/sh_addralign/sh_entsize when copying sh_link/sh_info
[external/binutils.git] / binutils / testsuite / ChangeLog
1 2015-08-07  H.J. Lu  <hongjiu.lu@intel.com>
2
3         PR binutils/18785
4         * binutils-all/objcopy.exp: Run strip-12.
5         * binutils-all/strip-12.d: New file.
6         * binutils-all/strip-12.s: Likewise.
7
8 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
9
10         * binutils-all/objcopy.exp: Run new symbol tests.
11         (objcopy_test_symbol_manipulation): New function.
12         * binutils-all/symbols-1.d: New file.
13         * binutils-all/symbols-2.d: New file.
14         * binutils-all/symbols-3.d: New file.
15         * binutils-all/symbols-4.d: New file.
16         * binutils-all/symbols.s: New file.
17
18 2015-08-05  Nick Clifton  <nickc@redhat.com>
19
20         * binutils-all/objcopy.exp (keep_debug_symbols_and_check_links):
21         New proc.  Checks that debug-info-only binaries retain the
22         sh_link field in stripped sections.
23
24 2015-08-04  Nick Clifton  <nickc@redhat.com>
25
26         * lib/utils-lib.exp (run_dump_test): Document DUMPPROG, readelf
27         and size parameters.  Alpha-sort switch tables.  Include
28         addr2line, and size in list of possible auto-detected dump
29         programs.
30
31 2015-07-24  Nick Clifton  <nickc@redhat.com>
32
33         * binutils-all/localize-hidden-1.d: Allow for extra symbols in the
34         output.
35         * binutils-all/strip-11.d: Skip for the RL78.
36
37 2015-07-14  H.J. Lu  <hongjiu.lu@intel.com>
38
39         * binutils-all/compress.exp: Update.
40
41 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
42
43          PR binutils/18656
44          * binutils-all/compress.exp (convert_test): New proc.
45          Run conversion tests between x86-64 and x32.
46
47 2015-07-10  H.J. Lu  <hongjiu.lu@intel.com>
48
49         * binutils-all/dw2-3.W: Updated to accept .debug_* sections.
50
51 2015-05-20  Ed Maste  <emaste@freebsd.org>
52
53         * lib/binutils-common.exp (is_elf_format): Include *-*-freebsd* except
54         i?86-*-freebsd\[12\].*.
55         * (is_aout_format): Update FreeBSD to i?86-*-freebsd\[12\].*.
56
57 2015-05-18  Nick Clifton  <nickc@redhat.com>
58
59         * binutils-all/dw2-3.S: Replace .int with .4byte.
60
61 2015-05-15  Nick Clifton  <nickc@redhat.com>
62
63         * binutils-all/z.s: New test.  Checks the --decompress option to
64         readelf.
65         * binutils-all/readelf.exp: Run the test.
66         * binutils-all/readelf.z: Expected output from readelf.
67
68 2015-05-14  H.J. Lu  <hongjiu.lu@intel.com>
69
70         * binutils-all/compress.exp: Replace "$OBJDUMP -s -j .debug_info"
71         with "$OBJDUMP -W".
72         * binutils-all/libdw2-compressedgabi.out: Updated.
73
74 2015-05-15  Nick Clifton  <nickc@redhat.com>
75
76         PR binutils/18374
77         * binutils-all/pr18374.s: New test file.
78         * binutils-all/readelf.exp: Assemble and run the new test.
79         * binutils-all/readelf.pr18374: Expected output from readelf.
80
81 2015-05-12  H.J. Lu  <hongjiu.lu@intel.com>
82
83         * binutils-all/elfedit-1.d: Also skip x86_64-*-nacl*.
84
85 2015-05-11  H.J. Lu  <hongjiu.lu@intel.com>
86
87         * binutils-all/elfedit-1.d: Skip x86_64-*-gnux32.
88         * lib/utils-lib.exp (run_dump_test): Allow mixing target and
89         not-target directives.
90
91 2015-05-11  H.J. Lu  <hongjiu.lu@intel.com>
92
93         * binutils-all/objdump.exp (cpus_expected): Append iamcu.
94
95 2015-05-11  H.J. Lu  <hongjiu.lu@intel.com>
96
97         * binutils-all/elfedit-5.d: New file.
98         * binutils-all/elfedit.exp: Run elfedit-5.
99
100 2015-04-30  Nick Clifton  <nickc@redhat.com>
101
102         * binutils-all/objdump.exp (cpus_expected): Add MeP CPU names.
103
104 2015-04-23  H.J. Lu  <hongjiu.lu@intel.com>
105
106         PR binutils/18209
107         * binutils-all/compress.exp: Replace dw2-3.W with dw2-3gabi.W
108         on zlib-gabi output.
109         * binutils-all/dw2-1.W: Convert section names to .zdebug_*.
110         * binutils-all/dw2-3.W: Likewise.
111         * binutils-all/objdump.W: Likewise.
112         * binutils-all/dw2-3gabi.W: New file.
113
114 2015-04-20  H.J. Lu  <hongjiu.lu@intel.com>
115
116         * binutils-all/i386/compressed-1b.d: Don't hardcode offset of
117         .shstrtab section.
118         * binutils-all/i386/compressed-1c.d: Likewise.
119         * binutils-all/readelf.s-64: Likewise.
120         * binutils-all/x86-64/compressed-1b.d: Likewise.
121         * binutils-all/x86-64/compressed-1c.d: Likewise.
122
123 2015-04-08  H.J. Lu  <hongjiu.lu@intel.com>
124
125         * compress.exp: Add tests for
126         --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
127         * binutils-all/dw2-3.rS: New file.
128         * binutils-all/dw2-3.rt: Likewise.
129         * binutils-all/libdw2-compressedgabi.out: Likewise.
130
131 2015-04-06  H.J. Lu  <hongjiu.lu@intel.com>
132
133         * binutils-all/compress.exp: Remove is_zlib_supported check.
134         * binutils-all/objdump.exp: Likewise.
135         * binutils-all/readelf.exp (readelf_compressed_wa_test): Likewise.
136         * lib/utils-lib.exp (run_dump_test): Likewise.
137         * lib/binutils-common.exp (is_zlib_supported): Removed.
138
139 2015-04-06  H.J. Lu  <hongjiu.lu@intel.com>
140
141         * binutils-all/compress.exp (compression_used): Remove "/dev/null"
142         from remote_exec.
143
144 2015-04-05  H.J. Lu  <hongjiu.lu@intel.com>
145
146         * binutils-all/compress.exp (compression_used): New.
147         Xfail test if compression didn't make the section smaller.
148
149 2015-04-04  H.J. Lu  <hongjiu.lu@intel.com>
150
151         * binutils-all/compress.exp (testfile): Remove suffix.
152         (compressedfile): Likewise.
153         (compressedfile2): Likewise.
154         (libfile): Likewise.
155         (testfile3): New.
156         (compressedfile3): Likewise.
157         Updated.
158         Add a dw2-3.S test.
159         (${libfile}.a): Add ${compressedfile3}.o.
160         * binutils-all/dw2-3.S: New file.
161         * binutils-all/dw2-3.W: Likewise.
162         * binutils-all/libdw2-compressed.out: Updated.
163         * binutils-all/libdw2.out: Likewise.
164
165 2015-04-03  H.J. Lu  <hongjiu.lu@intel.com>
166
167         * lib/binutils-common.exp (is_zlib_supported): Always return 1.
168
169 2015-04-02  Nick Clifton  <nickc@redhat.com>
170
171         * binutils-all/readelf.ss-64: Move possible location of the $d
172         mapping symbol.
173
174 2015-03-26  Renlin Li  <renlin.li@arm.com>
175
176         * binutils-all/readelf.s-64: Support aarch64 case.
177         * binutils-all/readelf.ss-64: Likewise.
178
179 2015-03-11  Alan Modra  <amodra@gmail.com>
180
181         * binutils-all/update-section.exp: Only run on ELF targets.
182
183 2015-03-03  Jiong Wang  <jiong.wang@arm.com>
184
185         * binutils-all/arm/rvct_symbol.s: New testcase.
186         * binutils-all/arm/objdump.exp: Run it.
187
188 2015-02-26  Andrew Burgess  <andrew.burgess@embecosm.com>
189
190         * binutils-all/update-1.s: New file.
191         * binutils-all/update-2.s: New file.
192         * binutils-all/update-3.s: New file.
193         * binutils-all/update-4.s: New file.
194         * binutils-all/update-section.exp: New file.
195
196 2015-02-24  Nick Clifton  <nickc@redhat.com>
197
198         * binutils-all/objcopy.exp: Skip the strip-10 test for the V850.
199
200 2015-01-01  Alan Modra  <amodra@gmail.com>
201
202         Update year range in copyright notice of all files.
203
204 2014-12-26  Alan Modra  <amodra@gmail.com>
205
206         * binutils-all/strip-11.d: New test.
207         * binutils-all/objcopy.exp: Run it.
208
209 2014-12-06  Eric Botcazou  <ebotcazou@adacore.com>
210
211         * binutils-all/objcopy.exp: Skip strip-10 for Visium.
212
213 2014-09-12  Andrew Bennett  <andrew.bennett@imgtec.com>
214
215         * binutils-all/objcopy.exp: Add mips*-img-elf* target triple.
216         * binutils-all/readelf.exp: Likewise
217
218 2014-09-06  Matthew Fortune  <matthew.fortune@imgtec.com>
219
220         * binutils-all/readelf.ss-mips: Account for new sections.
221
222 2014-07-29  Matthew Fortune  <matthew.fortune@imgtec.com>
223
224         * binutils-all/readelf.s: Account for .MIPS.abiflags and
225         .gnu.attributes.
226         * binutils-all/readelf.ss-tmips: Likewise.
227         * binutils-all/strip-3.d: Likewise.
228
229 2014-07-10  Will Newton  <will.newton@linaro.org>
230
231         * binutils-all/objcopy.exp: Disable the strip-10 test on
232         non-EABI ARM configurations.
233
234 2014-06-03  Nick Clifton  <nickc@redhat.com>
235
236         * binutils-all/ar.exp: Skip tests involving bfdtest1 and bfdtest2
237         if these executables are not present.
238
239 2014-04-30  Nick Clifton  <nickc@redhat.com>
240
241         * binutils-all/debug_str.s: New test.
242         * binutils-all/debug_str.d: New test control file.
243         * binutils-all/compress.exp: Run debug_str test.
244
245 2014-04-22  Christian Svensson  <blue@cmd.nu>
246
247         * binutils-all/objcopy.exp: Remove openrisc and or32 support.  Add
248         support for or1k.
249         * binutils-all/objdump.exp: Likewise.
250         * binutils-all/dw2-decodedline-1.S: Likewise.
251
252 2014-03-26  Jiong Wang  <jiong.wang@arm.com>
253
254         * binutils-all/aarch64/aarch64.exp: New test driver for AArch64.
255         * binutils-all/aarch64/unallocated-encoding.s: New testcase.
256         * binutils-all/aarch64/unallocated-encoding.d: Ditto.
257
258 2014-03-17  Nick Clifton  <nickc@redhat.com>
259
260         * binutils-all/readelf.ss: Add skip of MSP430 defined symbols.
261
262 2014-01-29  Nick Clifton  <nickc@redhat.com>
263
264         PR binutils/16318
265         * binutils-all/strip-10.d: Revert previous delta.
266
267 2014-01-28  Nick Clifton  <nickc@redhat.com>
268
269         PR binutils/16318
270         * binutils-all/strip-10.d: Allow "System V" in the osabi field.
271
272 2013-12-20  Nick Clifton  <nickc@redhat.com>
273
274         PR binutils/16218
275         * binutils-all/dw2-1.W: Update expected objdump output.
276         * binutils-all/i386/compressed-1a.d: Likewise.
277         * binutils-all/objdump.W: Likewise.
278         * binutils-all/x86-64/compressed-1a.d: Likewise.
279
280 2013-12-19  H.J. Lu  <hongjiu.lu@intel.com>
281
282         PR binutils/16317
283         * binutils-all/readelf.s: Updated.
284         * binutils-all/readelf.s-64: Likewise.
285
286 2013-12-13  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
287             Wei-Cheng Wang  <cole945@gmail.com>
288
289         * binutils-all/objdump.exp: Add NDS32 cpu.
290         * binutils-all/readelf.r: Skip extra reloc created by NDS32.
291
292 2013-12-12  H.J. Lu  <hongjiu.lu@intel.com>
293
294         PR binutils/16318
295         * binutils-all/strip-10.d: Check OS/ABI.
296
297 2013-12-07  Mike Frysinger  <vapier@gentoo.org>
298
299         * binutils-all/windres/escapex-2.rc: Remove +x file mode.
300         * binutils-all/windres/version_small.rc: Likewise.
301         * binutils-all/windres/version_small.rsd: Likewise.
302
303 2013-12-03  Nick Clifton  <nickc@redhat.com>
304
305         * binutils-all/windres/windres.exp: Run for x86_64-pc-cygwin.
306         Add test of "objump -p" output.
307
308 2013-11-27  Matthew Fortune <matthew.fortune@imgtec.com>
309
310         * binutils-all/objcopy.exp: Consider mips-mti-elf the same as
311         mips-sde-elf
312         * binutils-all/readelf.exp: Likewise
313
314 2013-11-21  Tristan Gingold  <gingold@adacore.com>
315
316         * binutils-all/dlltool.exp: Add dlltool_gas_flag to version.dll test.
317
318 2013-11-02  Alan Modra  <amodra@gmail.com>
319
320         * binutils-all/x86-64/compressed-1a.d: Allow wide display of addresses.
321
322         * binutils-all/dw2-1.S: Use .4byte rather than .int.
323         * binutils-all/dw2-2.S: Likewise.
324
325 2013-10-24  Nick Clifton  <nickc@redhat.com>
326
327         * binutils-all/objdump.exp (cps_expected): Add MSP430 to list.
328
329 2013-09-27  H.J. Lu  <hongjiu.lu@intel.com>
330
331         * binutils-all/x86-64/compressed-1a.d: Updated for 64-bit addresses.
332
333 2013-09-12  Nick Clifton  <nickc@redhat.com>
334
335         * binutils-all/x86-64/compressed-1a.d: Update expected output to
336         allow for 64-bit addresses.
337
338 2013-08-22  Nick Clifton  <nickc@redhat.com>
339
340         * binutils-all/nm.exp: --size-sort test: Add more ELF-like
341         targets.
342         * binutils-all/nm-1.s: Use .byte instead of .long.
343         Provide a terminating symbol.
344
345 2013-08-21  Hans-Peter Nilsson  <hp@bitrange.com>
346
347         * binutils-all/nm.exp: Revert last change.  Instead use nm-elf-1.s
348         for mmix-knuth-mmixware.
349
350 2013-08-20  Hans-Peter Nilsson  <hp@bitrange.com>
351
352         * binutils-all/nm.exp: Xfail test for nm --size-sort for
353         mmix-knuth-mmixware.
354
355 2013-08-19  Tristan Gingold  <gingold@adacore.com>
356
357         * binutils-all/nm.exp: Add a test for nm --size-sort
358         * binutils-all/nm-elf-1.s: New file.
359         * binutils-all/nm-1.s: New file.
360
361 2013-05-31  H.J. Lu  <hongjiu.lu@intel.com>
362
363         * binutils-all/i386/compressed-1b.d: Updated for text/data/bss
364         section alignment change.
365         * binutils-all/i386/compressed-1c.d: Likewise.
366         * binutils-all/x86-64/compressed-1b.d: Likewise.
367         * binutils-all/x86-64/compressed-1c.d: Likewise.
368
369 2013-05-28  Cary Coutant  <ccoutant@google.com>
370
371         * binutils-all/dw2-1.W: Adjust expected output.
372         * binutils-all/objdump.W: Likewise.
373         * binutils-all/i386/compressed-1a.d: Likewise.
374         * binutils-all/x86-64/compressed-1a.d: Likewise.
375
376 2013-05-02  Nick Clifton  <nickc@redhat.com>
377
378         * readelf.exp: Expect -wi test to fail for the MSP430.
379
380 2013-05-01  Maciej W. Rozycki  <macro@codesourcery.com>
381
382         * lib/binutils-common.exp (is_elf_format): Also exclude
383         *-*-linux*ecoff*.
384
385 2013-02-26  Nick Clifton  <nickc@redhat.com>
386
387         PR binutils/15191
388         * binutils-all/readelf.n: Updare expected output from readelf.
389
390 2013-02-14  Maciej W. Rozycki  <macro@codesourcery.com>
391
392         * binutils-all/mips/mixed-mips16.s: Add missing stack adjustment.
393         * binutils-all/mips/mixed-mips16.d: Update accordingly.
394
395 2013-02-13  Maciej W. Rozycki  <macro@codesourcery.com>
396
397         * binutils-all/mips/mixed-micromips.d: New test.
398         * binutils-all/mips/mixed-mips16.d: New test.
399         * binutils-all/mips/mixed-micromips.s: New test source.
400         * binutils-all/mips/mixed-mips16.s: New test source.
401         * binutils-all/mips/mips.exp: New file.
402
403 2012-12-17  Nick Clifton  <nickc@redhat.com>
404
405         * binutils-all/windres/README: Add copyright notice.
406
407 2012-11-27  Roland McGrath  <mcgrathr@google.com>
408
409         * lib/binutils-common.exp (is_zlib_supported): New function.
410         * lib/utils-lib.exp (run_dump_test): If as options include
411         --compress-debug-sections and zlib is not available, report
412         the test as unsupported.
413         * binutils-all/compress.exp: Bail out if zlib is not available.
414         * binutils-all/objdump.exp (objdump compressed debug):
415         Mark unsupported if zlib is not available.
416         * binutils-all/readelf.exp (readelf_compressed_wa_test): Likewise.
417
418 2012-11-06  H.J. Lu  <hongjiu.lu@intel.com>
419
420         PR binutils/14567
421         * binutils-all/ar.exp (bfdtest1): Removed.
422         (long_filenames): Take bfdtests.
423         (thin_archive): Likewise.
424         (thin_archive_with_nested): Likewise.
425         (bfdtests): New.
426         Pass $bfdtests to long_filenames, thin_archive and
427         thin_archive_with_nested.
428
429 2012-10-29  Alan Modra  <amodra@gmail.com>
430
431         * binutils-all/copy-3.d: Exclude all cygwin and mingw targets,
432         and rs6000.
433
434 2012-10-24  H.J. Lu  <hongjiu.lu@intel.com>
435
436         * binutils-all/ar.exp (bfdtest1): Remove findfile.
437
438 2012-10-21  H.J. Lu  <hongjiu.lu@intel.com>
439
440         * binutils-all/dw2-1.W: Updated.
441
442 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
443
444         * binutils-all/compress.exp: Add an objdump test.
445         * binutils-all/dw2-1.W: New file.
446
447 2012-08-17  H.J. Lu  <hongjiu.lu@intel.com>
448
449         * binutils-all/ar.exp (long_filenames): Remove extra verbose
450         before binutils_run.
451         (thin_archive): Likewise.
452         (thin_archive_with_nested): Likewise.  Also run bfdtest1 on
453         $archive2.
454
455 2012-08-16  H.J. Lu  <hongjiu.lu@intel.com>
456
457         PR binutils/14481
458         * ar.exp (bfdtest1): New.
459         (long_filenames): Run bfdtest1.
460         (thin_archive): Likewise.
461         (thin_archive_with_nested): Likewise.
462
463 2012-08-13  Ian Bolton  <ian.bolton@arm.com>
464             Laurent Desnogues  <laurent.desnogues@arm.com>
465             Jim MacArthur  <jim.macarthur@arm.com>
466             Marcus Shawcroft  <marcus.shawcroft@arm.com>
467             Nigel Stephens  <nigel.stephens@arm.com>
468             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
469             Richard Earnshaw  <rearnsha@arm.com>
470             Sofiane Naci  <sofiane.naci@arm.com>
471             Tejas Belagod  <tejas.belagod@arm.com>
472             Yufeng Zhang  <yufeng.zhang@arm.com>
473
474         * objdump.exp: Add AArch64.
475
476 2012-08-02  H.J. Lu  <hongjiu.lu@intel.com>
477
478         PR binutils/14420
479         * binutils-all/i386/compressed-1a.d: Updated.
480         * binutils-all/objdump.W: Likewise.
481         * binutils-all/readelf.wa: Likewise.
482         * binutils-all/x86-64/compressed-1a.d: Likewise.
483
484 2012-07-28  Kai Tietz  <ktietz@redhat.com>
485
486         * binutils-all/windres/version_small.rc: New test.
487         * binutils-all/windres/version_small.rsd: Likewise.
488
489 2012-07-03  H.J. Lu  <hongjiu.lu@intel.com>
490
491         PR binutils/14319
492         * binutils-all/compress.exp: Test compress empty debug sections.
493
494         * binutils-all/dw2-empty.S: New file.
495
496 2012-06-07  Thomas Schwinge  <thomas@codesourcery.com>
497
498         * binutils-all/i386/i386.exp: Don't skip for x86_64-*-linux*.
499
500 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
501
502         * binutils-all/hppa/objdump.exp: Expect addend as signed.
503
504 2012-05-17  Alan Modra  <amodra@gmail.com>
505
506         * binutils-all/objdump.W: Update.
507         * binutils-all/readelf.wa: Update.
508         * binutils-all/i386/compressed-1a.d: Update.
509         * binutils-all/x86-64/compressed-1a.d: Update.
510
511 2012-05-16  Meador Inge  <meadori@codesourcery.com>
512
513         * binutils-all/arm/objdump.exp:
514         STMFD/LDMIA sp!, {reg} don't disassemble to PUSH/POP {reg} any longer.
515
516 2012-04-12  H.J. Lu  <hongjiu.lu@intel.com>
517
518         PR binutils/13947
519         * binutils-all/i386/compressed-1b.d: Remove empty REL section.
520         * binutils-all/i386/compressed-1c.d: Likewise.
521
522         * binutils-all/x86-64/compressed-1b.d: Remove empty RELA
523         section.
524         * binutils-all/x86-64/compressed-1c.d: Likewise.
525
526 2012-04-03  Roland McGrath  <mcgrathr@google.com>
527
528         * lib/binutils-common.exp (is_elf_format): Consider *-*-nacl* to
529         be ELF too.
530
531         * binutils-all/elfedit-4.d: Add "#as: --64" option.
532
533         * binutils-all/i386/i386.exp: Accept nacl targets too.
534         * binutils-all/x86-64/x86-64.exp: Likewise.
535
536 2012-03-13  Hans-Peter Nilsson  <hp@axis.com>
537
538         PR binutils/3807
539         * binutils-all/objcopy.exp (localize-hidden-1): Correct xfailed
540         mips-targets.
541
542 2012-02-25  Walter Lee  <walt@tilera.com>
543
544         * binutils-all/objdump.exp (cpus_expected): Add tilegx.
545
546 2012-02-14  Alan Modra  <amodra@gmail.com>
547
548         * binutils-all/dlltool.exp: Add setup_xfail.
549
550         * binutils-all/dw2-decodedline.S: Always have whitespace before
551         directives.
552         * binutils-all/version.s: Likewise.
553         * binutils-all/objdump.exp (dw2-decodedline): Don't run for
554         hppa64*-*-hpux*, i370-*-*, i960-*-*.
555
556 2012-02-11  Kai Tietz  <ktietz@redhat.com>
557
558         * binutils-all/version.def: New file.
559         * binutils-all/dlltool.exp: Add version-dll test.
560
561 2012-02-02  Nick Clifton  <nickc@redhat.com>
562
563         * binutils-all/readelf.n: Add #pass to cope with targets that add
564         their own notes.
565
566 2012-02-01  Nick Clifton  <nickc@redhat.com>
567
568         PR binutils/13482
569         * binutils-all/version.s: New test source file.
570         * binutils-all/readelf.n: New file: expected readelf output.
571         * binutils-all/readelf.exp: Add test of .note section contents.
572
573 For older changes see ChangeLog-0411
574 \f
575 Copyright (C) 2012-2015 Free Software Foundation, Inc.
576
577 Copying and distribution of this file, with or without modification,
578 are permitted in any medium without royalty provided the copyright
579 notice and this notice are preserved.
580
581 Local Variables:
582 mode: change-log
583 left-margin: 8
584 fill-column: 74
585 version-control: never
586 End: