old-cross-binutils/binutils/testsuite/ChangeLog
H.J. Lu 151411f8af Add SHF_COMPRESSED support to gas and objcopy
This patch adds --compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}
options to gas and objcopy for ELF files. They control how DWARF debug
sections are compressed.  --compress-debug-sections=none is equivalent to
--nocompress-debug-sections.  --compress-debug-sections=zlib and
--compress-debug-sections=zlib-gnu are equivalent to
--compress-debug-sections.  --compress-debug-sections=zlib-gabi compresses
DWARF debug sections with SHF_COMPRESSED from the ELF ABI.  No linker
changes are required to support SHF_COMPRESSED.

bfd/

	* archive.c (_bfd_get_elt_at_filepos): Also copy BFD_COMPRESS_GABI
	bit.
	* bfd.c (bfd::flags): Increase size to 18 bits.
	(BFD_COMPRESS_GABI): New.
	(BFD_FLAGS_SAVED): Add BFD_COMPRESS_GABI.
	(BFD_FLAGS_FOR_BFD_USE_MASK): Likewise.
	(bfd_update_compression_header): New fuction.
	(bfd_check_compression_header): Likewise.
	(bfd_get_compression_header_size): Likewise.
	(bfd_is_section_compressed_with_header): Likewise.
	* compress.c (MAX_COMPRESSION_HEADER_SIZE): New.
	(bfd_compress_section_contents): Return the uncompressed size if
	the full section contents is compressed successfully.  Support
	converting from/to .zdebug* sections.
	(bfd_get_full_section_contents): Call
	bfd_get_compression_header_size to get compression header size.
	(bfd_is_section_compressed): Renamed to ...
	(bfd_is_section_compressed_with_header): This.  Add a pointer
	argument to return compression header size.
	(bfd_is_section_compressed): Use it.
	(bfd_init_section_decompress_status): Call
	bfd_get_compression_header_size to get compression header size.
	Return FALSE if uncompressed section size is 0.
	* elf.c (_bfd_elf_make_section_from_shdr): Support converting
	from/to .zdebug* sections.
	* bfd-in2.h: Regenerated.

binutils/

	* objcopy.c (do_debug_sections): Add compress_zlib,
	compress_gnu_zlib and compress_gabi_zlib.
	(copy_options): Use optional_argument on compress-debug-sections.
	(copy_usage): Update --compress-debug-sections.
	(copy_file): Handle compress_zlib, compress_gnu_zlib and
	compress_gabi_zlib.
	(copy_main): Handle
	--compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
	* doc/binutils.texi: Document
	--compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.

binutils/testsuite/

	* 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.

gas/

	* as.c (show_usage): Update --compress-debug-sections.
	(std_longopts): Use optional_argument on compress-debug-sections.
	(parse_args): Handle
	--compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
	* as.h (compressed_debug_section_type): New.
	(flag_compress_debug): Change type to compressed_debug_section_type.
	--compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.
	* write.c (compress_debug): Set BFD_COMPRESS_GABI for
	--compress-debug-sections=zlib-gabi.  Call
	bfd_get_compression_header_size to get compression header size.
	Don't rename section name for --compress-debug-sections=zlib-gabi.
	* config/tc-i386.c (compressed_debug_section_type): Set to
	COMPRESS_DEBUG_ZLIB.
	* doc/as.texinfo: Document
	--compress-debug-sections={none|zlib|zlib-gnu|zlib-gabi}.

gas/testsuite/

	* gas/i386/dw2-compressed-1.d: New file.
	* gas/i386/dw2-compressed-2.d: Likewise.
	* gas/i386/dw2-compressed-3.d: Likewise.
	* gas/i386/x86-64-dw2-compressed-2.d: Likewise.
	* gas/i386/i386.exp: Run dw2-compressed-2, dw2-compressed-1,
	dw2-compressed-3 and x86-64-dw2-compressed-2.

ld/testsuite/

	* ld-elf/compress.exp: Add a test for
	--compress-debug-sections=zlib-gabi.
	(build_tests): Add 2 tests for --compress-debug-sections=zlib-gabi.
	(run_tests): Likewise.
	Verify linker output with zlib-gabi compressed debug input.
	* ld-elf/compressed1a.d: New file.
	* ld-elf/compressed1b.d: Likewise.
	* ld-elf/compressed1c.d: Likewise.
2015-04-08 07:54:09 -07:00

464 lines
14 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-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: