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.
This commit is contained in:
Ian Lance Taylor
2007-09-28 06:36:25 +00:00
parent fe6fbf8b6e
commit b3b74ddc6e
5 changed files with 79 additions and 7 deletions

View File

@@ -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).