X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gold%2Fcompressed_output.h;h=b5fdbeb7f6f986c34346159323a80592a5842106;hb=2144188dcf696a50c6dbbacc1bf66645659e1fda;hp=d9bb0c4c46063d874cd23a78858d29071dc90b54;hpb=96803768f1845a2c5af362ea2dc6b39a147d3930;p=deliverable%2Fbinutils-gdb.git diff --git a/gold/compressed_output.h b/gold/compressed_output.h index d9bb0c4c46..b5fdbeb7f6 100644 --- a/gold/compressed_output.h +++ b/gold/compressed_output.h @@ -1,6 +1,6 @@ // compressed_output.h -- compressed output sections for gold -*- C++ -*- -// Copyright 2007 Free Software Foundation, Inc. +// Copyright (C) 2007-2015 Free Software Foundation, Inc. // Written by Ian Lance Taylor . // This file is part of gold. @@ -37,6 +37,18 @@ namespace gold class General_options; +// Read the compression header of a compressed debug section and return +// the uncompressed size. + +extern uint64_t +get_uncompressed_size(const unsigned char*, section_size_type); + +// Decompress a compressed debug section directly into the output file. + +extern bool +decompress_input_section(const unsigned char*, unsigned long, unsigned char*, + unsigned long); + // This is used for a section whose data should be compressed. It is // a regular Output_section which computes its contents into a buffer // and then postprocesses it. @@ -64,7 +76,7 @@ class Output_compressed_section : public Output_section // The options--this includes the compression type. const General_options* options_; // The compressed data. - char* data_; + unsigned char* data_; // The new section name if we do compress. std::string new_section_name_; };