* symtab.cc (Symbol_table::define_special_symbol): Always
authorIan Lance Taylor <ian@airs.com>
Wed, 28 Sep 2011 00:55:35 +0000 (00:55 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 28 Sep 2011 00:55:35 +0000 (00:55 +0000)
canonicalize version string.

gold/ChangeLog
gold/symtab.cc

index f216595fbbefaa6821f26224744a42a472bf91e5..9b56527d8d8254aa55b0afb49492b8e140edd1cd 100644 (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>
 
        * gold/gold.cc (queue_initial_tasks): Move option checks ...
index ff6ff846492da8fd310ee001883f8a8ae7e96f52..ff1b5caa36f036c7123afd5c5f8afde7d57d7309 100644 (file)
@@ -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