Home
last modified time | relevance | path

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

/openbmc/qemu/bsd-user/
H A Delfload.c508 struct elfhdr elf_ex; in is_target_elf_binary() local
517 elf_ex = *((struct elfhdr *)buf); in is_target_elf_binary()
518 bswap_ehdr(&elf_ex); in is_target_elf_binary()
520 if ((elf_ex.e_type != ET_EXEC && elf_ex.e_type != ET_DYN) || in is_target_elf_binary()
521 (!elf_check_arch(elf_ex.e_machine))) { in is_target_elf_binary()
603 struct elfhdr elf_ex; in load_elf_binary() local
617 elf_ex = *((struct elfhdr *) bprm->buf); /* exec-header */ in load_elf_binary()
618 bswap_ehdr(&elf_ex); in load_elf_binary()
621 if ((elf_ex.e_type != ET_EXEC && elf_ex.e_type != ET_DYN) || in load_elf_binary()
622 (!elf_check_arch(elf_ex.e_machine))) { in load_elf_binary()
[all …]
/openbmc/linux/fs/
H A Dbinfmt_elf.c466 static struct elf_phdr *load_elf_phdrs(const struct elfhdr *elf_ex, in load_elf_phdrs() argument
477 if (elf_ex->e_phentsize != sizeof(struct elf_phdr)) in load_elf_phdrs()
482 size = sizeof(struct elf_phdr) * elf_ex->e_phnum; in load_elf_phdrs()
491 retval = elf_read(elf_file, elf_phdata, size, elf_ex->e_phoff); in load_elf_phdrs()
840 struct elfhdr *elf_ex = (struct elfhdr *)bprm->buf; in load_elf_binary() local
848 if (memcmp(elf_ex->e_ident, ELFMAG, SELFMAG) != 0) in load_elf_binary()
851 if (elf_ex->e_type != ET_EXEC && elf_ex->e_type != ET_DYN) in load_elf_binary()
853 if (!elf_check_arch(elf_ex)) in load_elf_binary()
855 if (elf_check_fdpic(elf_ex)) in load_elf_binary()
860 elf_phdata = load_elf_phdrs(elf_ex, bprm->file); in load_elf_binary()
[all …]
/openbmc/linux/include/linux/
H A Delf.h26 #define START_THREAD(elf_ex, regs, elf_entry, start_stack) \ argument
/openbmc/linux/arch/mips/kernel/
H A Delf.c335 int mips_elf_read_implies_exec(void *elf_ex, int exstack) in mips_elf_read_implies_exec() argument
/openbmc/linux/arch/mips/include/asm/
H A Delf.h518 extern int mips_elf_read_implies_exec(void *elf_ex, int exstack);