From: Ian Lance Taylor Date: Sat, 19 Apr 2008 19:34:41 +0000 (+0000) Subject: * object.cc (Sized_relobj::do_add_symbols): Always pass X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7fcd3aa988f19435a3aaf7b4ff25f87ef8fd81cd;p=binutils-gdb.git * object.cc (Sized_relobj::do_add_symbols): Always pass local_symbol_count_ to add_from_relobj. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index 050a42a5543..aca6c8e0461 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,5 +1,8 @@ 2008-04-19 Ian Lance Taylor + * object.cc (Sized_relobj::do_add_symbols): Always pass + local_symbol_count_ to add_from_relobj. + * testsuite/Makefile.am (many_sections_check.h): Only check one in every thousand variables. * testsuite/Makefile.in: Rebuild. diff --git a/gold/object.cc b/gold/object.cc index 19d9185c44b..d060f8d7356 100644 --- a/gold/object.cc +++ b/gold/object.cc @@ -946,10 +946,7 @@ Sized_relobj::do_add_symbols(Symbol_table* symtab, reinterpret_cast(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_);