* 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.
This commit is contained in:
Alan Modra
2013-03-20 00:25:28 +00:00
parent e5e21fa801
commit 32e2b61d0b
3 changed files with 45 additions and 7 deletions

View File

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