* dynobj.cc (Sized_dynobj::do_get_global_symbol_counts): Call
authorCary Coutant <ccoutant@google.com>
Mon, 4 Jun 2012 20:00:31 +0000 (20:00 +0000)
committerCary Coutant <ccoutant@google.com>
Mon, 4 Jun 2012 20:00:31 +0000 (20:00 +0000)
has_dynsym_index.

gold/ChangeLog
gold/dynobj.cc

index 0cd5e2758ba10ef7f5c5a57b9154b12b57edc25c..c6278584082ef8d204353f3b81ecae729efa6f6f 100644 (file)
@@ -1,3 +1,8 @@
+2012-06-04  Cary Coutant  <ccoutant@google.com>
+
+       * dynobj.cc (Sized_dynobj::do_get_global_symbol_counts): Call
+       has_dynsym_index.
+
 2012-05-25  Sriraman Tallam  <tmsriram@google.com>
 
        * symtab.cc (Symbol_table::define_special_symbol):
index 4404a35dd484e209dc3aa9ccf6f63bb264cda295..ac0c321c7a44427459de6c77118b36425191d7df 100644 (file)
@@ -823,7 +823,7 @@ Sized_dynobj<size, big_endian>::do_get_global_symbol_counts(
        && (*p)->source() == Symbol::FROM_OBJECT
        && (*p)->object() == this
        && (*p)->is_defined()
-       && (*p)->dynsym_index() != -1U)
+       && (*p)->has_dynsym_index())
       ++count;
   *used = count;
 }