aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2006-11-29 17:56:40 +0000
committerIan Lance Taylor <iant@google.com>2006-11-29 17:56:40 +0000
commita3ad94edd406b9abc26493761764d4034dda69fa (patch)
tree96485e8bba91a4aa51f34b0d3738ef3e7ddcbac3 /gold/stringpool.h
parent2006-11-29 Paul Brook <paul@codesourcery.com> (diff)
downloadbinutils-gdb-a3ad94edd406b9abc26493761764d4034dda69fa.tar.gz
binutils-gdb-a3ad94edd406b9abc26493761764d4034dda69fa.tar.bz2
binutils-gdb-a3ad94edd406b9abc26493761764d4034dda69fa.zip
Hash tables, dynamic section, i386 PLT, gold_assert.
Diffstat (limited to 'gold/stringpool.h')
-rw-r--r--gold/stringpool.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gold/stringpool.h b/gold/stringpool.h
index ed549b48905..05c498e49fa 100644
--- a/gold/stringpool.h
+++ b/gold/stringpool.h
@@ -63,7 +63,10 @@ class Stringpool
// Get the size of the ELF strtab.
off_t
get_strtab_size() const
- { return this->strtab_size_; }
+ {
+ gold_assert(this->strtab_size_ != 0);
+ return this->strtab_size_;
+ }
// Write the strtab into the output file at the specified offset.
void