mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 18:10:46 +00:00
Set in_dyn_ and in_reg_ when overriding a symbol.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user