From eebd87a5f4ba6118bd7cc37cbc39cf4dbf92333d Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 28 Sep 2011 00:55:35 +0000 Subject: [PATCH] * symtab.cc (Symbol_table::define_special_symbol): Always canonicalize version string. --- gold/ChangeLog | 6 ++++++ gold/symtab.cc | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gold/ChangeLog b/gold/ChangeLog index f216595..9b56527 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 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 -- 2.7.4