Lines Matching refs:e_ident
1255 unsigned char e_ident[EI_NIDENT];
1263 _Static_assert(offsetof(Elf32_Ehdr, e_ident) == 0, "Unexpected offset");
1264 _Static_assert(offsetof(Elf64_Ehdr, e_ident) == 0, "Unexpected offset");
1266 if (pread(fd, &e_ident, sizeof(e_ident), 0) != sizeof(e_ident))
1269 if (memcmp(e_ident, ELFMAG, SELFMAG) != 0)
1272 if (e_ident[EI_CLASS] == ELFCLASSNONE || e_ident[EI_CLASS] >= ELFCLASSNUM)
1275 if (e_ident[EI_VERSION] != EV_CURRENT)
1278 swap_type = dso_swap_type__from_elf_data(e_ident[EI_DATA]);
1283 *is_big_endian = (e_ident[EI_DATA] == ELFDATA2MSB);
1311 off_t offset = e_ident[EI_CLASS] == ELFCLASS32