Home
last modified time | relevance | path

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

/fs/
Dbinfmt_em86.c32 struct elfhdr elf_ex; in load_em86() local
35 elf_ex = *((struct elfhdr *)bprm->buf); in load_em86()
37 if (memcmp(elf_ex.e_ident, ELFMAG, SELFMAG) != 0) in load_em86()
41 if ((elf_ex.e_type != ET_EXEC && elf_ex.e_type != ET_DYN) || in load_em86()
42 (!((elf_ex.e_machine == EM_386) || (elf_ex.e_machine == EM_486))) || in load_em86()
Dbinfmt_elf.c416 static struct elf_phdr *load_elf_phdrs(const struct elfhdr *elf_ex, in load_elf_phdrs() argument
421 loff_t pos = elf_ex->e_phoff; in load_elf_phdrs()
428 if (elf_ex->e_phentsize != sizeof(struct elf_phdr)) in load_elf_phdrs()
433 size = sizeof(struct elf_phdr) * elf_ex->e_phnum; in load_elf_phdrs()
689 struct elfhdr elf_ex; in load_elf_binary() member
702 loc->elf_ex = *((struct elfhdr *)bprm->buf); in load_elf_binary()
706 if (memcmp(loc->elf_ex.e_ident, ELFMAG, SELFMAG) != 0) in load_elf_binary()
709 if (loc->elf_ex.e_type != ET_EXEC && loc->elf_ex.e_type != ET_DYN) in load_elf_binary()
711 if (!elf_check_arch(&loc->elf_ex)) in load_elf_binary()
713 if (elf_check_fdpic(&loc->elf_ex)) in load_elf_binary()
[all …]