Home
last modified time | relevance | path

Searched refs:elf_base (Results 1 – 5 of 5) 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
85 assert(elf_base); in FindElfClassSegment()
88 assert(my_strncmp(elf_base, ELFMAG, SELFMAG) == 0); in FindElfClassSegment()
90 const Ehdr* elf_header = reinterpret_cast<const Ehdr*>(elf_base); in FindElfClassSegment()
99 seg.start = elf_base + phdrs[i].p_offset; in FindElfClassSegment()
[all …]
Delfutils.h83 int ElfClass(const void* elf_base);
129 bool ElfFileSoNameFromMappedFile(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/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()