Home
last modified time | relevance | path

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

/linux-4.19.296/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.c417 static struct elf_phdr *load_elf_phdrs(struct elfhdr *elf_ex, in load_elf_phdrs() argument
422 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()
432 if (elf_ex->e_phnum < 1 || in load_elf_phdrs()
433 elf_ex->e_phnum > 65536U / sizeof(struct elf_phdr)) in load_elf_phdrs()
437 size = sizeof(struct elf_phdr) * elf_ex->e_phnum; in load_elf_phdrs()
708 struct elfhdr elf_ex; in load_elf_binary() member
721 loc->elf_ex = *((struct elfhdr *)bprm->buf); in load_elf_binary()
725 if (memcmp(loc->elf_ex.e_ident, ELFMAG, SELFMAG) != 0) in load_elf_binary()
728 if (loc->elf_ex.e_type != ET_EXEC && loc->elf_ex.e_type != ET_DYN) in load_elf_binary()
[all …]