From: Cary Coutant Date: Mon, 4 Jun 2012 20:00:31 +0000 (+0000) Subject: * dynobj.cc (Sized_dynobj::do_get_global_symbol_counts): Call X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fad072ac13b347994507f32882b557ab7b044a19;p=binutils-gdb.git * dynobj.cc (Sized_dynobj::do_get_global_symbol_counts): Call has_dynsym_index. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index 0cd5e2758ba..c6278584082 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,8 @@ +2012-06-04 Cary Coutant + + * dynobj.cc (Sized_dynobj::do_get_global_symbol_counts): Call + has_dynsym_index. + 2012-05-25 Sriraman Tallam * symtab.cc (Symbol_table::define_special_symbol): diff --git a/gold/dynobj.cc b/gold/dynobj.cc index 4404a35dd48..ac0c321c7a4 100644 --- a/gold/dynobj.cc +++ b/gold/dynobj.cc @@ -823,7 +823,7 @@ Sized_dynobj::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; }