From b3b74ddc6e208b58108b0900b4896034f84bb6be Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 28 Sep 2007 06:36:25 +0000 Subject: 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. --- gold/symtab.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'gold/symtab.h') 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). -- cgit v1.1