aboutsummaryrefslogtreecommitdiff
path: root/gold/resolve.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-08-28 04:12:19 +0000
committerIan Lance Taylor <iant@google.com>2007-08-28 04:12:19 +0000
commit0d4f1889b55472653a87fb10dd5bed05def4368f (patch)
tree57ee31838a5d0c6258e76f620c3142cbb50b8b01 /gold/resolve.cc
parentf4151f8959c7788640722b2a4dceb5b5abab9595 (diff)
downloadgdb-0d4f1889b55472653a87fb10dd5bed05def4368f.zip
gdb-0d4f1889b55472653a87fb10dd5bed05def4368f.tar.gz
gdb-0d4f1889b55472653a87fb10dd5bed05def4368f.tar.bz2
Set in_dyn_ and in_reg_ when overriding a symbol.
Diffstat (limited to 'gold/resolve.cc')
-rw-r--r--gold/resolve.cc4
1 files changed, 4 insertions, 0 deletions
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<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.