Lines Matching refs:elf_hdr
85 const Elf_CommonHdr* elf_hdr = &header.common; in Create() local
111 if (memcmp(elf_hdr->e_ident, ELFMAG, SELFMAG) != 0) { in Create()
118 assert(elf_hdr->ei_info.ei_class == ELFCLASS32 || in Create()
119 elf_hdr->ei_info.ei_class == ELFCLASS64); in Create()
120 if (elf_hdr->ei_info.ei_class != ELFCLASS32 && in Create()
121 elf_hdr->ei_info.ei_class != ELFCLASS64) { in Create()
128 if (elf_hdr->ei_info.ei_class == ELFCLASS32) { in Create()
135 if (!ret->initialize(elf_hdr, path)) { in Create()
146 bool ElfFile::initialize(const Elf_CommonHdr* elf_hdr, const char* path) { in initialize() argument
166 is_ELF_64_ = elf_hdr->ei_info.ei_class == ELFCLASS64; in initialize()
167 is_elf_big_endian_ = elf_hdr->ei_info.ei_data == ELFDATA2MSB; in initialize()
169 is_exec_ = elf_hdr->e_type == 2; in initialize()
327 bool ElfFileImpl<Elf_Addr, Elf_Off>::initialize(const Elf_CommonHdr* elf_hdr, in initialize() argument
330 if (!ElfFile::initialize(elf_hdr, path)) { in initialize()
336 reinterpret_cast<const Elf_FHdr<Elf_Addr, Elf_Off>*>(elf_hdr); in initialize()