From 32e2b61d0baceacdd0ae791adc12bf829499be96 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 20 Mar 2013 00:25:28 +0000 Subject: * symtab.h (Symbol::clear_version): New function. * symtab.cc (Symbol_table::set_dynsym_indexes): Don't set object is_needed by weak references. Clear version for symbols defined in as-needed objects that are not needed. --- gold/symtab.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gold/symtab.h') diff --git a/gold/symtab.h b/gold/symtab.h index 040be95..689d99f 100644 --- a/gold/symtab.h +++ b/gold/symtab.h @@ -121,6 +121,10 @@ class Symbol version() const { return this->version_; } + void + clear_version() + { this->version_ = NULL; } + // Return whether this version is the default for this symbol name // (eg, "foo@@V2" is a default version; "foo@V1" is not). Only // meaningful for versioned symbols. -- cgit v1.1