Lines Matching refs:e_ident
92 u8 e_ident[EI_NIDENT]; in filename__read_build_id() local
101 if (fread(e_ident, sizeof(e_ident), 1, fp) != 1) in filename__read_build_id()
104 if (memcmp(e_ident, ELFMAG, SELFMAG) || in filename__read_build_id()
105 e_ident[EI_VERSION] != EV_CURRENT) in filename__read_build_id()
108 need_swap = check_need_swap(e_ident[EI_DATA]); in filename__read_build_id()
113 if (e_ident[EI_CLASS] == ELFCLASS32) { in filename__read_build_id()
301 u8 e_ident[EI_NIDENT]; in fd__is_64_bit() local
306 if (readn(fd, e_ident, sizeof(e_ident)) != sizeof(e_ident)) in fd__is_64_bit()
309 if (memcmp(e_ident, ELFMAG, SELFMAG) || in fd__is_64_bit()
310 e_ident[EI_VERSION] != EV_CURRENT) in fd__is_64_bit()
313 return e_ident[EI_CLASS] == ELFCLASS64; in fd__is_64_bit()