* symtab.cc (Symbol_table::define_special_symbol): Always

canonicalize version string.
This commit is contained in:
Ian Lance Taylor 2011-09-28 00:55:35 +00:00
parent 27ebf5b696
commit eebd87a5f4
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2011-09-27 Viktor Kutuzov <vkutuzov@accesssoftek.com>
Ian Lance Taylor <iant@google.com>
* symtab.cc (Symbol_table::define_special_symbol): Always
canonicalize version string.
2011-09-26 Cary Coutant <ccoutant@google.com> 2011-09-26 Cary Coutant <ccoutant@google.com>
* gold/gold.cc (queue_initial_tasks): Move option checks ... * gold/gold.cc (queue_initial_tasks): Move option checks ...

View file

@ -1683,7 +1683,9 @@ Symbol_table::define_special_symbol(const char** pname, const char** pversion,
return NULL; return NULL;
*pname = oldsym->name(); *pname = oldsym->name();
if (!is_default_version) if (is_default_version)
*pversion = this->namepool_.add(*pversion, true, NULL);
else
*pversion = oldsym->version(); *pversion = oldsym->version();
} }
else else