tag | line | file | source code |
elf_ex | 335 | fs/binfmt_elf.c | struct elfhdr elf_ex; |
elf_ex | 360 | fs/binfmt_elf.c | elf_ex = *((struct elfhdr *) bprm->buf); /* exec-header */ |
elf_ex | 362 | fs/binfmt_elf.c | if (elf_ex.e_ident[0] != 0x7f || |
elf_ex | 363 | fs/binfmt_elf.c | strncmp(&elf_ex.e_ident[1], "ELF",3) != 0) { |
elf_ex | 369 | fs/binfmt_elf.c | if((elf_ex.e_type != ET_EXEC && |
elf_ex | 370 | fs/binfmt_elf.c | elf_ex.e_type != ET_DYN) || |
elf_ex | 371 | fs/binfmt_elf.c | (elf_ex.e_machine != EM_386 && elf_ex.e_machine != EM_486) || |
elf_ex | 379 | fs/binfmt_elf.c | elf_phdata = (struct elf_phdr *) kmalloc(elf_ex.e_phentsize * |
elf_ex | 380 | fs/binfmt_elf.c | elf_ex.e_phnum, GFP_KERNEL); |
elf_ex | 385 | fs/binfmt_elf.c | retval = read_exec(bprm->inode, elf_ex.e_phoff, (char *) elf_phdata, |
elf_ex | 386 | fs/binfmt_elf.c | elf_ex.e_phentsize * elf_ex.e_phnum, 1); |
elf_ex | 412 | fs/binfmt_elf.c | for(i=0;i < elf_ex.e_phnum; i++){ |
elf_ex | 526 | fs/binfmt_elf.c | elf_entry = (unsigned int) elf_ex.e_entry; |
elf_ex | 543 | fs/binfmt_elf.c | for(i=0;i < elf_ex.e_phnum; i++){ |
elf_ex | 638 | fs/binfmt_elf.c | (interpreter_type == INTERPRETER_ELF ? &elf_ex : NULL), |
elf_ex | 707 | fs/binfmt_elf.c | struct elfhdr elf_ex; |
elf_ex | 733 | fs/binfmt_elf.c | error = file->f_op->read(inode, file, (char *) &elf_ex, sizeof(elf_ex)); |
elf_ex | 735 | fs/binfmt_elf.c | if (error != sizeof(elf_ex)) |
elf_ex | 738 | fs/binfmt_elf.c | if (elf_ex.e_ident[0] != 0x7f || |
elf_ex | 739 | fs/binfmt_elf.c | strncmp(&elf_ex.e_ident[1], "ELF",3) != 0) |
elf_ex | 743 | fs/binfmt_elf.c | if(elf_ex.e_type != ET_EXEC || elf_ex.e_phnum > 2 || |
elf_ex | 744 | fs/binfmt_elf.c | (elf_ex.e_machine != EM_386 && elf_ex.e_machine != EM_486) || |
elf_ex | 750 | fs/binfmt_elf.c | if(sizeof(struct elf_phdr) * elf_ex.e_phnum > PAGE_SIZE) |
elf_ex | 754 | fs/binfmt_elf.c | kmalloc(sizeof(struct elf_phdr) * elf_ex.e_phnum, GFP_KERNEL); |
elf_ex | 758 | fs/binfmt_elf.c | retval = read_exec(inode, elf_ex.e_phoff, (char *) elf_phdata, |
elf_ex | 759 | fs/binfmt_elf.c | sizeof(struct elf_phdr) * elf_ex.e_phnum, 1); |
elf_ex | 762 | fs/binfmt_elf.c | for(i=0; i<elf_ex.e_phnum; i++) |