From: Ian Lance Taylor Date: Wed, 28 Sep 2011 00:55:35 +0000 (+0000) Subject: * symtab.cc (Symbol_table::define_special_symbol): Always X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eebd87a5f4ba6118bd7cc37cbc39cf4dbf92333d;p=binutils-gdb.git * symtab.cc (Symbol_table::define_special_symbol): Always canonicalize version string. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index f216595fbbe..9b56527d8d8 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,9 @@ +2011-09-27 Viktor Kutuzov + Ian Lance Taylor + + * symtab.cc (Symbol_table::define_special_symbol): Always + canonicalize version string. + 2011-09-26 Cary Coutant * gold/gold.cc (queue_initial_tasks): Move option checks ... diff --git a/gold/symtab.cc b/gold/symtab.cc index ff6ff846492..ff1b5caa36f 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