Set in_dyn_ and in_reg_ when overriding a symbol.
This commit is contained in:
parent
f4151f8959
commit
0d4f1889b5
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user