Lines Matching refs:elf_ex

482 	struct elfhdr elf_ex;  in load_elf_binary()  local
489 elf_ex = *((struct elfhdr *) bprm->buf); in load_elf_binary()
493 if (memcmp(elf_ex.e_ident, ELFMAG, SELFMAG) != 0) in load_elf_binary()
496 if (elf_ex.e_type != ET_EXEC && elf_ex.e_type != ET_DYN) in load_elf_binary()
498 if (!elf_check_arch(&elf_ex)) in load_elf_binary()
505 if (elf_ex.e_phentsize != sizeof(struct elf_phdr)) in load_elf_binary()
507 if (elf_ex.e_phnum < 1 || in load_elf_binary()
508 elf_ex.e_phnum > 65536U / sizeof(struct elf_phdr)) in load_elf_binary()
510 size = elf_ex.e_phnum * sizeof(struct elf_phdr); in load_elf_binary()
516 retval = kernel_read(bprm->file, elf_ex.e_phoff, (char *) elf_phdata, size); in load_elf_binary()
550 for (i = 0; i < elf_ex.e_phnum; i++) { in load_elf_binary()
592 SET_PERSONALITY(elf_ex, ibcs2_interpreter); in load_elf_binary()
643 SET_PERSONALITY(elf_ex, ibcs2_interpreter); in load_elf_binary()
646 if (BAD_ADDR(elf_ex.e_entry)) { in load_elf_binary()
688 elf_entry = (unsigned long) elf_ex.e_entry; in load_elf_binary()
706 for(i = 0, elf_ppnt = elf_phdata; i < elf_ex.e_phnum; i++, elf_ppnt++) { in load_elf_binary()
741 if (elf_ex.e_type == ET_EXEC || load_addr_set) { in load_elf_binary()
743 } else if (elf_ex.e_type == ET_DYN) { in load_elf_binary()
759 if (elf_ex.e_type == ET_DYN) { in load_elf_binary()
860 &elf_ex, in load_elf_binary()
946 struct elfhdr elf_ex; in load_elf_library() local
949 retval = kernel_read(file, 0, (char *) &elf_ex, sizeof(elf_ex)); in load_elf_library()
950 if (retval != sizeof(elf_ex)) in load_elf_library()
953 if (memcmp(elf_ex.e_ident, ELFMAG, SELFMAG) != 0) in load_elf_library()
957 if (elf_ex.e_type != ET_EXEC || elf_ex.e_phnum > 2 || in load_elf_library()
958 !elf_check_arch(&elf_ex) || !file->f_op || !file->f_op->mmap) in load_elf_library()
963 j = sizeof(struct elf_phdr) * elf_ex.e_phnum; in load_elf_library()
973 retval = kernel_read(file, elf_ex.e_phoff, (char *)eppnt, j); in load_elf_library()
977 for (j = 0, i = 0; i<elf_ex.e_phnum; i++) in load_elf_library()