Home
last modified time | relevance | path

Searched refs:elf_base (Results 1 – 6 of 6) sorted by relevance

/external/google-breakpad/src/common/linux/
Delfutils.cc43 void FindElfClassSection(const char *elf_base, in FindElfClassSection() argument
51 assert(elf_base); in FindElfClassSection()
55 assert(my_strncmp(elf_base, ELFMAG, SELFMAG) == 0); in FindElfClassSection()
57 const Ehdr* elf_header = reinterpret_cast<const Ehdr*>(elf_base); in FindElfClassSection()
73 *section_start = elf_base + section->sh_offset; in FindElfClassSection()
79 void FindElfClassSegment(const char *elf_base, in FindElfClassSegment() argument
86 assert(elf_base); in FindElfClassSegment()
90 assert(my_strncmp(elf_base, ELFMAG, SELFMAG) == 0); in FindElfClassSegment()
92 const Ehdr* elf_header = reinterpret_cast<const Ehdr*>(elf_base); in FindElfClassSegment()
100 *segment_start = elf_base + phdrs[i].p_offset; in FindElfClassSegment()
[all …]
Delfutils.h71 int ElfClass(const void* elf_base);
/external/libchrome/base/debug/
Delf_reader_linux.cc72 const char* elf_base = reinterpret_cast<const char*>(elf_mapped_base); in FindElfSegments() local
73 if (strncmp(elf_base, ELFMAG, SELFMAG) != 0) in FindElfSegments()
76 const Ehdr* elf_header = reinterpret_cast<const Ehdr*>(elf_base); in FindElfSegments()
78 reinterpret_cast<const Phdr*>(elf_base + elf_header->e_phoff); in FindElfSegments()
82 segments.push_back({elf_base + phdrs[i].p_offset, phdrs[i].p_filesz}); in FindElfSegments()
89 Optional<std::string> ReadElfBuildId(const void* elf_base) { in ReadElfBuildId() argument
91 std::vector<ElfSegment> segs = FindElfSegments(elf_base, PT_NOTE); in ReadElfBuildId()
104 Optional<std::string> ReadElfLibraryName(const void* elf_base) { in ReadElfLibraryName() argument
105 std::vector<ElfSegment> segs = FindElfSegments(elf_base, PT_DYNAMIC); in ReadElfLibraryName()
121 dynamic_iter->d_un.d_ptr + reinterpret_cast<const char*>(elf_base); in ReadElfLibraryName()
Delf_reader_linux.h19 Optional<std::string> BASE_EXPORT ReadElfBuildId(const void* elf_base);
23 Optional<std::string> BASE_EXPORT ReadElfLibraryName(const void* elf_base);
/external/google-breakpad/src/client/linux/minidump_writer/
Dlinux_dumper.cc145 const void* elf_base, char* soname, size_t soname_size) { in ElfFileSoNameFromMappedFile() argument
146 if (!IsValidElf(elf_base)) { in ElfFileSoNameFromMappedFile()
154 if (!FindElfSection(elf_base, ".dynamic", SHT_DYNAMIC, in ElfFileSoNameFromMappedFile()
162 if (!FindElfSection(elf_base, ".dynstr", SHT_STRTAB, in ElfFileSoNameFromMappedFile()
/external/google-breakpad/src/common/solaris/
Dfile_id.cc65 static bool FindElfTextSection(int fd, const void *elf_base, in FindElfTextSection() argument
123 *text_start = (char *)elf_base + text_section->sh_offset; in FindElfTextSection()