summaryrefslogtreecommitdiff
path: root/gold/merge.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-12-01 06:34:12 +0000
committerIan Lance Taylor <iant@google.com>2007-12-01 06:34:12 +0000
commit96803768f1845a2c5af362ea2dc6b39a147d3930 (patch)
tree1ff1ce0a11218dd449f822cfc42c17626627491b /gold/merge.h
parentf80c84b330870d86697702c95506f127264fac3a (diff)
downloadbinutils-gdb-96803768f1845a2c5af362ea2dc6b39a147d3930.tar.gz
Compress all debug sections.
Diffstat (limited to 'gold/merge.h')
-rw-r--r--gold/merge.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/gold/merge.h b/gold/merge.h
index a28ff425cf9..adafb0bc389 100644
--- a/gold/merge.h
+++ b/gold/merge.h
@@ -120,6 +120,10 @@ class Output_merge_data : public Output_merge_base
void
do_write(Output_file*);
+ // Write the data to a buffer.
+ void
+ do_write_to_buffer(unsigned char*);
+
private:
// We build a hash table of the fixed-size constants. Each constant
// is stored as a pointer into the section data we are accumulating.
@@ -227,9 +231,13 @@ class Output_merge_string : public Output_merge_base
void
do_write(Output_file*);
+ // Write the data to a buffer.
+ void
+ do_write_to_buffer(unsigned char*);
+
// Writes the stringpool to a buffer.
void
- stringpool_to_buffer(char* buffer, size_t buffer_size)
+ stringpool_to_buffer(unsigned char* buffer, size_t buffer_size)
{ this->stringpool_.write_to_buffer(buffer, buffer_size); }
// Clears all the data in the stringpool, to save on memory.