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.c399 static struct elf_phdr *load_elf_phdrs(struct elfhdr *elf_ex, in load_elf_phdrs() argument
409 if (elf_ex->e_phentsize != sizeof(struct elf_phdr)) in load_elf_phdrs()
413 if (elf_ex->e_phnum < 1 || in load_elf_phdrs()
414 elf_ex->e_phnum > 65536U / sizeof(struct elf_phdr)) in load_elf_phdrs()
418 size = sizeof(struct elf_phdr) * elf_ex->e_phnum; in load_elf_phdrs()
427 retval = kernel_read(elf_file, elf_ex->e_phoff, in load_elf_phdrs()
685 struct elfhdr elf_ex; in load_elf_binary() member
697 loc->elf_ex = *((struct elfhdr *)bprm->buf); in load_elf_binary()
701 if (memcmp(loc->elf_ex.e_ident, ELFMAG, SELFMAG) != 0) in load_elf_binary()
704 if (loc->elf_ex.e_type != ET_EXEC && loc->elf_ex.e_type != ET_DYN) in load_elf_binary()
[all …]