Lines Matching defs:ehdr
68 * header is fixed by the ELF ABI. Hence, the ehdr part of this union is
81 } ehdr;
198 Elf64_Ehdr *ehdr;
200 if ((ehdr = elf64_getehdr(_elf)) ==
203 *class_ret = ehdr->e_ident[EI_CLASS];
204 *mach_ret = ehdr->e_machine;
206 Elf32_Ehdr *ehdr;
208 if ((ehdr = elf32_getehdr(_elf)) ==
211 *class_ret = ehdr->e_ident[EI_CLASS];
212 *mach_ret = ehdr->e_machine;
406 if ((hdr.ehdr.e_ident[EI_MAG0] == ELFMAG0) &&
407 (hdr.ehdr.e_ident[EI_MAG1] == ELFMAG1) &&
408 (hdr.ehdr.e_ident[EI_MAG2] == ELFMAG2) &&
409 (hdr.ehdr.e_ident[EI_MAG3] == ELFMAG3)) {
411 class = hdr.ehdr.e_ident[EI_CLASS];
431 (ld_elfdata == hdr.ehdr.e_ident[EI_DATA]) ?
432 hdr.ehdr.e_machine :
433 BSWAP_HALF(hdr.ehdr.e_machine);