summaryrefslogtreecommitdiff
path: root/gold/symtab.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-03-20 00:25:28 +0000
committerAlan Modra <amodra@gmail.com>2013-03-20 00:25:28 +0000
commit32e2b61d0baceacdd0ae791adc12bf829499be96 (patch)
tree4575643f5e20face4fa00293ef4251cef3abee57 /gold/symtab.h
parente5e21fa801ffcbe8204f8287bb968bcf4af6b43d (diff)
downloadbinutils-gdb-32e2b61d0baceacdd0ae791adc12bf829499be96.tar.gz
* 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.
Diffstat (limited to 'gold/symtab.h')
-rw-r--r--gold/symtab.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gold/symtab.h b/gold/symtab.h
index 040be954312..689d99f5bf0 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.