* elfcpp/elfcpp_file.h (Elf_file::section_name): Change shstr_size
authorIan Lance Taylor <ian@airs.com>
Fri, 9 Oct 2009 23:02:34 +0000 (23:02 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 9 Oct 2009 23:02:34 +0000 (23:02 +0000)
to Elf_WXword.

elfcpp/ChangeLog
elfcpp/elfcpp_file.h

index 8aeb513caa611628e20bbdc48d19f38bdc21ceed..ec8143614c720ef22c96357721775f98c0411f46 100644 (file)
@@ -1,3 +1,8 @@
+2009-10-09  Andrew Pinski  <andrew_pinski@playstation.sony.com>
+
+       * elfcpp/elfcpp_file.h (Elf_file::section_name): Change shstr_size
+       to Elf_WXword.
+
 2009-10-09  Mikolaj Zalewski  <mikolajz@google.com>
 
        * elf_file.h: (class Elf_strtab): New class.
index 12f09250510e1eaa54b19c2089dfa7cb736d5434..cc61622692acec3ad93f636dacfe80f5232c44af 100644 (file)
@@ -490,7 +490,7 @@ Elf_file<size, big_endian, File>::section_name(unsigned int shndx)
 
   // Get the file offset for the section name string table data.
   off_t shstr_off;
-  off_t shstr_size;
+  typename Elf_types<size>::Elf_WXword shstr_size;
   {
     const unsigned int shstrndx = this->shstrndx_;
     typename File::View v(file->view(this->section_header_offset(shstrndx),