diff options
author | Ian Lance Taylor <ian@airs.com> | 2011-09-28 00:55:46 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2011-09-28 00:55:46 +0000 |
commit | cc99aa320bde2890e5f5e5e8b70016f2ce5fdefd (patch) | |
tree | 988479aba58560070fa63b95971ae7eee64404da /gold | |
parent | d2b9455fef17af4d63ccf14c7907423d3f39653b (diff) | |
download | gdb-cc99aa320bde2890e5f5e5e8b70016f2ce5fdefd.zip gdb-cc99aa320bde2890e5f5e5e8b70016f2ce5fdefd.tar.gz gdb-cc99aa320bde2890e5f5e5e8b70016f2ce5fdefd.tar.bz2 |
* symtab.cc (Symbol_table::define_special_symbol): Always
canonicalize version string.
Diffstat (limited to 'gold')
-rw-r--r-- | gold/ChangeLog | 6 | ||||
-rw-r--r-- | gold/symtab.cc | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog index 2139fbf..b3a4638 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -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-19 Sriraman Tallam <tmsriram@google.com> * plugin.h (should_defer_layout): Modify to check for any_claimed_. 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 |