Use string length when available when calling Stringpool. Compare

pointers first when looking up Stringpool entries.
This commit is contained in:
Ian Lance Taylor
2007-12-19 00:29:28 +00:00
parent 2353d21439
commit c0873094f5
5 changed files with 51 additions and 30 deletions

View File

@@ -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.