From 7fcd3aa988f19435a3aaf7b4ff25f87ef8fd81cd Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 19 Apr 2008 19:34:41 +0000 Subject: [PATCH] * object.cc (Sized_relobj::do_add_symbols): Always pass local_symbol_count_ to add_from_relobj. --- gold/ChangeLog | 3 +++ gold/object.cc | 5 +---- 2 files changed, 4 insertions(+), 4 deletions(-) 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_); -- 2.30.2