Lines Matching refs:ex
202 struct exec ex; in load_aout32_binary() local
209 ex = *((struct exec *) bprm->buf); /* exec-header */ in load_aout32_binary()
210 if ((N_MAGIC(ex) != ZMAGIC && N_MAGIC(ex) != OMAGIC && in load_aout32_binary()
211 N_MAGIC(ex) != QMAGIC && N_MAGIC(ex) != NMAGIC) || in load_aout32_binary()
212 N_TRSIZE(ex) || N_DRSIZE(ex) || in load_aout32_binary()
213 bprm->file->f_dentry->d_inode->i_size < ex.a_text+ex.a_data+N_SYMSIZE(ex)+N_TXTOFF(ex)) { in load_aout32_binary()
217 fd_offset = N_TXTOFF(ex); in load_aout32_binary()
226 if (ex.a_data + ex.a_bss > rlim) in load_aout32_binary()
237 current->mm->end_code = ex.a_text + in load_aout32_binary()
238 (current->mm->start_code = N_TXTADDR(ex)); in load_aout32_binary()
239 current->mm->end_data = ex.a_data + in load_aout32_binary()
240 (current->mm->start_data = N_DATADDR(ex)); in load_aout32_binary()
241 current->mm->brk = ex.a_bss + in load_aout32_binary()
242 (current->mm->start_brk = N_BSSADDR(ex)); in load_aout32_binary()
248 if (N_MAGIC(ex) == NMAGIC) { in load_aout32_binary()
252 error = do_brk(N_TXTADDR(ex), ex.a_text); in load_aout32_binary()
254 bprm->file->f_op->read(bprm->file, (char *) N_TXTADDR(ex), in load_aout32_binary()
255 ex.a_text, &pos); in load_aout32_binary()
257 error = do_brk(N_DATADDR(ex), ex.a_data); in load_aout32_binary()
259 bprm->file->f_op->read(bprm->file, (char *) N_DATADDR(ex), in load_aout32_binary()
260 ex.a_data, &pos); in load_aout32_binary()
264 if (N_MAGIC(ex) == OMAGIC) { in load_aout32_binary()
267 do_brk(N_TXTADDR(ex) & PAGE_MASK, in load_aout32_binary()
268 ex.a_text+ex.a_data + PAGE_SIZE - 1); in load_aout32_binary()
271 bprm->file->f_op->read(bprm->file, (char *) N_TXTADDR(ex), in load_aout32_binary()
272 ex.a_text+ex.a_data, &pos); in load_aout32_binary()
275 if ((ex.a_text & 0xfff || ex.a_data & 0xfff) && in load_aout32_binary()
276 (N_MAGIC(ex) != NMAGIC) && (jiffies-error_time) > 5*HZ) in load_aout32_binary()
285 do_brk(0, ex.a_text+ex.a_data); in load_aout32_binary()
287 bprm->file->f_op->read(bprm->file,(char *)N_TXTADDR(ex), in load_aout32_binary()
288 ex.a_text+ex.a_data, &pos); in load_aout32_binary()
293 error = do_mmap(bprm->file, N_TXTADDR(ex), ex.a_text, in load_aout32_binary()
299 if (error != N_TXTADDR(ex)) { in load_aout32_binary()
305 error = do_mmap(bprm->file, N_DATADDR(ex), ex.a_data, in load_aout32_binary()
308 fd_offset + ex.a_text); in load_aout32_binary()
310 if (error != N_DATADDR(ex)) { in load_aout32_binary()
345 start_thread32(regs, ex.a_entry, current->mm->start_stack); in load_aout32_binary()
358 struct exec ex; in load_aout32_library() local
363 error = kernel_read(file, 0, (char *) &ex, sizeof(ex)); in load_aout32_library()
364 if (error != sizeof(ex)) in load_aout32_library()
368 if ((N_MAGIC(ex) != ZMAGIC && N_MAGIC(ex) != QMAGIC) || N_TRSIZE(ex) || in load_aout32_library()
369 N_DRSIZE(ex) || ((ex.a_entry & 0xfff) && N_MAGIC(ex) == ZMAGIC) || in load_aout32_library()
370 inode->i_size < ex.a_text+ex.a_data+N_SYMSIZE(ex)+N_TXTOFF(ex)) { in load_aout32_library()
374 if (N_MAGIC(ex) == ZMAGIC && N_TXTOFF(ex) && in load_aout32_library()
375 (N_TXTOFF(ex) < inode->i_sb->s_blocksize)) { in load_aout32_library()
380 if (N_FLAGS(ex)) in load_aout32_library()
386 start_addr = ex.a_entry & 0xfffff000; in load_aout32_library()
390 error = do_mmap(file, start_addr, ex.a_text + ex.a_data, in load_aout32_library()
393 N_TXTOFF(ex)); in load_aout32_library()
399 len = PAGE_ALIGN(ex.a_text + ex.a_data); in load_aout32_library()
400 bss = ex.a_text + ex.a_data + ex.a_bss; in load_aout32_library()