X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fbreakpad%2Fsrc%2Fcommon%2Flinux%2Felfutils.cc;h=a79391c133e317ed1a65bc0feee81fd45fee0330;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=1fd504d976af1b1a89987c0daa64243a24d9849f;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/breakpad/src/common/linux/elfutils.cc b/src/breakpad/src/common/linux/elfutils.cc index 1fd504d..a79391c 100644 --- a/src/breakpad/src/common/linux/elfutils.cc +++ b/src/breakpad/src/common/linux/elfutils.cc @@ -44,7 +44,7 @@ void FindElfClassSection(const char *elf_base, const char *section_name, typename ElfClass::Word section_type, const void **section_start, - int *section_size) { + size_t *section_size) { typedef typename ElfClass::Ehdr Ehdr; typedef typename ElfClass::Shdr Shdr; @@ -58,10 +58,10 @@ void FindElfClassSection(const char *elf_base, assert(elf_header->e_ident[EI_CLASS] == ElfClass::kClass); const Shdr* sections = - GetOffset(elf_header, elf_header->e_shoff); + GetOffset(elf_header, elf_header->e_shoff); const Shdr* section_names = sections + elf_header->e_shstrndx; const char* names = - GetOffset(elf_header, section_names->sh_offset); + GetOffset(elf_header, section_names->sh_offset); const char *names_end = names + section_names->sh_size; const Shdr* section = @@ -79,7 +79,7 @@ template void FindElfClassSegment(const char *elf_base, typename ElfClass::Word segment_type, const void **segment_start, - int *segment_size) { + size_t *segment_size) { typedef typename ElfClass::Ehdr Ehdr; typedef typename ElfClass::Phdr Phdr; @@ -93,7 +93,7 @@ void FindElfClassSegment(const char *elf_base, assert(elf_header->e_ident[EI_CLASS] == ElfClass::kClass); const Phdr* phdrs = - GetOffset(elf_header, elf_header->e_phoff); + GetOffset(elf_header, elf_header->e_phoff); for (int i = 0; i < elf_header->e_phnum; ++i) { if (phdrs[i].p_type == segment_type) { @@ -122,7 +122,7 @@ bool FindElfSection(const void *elf_mapped_base, const char *section_name, uint32_t section_type, const void **section_start, - int *section_size, + size_t *section_size, int *elfclass) { assert(elf_mapped_base); assert(section_start); @@ -158,7 +158,7 @@ bool FindElfSection(const void *elf_mapped_base, bool FindElfSegment(const void *elf_mapped_base, uint32_t segment_type, const void **segment_start, - int *segment_size, + size_t *segment_size, int *elfclass) { assert(elf_mapped_base); assert(segment_start);