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/layout.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/layout.cc')
-rw-r--r-- | gold/layout.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/layout.cc b/gold/layout.cc index 45980d5..231e2c9 100644 --- a/gold/layout.cc +++ b/gold/layout.cc @@ -269,7 +269,7 @@ Layout::layout(Sized_relobj<size, big_endian>* object, unsigned int shndx, // Canonicalize the section name. Stringpool::Key name_key; - name = this->namepool_.add_prefix(name, len, &name_key); + name = this->namepool_.add_with_length(name, len, true, &name_key); // Find the output section. The output section is selected based on // the section name, type, and flags. |