elf_ex 532 arch/mips/include/asm/elf.h extern int mips_elf_read_implies_exec(void *elf_ex, int exstack); elf_ex 329 arch/mips/kernel/elf.c int mips_elf_read_implies_exec(void *elf_ex, int exstack) elf_ex 416 fs/binfmt_elf.c static struct elf_phdr *load_elf_phdrs(const struct elfhdr *elf_ex, elf_ex 421 fs/binfmt_elf.c loff_t pos = elf_ex->e_phoff; elf_ex 428 fs/binfmt_elf.c if (elf_ex->e_phentsize != sizeof(struct elf_phdr)) elf_ex 433 fs/binfmt_elf.c size = sizeof(struct elf_phdr) * elf_ex->e_phnum; elf_ex 689 fs/binfmt_elf.c struct elfhdr elf_ex; elf_ex 702 fs/binfmt_elf.c loc->elf_ex = *((struct elfhdr *)bprm->buf); elf_ex 706 fs/binfmt_elf.c if (memcmp(loc->elf_ex.e_ident, ELFMAG, SELFMAG) != 0) elf_ex 709 fs/binfmt_elf.c if (loc->elf_ex.e_type != ET_EXEC && loc->elf_ex.e_type != ET_DYN) elf_ex 711 fs/binfmt_elf.c if (!elf_check_arch(&loc->elf_ex)) elf_ex 713 fs/binfmt_elf.c if (elf_check_fdpic(&loc->elf_ex)) elf_ex 718 fs/binfmt_elf.c elf_phdata = load_elf_phdrs(&loc->elf_ex, bprm->file); elf_ex 723 fs/binfmt_elf.c for (i = 0; i < loc->elf_ex.e_phnum; i++, elf_ppnt++) { elf_ex 786 fs/binfmt_elf.c for (i = 0; i < loc->elf_ex.e_phnum; i++, elf_ppnt++) elf_ex 796 fs/binfmt_elf.c retval = arch_elf_pt_proc(&loc->elf_ex, elf_ppnt, elf_ex 840 fs/binfmt_elf.c retval = arch_check_elf(&loc->elf_ex, elf_ex 853 fs/binfmt_elf.c SET_PERSONALITY2(loc->elf_ex, &arch_state); elf_ex 854 fs/binfmt_elf.c if (elf_read_implies_exec(loc->elf_ex, executable_stack)) elf_ex 881 fs/binfmt_elf.c i < loc->elf_ex.e_phnum; i++, elf_ppnt++) { elf_ex 925 fs/binfmt_elf.c if (loc->elf_ex.e_type == ET_EXEC || load_addr_set) { elf_ex 927 fs/binfmt_elf.c } else if (loc->elf_ex.e_type == ET_DYN) { elf_ex 976 fs/binfmt_elf.c loc->elf_ex.e_phnum); elf_ex 994 fs/binfmt_elf.c if (loc->elf_ex.e_type == ET_DYN) { elf_ex 1035 fs/binfmt_elf.c loc->elf_ex.e_entry += load_bias; elf_ex 1081 fs/binfmt_elf.c elf_entry = loc->elf_ex.e_entry; elf_ex 1099 fs/binfmt_elf.c retval = create_elf_tables(bprm, &loc->elf_ex, elf_ex 1118 fs/binfmt_elf.c loc->elf_ex.e_type == ET_DYN && !interpreter) elf_ex 1181 fs/binfmt_elf.c struct elfhdr elf_ex; elf_ex 1185 fs/binfmt_elf.c retval = kernel_read(file, &elf_ex, sizeof(elf_ex), &pos); elf_ex 1186 fs/binfmt_elf.c if (retval != sizeof(elf_ex)) elf_ex 1189 fs/binfmt_elf.c if (memcmp(elf_ex.e_ident, ELFMAG, SELFMAG) != 0) elf_ex 1193 fs/binfmt_elf.c if (elf_ex.e_type != ET_EXEC || elf_ex.e_phnum > 2 || elf_ex 1194 fs/binfmt_elf.c !elf_check_arch(&elf_ex) || !file->f_op->mmap) elf_ex 1196 fs/binfmt_elf.c if (elf_check_fdpic(&elf_ex)) elf_ex 1201 fs/binfmt_elf.c j = sizeof(struct elf_phdr) * elf_ex.e_phnum; elf_ex 1211 fs/binfmt_elf.c pos = elf_ex.e_phoff; elf_ex 1216 fs/binfmt_elf.c for (j = 0, i = 0; i<elf_ex.e_phnum; i++) elf_ex 32 fs/binfmt_em86.c struct elfhdr elf_ex; elf_ex 35 fs/binfmt_em86.c elf_ex = *((struct elfhdr *)bprm->buf); elf_ex 37 fs/binfmt_em86.c if (memcmp(elf_ex.e_ident, ELFMAG, SELFMAG) != 0) elf_ex 41 fs/binfmt_em86.c if ((elf_ex.e_type != ET_EXEC && elf_ex.e_type != ET_DYN) || elf_ex 42 fs/binfmt_em86.c (!((elf_ex.e_machine == EM_386) || (elf_ex.e_machine == EM_486))) ||