Lines Matching refs:elf_ex
574 struct elfhdr elf_ex; in load_elf_binary() member
585 loc->elf_ex = *((struct elfhdr *)bprm->buf); in load_elf_binary()
589 if (memcmp(loc->elf_ex.e_ident, ELFMAG, SELFMAG) != 0) in load_elf_binary()
592 if (loc->elf_ex.e_type != ET_EXEC && loc->elf_ex.e_type != ET_DYN) in load_elf_binary()
594 if (!elf_check_arch(&loc->elf_ex)) in load_elf_binary()
600 if (loc->elf_ex.e_phentsize != sizeof(struct elf_phdr)) in load_elf_binary()
602 if (loc->elf_ex.e_phnum < 1 || in load_elf_binary()
603 loc->elf_ex.e_phnum > 65536U / sizeof(struct elf_phdr)) in load_elf_binary()
605 size = loc->elf_ex.e_phnum * sizeof(struct elf_phdr); in load_elf_binary()
611 retval = kernel_read(bprm->file, loc->elf_ex.e_phoff, in load_elf_binary()
628 for (i = 0; i < loc->elf_ex.e_phnum; i++) { in load_elf_binary()
686 for (i = 0; i < loc->elf_ex.e_phnum; i++, elf_ppnt++) in load_elf_binary()
716 SET_PERSONALITY(loc->elf_ex); in load_elf_binary()
717 if (elf_read_implies_exec(loc->elf_ex, executable_stack)) in load_elf_binary()
741 i < loc->elf_ex.e_phnum; i++, elf_ppnt++) { in load_elf_binary()
786 if (loc->elf_ex.e_type == ET_EXEC || load_addr_set) { in load_elf_binary()
788 } else if (loc->elf_ex.e_type == ET_DYN) { in load_elf_binary()
821 if (loc->elf_ex.e_type == ET_DYN) { in load_elf_binary()
861 loc->elf_ex.e_entry += load_bias; in load_elf_binary()
912 elf_entry = loc->elf_ex.e_entry; in load_elf_binary()
933 retval = create_elf_tables(bprm, &loc->elf_ex, in load_elf_binary()
1006 struct elfhdr elf_ex; in load_elf_library() local
1009 retval = kernel_read(file, 0, (char *)&elf_ex, sizeof(elf_ex)); in load_elf_library()
1010 if (retval != sizeof(elf_ex)) in load_elf_library()
1013 if (memcmp(elf_ex.e_ident, ELFMAG, SELFMAG) != 0) in load_elf_library()
1017 if (elf_ex.e_type != ET_EXEC || elf_ex.e_phnum > 2 || in load_elf_library()
1018 !elf_check_arch(&elf_ex) || !file->f_op || !file->f_op->mmap) in load_elf_library()
1023 j = sizeof(struct elf_phdr) * elf_ex.e_phnum; in load_elf_library()
1033 retval = kernel_read(file, elf_ex.e_phoff, (char *)eppnt, j); in load_elf_library()
1037 for (j = 0, i = 0; i<elf_ex.e_phnum; i++) in load_elf_library()