Home
last modified time | relevance | path

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

/linux-2.4.37.9/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.c482 struct elfhdr elf_ex; in load_elf_binary() local
489 elf_ex = *((struct elfhdr *) bprm->buf); in load_elf_binary()
493 if (memcmp(elf_ex.e_ident, ELFMAG, SELFMAG) != 0) in load_elf_binary()
496 if (elf_ex.e_type != ET_EXEC && elf_ex.e_type != ET_DYN) in load_elf_binary()
498 if (!elf_check_arch(&elf_ex)) in load_elf_binary()
505 if (elf_ex.e_phentsize != sizeof(struct elf_phdr)) in load_elf_binary()
507 if (elf_ex.e_phnum < 1 || in load_elf_binary()
508 elf_ex.e_phnum > 65536U / sizeof(struct elf_phdr)) in load_elf_binary()
510 size = elf_ex.e_phnum * sizeof(struct elf_phdr); in load_elf_binary()
516 retval = kernel_read(bprm->file, elf_ex.e_phoff, (char *) elf_phdata, size); in load_elf_binary()
[all …]
/linux-2.4.37.9/arch/mips/kernel/
Dirixelf.c597 struct elfhdr elf_ex, interp_elf_ex; in load_irix_binary() local
610 elf_ex = *((struct elfhdr *) bprm->buf); in load_irix_binary()
613 if (verify_binary(&elf_ex, bprm)) in load_irix_binary()
617 print_elfhdr(&elf_ex); in load_irix_binary()
621 size = elf_ex.e_phentsize * elf_ex.e_phnum; in load_irix_binary()
630 retval = kernel_read(bprm->file, elf_ex.e_phoff, (char *)elf_phdata, size); in load_irix_binary()
635 dump_phdrs(elf_phdata, elf_ex.e_phnum); in load_irix_binary()
639 for(i = 0; i < elf_ex.e_phnum; i++) { in load_irix_binary()
667 elf_ex.e_phnum); in load_irix_binary()
694 elf_entry = (unsigned int) elf_ex.e_entry; in load_irix_binary()
[all …]
/linux-2.4.37.9/include/asm-ia64/
Delf.h90 extern void ia64_set_personality (struct elf64_hdr *elf_ex, int ibcs2_interpreter);
/linux-2.4.37.9/arch/ia64/kernel/
Dprocess.c504 ia64_set_personality (struct elf64_hdr *elf_ex, int ibcs2_interpreter) in ia64_set_personality() argument
507 if (elf_ex->e_flags & EF_IA_64_LINUX_EXECUTABLE_STACK) in ia64_set_personality()