Set in_dyn_ and in_reg_ when overriding a symbol.

This commit is contained in:
Ian Lance Taylor 2007-08-28 04:12:19 +00:00
parent f4151f8959
commit 0d4f1889b5
1 changed files with 4 additions and 0 deletions

View File

@ -32,6 +32,10 @@ Symbol::override_base(const elfcpp::Sym<size, big_endian>& 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.