Lines Matching refs:elf_header
57 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()
115 const ElfW(Ehdr)* elf_header = in ElfClass()
118 return elf_header->e_ident[EI_CLASS]; in ElfClass()