Lines Matching refs:elf_ex

508     struct elfhdr elf_ex;  in is_target_elf_binary()  local
517 elf_ex = *((struct elfhdr *)buf); in is_target_elf_binary()
518 bswap_ehdr(&elf_ex); in is_target_elf_binary()
520 if ((elf_ex.e_type != ET_EXEC && elf_ex.e_type != ET_DYN) || in is_target_elf_binary()
521 (!elf_check_arch(elf_ex.e_machine))) { in is_target_elf_binary()
603 struct elfhdr elf_ex; in load_elf_binary() local
617 elf_ex = *((struct elfhdr *) bprm->buf); /* exec-header */ in load_elf_binary()
618 bswap_ehdr(&elf_ex); in load_elf_binary()
621 if ((elf_ex.e_type != ET_EXEC && elf_ex.e_type != ET_DYN) || in load_elf_binary()
622 (!elf_check_arch(elf_ex.e_machine))) { in load_elf_binary()
634 elf_phdata = (struct elf_phdr *)malloc(elf_ex.e_phentsize * elf_ex.e_phnum); in load_elf_binary()
639 retval = lseek(bprm->fd, elf_ex.e_phoff, SEEK_SET); in load_elf_binary()
642 elf_ex.e_phentsize * elf_ex.e_phnum); in load_elf_binary()
652 bswap_phdr(elf_phdata, elf_ex.e_phnum); in load_elf_binary()
659 for (i = 0; i < elf_ex.e_phnum; i++) { in load_elf_binary()
741 elf_entry = (abi_ulong) elf_ex.e_entry; in load_elf_binary()
745 for (i = 0, elf_ppnt = elf_phdata; i < elf_ex.e_phnum; i++, elf_ppnt++) { in load_elf_binary()
754 if (elf_ex.e_type == ET_DYN && baddr == 0) { in load_elf_binary()
766 info->elf_flags = elf_ex.e_flags; in load_elf_binary()
768 error = load_elf_sections(&elf_ex, elf_phdata, bprm->fd, et_dyn_addr, in load_elf_binary()
770 for (i = 0, elf_ppnt = elf_phdata; i < elf_ex.e_phnum; i++, elf_ppnt++) { in load_elf_binary()
805 load_symbols(&elf_ex, bprm->fd); in load_elf_binary()
811 bprm->stringp, &elf_ex, load_addr, in load_elf_binary()