aboutsummaryrefslogtreecommitdiff
path: root/gold/symtab.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gold/symtab.cc')
-rw-r--r--gold/symtab.cc4
1 files changed, 3 insertions, 1 deletions
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