Lines Matching refs:ehdr
81 } ehdr; member
198 Elf64_Ehdr *ehdr; in archive() local
200 if ((ehdr = elf64_getehdr(_elf)) == in archive()
203 *class_ret = ehdr->e_ident[EI_CLASS]; in archive()
204 *mach_ret = ehdr->e_machine; in archive()
206 Elf32_Ehdr *ehdr; in archive() local
208 if ((ehdr = elf32_getehdr(_elf)) == in archive()
211 *class_ret = ehdr->e_ident[EI_CLASS]; in archive()
212 *mach_ret = ehdr->e_machine; in archive()
406 if ((hdr.ehdr.e_ident[EI_MAG0] == ELFMAG0) && in process_args()
407 (hdr.ehdr.e_ident[EI_MAG1] == ELFMAG1) && in process_args()
408 (hdr.ehdr.e_ident[EI_MAG2] == ELFMAG2) && in process_args()
409 (hdr.ehdr.e_ident[EI_MAG3] == ELFMAG3)) { in process_args()
411 class = hdr.ehdr.e_ident[EI_CLASS]; in process_args()
431 (ld_elfdata == hdr.ehdr.e_ident[EI_DATA]) ? in process_args()
432 hdr.ehdr.e_machine : in process_args()
433 BSWAP_HALF(hdr.ehdr.e_machine); in process_args()