• Home
  • Raw
  • Download

Lines Matching refs:ex

120 	struct exec ex;  in load_aout_binary()  local
126 ex = *((struct exec *) bprm->buf); /* exec-header */ in load_aout_binary()
127 if ((N_MAGIC(ex) != ZMAGIC && N_MAGIC(ex) != OMAGIC && in load_aout_binary()
128 N_MAGIC(ex) != QMAGIC && N_MAGIC(ex) != NMAGIC) || in load_aout_binary()
129 N_TRSIZE(ex) || N_DRSIZE(ex) || in load_aout_binary()
130 i_size_read(file_inode(bprm->file)) < ex.a_text+ex.a_data+N_SYMSIZE(ex)+N_TXTOFF(ex)) { in load_aout_binary()
141 fd_offset = N_TXTOFF(ex); in load_aout_binary()
150 if (ex.a_data + ex.a_bss > rlim) in load_aout_binary()
160 SET_AOUT_PERSONALITY(bprm, ex); in load_aout_binary()
166 current->mm->end_code = ex.a_text + in load_aout_binary()
167 (current->mm->start_code = N_TXTADDR(ex)); in load_aout_binary()
168 current->mm->end_data = ex.a_data + in load_aout_binary()
169 (current->mm->start_data = N_DATADDR(ex)); in load_aout_binary()
170 current->mm->brk = ex.a_bss + in load_aout_binary()
171 (current->mm->start_brk = N_BSSADDR(ex)); in load_aout_binary()
179 if (N_MAGIC(ex) == OMAGIC) { in load_aout_binary()
183 text_addr = N_TXTADDR(ex); in load_aout_binary()
187 map_size = ex.a_text+ex.a_data + PAGE_SIZE - 1; in load_aout_binary()
190 map_size = ex.a_text+ex.a_data; in load_aout_binary()
197 ex.a_text+ex.a_data); in load_aout_binary()
201 if ((ex.a_text & 0xfff || ex.a_data & 0xfff) && in load_aout_binary()
202 (N_MAGIC(ex) != NMAGIC) && printk_ratelimit()) in load_aout_binary()
215 error = vm_brk(N_TXTADDR(ex), ex.a_text+ex.a_data); in load_aout_binary()
219 read_code(bprm->file, N_TXTADDR(ex), fd_offset, in load_aout_binary()
220 ex.a_text + ex.a_data); in load_aout_binary()
224 error = vm_mmap(bprm->file, N_TXTADDR(ex), ex.a_text, in load_aout_binary()
229 if (error != N_TXTADDR(ex)) in load_aout_binary()
232 error = vm_mmap(bprm->file, N_DATADDR(ex), ex.a_data, in load_aout_binary()
235 fd_offset + ex.a_text); in load_aout_binary()
236 if (error != N_DATADDR(ex)) in load_aout_binary()
249 regs->gp = ex.a_gpvalue; in load_aout_binary()
252 start_thread(regs, ex.a_entry, current->mm->start_stack); in load_aout_binary()
262 struct exec ex; in load_aout_library() local
268 error = kernel_read(file, &ex, sizeof(ex), &pos); in load_aout_library()
269 if (error != sizeof(ex)) in load_aout_library()
273 if ((N_MAGIC(ex) != ZMAGIC && N_MAGIC(ex) != QMAGIC) || N_TRSIZE(ex) || in load_aout_library()
274 N_DRSIZE(ex) || ((ex.a_entry & 0xfff) && N_MAGIC(ex) == ZMAGIC) || in load_aout_library()
275 i_size_read(inode) < ex.a_text+ex.a_data+N_SYMSIZE(ex)+N_TXTOFF(ex)) { in load_aout_library()
286 if (N_FLAGS(ex)) in load_aout_library()
292 start_addr = ex.a_entry & 0xfffff000; in load_aout_library()
294 if ((N_TXTOFF(ex) & ~PAGE_MASK) != 0) { in load_aout_library()
301 retval = vm_brk(start_addr, ex.a_text + ex.a_data + ex.a_bss); in load_aout_library()
305 read_code(file, start_addr, N_TXTOFF(ex), in load_aout_library()
306 ex.a_text + ex.a_data); in load_aout_library()
311 error = vm_mmap(file, start_addr, ex.a_text + ex.a_data, in load_aout_library()
314 N_TXTOFF(ex)); in load_aout_library()
319 len = PAGE_ALIGN(ex.a_text + ex.a_data); in load_aout_library()
320 bss = ex.a_text + ex.a_data + ex.a_bss; in load_aout_library()