aboutsummaryrefslogtreecommitdiff
path: root/gold/symtab.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gold/symtab.cc')
-rw-r--r--gold/symtab.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/symtab.cc b/gold/symtab.cc
index 2cab980..afe47da 100644
--- a/gold/symtab.cc
+++ b/gold/symtab.cc
@@ -630,7 +630,8 @@ Symbol_table::add_from_relobj(
else
{
Stringpool::Key name_key;
- name = this->namepool_.add_prefix(name, ver - name, &name_key);
+ name = this->namepool_.add_with_length(name, ver - name, true,
+ &name_key);
bool def = false;
++ver;