Home
last modified time | relevance | path

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

/fs/
Dbinfmt_elf.c461 static struct elf_phdr *load_elf_phdrs(const struct elfhdr *elf_ex, in load_elf_phdrs() argument
472 if (elf_ex->e_phentsize != sizeof(struct elf_phdr)) in load_elf_phdrs()
477 size = sizeof(struct elf_phdr) * elf_ex->e_phnum; in load_elf_phdrs()
486 retval = elf_read(elf_file, elf_phdata, size, elf_ex->e_phoff); in load_elf_phdrs()
841 struct elfhdr *elf_ex = (struct elfhdr *)bprm->buf; in load_elf_binary() local
849 if (memcmp(elf_ex->e_ident, ELFMAG, SELFMAG) != 0) in load_elf_binary()
852 if (elf_ex->e_type != ET_EXEC && elf_ex->e_type != ET_DYN) in load_elf_binary()
854 if (!elf_check_arch(elf_ex)) in load_elf_binary()
856 if (elf_check_fdpic(elf_ex)) in load_elf_binary()
861 elf_phdata = load_elf_phdrs(elf_ex, bprm->file); in load_elf_binary()
[all …]