From: Ian Lance Taylor Date: Tue, 28 Aug 2007 04:12:19 +0000 (+0000) Subject: Set in_dyn_ and in_reg_ when overriding a symbol. X-Git-Tag: gdb_6_7-2007-09-07-branchpoint~122 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0d4f1889b55472653a87fb10dd5bed05def4368f;p=external%2Fbinutils.git Set in_dyn_ and in_reg_ when overriding a symbol. --- diff --git a/gold/resolve.cc b/gold/resolve.cc index 1d87486..f80e08f 100644 --- a/gold/resolve.cc +++ b/gold/resolve.cc @@ -32,6 +32,10 @@ Symbol::override_base(const elfcpp::Sym& sym, this->binding_ = sym.get_st_bind(); this->visibility_ = sym.get_st_visibility(); this->nonvis_ = sym.get_st_nonvis(); + if (object->is_dynamic()) + this->in_dyn_ = true; + else + this->in_reg_ = true; } // Override the fields in Sized_symbol.