aboutsummaryrefslogtreecommitdiff
path: root/gold/stringpool.h
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
parente1da3f5b9645750e966e471ff0db480d6450dcb7 (diff)
downloadfsf-binutils-gdb-a3ad94edd406b9abc26493761764d4034dda69fa.zip
fsf-binutils-gdb-a3ad94edd406b9abc26493761764d4034dda69fa.tar.gz
fsf-binutils-gdb-a3ad94edd406b9abc26493761764d4034dda69fa.tar.bz2
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 ed549b4..05c498e 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