diff options
author | Ian Lance Taylor <iant@google.com> | 2007-12-19 00:29:28 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-12-19 00:29:28 +0000 |
commit | c0873094f582f8dffda7eaea2ea21bd87f351570 (patch) | |
tree | b080a2190a75cc4a90bfaa40ab6b158636aa858b /gold/symtab.cc | |
parent | 2353d21439630f851ce2c38ed5f41973562c804a (diff) | |
download | gdb-c0873094f582f8dffda7eaea2ea21bd87f351570.zip gdb-c0873094f582f8dffda7eaea2ea21bd87f351570.tar.gz gdb-c0873094f582f8dffda7eaea2ea21bd87f351570.tar.bz2 |
Use string length when available when calling Stringpool. Compare
pointers first when looking up Stringpool entries.
Diffstat (limited to 'gold/symtab.cc')
-rw-r--r-- | gold/symtab.cc | 3 |
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; |