diff options
author | Alan Modra <amodra@gmail.com> | 2013-03-20 00:25:28 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2013-03-20 00:25:28 +0000 |
commit | 32e2b61d0baceacdd0ae791adc12bf829499be96 (patch) | |
tree | 4575643f5e20face4fa00293ef4251cef3abee57 /gold/symtab.h | |
parent | e5e21fa801ffcbe8204f8287bb968bcf4af6b43d (diff) | |
download | gdb-32e2b61d0baceacdd0ae791adc12bf829499be96.zip gdb-32e2b61d0baceacdd0ae791adc12bf829499be96.tar.gz gdb-32e2b61d0baceacdd0ae791adc12bf829499be96.tar.bz2 |
* 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.h | 4 |
1 files changed, 4 insertions, 0 deletions
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. |