Use string length when available when calling Stringpool. Compare
[deliverable/binutils-gdb.git] / gold / layout.cc
index 45980d514544dc86acdddb027a409bfc7f6c03c1..231e2c9f4146875b2516a589608ac940ab08e0bc 100644 (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.
This page took 0.02388 seconds and 4 git commands to generate.