Lines Matching refs:elf_ex

597 	struct elfhdr elf_ex, interp_elf_ex;  in load_irix_binary()  local
610 elf_ex = *((struct elfhdr *) bprm->buf); in load_irix_binary()
613 if (verify_binary(&elf_ex, bprm)) in load_irix_binary()
617 print_elfhdr(&elf_ex); in load_irix_binary()
621 size = elf_ex.e_phentsize * elf_ex.e_phnum; in load_irix_binary()
630 retval = kernel_read(bprm->file, elf_ex.e_phoff, (char *)elf_phdata, size); in load_irix_binary()
635 dump_phdrs(elf_phdata, elf_ex.e_phnum); in load_irix_binary()
639 for(i = 0; i < elf_ex.e_phnum; i++) { in load_irix_binary()
667 elf_ex.e_phnum); in load_irix_binary()
694 elf_entry = (unsigned int) elf_ex.e_entry; in load_irix_binary()
709 map_executable(bprm->file, elf_phdata, elf_ex.e_phnum, &elf_stack, in load_irix_binary()
716 elf_ex.e_phnum, old_fs, &elf_entry); in load_irix_binary()
736 (elf_interpreter ? &elf_ex : NULL), in load_irix_binary()
802 struct elfhdr elf_ex; in load_irix_library() local
811 error = kernel_read(file, 0, (char *) &elf_ex, sizeof(elf_ex)); in load_irix_library()
812 if (error != sizeof(elf_ex)) in load_irix_library()
815 if (memcmp(elf_ex.e_ident, ELFMAG, SELFMAG) != 0) in load_irix_library()
819 if(elf_ex.e_type != ET_EXEC || elf_ex.e_phnum > 2 || in load_irix_library()
820 !irix_elf_check_arch(&elf_ex) || !file->f_op->mmap) in load_irix_library()
824 if(sizeof(struct elf_phdr) * elf_ex.e_phnum > PAGE_SIZE) in load_irix_library()
828 kmalloc(sizeof(struct elf_phdr) * elf_ex.e_phnum, GFP_KERNEL); in load_irix_library()
832 retval = kernel_read(file, elf_ex.e_phoff, (char *) elf_phdata, in load_irix_library()
833 sizeof(struct elf_phdr) * elf_ex.e_phnum); in load_irix_library()
836 for(i=0; i<elf_ex.e_phnum; i++) in load_irix_library()