Lines Matching refs:ehdr
134 Elf64_Ehdr *ehdr; member
202 for (var = elf.sh_table; var < elf.sh_table + elf16toh(elf.ehdr->e_shnum); ++var)
276 assert_ge(stat.st_size, sizeof(*elf.ehdr), "%lu"); in init_elf()
277 elf.ehdr = elf_ptr(Elf64_Ehdr, 0); in init_elf()
280 assert_eq(elf.ehdr->e_ident[EI_MAG0], ELFMAG0, "0x%x"); in init_elf()
281 assert_eq(elf.ehdr->e_ident[EI_MAG1], ELFMAG1, "0x%x"); in init_elf()
282 assert_eq(elf.ehdr->e_ident[EI_MAG2], ELFMAG2, "0x%x"); in init_elf()
283 assert_eq(elf.ehdr->e_ident[EI_MAG3], ELFMAG3, "0x%x"); in init_elf()
286 assert_eq(elf.ehdr->e_ident[EI_CLASS], ELFCLASS64, "%u"); in init_elf()
287 assert_eq(elf.ehdr->e_ident[EI_DATA], ELFENDIAN, "%u"); in init_elf()
288 assert_eq(elf16toh(elf.ehdr->e_type), ET_REL, "%u"); in init_elf()
289 assert_eq(elf16toh(elf.ehdr->e_machine), EM_AARCH64, "%u"); in init_elf()
292 elf.sh_table = section_by_off(elf64toh(elf.ehdr->e_shoff)); in init_elf()
293 elf.sh_string = section_begin(section_by_idx(elf16toh(elf.ehdr->e_shstrndx))); in init_elf()