Home | History | Annotate | Download | only in elff

Lines Matching refs:elf_hdr

85   const Elf_CommonHdr* elf_hdr = &header.common;

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