tag | line | file | source code |
ex | 55 | fs/binfmt_elf.c | struct exec ex; |
ex | 144 | fs/binfmt_elf.c | ex = *((struct exec *) bprm->buf); /* exec-header */ |
ex | 147 | fs/binfmt_elf.c | printk("Interpreter: %x %x %x\n",N_MAGIC(ex), ex.a_text,ex.a_data); |
ex | 163 | fs/binfmt_elf.c | if((N_MAGIC(ex) != OMAGIC) && (N_MAGIC(ex) != ZMAGIC)) { |
ex | 220 | fs/binfmt_elf.c | current->brk = ex.a_bss + |
ex | 221 | fs/binfmt_elf.c | (current->end_data = ex.a_data + |
ex | 222 | fs/binfmt_elf.c | (current->end_code = ex.a_text)); |
ex | 223 | fs/binfmt_elf.c | elf_entry = ex.a_entry; |
ex | 228 | fs/binfmt_elf.c | if (N_MAGIC(ex) == OMAGIC) { |
ex | 229 | fs/binfmt_elf.c | do_mmap(NULL, 0, ex.a_text+ex.a_data, |
ex | 233 | fs/binfmt_elf.c | ex.a_text+ex.a_data); |
ex | 235 | fs/binfmt_elf.c | } else if (N_MAGIC(ex) == ZMAGIC || N_MAGIC(ex) == QMAGIC) { |
ex | 236 | fs/binfmt_elf.c | do_mmap(NULL, 0, ex.a_text+ex.a_data, |
ex | 240 | fs/binfmt_elf.c | N_TXTOFF(ex) , |
ex | 241 | fs/binfmt_elf.c | (char *) N_TXTADDR(ex), |
ex | 242 | fs/binfmt_elf.c | ex.a_text+ex.a_data); |
ex | 251 | fs/binfmt_elf.c | do_mmap(NULL, (ex.a_text + ex.a_data + 0xfff) & |
ex | 252 | fs/binfmt_elf.c | 0xfffff000, ex.a_bss, |
ex | 759 | fs/exec.c | struct exec ex; |
ex | 764 | fs/exec.c | ex = *((struct exec *) bprm->buf); /* exec-header */ |
ex | 765 | fs/exec.c | if ((N_MAGIC(ex) != ZMAGIC && N_MAGIC(ex) != OMAGIC && |
ex | 766 | fs/exec.c | N_MAGIC(ex) != QMAGIC) || |
ex | 767 | fs/exec.c | ex.a_trsize || ex.a_drsize || |
ex | 768 | fs/exec.c | bprm->inode->i_size < ex.a_text+ex.a_data+ex.a_syms+N_TXTOFF(ex)) { |
ex | 772 | fs/exec.c | if (N_MAGIC(ex) == ZMAGIC && |
ex | 773 | fs/exec.c | (N_TXTOFF(ex) < bprm->inode->i_sb->s_blocksize)) { |
ex | 778 | fs/exec.c | if (N_TXTOFF(ex) != BLOCK_SIZE && N_MAGIC(ex) == ZMAGIC) { |
ex | 786 | fs/exec.c | current->end_code = N_TXTADDR(ex) + ex.a_text; |
ex | 787 | fs/exec.c | current->end_data = ex.a_data + current->end_code; |
ex | 789 | fs/exec.c | current->start_code += N_TXTADDR(ex); |
ex | 795 | fs/exec.c | if (N_MAGIC(ex) == OMAGIC) { |
ex | 796 | fs/exec.c | do_mmap(NULL, 0, ex.a_text+ex.a_data, |
ex | 799 | fs/exec.c | read_exec(bprm->inode, 32, (char *) 0, ex.a_text+ex.a_data); |
ex | 801 | fs/exec.c | if (ex.a_text & 0xfff || ex.a_data & 0xfff) |
ex | 811 | fs/exec.c | do_mmap(NULL, 0, ex.a_text+ex.a_data, |
ex | 814 | fs/exec.c | read_exec(bprm->inode, N_TXTOFF(ex), |
ex | 815 | fs/exec.c | (char *) N_TXTADDR(ex), ex.a_text+ex.a_data); |
ex | 818 | fs/exec.c | error = do_mmap(file, N_TXTADDR(ex), ex.a_text, |
ex | 820 | fs/exec.c | MAP_FIXED | MAP_SHARED, N_TXTOFF(ex)); |
ex | 822 | fs/exec.c | if (error != N_TXTADDR(ex)) { |
ex | 828 | fs/exec.c | error = do_mmap(file, N_TXTADDR(ex) + ex.a_text, ex.a_data, |
ex | 830 | fs/exec.c | MAP_FIXED | MAP_PRIVATE, N_TXTOFF(ex) + ex.a_text); |
ex | 832 | fs/exec.c | if (error != N_TXTADDR(ex) + ex.a_text) { |
ex | 840 | fs/exec.c | sys_brk(current->brk+ex.a_bss); |
ex | 842 | fs/exec.c | p += change_ldt(ex.a_text,bprm->page); |
ex | 846 | fs/exec.c | regs->eip = ex.a_entry; /* eip, magic happens :-) */ |
ex | 857 | fs/exec.c | struct exec ex; |
ex | 868 | fs/exec.c | if (file->f_op->read(inode, file, (char *) &ex, sizeof(ex)) != sizeof(ex)) { |
ex | 874 | fs/exec.c | if ((N_MAGIC(ex) != ZMAGIC && N_MAGIC(ex) != QMAGIC) || ex.a_trsize || |
ex | 875 | fs/exec.c | ex.a_drsize || ((ex.a_entry & 0xfff) && N_MAGIC(ex) == ZMAGIC) || |
ex | 876 | fs/exec.c | inode->i_size < ex.a_text+ex.a_data+ex.a_syms+N_TXTOFF(ex)) { |
ex | 879 | fs/exec.c | if (N_MAGIC(ex) == ZMAGIC && N_TXTOFF(ex) && |
ex | 880 | fs/exec.c | (N_TXTOFF(ex) < inode->i_sb->s_blocksize)) { |
ex | 885 | fs/exec.c | if (N_FLAGS(ex)) return -ENOEXEC; |
ex | 890 | fs/exec.c | start_addr = ex.a_entry & 0xfffff000; |
ex | 893 | fs/exec.c | error = do_mmap(file, start_addr, ex.a_text + ex.a_data, |
ex | 895 | fs/exec.c | N_TXTOFF(ex)); |
ex | 898 | fs/exec.c | len = PAGE_ALIGN(ex.a_text + ex.a_data); |
ex | 899 | fs/exec.c | bss = ex.a_text + ex.a_data + ex.a_bss; |
ex | 78 | fs/select.c | int do_select(int n, fd_set *in, fd_set *out, fd_set *ex, |
ex | 92 | fs/select.c | set = in->fds_bits[j] | out->fds_bits[j] | ex->fds_bits[j]; |
ex | 129 | fs/select.c | if (FD_ISSET(i,ex) && check(SEL_EX,wait,current->filp[i])) { |
ex | 201 | fs/select.c | fd_set res_ex, ex, *exp; |
ex | 220 | fs/select.c | (i = get_fd_set(n, exp, &ex))) return i; |
ex | 233 | fs/select.c | i = do_select(n, &in, &out, &ex, &res_in, &res_out, &res_ex); |
ex | 90 | tools/build.c | struct exec *ex = (struct exec *)buf; |
ex | 191 | tools/build.c | if (N_MAGIC(*ex) != ZMAGIC) |
ex | 194 | tools/build.c | (ex->a_text+ex->a_data+ex->a_bss)/1024, |
ex | 195 | tools/build.c | ex->a_text /1024, |
ex | 196 | tools/build.c | ex->a_data /1024, |
ex | 197 | tools/build.c | ex->a_bss /1024); |
ex | 198 | tools/build.c | sz = N_SYMOFF(*ex) - GCC_HEADER + 4; |
ex | 43 | zBoot/xtract.c | struct exec *ex = (struct exec *)buf; |
ex | 52 | zBoot/xtract.c | if (N_MAGIC(*ex) != ZMAGIC) |
ex | 55 | zBoot/xtract.c | sz = N_SYMOFF(*ex) - GCC_HEADER + 4; /* +4 to get the same result than tools/build */ |