aboutsummaryrefslogtreecommitdiff
path: root/gold/object.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2008-04-19 19:34:41 +0000
committerIan Lance Taylor <ian@airs.com>2008-04-19 19:34:41 +0000
commit7fcd3aa988f19435a3aaf7b4ff25f87ef8fd81cd (patch)
treeb105a7f215f9e9cb1e1259524454ec614d3b8385 /gold/object.cc
parent4c94d6ae7b697007f22f85d8cf6d65d5139d8d88 (diff)
downloadgdb-7fcd3aa988f19435a3aaf7b4ff25f87ef8fd81cd.zip
gdb-7fcd3aa988f19435a3aaf7b4ff25f87ef8fd81cd.tar.gz
gdb-7fcd3aa988f19435a3aaf7b4ff25f87ef8fd81cd.tar.bz2
* object.cc (Sized_relobj::do_add_symbols): Always pass
local_symbol_count_ to add_from_relobj.
Diffstat (limited to 'gold/object.cc')
-rw-r--r--gold/object.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/gold/object.cc b/gold/object.cc
index 19d9185..d060f8d 100644
--- a/gold/object.cc
+++ b/gold/object.cc
@@ -946,10 +946,7 @@ Sized_relobj<size, big_endian>::do_add_symbols(Symbol_table* symtab,
reinterpret_cast<const char*>(sd->symbol_names->data());
symtab->add_from_relobj(this,
sd->symbols->data() + sd->external_symbols_offset,
- symcount,
- (sd->external_symbols_offset == 0
- ? this->local_symbol_count_
- : 0),
+ symcount, this->local_symbol_count_,
sym_names, sd->symbol_names_size,
&this->symbols_);