diff options
author | Ian Lance Taylor <iant@google.com> | 2006-12-06 06:28:56 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2006-12-06 06:28:56 +0000 |
commit | 008db82ec1ba308dba0fcf7767b93c1d56897bcc (patch) | |
tree | 93fef89fd7f3241e644fc770a3e59129a01f3407 /gold/resolve.cc | |
parent | 8f2e9323f0b754011d0fa089bac65c9d28b73483 (diff) | |
download | fsf-binutils-gdb-008db82ec1ba308dba0fcf7767b93c1d56897bcc.zip fsf-binutils-gdb-008db82ec1ba308dba0fcf7767b93c1d56897bcc.tar.gz fsf-binutils-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.cc | 7 |
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); |