tag | line | file | source code |
interp_elf_ex | 172 | fs/binfmt_elf.c | static unsigned int load_elf_interp(struct elfhdr * interp_elf_ex, |
interp_elf_ex | 192 | fs/binfmt_elf.c | if((interp_elf_ex->e_type != ET_EXEC && |
interp_elf_ex | 193 | fs/binfmt_elf.c | interp_elf_ex->e_type != ET_DYN) || |
interp_elf_ex | 194 | fs/binfmt_elf.c | (interp_elf_ex->e_machine != EM_386 && interp_elf_ex->e_machine != EM_486) || |
interp_elf_ex | 202 | fs/binfmt_elf.c | if(sizeof(struct elf_phdr) * interp_elf_ex->e_phnum > PAGE_SIZE) |
interp_elf_ex | 206 | fs/binfmt_elf.c | kmalloc(sizeof(struct elf_phdr) * interp_elf_ex->e_phnum, GFP_KERNEL); |
interp_elf_ex | 209 | fs/binfmt_elf.c | retval = read_exec(interpreter_inode, interp_elf_ex->e_phoff, (char *) elf_phdata, |
interp_elf_ex | 210 | fs/binfmt_elf.c | sizeof(struct elf_phdr) * interp_elf_ex->e_phnum, 1); |
interp_elf_ex | 217 | fs/binfmt_elf.c | for(i=0; i<interp_elf_ex->e_phnum; i++, eppnt++) |
interp_elf_ex | 225 | fs/binfmt_elf.c | if (interp_elf_ex->e_type == ET_EXEC) { |
interp_elf_ex | 239 | fs/binfmt_elf.c | if(!load_addr && interp_elf_ex->e_type == ET_DYN) |
interp_elf_ex | 282 | fs/binfmt_elf.c | return ((unsigned int) interp_elf_ex->e_entry) + load_addr; |
interp_elf_ex | 337 | fs/binfmt_elf.c | struct elfhdr interp_elf_ex; |
interp_elf_ex | 446 | fs/binfmt_elf.c | interp_elf_ex = *((struct elfhdr *) bprm->buf); /* exec-header */ |
interp_elf_ex | 474 | fs/binfmt_elf.c | if (interp_elf_ex.e_ident[0] != 0x7f || |
interp_elf_ex | 475 | fs/binfmt_elf.c | strncmp(&interp_elf_ex.e_ident[1], "ELF",3) != 0) |
interp_elf_ex | 547 | fs/binfmt_elf.c | load_elf_interp(&interp_elf_ex, interpreter_inode, &interp_load_addr); |