Lines Matching refs:ehp
80 static void print_elfhdr(struct elfhdr *ehp) in print_elfhdr() argument
85 for(i = 0; i < (EI_NIDENT - 1); i++) printk("%x ", ehp->e_ident[i]); in print_elfhdr()
86 printk("%x>\n", ehp->e_ident[i]); in print_elfhdr()
88 (unsigned short) ehp->e_type, (unsigned short) ehp->e_machine, in print_elfhdr()
89 (unsigned long) ehp->e_version); in print_elfhdr()
92 (unsigned long) ehp->e_entry, (unsigned long) ehp->e_phoff, in print_elfhdr()
93 (unsigned long) ehp->e_shoff, (unsigned long) ehp->e_flags); in print_elfhdr()
95 (unsigned short) ehp->e_ehsize, (unsigned short) ehp->e_phentsize, in print_elfhdr()
96 (unsigned short) ehp->e_phnum); in print_elfhdr()
98 (unsigned short) ehp->e_shentsize, (unsigned short) ehp->e_shnum, in print_elfhdr()
99 (unsigned short) ehp->e_shstrndx); in print_elfhdr()
396 static int verify_binary(struct elfhdr *ehp, struct linux_binprm *bprm) in verify_binary() argument
398 if (memcmp(ehp->e_ident, ELFMAG, SELFMAG) != 0) in verify_binary()
402 if((ehp->e_type != ET_EXEC && ehp->e_type != ET_DYN) || in verify_binary()
403 !irix_elf_check_arch(ehp) || !bprm->file->f_op->mmap) { in verify_binary()
408 if(!(ehp->e_flags & EF_MIPS_ARCH) && !(ehp->e_flags & 0x04)) { in verify_binary()
418 if((ehp->e_flags & 0x20)) { in verify_binary()