From 20e5b5c0ad071659fae9f1ec70954e414dc9c4cd Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 9 Oct 2009 23:02:34 +0000 Subject: [PATCH] * elfcpp/elfcpp_file.h (Elf_file::section_name): Change shstr_size to Elf_WXword. --- elfcpp/ChangeLog | 5 +++++ elfcpp/elfcpp_file.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/elfcpp/ChangeLog b/elfcpp/ChangeLog index 8aeb513caa6..ec8143614c7 100644 --- a/elfcpp/ChangeLog +++ b/elfcpp/ChangeLog @@ -1,3 +1,8 @@ +2009-10-09 Andrew Pinski + + * elfcpp/elfcpp_file.h (Elf_file::section_name): Change shstr_size + to Elf_WXword. + 2009-10-09 Mikolaj Zalewski * elf_file.h: (class Elf_strtab): New class. diff --git a/elfcpp/elfcpp_file.h b/elfcpp/elfcpp_file.h index 12f09250510..cc61622692a 100644 --- a/elfcpp/elfcpp_file.h +++ b/elfcpp/elfcpp_file.h @@ -490,7 +490,7 @@ Elf_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::Elf_WXword shstr_size; { const unsigned int shstrndx = this->shstrndx_; typename File::View v(file->view(this->section_header_offset(shstrndx), -- 2.30.2