aboutsummaryrefslogtreecommitdiff
path: root/gold/symtab.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-09-28 06:36:25 +0000
committerIan Lance Taylor <iant@google.com>2007-09-28 06:36:25 +0000
commitb3b74ddc6e208b58108b0900b4896034f84bb6be (patch)
treece562c3e12599c8d8f40e9ec75f6e729b272b62e /gold/symtab.h
parentfe6fbf8b6eff80d3df998ab8b0e14ac984e3e265 (diff)
downloadfsf-binutils-gdb-b3b74ddc6e208b58108b0900b4896034f84bb6be.zip
fsf-binutils-gdb-b3b74ddc6e208b58108b0900b4896034f84bb6be.tar.gz
fsf-binutils-gdb-b3b74ddc6e208b58108b0900b4896034f84bb6be.tar.bz2
Use parameters to track whether we are doing a static link. Fix up
final_value_is_known for weak undefined symbols. Pointed out by Cary Coutant.
Diffstat (limited to 'gold/symtab.h')
-rw-r--r--gold/symtab.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/gold/symtab.h b/gold/symtab.h
index 918c974..258c99f 100644
--- a/gold/symtab.h
+++ b/gold/symtab.h
@@ -341,12 +341,7 @@ class Symbol
// Return true if the final value of this symbol is known at link
// time.
bool
- final_value_is_known() const
- {
- if (parameters->output_is_shared())
- return false;
- return this->source_ != FROM_OBJECT || !this->object()->is_dynamic();
- }
+ final_value_is_known() const;
// Return whether this is a defined symbol (not undefined or
// common).