* object.cc (Sized_relobj::do_add_symbols): Always pass
authorIan Lance Taylor <ian@airs.com>
Sat, 19 Apr 2008 19:34:41 +0000 (19:34 +0000)
committerIan Lance Taylor <ian@airs.com>
Sat, 19 Apr 2008 19:34:41 +0000 (19:34 +0000)
local_symbol_count_ to add_from_relobj.

gold/ChangeLog
gold/object.cc

index 050a42a5543a6e18dff0f63c41b01822ed5b6e5c..aca6c8e04611fe81471cf6b09147507a3441e9ba 100644 (file)
@@ -1,5 +1,8 @@
 2008-04-19  Ian Lance Taylor  <iant@google.com>
 
+       * 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.
index 19d9185c44b7aa4db2da070038de6b9440a14943..d060f8d7356af9ba1e212fd0e72b691c0c0fc96c 100644 (file)
@@ -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_);