8sa1-binutils-gdb/binutils/testsuite/binutils-all
H.J. Lu 4a114e3e0c Add compressed debug section support to binutils and ld.
bfd/

2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>
	    Cary Coutant  <ccoutant@google.com>

	* archive.c (bfd_openr_next_archived_file): Copy BFD_COMPRESS
	and BFD_DECOMPRESS.

	* bfd.c (BFD_COMPRESS): New.
	(BFD_DECOMPRESS): Likewise.
	(BFD_FLAGS_SAVED): Likewise.
	(bfd_preserve_save): Replace BFD_IN_MEMORY with BFD_FLAGS_SAVED.

	* compress.c (bfd_uncompress_section_contents): Removed.
	(get_uncompressed_size): New.
	(decompress_contents): Likewise.
	(bfd_compress_section_contents): Likewise.
	(bfd_get_full_section_contents): Likewise.
	(bfd_is_section_compressed): Likewise.
	(bfd_init_section_decompress_status): Likewise.
	(bfd_init_section_compress_status): Likewise.

	* dwarf2.c (dwarf_debug_sections): New.
	(dwarf_debug_section_enum): Likewise.
	(read_section): Remove section_name and compressed_section_name.
	Add dwarf_debug_section_enum.  Try compressed debug section.
	(read_indirect_string): Updated.
	(read_abbrevs): Likewise.
	(decode_line_info): Likewise.
	(read_debug_ranges): Likewise.
	(find_line): Updated.

	* ecoff.c (bfd_debug_section): Add compress_status and
	compressed_size.

	* elf.c (_bfd_elf_make_section_from_shdr): Call
	bfd_is_section_compressed to check if a DWARF debug section is
	compressed.  Call bfd_init_section_compress_status or
	bfd_init_section_decompress_status if needed.

	* elflink.c (elf_link_input_bfd): Replace bfd_get_section_contents
	with bfd_get_full_section_contents.
	* merge.c (_bfd_add_merge_section): Likewise.
	* reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
	* simple.c (bfd_simple_get_relocated_section_contents): Likewise.

	* elfxx-target.h (TARGET_BIG_SYM): Allow BFD_COMPRESS and
	BFD_DECOMPRESS.
	(TARGET_LITTLE_SYM): Likewise.

	* libbfd-in.h (dwarf_debug_section): New.
	(dwarf_debug_sections): Likewise.

	* libbfd.c (_bfd_generic_get_section_contents): Issue an error
	when getting contents on compressed/decompressed section.

	* section.c (COMPRESS_SECTION_NONE): New.
	(COMPRESS_SECTION_DONE): Likewise.
	(DECOMPRESS_SECTION_SIZED): Likewise.
	(BFD_FAKE_SECTION): Add compress_status and compressed_size.
	(bfd_malloc_and_get_section): Replace bfd_get_section_contents
	with bfd_get_full_section_contents.

	* bfd-in2.h: Regenerated.
	* libbfd.h: Likewise.

binutils/

2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>

	* addr2line.c (process_file): Set BFD_DECOMPRESS.

	* objcopy.c (do_debug_sections): New.
	(OPTION_COMPRESS_DEBUG_SECTIONS): New.
	(OPTION_DECOMPRESS_DEBUG_SECTIONS): Likewise.
	(copy_options): Add OPTION_COMPRESS_DEBUG_SECTIONS and
	OPTION_DECOMPRESS_DEBUG_SECTIONS.
	(copy_usage): Add --compress-debug-sections and
	--decompress-debug-sections.
	(copy_file): Set BFD_COMPRESS or BFD_DECOMPRESS.
	(copy_section): Replace bfd_get_section_contents with
	bfd_get_full_section_contents.
	(copy_main): Handle OPTION_COMPRESS_DEBUG_SECTIONS and
	OPTION_DECOMPRESS_DEBUG_SECTIONS.  Check do_debug_sections to
	rename DWARF debug sections.

	* objdump.c (load_specific_debug_section): Replace
	bfd_get_section_contents with bfd_get_full_section_contents.
	Remove bfd_uncompress_section_contents.
	(dump_section): Replace bfd_get_section_contents with
	bfd_get_full_section_contents.
	(display_file): Set BFD_DECOMPRESS if needed.

	* readelf.c (uncompress_section_contents): Set buffer to NULL
	to indiate decompression failure.
	(load_specific_debug_section): Always call
	uncompress_section_contents.

	* doc/binutils.texi: Document --compress-debug-sections and
	--decompress-debug-sections.

