diff options
Diffstat (limited to 'gold/reloc.cc')
-rw-r--r-- | gold/reloc.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gold/reloc.cc b/gold/reloc.cc index bc38904..dd3eef1 100644 --- a/gold/reloc.cc +++ b/gold/reloc.cc @@ -227,6 +227,7 @@ Sized_relobj<size, big_endian>::do_read_relocs(Read_relocs_data* rd) } // Read the local symbols. + assert(this->symtab_shndx_ != -1U); if (this->symtab_shndx_ == 0 || this->local_symbol_count_ == 0) rd->local_symbols = NULL; else |