From a3ad94edd406b9abc26493761764d4034dda69fa Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor <iant@google.com> Date: Wed, 29 Nov 2006 17:56:40 +0000 Subject: Hash tables, dynamic section, i386 PLT, gold_assert. --- gold/stringpool.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gold/stringpool.h') 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 -- cgit v1.2.3-65-gdbad