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 | 746 | fs/exec.c | struct exec ex; |
ex | 751 | fs/exec.c | ex = *((struct exec *) bprm->buf); /* exec-header */ |
ex | 752 | fs/exec.c | if ((N_MAGIC(ex) != ZMAGIC && N_MAGIC(ex) != OMAGIC && |
ex | 753 | fs/exec.c | N_MAGIC(ex) != QMAGIC) || |
ex | 754 | fs/exec.c | ex.a_trsize || ex.a_drsize || |
ex | 755 | fs/exec.c | bprm->inode->i_size < ex.a_text+ex.a_data+ex.a_syms+N_TXTOFF(ex)) { |
ex | 759 | fs/exec.c | if (N_MAGIC(ex) == ZMAGIC && |
ex | 760 | fs/exec.c | (N_TXTOFF(ex) < bprm->inode->i_sb->s_blocksize)) { |
ex | 765 | fs/exec.c | if (N_TXTOFF(ex) != BLOCK_SIZE && N_MAGIC(ex) == ZMAGIC) { |
ex | 773 | fs/exec.c | current->end_code = N_TXTADDR(ex) + ex.a_text; |
ex | 774 | fs/exec.c | current->end_data = ex.a_data + current->end_code; |
ex | 776 | fs/exec.c | current->start_code += N_TXTADDR(ex); |
ex | 782 | fs/exec.c | if (N_MAGIC(ex) == OMAGIC) { |
ex | 783 | fs/exec.c | do_mmap(NULL, 0, ex.a_text+ex.a_data, |
ex | 786 | fs/exec.c | read_exec(bprm->inode, 32, (char *) 0, ex.a_text+ex.a_data); |
ex | 788 | fs/exec.c | if (ex.a_text & 0xfff || ex.a_data & 0xfff) |
ex | 798 | fs/exec.c | do_mmap(NULL, 0, ex.a_text+ex.a_data, |
ex | 801 | fs/exec.c | read_exec(bprm->inode, N_TXTOFF(ex), |
ex | 802 | fs/exec.c | (char *) N_TXTADDR(ex), ex.a_text+ex.a_data); |
ex | 805 | fs/exec.c | error = do_mmap(file, N_TXTADDR(ex), ex.a_text, |
ex | 807 | fs/exec.c | MAP_FIXED | MAP_SHARED, N_TXTOFF(ex)); |
ex | 809 | fs/exec.c | if (error != N_TXTADDR(ex)) { |
ex | 815 | fs/exec.c | error = do_mmap(file, N_TXTADDR(ex) + ex.a_text, ex.a_data, |
ex | 817 | fs/exec.c | MAP_FIXED | MAP_PRIVATE, N_TXTOFF(ex) + ex.a_text); |
ex | 819 | fs/exec.c | if (error != N_TXTADDR(ex) + ex.a_text) { |
ex | 827 | fs/exec.c | sys_brk(current->brk+ex.a_bss); |
ex | 829 | fs/exec.c | p += change_ldt(ex.a_text,bprm->page); |
ex | 833 | fs/exec.c | regs->eip = ex.a_entry; /* eip, magic happens :-) */ |
ex | 844 | fs/exec.c | struct exec ex; |
ex | 855 | fs/exec.c | if (file->f_op->read(inode, file, (char *) &ex, sizeof(ex)) != sizeof(ex)) { |
ex | 861 | fs/exec.c | if ((N_MAGIC(ex) != ZMAGIC && N_MAGIC(ex) != QMAGIC) || ex.a_trsize || |
ex | 862 | fs/exec.c | ex.a_drsize || ((ex.a_entry & 0xfff) && N_MAGIC(ex) == ZMAGIC) || |
ex | 863 | fs/exec.c | inode->i_size < ex.a_text+ex.a_data+ex.a_syms+N_TXTOFF(ex)) { |
ex | 866 | fs/exec.c | if (N_MAGIC(ex) == ZMAGIC && N_TXTOFF(ex) && |
ex | 867 | fs/exec.c | (N_TXTOFF(ex) < inode->i_sb->s_blocksize)) { |
ex | 872 | fs/exec.c | if (N_FLAGS(ex)) return -ENOEXEC; |
ex | 877 | fs/exec.c | start_addr = ex.a_entry & 0xfffff000; |
ex | 880 | fs/exec.c | error = do_mmap(file, start_addr, ex.a_text + ex.a_data, |
ex | 882 | fs/exec.c | N_TXTOFF(ex)); |
ex | 885 | fs/exec.c | len = PAGE_ALIGN(ex.a_text + ex.a_data); |
ex | 886 | 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 */ |