tag | line | file | source code |
elf_ex | 53 | fs/binfmt_elf.c | struct elfhdr elf_ex; |
elf_ex | 72 | fs/binfmt_elf.c | elf_ex = *((struct elfhdr *) bprm->buf); /* exec-header */ |
elf_ex | 74 | fs/binfmt_elf.c | if (elf_ex.e_ident[0] != 0x7f || |
elf_ex | 75 | fs/binfmt_elf.c | strncmp(&elf_ex.e_ident[1], "ELF",3) != 0) |
elf_ex | 80 | fs/binfmt_elf.c | if(elf_ex.e_type != ET_EXEC || |
elf_ex | 81 | fs/binfmt_elf.c | (elf_ex.e_machine != EM_386 && elf_ex.e_machine != EM_486) || |
elf_ex | 89 | fs/binfmt_elf.c | elf_phdata = (struct elf_phdr *) kmalloc(elf_ex.e_phentsize * |
elf_ex | 90 | fs/binfmt_elf.c | elf_ex.e_phnum, GFP_KERNEL); |
elf_ex | 94 | fs/binfmt_elf.c | retval = read_exec(bprm->inode, elf_ex.e_phoff, (char *) elf_phdata, |
elf_ex | 95 | fs/binfmt_elf.c | elf_ex.e_phentsize * elf_ex.e_phnum); |
elf_ex | 125 | fs/binfmt_elf.c | for(i=0;i < elf_ex.e_phnum; i++){ |
elf_ex | 199 | fs/binfmt_elf.c | elf_entry = (unsigned int) elf_ex.e_entry; |
elf_ex | 216 | fs/binfmt_elf.c | for(i=0;i < elf_ex.e_phnum; i++){ |
elf_ex | 339 | fs/binfmt_elf.c | struct elfhdr elf_ex; |
elf_ex | 355 | fs/binfmt_elf.c | if (file->f_op->read(inode, file, (char *) &elf_ex, sizeof(elf_ex)) != sizeof(elf_ex)) { |
elf_ex | 361 | fs/binfmt_elf.c | if (elf_ex.e_ident[0] != 0x7f || |
elf_ex | 362 | fs/binfmt_elf.c | strncmp(&elf_ex.e_ident[1], "ELF",3) != 0) |
elf_ex | 366 | fs/binfmt_elf.c | if(elf_ex.e_type != ET_EXEC || elf_ex.e_phnum > 2 || |
elf_ex | 367 | fs/binfmt_elf.c | (elf_ex.e_machine != EM_386 && elf_ex.e_machine != EM_486) || |
elf_ex | 375 | fs/binfmt_elf.c | if(sizeof(struct elf_phdr) * elf_ex.e_phnum > PAGE_SIZE) |
elf_ex | 379 | fs/binfmt_elf.c | kmalloc(sizeof(struct elf_phdr) * elf_ex.e_phnum, GFP_KERNEL); |
elf_ex | 383 | fs/binfmt_elf.c | retval = read_exec(inode, elf_ex.e_phoff, (char *) elf_phdata, |
elf_ex | 384 | fs/binfmt_elf.c | sizeof(struct elf_phdr) * elf_ex.e_phnum); |
elf_ex | 388 | fs/binfmt_elf.c | for(i=0; i<elf_ex.e_phnum; i++) |