old-cross-binutils/binutils/testsuite/ChangeLog
H.J. Lu cbd44e247e Don't use the output section size to copy input section
We can't use the output section size to copy input section since
--interleave will shrink the output section.  Instead, we change
bfd_convert_section_contents to return the updated input section
size.  When we do that, we don't need to adjust the output section
size to skip gap fills.

bfd/

	PR binutils/19020
	* bfd.c (bfd_convert_section_contents): Add ptr_size parameter.
	* bfd-in2.h: Regenerated.

binutils/

	PR binutils/19020
	* objcopy.c (copy_object): Don't adjust the output section size
	when copying from input sections.
	(copy_section): Use input section size for the copy.  Get the
	updated section size from bfd_convert_section_contents.

binutils/testsuite/

	PR binutils/19020
	* binutils-all/objcopy.exp: Run pr19020a and pr19020b.
	* lib/utils-lib.exp (run_dump_test): Support binary input.
	* binutils-all/pr19020.in: New file.
	* binutils-all/pr19020a.d: Likewise.
	* binutils-all/pr19020b.d: Likewise.
2015-09-29 13:31:57 -07:00

609 lines
18 KiB
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/19020
* binutils-all/objcopy.exp: Run pr19020a and pr19020b.
* lib/utils-lib.exp (run_dump_test): Support binary input.
* binutils-all/pr19020.in: New file.
* binutils-all/pr19020a.d: Likewise.
* binutils-all/pr19020b.d: Likewise.
2015-08-11 Alan Modra <amodra@gmail.com>
* binutils-all/strip-12.s: Align .bss section.
* binutils-all/strip-12.d: Adjust.
* binutils-all/symbols-1.d: Allow extraneous symbols.
* binutils-all/symbols-2.d: Likewise, and V for weakened syms.
* binutils-all/symbols-3.d: Likewise.
* binutils-all/symbols-4.d: Likewise.
2015-08-08 Hans-Peter Nilsson <hp@axis.com>
* binutils-all/strip-12.s: Use ".section .bss" instead of ".bss"
which isn't supported by all ELF targets.
2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/18785
* binutils-all/objcopy.exp: Run strip-12.
* binutils-all/strip-12.d: New file.
* binutils-all/strip-12.s: Likewise.
2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
* binutils-all/objcopy.exp: Run new symbol tests.
(objcopy_test_symbol_manipulation): New function.
* binutils-all/symbols-1.d: New file.
* binutils-all/symbols-2.d: New file.
* binutils-all/symbols-3.d: New file.
* binutils-all/symbols-4.d: New file.
* binutils-all/symbols.s: New file.
2015-08-05 Nick Clifton <nickc@redhat.com>
* binutils-all/objcopy.exp (keep_debug_symbols_and_check_links):
New proc. Checks that debug-info-only binaries retain the
sh_link field in stripped sections.
2015-08-04 Nick Clifton <nickc@redhat.com>
* lib/utils-lib.exp (run_dump_test): Document DUMPPROG, readelf
and size parameters. Alpha-sort switch tables. Include
addr2line, and size in list of possible auto-detected dump
programs.
2015-07-24 Nick Clifton <nickc@redhat.com>
* binutils-all/localize-hidden-1.d: Allow for extra symbols in the
output.
* binutils-all/strip-11.d: Skip for the RL78.
2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/compress.exp: Update.
2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/18656
* binutils-all/compress.exp (convert_test): New proc.
Run conversion tests between x86-64 and x32.
2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/dw2-3.W: Updated to accept .debug_* sections.
2015-05-20 Ed Maste <emaste@freebsd.org>
* lib/binutils-common.exp (is_elf_format): Include *-*-freebsd* except
i?86-*-freebsd\[12\].*.
* (is_aout_format): Update FreeBSD to i?86-*-freebsd\[12\].*.
2015-05-18 Nick Clifton <nickc@redhat.com>
* binutils-all/dw2-3.S: Replace .int with .4byte.
2015-05-15 Nick Clifton <nickc@redhat.com>
* binutils-all/z.s: New test. Checks the --decompress option to
readelf.
* binutils-all/readelf.exp: Run the test.
* binutils-all/readelf.z: Expected output from readelf.
2015-05-14 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/compress.exp: Replace "$OBJDUMP -s -j .debug_info"
with "$OBJDUMP -W".
* binutils-all/libdw2-compressedgabi.out: Updated.
2015-05-15 Nick Clifton <nickc@redhat.com>
PR binutils/18374
* binutils-all/pr18374.s: New test file.
* binutils-all/readelf.exp: Assemble and run the new test.
* binutils-all/readelf.pr18374: Expected output from readelf.
2015-05-12 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/elfedit-1.d: Also skip x86_64-*-nacl*.
2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/elfedit-1.d: Skip x86_64-*-gnux32.
* lib/utils-lib.exp (run_dump_test): Allow mixing target and
not-target directives.
2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/objdump.exp (cpus_expected): Append iamcu.
2015-05-11 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/elfedit-5.d: New file.
* binutils-all/elfedit.exp: Run elfedit-5.
2015-04-30 Nick Clifton <nickc@redhat.com>
* binutils-all/objdump.exp (cpus_expected): Add MeP CPU names.
2015-04-23 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/18209
* binutils-all/compress.exp: Replace dw2-3.W with dw2-3gabi.W
on zlib-gabi output.
* binutils-all/dw2-1.W: Convert section names to .zdebug_*.
* binutils-all/dw2-3.W: Likewise.
* binutils-all/objdump.W: Likewise.
* binutils-all/dw2-3gabi.W: New file.
2015-04-20 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/i386/compressed-1b.d: Don't hardcode offset of
.shstrtab section.
* binutils-all/i386/compressed-1c.d: Likewise.
* binutils-all/readelf.s-64: Likewise.
* binutils-all/x86-64/compressed-1b.d: Likewise.
* binutils-all/x86-64/compressed-1c.d: Likewise.
2015-04-08 H.J. Lu <hongjiu.lu@intel.com>
* compress.exp: Add tests for
--compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
* binutils-all/dw2-3.rS: New file.
* binutils-all/dw2-3.rt: Likewise.
* binutils-all/libdw2-compressedgabi.out: Likewise.
2015-04-06 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/compress.exp: Remove is_zlib_supported check.
* binutils-all/objdump.exp: Likewise.
* binutils-all/readelf.exp (readelf_compressed_wa_test): Likewise.
* lib/utils-lib.exp (run_dump_test): Likewise.
* lib/binutils-common.exp (is_zlib_supported): Removed.
2015-04-06 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/compress.exp (compression_used): Remove "/dev/null"
from remote_exec.
2015-04-05 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/compress.exp (compression_used): New.
Xfail test if compression didn't make the section smaller.
2015-04-04 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/compress.exp (testfile): Remove suffix.
(compressedfile): Likewise.
(compressedfile2): Likewise.
(libfile): Likewise.
(testfile3): New.
(compressedfile3): Likewise.
Updated.
Add a dw2-3.S test.
(${libfile}.a): Add ${compressedfile3}.o.
* binutils-all/dw2-3.S: New file.
* binutils-all/dw2-3.W: Likewise.
* binutils-all/libdw2-compressed.out: Updated.
* binutils-all/libdw2.out: Likewise.
2015-04-03 H.J. Lu <hongjiu.lu@intel.com>
* lib/binutils-common.exp (is_zlib_supported): Always return 1.
2015-04-02 Nick Clifton <nickc@redhat.com>
* binutils-all/readelf.ss-64: Move possible location of the $d
mapping symbol.
2015-03-26 Renlin Li <renlin.li@arm.com>
* binutils-all/readelf.s-64: Support aarch64 case.
* binutils-all/readelf.ss-64: Likewise.
2015-03-11 Alan Modra <amodra@gmail.com>
* binutils-all/update-section.exp: Only run on ELF targets.
2015-03-03 Jiong Wang <jiong.wang@arm.com>
* binutils-all/arm/rvct_symbol.s: New testcase.
* binutils-all/arm/objdump.exp: Run it.
2015-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
* binutils-all/update-1.s: New file.
* binutils-all/update-2.s: New file.
* binutils-all/update-3.s: New file.
* binutils-all/update-4.s: New file.
* binutils-all/update-section.exp: New file.
2015-02-24 Nick Clifton <nickc@redhat.com>
* binutils-all/objcopy.exp: Skip the strip-10 test for the V850.
2015-01-01 Alan Modra <amodra@gmail.com>
Update year range in copyright notice of all files.
2014-12-26 Alan Modra <amodra@gmail.com>
* binutils-all/strip-11.d: New test.
* binutils-all/objcopy.exp: Run it.
2014-12-06 Eric Botcazou <ebotcazou@adacore.com>
* binutils-all/objcopy.exp: Skip strip-10 for Visium.
2014-09-12 Andrew Bennett <andrew.bennett@imgtec.com>
* binutils-all/objcopy.exp: Add mips*-img-elf* target triple.
* binutils-all/readelf.exp: Likewise
2014-09-06 Matthew Fortune <matthew.fortune@imgtec.com>
* binutils-all/readelf.ss-mips: Account for new sections.
2014-07-29 Matthew Fortune <matthew.fortune@imgtec.com>
* binutils-all/readelf.s: Account for .MIPS.abiflags and
.gnu.attributes.
* binutils-all/readelf.ss-tmips: Likewise.
* binutils-all/strip-3.d: Likewise.
2014-07-10 Will Newton <will.newton@linaro.org>
* binutils-all/objcopy.exp: Disable the strip-10 test on
non-EABI ARM configurations.
2014-06-03 Nick Clifton <nickc@redhat.com>
* binutils-all/ar.exp: Skip tests involving bfdtest1 and bfdtest2
if these executables are not present.
2014-04-30 Nick Clifton <nickc@redhat.com>
* binutils-all/debug_str.s: New test.
* binutils-all/debug_str.d: New test control file.
* binutils-all/compress.exp: Run debug_str test.
2014-04-22 Christian Svensson <blue@cmd.nu>
* binutils-all/objcopy.exp: Remove openrisc and or32 support. Add
support for or1k.
* binutils-all/objdump.exp: Likewise.
* binutils-all/dw2-decodedline-1.S: Likewise.
2014-03-26 Jiong Wang <jiong.wang@arm.com>
* binutils-all/aarch64/aarch64.exp: New test driver for AArch64.
* binutils-all/aarch64/unallocated-encoding.s: New testcase.
* binutils-all/aarch64/unallocated-encoding.d: Ditto.
2014-03-17 Nick Clifton <nickc@redhat.com>
* binutils-all/readelf.ss: Add skip of MSP430 defined symbols.
2014-01-29 Nick Clifton <nickc@redhat.com>
PR binutils/16318
* binutils-all/strip-10.d: Revert previous delta.
2014-01-28 Nick Clifton <nickc@redhat.com>
PR binutils/16318
* binutils-all/strip-10.d: Allow "System V" in the osabi field.
2013-12-20 Nick Clifton <nickc@redhat.com>
PR binutils/16218
* binutils-all/dw2-1.W: Update expected objdump output.
* binutils-all/i386/compressed-1a.d: Likewise.
* binutils-all/objdump.W: Likewise.
* binutils-all/x86-64/compressed-1a.d: Likewise.
2013-12-19 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/16317
* binutils-all/readelf.s: Updated.
* binutils-all/readelf.s-64: Likewise.
2013-12-13 Kuan-Lin Chen <kuanlinchentw@gmail.com>
Wei-Cheng Wang <cole945@gmail.com>
* binutils-all/objdump.exp: Add NDS32 cpu.
* binutils-all/readelf.r: Skip extra reloc created by NDS32.
2013-12-12 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/16318
* binutils-all/strip-10.d: Check OS/ABI.
2013-12-07 Mike Frysinger <vapier@gentoo.org>
* binutils-all/windres/escapex-2.rc: Remove +x file mode.
* binutils-all/windres/version_small.rc: Likewise.
* binutils-all/windres/version_small.rsd: Likewise.
2013-12-03 Nick Clifton <nickc@redhat.com>
* binutils-all/windres/windres.exp: Run for x86_64-pc-cygwin.
Add test of "objump -p" output.
2013-11-27 Matthew Fortune <matthew.fortune@imgtec.com>
* binutils-all/objcopy.exp: Consider mips-mti-elf the same as
mips-sde-elf
* binutils-all/readelf.exp: Likewise
2013-11-21 Tristan Gingold <gingold@adacore.com>
* binutils-all/dlltool.exp: Add dlltool_gas_flag to version.dll test.
2013-11-02 Alan Modra <amodra@gmail.com>
* binutils-all/x86-64/compressed-1a.d: Allow wide display of addresses.
* binutils-all/dw2-1.S: Use .4byte rather than .int.
* binutils-all/dw2-2.S: Likewise.
2013-10-24 Nick Clifton <nickc@redhat.com>
* binutils-all/objdump.exp (cps_expected): Add MSP430 to list.
2013-09-27 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/x86-64/compressed-1a.d: Updated for 64-bit addresses.
2013-09-12 Nick Clifton <nickc@redhat.com>
* binutils-all/x86-64/compressed-1a.d: Update expected output to
allow for 64-bit addresses.
2013-08-22 Nick Clifton <nickc@redhat.com>
* binutils-all/nm.exp: --size-sort test: Add more ELF-like
targets.
* binutils-all/nm-1.s: Use .byte instead of .long.
Provide a terminating symbol.
2013-08-21 Hans-Peter Nilsson <hp@bitrange.com>
* binutils-all/nm.exp: Revert last change. Instead use nm-elf-1.s
for mmix-knuth-mmixware.
2013-08-20 Hans-Peter Nilsson <hp@bitrange.com>
* binutils-all/nm.exp: Xfail test for nm --size-sort for
mmix-knuth-mmixware.
2013-08-19 Tristan Gingold <gingold@adacore.com>
* binutils-all/nm.exp: Add a test for nm --size-sort
* binutils-all/nm-elf-1.s: New file.
* binutils-all/nm-1.s: New file.
2013-05-31 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/i386/compressed-1b.d: Updated for text/data/bss
section alignment change.
* binutils-all/i386/compressed-1c.d: Likewise.
* binutils-all/x86-64/compressed-1b.d: Likewise.
* binutils-all/x86-64/compressed-1c.d: Likewise.
2013-05-28 Cary Coutant <ccoutant@google.com>
* binutils-all/dw2-1.W: Adjust expected output.
* binutils-all/objdump.W: Likewise.
* binutils-all/i386/compressed-1a.d: Likewise.
* binutils-all/x86-64/compressed-1a.d: Likewise.
2013-05-02 Nick Clifton <nickc@redhat.com>
* readelf.exp: Expect -wi test to fail for the MSP430.
2013-05-01 Maciej W. Rozycki <macro@codesourcery.com>
* lib/binutils-common.exp (is_elf_format): Also exclude
*-*-linux*ecoff*.
2013-02-26 Nick Clifton <nickc@redhat.com>
PR binutils/15191
* binutils-all/readelf.n: Updare expected output from readelf.
2013-02-14 Maciej W. Rozycki <macro@codesourcery.com>
* binutils-all/mips/mixed-mips16.s: Add missing stack adjustment.
* binutils-all/mips/mixed-mips16.d: Update accordingly.
2013-02-13 Maciej W. Rozycki <macro@codesourcery.com>
* binutils-all/mips/mixed-micromips.d: New test.
* binutils-all/mips/mixed-mips16.d: New test.
* binutils-all/mips/mixed-micromips.s: New test source.
* binutils-all/mips/mixed-mips16.s: New test source.
* binutils-all/mips/mips.exp: New file.
2012-12-17 Nick Clifton <nickc@redhat.com>
* binutils-all/windres/README: Add copyright notice.
2012-11-27 Roland McGrath <mcgrathr@google.com>
* lib/binutils-common.exp (is_zlib_supported): New function.
* lib/utils-lib.exp (run_dump_test): If as options include
--compress-debug-sections and zlib is not available, report
the test as unsupported.
* binutils-all/compress.exp: Bail out if zlib is not available.
* binutils-all/objdump.exp (objdump compressed debug):
Mark unsupported if zlib is not available.
* binutils-all/readelf.exp (readelf_compressed_wa_test): Likewise.
2012-11-06 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/14567
* binutils-all/ar.exp (bfdtest1): Removed.
(long_filenames): Take bfdtests.
(thin_archive): Likewise.
(thin_archive_with_nested): Likewise.
(bfdtests): New.
Pass $bfdtests to long_filenames, thin_archive and
thin_archive_with_nested.
2012-10-29 Alan Modra <amodra@gmail.com>
* binutils-all/copy-3.d: Exclude all cygwin and mingw targets,
and rs6000.
2012-10-24 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/ar.exp (bfdtest1): Remove findfile.
2012-10-21 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/dw2-1.W: Updated.
2012-10-20 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/compress.exp: Add an objdump test.
* binutils-all/dw2-1.W: New file.
2012-08-17 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/ar.exp (long_filenames): Remove extra verbose
before binutils_run.
(thin_archive): Likewise.
(thin_archive_with_nested): Likewise. Also run bfdtest1 on
$archive2.
2012-08-16 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/14481
* ar.exp (bfdtest1): New.
(long_filenames): Run bfdtest1.
(thin_archive): Likewise.
(thin_archive_with_nested): Likewise.
2012-08-13 Ian Bolton <ian.bolton@arm.com>
Laurent Desnogues <laurent.desnogues@arm.com>
Jim MacArthur <jim.macarthur@arm.com>
Marcus Shawcroft <marcus.shawcroft@arm.com>
Nigel Stephens <nigel.stephens@arm.com>
Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
Richard Earnshaw <rearnsha@arm.com>
Sofiane Naci <sofiane.naci@arm.com>
Tejas Belagod <tejas.belagod@arm.com>
Yufeng Zhang <yufeng.zhang@arm.com>
* objdump.exp: Add AArch64.
2012-08-02 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/14420
* binutils-all/i386/compressed-1a.d: Updated.
* binutils-all/objdump.W: Likewise.
* binutils-all/readelf.wa: Likewise.
* binutils-all/x86-64/compressed-1a.d: Likewise.
2012-07-28 Kai Tietz <ktietz@redhat.com>
* binutils-all/windres/version_small.rc: New test.
* binutils-all/windres/version_small.rsd: Likewise.
2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/14319
* binutils-all/compress.exp: Test compress empty debug sections.
* binutils-all/dw2-empty.S: New file.
2012-06-07 Thomas Schwinge <thomas@codesourcery.com>
* binutils-all/i386/i386.exp: Don't skip for x86_64-*-linux*.
2012-05-17 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/hppa/objdump.exp: Expect addend as signed.
2012-05-17 Alan Modra <amodra@gmail.com>
* binutils-all/objdump.W: Update.
* binutils-all/readelf.wa: Update.
* binutils-all/i386/compressed-1a.d: Update.
* binutils-all/x86-64/compressed-1a.d: Update.
2012-05-16 Meador Inge <meadori@codesourcery.com>
* binutils-all/arm/objdump.exp:
STMFD/LDMIA sp!, {reg} don't disassemble to PUSH/POP {reg} any longer.
2012-04-12 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/13947
* binutils-all/i386/compressed-1b.d: Remove empty REL section.
* binutils-all/i386/compressed-1c.d: Likewise.
* binutils-all/x86-64/compressed-1b.d: Remove empty RELA
section.
* binutils-all/x86-64/compressed-1c.d: Likewise.
2012-04-03 Roland McGrath <mcgrathr@google.com>
* lib/binutils-common.exp (is_elf_format): Consider *-*-nacl* to
be ELF too.
* binutils-all/elfedit-4.d: Add "#as: --64" option.
* binutils-all/i386/i386.exp: Accept nacl targets too.
* binutils-all/x86-64/x86-64.exp: Likewise.
2012-03-13 Hans-Peter Nilsson <hp@axis.com>
PR binutils/3807
* binutils-all/objcopy.exp (localize-hidden-1): Correct xfailed
mips-targets.
2012-02-25 Walter Lee <walt@tilera.com>
* binutils-all/objdump.exp (cpus_expected): Add tilegx.
2012-02-14 Alan Modra <amodra@gmail.com>
* binutils-all/dlltool.exp: Add setup_xfail.
* binutils-all/dw2-decodedline.S: Always have whitespace before
directives.
* binutils-all/version.s: Likewise.
* binutils-all/objdump.exp (dw2-decodedline): Don't run for
hppa64*-*-hpux*, i370-*-*, i960-*-*.
2012-02-11 Kai Tietz <ktietz@redhat.com>
* binutils-all/version.def: New file.
* binutils-all/dlltool.exp: Add version-dll test.
2012-02-02 Nick Clifton <nickc@redhat.com>
* binutils-all/readelf.n: Add #pass to cope with targets that add
their own notes.
2012-02-01 Nick Clifton <nickc@redhat.com>
PR binutils/13482
* binutils-all/version.s: New test source file.
* binutils-all/readelf.n: New file: expected readelf output.
* binutils-all/readelf.exp: Add test of .note section contents.
For older changes see ChangeLog-0411
Copyright (C) 2012-2015 Free Software Foundation, Inc.
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
Local Variables:
mode: change-log
left-margin: 8
fill-column: 74
version-control: never
End: