Home
last modified time | relevance | path

Searched refs:elf_ex (Results 1 – 2 of 2) sorted by relevance

/fs/
Dbinfmt_em86.c31 struct elfhdr elf_ex; in load_em86() local
34 elf_ex = *((struct elfhdr *)bprm->buf); in load_em86()
36 if (memcmp(elf_ex.e_ident, ELFMAG, SELFMAG) != 0) in load_em86()
40 if ((elf_ex.e_type != ET_EXEC && elf_ex.e_type != ET_DYN) || in load_em86()
41 (!((elf_ex.e_machine == EM_386) || (elf_ex.e_machine == EM_486))) || in load_em86()
Dbinfmt_elf.c589 struct elfhdr elf_ex; in load_elf_binary() member
600 loc->elf_ex = *((struct elfhdr *)bprm->buf); in load_elf_binary()
604 if (memcmp(loc->elf_ex.e_ident, ELFMAG, SELFMAG) != 0) in load_elf_binary()
607 if (loc->elf_ex.e_type != ET_EXEC && loc->elf_ex.e_type != ET_DYN) in load_elf_binary()
609 if (!elf_check_arch(&loc->elf_ex)) in load_elf_binary()
615 if (loc->elf_ex.e_phentsize != sizeof(struct elf_phdr)) in load_elf_binary()
617 if (loc->elf_ex.e_phnum < 1 || in load_elf_binary()
618 loc->elf_ex.e_phnum > 65536U / sizeof(struct elf_phdr)) in load_elf_binary()
620 size = loc->elf_ex.e_phnum * sizeof(struct elf_phdr); in load_elf_binary()
626 retval = kernel_read(bprm->file, loc->elf_ex.e_phoff, in load_elf_binary()
[all …]