From: Ian Lance Taylor Date: Wed, 28 Sep 2011 00:55:46 +0000 (+0000) Subject: * symtab.cc (Symbol_table::define_special_symbol): Always X-Git-Tag: binutils-2_22~103 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cc99aa320bde2890e5f5e5e8b70016f2ce5fdefd;p=thirdparty%2Fbinutils-gdb.git * symtab.cc (Symbol_table::define_special_symbol): Always canonicalize version string. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index 2139fbfd0f7..b3a4638e202 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-19 Sriraman Tallam * plugin.h (should_defer_layout): Modify to check for any_claimed_. 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