aboutsummaryrefslogtreecommitdiff
path: root/gold/resolve.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2006-12-06 06:28:56 +0000
committerIan Lance Taylor <iant@google.com>2006-12-06 06:28:56 +0000
commit008db82ec1ba308dba0fcf7767b93c1d56897bcc (patch)
tree93fef89fd7f3241e644fc770a3e59129a01f3407 /gold/resolve.cc
parent8f2e9323f0b754011d0fa089bac65c9d28b73483 (diff)
downloadgdb-008db82ec1ba308dba0fcf7767b93c1d56897bcc.zip
gdb-008db82ec1ba308dba0fcf7767b93c1d56897bcc.tar.gz
gdb-008db82ec1ba308dba0fcf7767b93c1d56897bcc.tar.bz2
Don't emit symbols seen only in dynamic object, don't read duplicate
dynamic object.
Diffstat (limited to 'gold/resolve.cc')
-rw-r--r--gold/resolve.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/gold/resolve.cc b/gold/resolve.cc
index 1272e05..1d87486 100644
--- a/gold/resolve.cc
+++ b/gold/resolve.cc
@@ -156,7 +156,12 @@ Symbol_table::resolve(Sized_symbol<size>* to,
gold_exit(false);
}
- if (object->is_dynamic())
+ if (!object->is_dynamic())
+ {
+ // Record that we've seen this symbol in a regular object.
+ to->set_in_reg();
+ }
+ else
{
frombits |= (1 << 1);