• H.J. Lu's avatar
    Add compressed debug section support to binutils and ld. · 4a114e3e
    H.J. Lu authored
    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...
    4a114e3e
libbfd.h 72 KB