diff options
author | Ian Lance Taylor <ian@airs.com> | 2011-09-28 00:55:35 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2011-09-28 00:55:35 +0000 |
commit | eebd87a5f4ba6118bd7cc37cbc39cf4dbf92333d (patch) | |
tree | 0147cdde282ad858036214abd49fe0106f76ec6b /gold/symtab.cc | |
parent | 27ebf5b6961fe7021c2f532d0f77be12c98d49e9 (diff) | |
download | gdb-eebd87a5f4ba6118bd7cc37cbc39cf4dbf92333d.zip gdb-eebd87a5f4ba6118bd7cc37cbc39cf4dbf92333d.tar.gz gdb-eebd87a5f4ba6118bd7cc37cbc39cf4dbf92333d.tar.bz2 |
* symtab.cc (Symbol_table::define_special_symbol): Always
canonicalize version string.
Diffstat (limited to 'gold/symtab.cc')
-rw-r--r-- | gold/symtab.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gold/symtab.cc b/gold/symtab.cc index ff6ff84..ff1b5ca 100644 --- a/gold/symtab.cc +++ b/gold/symtab.cc @@ -1683,7 +1683,9 @@ Symbol_table::define_special_symbol(const char** pname, const char** pversion, return NULL; *pname = oldsym->name(); - if (!is_default_version) + if (is_default_version) + *pversion = this->namepool_.add(*pversion, true, NULL); + else *pversion = oldsym->version(); } else |