diff options
author | Ian Lance Taylor <iant@google.com> | 2007-12-01 06:34:12 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-12-01 06:34:12 +0000 |
commit | 96803768f1845a2c5af362ea2dc6b39a147d3930 (patch) | |
tree | 1ff1ce0a11218dd449f822cfc42c17626627491b /gold/stringpool.cc | |
parent | f80c84b330870d86697702c95506f127264fac3a (diff) | |
download | gdb-96803768f1845a2c5af362ea2dc6b39a147d3930.zip gdb-96803768f1845a2c5af362ea2dc6b39a147d3930.tar.gz gdb-96803768f1845a2c5af362ea2dc6b39a147d3930.tar.bz2 |
Compress all debug sections.
Diffstat (limited to 'gold/stringpool.cc')
-rw-r--r-- | gold/stringpool.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gold/stringpool.cc b/gold/stringpool.cc index 42a2fda..6d3ecfa 100644 --- a/gold/stringpool.cc +++ b/gold/stringpool.cc @@ -426,7 +426,7 @@ Stringpool_template<Stringpool_char>::get_offset(const Stringpool_char* s) template<typename Stringpool_char> void -Stringpool_template<Stringpool_char>::write_to_buffer(char* buffer, +Stringpool_template<Stringpool_char>::write_to_buffer(unsigned char* buffer, size_t bufsize) { gold_assert(this->strtab_size_ != 0); @@ -452,7 +452,7 @@ Stringpool_template<Stringpool_char>::write(Output_file* of, off_t offset) { gold_assert(this->strtab_size_ != 0); unsigned char* view = of->get_output_view(offset, this->strtab_size_); - this->write_to_buffer(reinterpret_cast<char*>(view), this->strtab_size_); + this->write_to_buffer(view, this->strtab_size_); of->write_output_view(offset, this->strtab_size_, view); } |