binutils/testsuite/

2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>

	* binutils-all/compress.exp: New.
	* binutils-all/dw2-1.S: Likewise.
	* binutils-all/dw2-2.S: Likewise.
	* binutils-all/libdw2-compressed.out: Likewise.
	* binutils-all/libdw2.out: Likewise.

gas/

2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>

	* write.c (compress_debug): Optimize section flags check.

gas/testsuite/

2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>

	* elf/dwarf2-1.s: Replace .zdebug_abbrev section with
	.debug_abbrev section.
	* elf/dwarf2-2.3: Likewise.

	* elf/dwarf2-1.d: Pass --compress-debug-sections to assembler.
	Updated.
	* elf/dwarf2-2.d: Likewise.

	* gas/i386/i386.exp: Remove xfail on dw2-compress-2 and
	x86-64-dw2-compress-2.

ld/

2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>

	* ldfile.c (ldfile_try_open_bfd): Set BFD_DECOMPRESS after
	bfd_openr returns.
	* emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.

	* scripttempl/elf.sc: Include compressed DWARF debug sections.

ld/testsuite/

2010-10-29  H.J. Lu  <hongjiu.lu@intel.com>

	* ld-elf/compress.exp: New.
	* ld-elf/compress1.s: Likewise.
	* ld-elf/compress1a.d: Likewise.
	* ld-elf/compress1b.d: Likewise.
	* ld-elf/compress1c.d: Likewise.
