Home
last modified time | relevance | path

Searched refs:elf_header (Results 1 – 7 of 7) sorted by relevance

/external/google-breakpad/src/common/linux/
Ddump_symbols.cc177 bool LoadStabs(const typename ElfClass::Ehdr* elf_header, in LoadStabs() argument
189 GetOffset<ElfClass, uint8_t>(elf_header, stab_section->sh_offset); in LoadStabs()
191 GetOffset<ElfClass, uint8_t>(elf_header, stabstr_section->sh_offset); in LoadStabs()
227 const typename ElfClass::Ehdr* elf_header, in LoadDwarf() argument
244 GetOffset<ElfClass, Shdr>(elf_header, elf_header->e_shoff); in LoadDwarf()
245 int num_sections = elf_header->e_shnum; in LoadDwarf()
246 const Shdr* section_names = sections + elf_header->e_shstrndx; in LoadDwarf()
249 string name = GetOffset<ElfClass, char>(elf_header, in LoadDwarf()
252 const char* contents = GetOffset<ElfClass, char>(elf_header, in LoadDwarf()
292 bool DwarfCFIRegisterNames(const typename ElfClass::Ehdr* elf_header, in DwarfCFIRegisterNames() argument
[all …]
Delfutils.cc57 const Ehdr* elf_header = reinterpret_cast<const Ehdr*>(elf_base); in FindElfClassSection() local
58 assert(elf_header->e_ident[EI_CLASS] == ElfClass::kClass); in FindElfClassSection()
61 GetOffset<ElfClass, Shdr>(elf_header, elf_header->e_shoff); in FindElfClassSection()
62 const Shdr* section_names = sections + elf_header->e_shstrndx; in FindElfClassSection()
64 GetOffset<ElfClass, char>(elf_header, section_names->sh_offset); in FindElfClassSection()
70 elf_header->e_shnum); in FindElfClassSection()
92 const Ehdr* elf_header = reinterpret_cast<const Ehdr*>(elf_base); in FindElfClassSegment() local
93 assert(elf_header->e_ident[EI_CLASS] == ElfClass::kClass); in FindElfClassSegment()
96 GetOffset<ElfClass, Phdr>(elf_header, elf_header->e_phoff); in FindElfClassSegment()
98 for (int i = 0; i < elf_header->e_phnum; ++i) { in FindElfClassSegment()
[all …]
Delfutils-inl.h39 const T* GetOffset(const typename ElfClass::Ehdr* elf_header, in GetOffset() argument
41 return reinterpret_cast<const T*>(reinterpret_cast<uintptr_t>(elf_header) + in GetOffset()
Delfutils.h70 bool IsValidElf(const void* elf_header);
113 GetOffset(const typename ElfClass::Ehdr* elf_header,
/external/google-breakpad/src/common/solaris/
Dfile_id.cc79 GElf_Ehdr elf_header; in FindElfTextSection() local
84 if (gelf_getehdr(elf, &elf_header) == (GElf_Ehdr *)NULL) { in FindElfTextSection()
89 if (elf_header.e_ident[EI_MAG0] != ELFMAG0 || in FindElfTextSection()
90 elf_header.e_ident[EI_MAG1] != ELFMAG1 || in FindElfTextSection()
91 elf_header.e_ident[EI_MAG2] != ELFMAG2 || in FindElfTextSection()
92 elf_header.e_ident[EI_MAG3] != ELFMAG3) { in FindElfTextSection()
109 const char *section_name = elf_strptr(elf, elf_header.e_shstrndx, in FindElfTextSection()
Ddump_symbols.cc212 bool IsValidElf(const GElf_Ehdr *elf_header) { in IsValidElf() argument
213 return memcmp(elf_header, ELFMAG, SELFMAG) == 0; in IsValidElf()
434 bool LoadSymbols(Elf *elf, GElf_Ehdr *elf_header, struct SymbolInfo *symbols, in LoadSymbols() argument
439 reinterpret_cast<GElf_Shdr *>(elf_header->e_shoff + base); in LoadSymbols()
441 if (!FindSectionByName(elf, kStabName, elf_header->e_shstrndx, in LoadSymbols()
447 if (!FindSectionByName(elf, kStabStrName, elf_header->e_shstrndx, in LoadSymbols()
453 if (!FindSectionByName(elf, kSymtabName, elf_header->e_shstrndx, in LoadSymbols()
459 if (!FindSectionByName(elf, kStrtabName, elf_header->e_shstrndx, in LoadSymbols()
657 GElf_Ehdr elf_header; in WriteSymbolFile() local
661 if (gelf_getehdr(elf, &elf_header) == (GElf_Ehdr *)NULL) { in WriteSymbolFile()
[all …]
/external/libunwind/src/coredump/
D_UCD_create.c82 } elf_header; in _UCD_create() local
83 #define elf_header32 elf_header.h32 in _UCD_create()
84 #define elf_header64 elf_header.h64 in _UCD_create()