2010-10-29 12:10:39 +00:00
..
arm update copyright dates 2009-09-02 07:25:43 +00:00
bfin * binutils-all/bfin/unknown-mode.s: New test. 2009-09-02 09:35:12 +00:00
hppa update copyright dates 2009-09-02 07:25:43 +00:00
i386 * binutils-all/i386/i386.exp: Don't run on linuxaout. 2010-09-16 00:42:00 +00:00
m68k binutils/: 2010-10-11 22:18:42 +00:00
vax update copyright dates 2009-09-02 07:25:43 +00:00
windres binutils/testsuite/ChangeLog: 2010-01-30 16:13:34 +00:00
x86-64 binutils/testsuite/: 2010-07-19 15:11:03 +00:00
add-empty-section.d binutils/: 2010-01-20 00:09:13 +00:00
add-section.d binutils/: 2010-01-20 00:09:13 +00:00
alias-2.def 2009-10-23 Kai Tietz <kai.tietz@onevision.com> 2009-10-23 14:53:57 +00:00
alias.def
ar.exp * binutils-all/ar.exp: Don't run unique_symbol on msp or hpux. 2010-09-23 12:04:37 +00:00
bintest.s
compress.exp Add compressed debug section support to binutils and ld. 2010-10-29 12:10:39 +00:00
copy-1.d
copy-1.s
copy-2.d * binutils-all/ar.exp: Don't run unique_symbol on msp or hpux. 2010-09-23 12:04:37 +00:00
copy-3.d Exclude more aout targets. 2009-10-18 07:43:04 +00:00
copy-4.d binutils/ 2009-03-10 00:48:10 +00:00
copytest.s
dlltool.exp Add a missing `"'. 2010-04-30 19:30:55 +00:00
dumptest.s
dw2-1.S Add compressed debug section support to binutils and ld. 2010-10-29 12:10:39 +00:00
dw2-2.S Add compressed debug section support to binutils and ld. 2010-10-29 12:10:39 +00:00
dw2-compressed.S update copyright dates 2009-09-02 07:25:43 +00:00
elfedit-1.d Add elfedit 2010-01-06 16:52:15 +00:00
elfedit-2.d Add --input-type and --output-type to elfedit 2010-01-08 18:50:39 +00:00
elfedit-3.d Add --input-osabi and --output-osabi to elfedit. 2010-08-23 16:25:53 +00:00
elfedit.exp Add --input-osabi and --output-osabi to elfedit. 2010-08-23 16:25:53 +00:00
empty-file binutils/: 2010-01-20 00:09:13 +00:00
empty.s
exclude-1.s Implement generic SHF_EXCLUDE. 2010-05-18 03:31:07 +00:00
exclude-1a.d Implement generic SHF_EXCLUDE. 2010-05-18 03:31:07 +00:00
exclude-1b.d Implement generic SHF_EXCLUDE. 2010-05-18 03:31:07 +00:00
fastcall.def
group-2.s binutils/testsuite/ 2008-10-03 15:08:22 +00:00
group-3.s binutils/testsuite/ 2008-10-03 15:08:22 +00:00
group-4.s binutils/testsuite/ 2008-10-03 15:08:22 +00:00
group-5.d 2010-10-23 Mark Mitchell <mark@codesourcery.com> 2010-10-23 18:05:10 +00:00
group-5.s * binutils-all/group-5.s, * binutils-all/group-5.d: New test. 2010-02-18 00:13:30 +00:00
group.s binutils/testsuite/ 2008-10-03 15:08:22 +00:00
libdw2-compressed.out Add compressed debug section support to binutils and ld. 2010-10-29 12:10:39 +00:00
libdw2.out Add compressed debug section support to binutils and ld. 2010-10-29 12:10:39 +00:00
link-order.s
localize-hidden-1.d
localize-hidden-1.s binutils/testsuite/ 2009-04-16 04:24:07 +00:00
localize-hidden-2.d
localize-hidden-2.s binutils/testsuite/ 2009-04-16 04:24:07 +00:00
needed-by-reloc.s
nm.exp update copyright dates 2009-09-02 07:25:43 +00:00
note-1.d * binutils-all/ar.exp: Don't run unique_symbol on msp or hpux. 2010-09-23 12:04:37 +00:00
objcopy.exp * binutils-all/ar.exp: Don't run unique_symbol on msp or hpux. 2010-09-23 12:04:37 +00:00
objdump.exp * binutils-all/objdump.exp (cpus_expected): Add ms1. 2009-09-08 10:35:07 +00:00
objdump.s * binutils-all/objdump.W, binutils-all/objdump.s: Don't match 2009-03-11 22:49:54 +00:00
objdump.W binutils/ 2010-09-03 15:54:32 +00:00
readelf.exp update copyright dates 2009-09-02 07:25:43 +00:00
readelf.h
readelf.r
readelf.r-64
readelf.s binutils/testsuite/: 2010-07-19 15:11:03 +00:00
readelf.s-64 binutils/testsuite/: 2010-07-19 15:11:03 +00:00
readelf.ss Tolerate some whitespace differences in readelf output. 2009-09-23 03:12:28 +00:00
readelf.ss-64 Tolerate some whitespace differences in readelf output. 2009-09-23 03:12:28 +00:00
readelf.ss-mips Tolerate some whitespace differences in readelf output. 2009-09-23 03:12:28 +00:00
readelf.ss-tmips Tolerate some whitespace differences in readelf output. 2009-09-23 03:12:28 +00:00
readelf.wa bfd/ 2008-07-10 01:32:23 +00:00
size.exp update copyright dates 2009-09-02 07:25:43 +00:00
strip-1.d
strip-2.d 2010-10-23 Mark Mitchell <mark@codesourcery.com> 2010-10-23 18:05:10 +00:00
strip-3.d
strip-4.d 2008-10-01 H.J. Lu <hongjiu.lu@intel.com> 2008-10-01 21:54:59 +00:00
strip-5.d 2008-10-01 H.J. Lu <hongjiu.lu@intel.com> 2008-10-01 21:54:59 +00:00
strip-6.d 2008-10-01 H.J. Lu <hongjiu.lu@intel.com> 2008-10-01 23:10:48 +00:00
strip-7.d binutils/testsuite/ 2008-10-03 15:08:22 +00:00
strip-8.d 2008-10-01 H.J. Lu <hongjiu.lu@intel.com> 2008-10-02 01:06:12 +00:00
strip-9.d binutils/testsuite/ 2008-10-03 15:08:22 +00:00
strip-10.d Tolerate some whitespace differences in readelf output. 2009-09-23 03:12:28 +00:00
testprog.c
testranges-ia64.d 2009-07-16 H.J. Lu <hongjiu.lu@intel.com> 2009-07-16 21:00:09 +00:00
testranges-ia64.s 2009-07-16 H.J. Lu <hongjiu.lu@intel.com> 2009-07-16 21:00:09 +00:00
testranges.d 2009-07-16 H.J. Lu <hongjiu.lu@intel.com> 2009-07-16 21:00:09 +00:00
testranges.s binutils/ 2009-09-07 18:07:02 +00:00
unique.s 2009-08-03 H.J. Lu <hongjiu.lu@intel.com> 2009-08-06 16:22:36 +00:00
unknown.s