• Home
  • Raw
  • Download

Lines Matching refs:ex

222 	struct exec ex;  in load_aout_binary()  local
228 ex = *((struct exec *) bprm->buf); /* exec-header */ in load_aout_binary()
229 if ((N_MAGIC(ex) != ZMAGIC && N_MAGIC(ex) != OMAGIC && in load_aout_binary()
230 N_MAGIC(ex) != QMAGIC && N_MAGIC(ex) != NMAGIC) || in load_aout_binary()
231 N_TRSIZE(ex) || N_DRSIZE(ex) || in load_aout_binary()
232 …i_size_read(bprm->file->f_path.dentry->d_inode) < ex.a_text+ex.a_data+N_SYMSIZE(ex)+N_TXTOFF(ex)) { in load_aout_binary()
243 fd_offset = N_TXTOFF(ex); in load_aout_binary()
252 if (ex.a_data + ex.a_bss > rlim) in load_aout_binary()
262 SET_AOUT_PERSONALITY(bprm, ex); in load_aout_binary()
267 current->mm->end_code = ex.a_text + in load_aout_binary()
268 (current->mm->start_code = N_TXTADDR(ex)); in load_aout_binary()
269 current->mm->end_data = ex.a_data + in load_aout_binary()
270 (current->mm->start_data = N_DATADDR(ex)); in load_aout_binary()
271 current->mm->brk = ex.a_bss + in load_aout_binary()
272 (current->mm->start_brk = N_BSSADDR(ex)); in load_aout_binary()
279 if (N_MAGIC(ex) == OMAGIC) { in load_aout_binary()
283 text_addr = N_TXTADDR(ex); in load_aout_binary()
287 map_size = ex.a_text+ex.a_data + PAGE_SIZE - 1; in load_aout_binary()
290 map_size = ex.a_text+ex.a_data; in load_aout_binary()
302 ex.a_text+ex.a_data, &pos); in load_aout_binary()
308 flush_icache_range(text_addr, text_addr+ex.a_text+ex.a_data); in load_aout_binary()
310 if ((ex.a_text & 0xfff || ex.a_data & 0xfff) && in load_aout_binary()
311 (N_MAGIC(ex) != NMAGIC) && printk_ratelimit()) in load_aout_binary()
326 do_brk(N_TXTADDR(ex), ex.a_text+ex.a_data); in load_aout_binary()
329 (char __user *)N_TXTADDR(ex), in load_aout_binary()
330 ex.a_text+ex.a_data, &pos); in load_aout_binary()
331 flush_icache_range((unsigned long) N_TXTADDR(ex), in load_aout_binary()
332 (unsigned long) N_TXTADDR(ex) + in load_aout_binary()
333 ex.a_text+ex.a_data); in load_aout_binary()
338 error = do_mmap(bprm->file, N_TXTADDR(ex), ex.a_text, in load_aout_binary()
344 if (error != N_TXTADDR(ex)) { in load_aout_binary()
350 error = do_mmap(bprm->file, N_DATADDR(ex), ex.a_data, in load_aout_binary()
353 fd_offset + ex.a_text); in load_aout_binary()
355 if (error != N_DATADDR(ex)) { in load_aout_binary()
379 regs->gp = ex.a_gpvalue; in load_aout_binary()
381 start_thread(regs, ex.a_entry, current->mm->start_stack); in load_aout_binary()
391 struct exec ex; in load_aout_library() local
396 error = kernel_read(file, 0, (char *) &ex, sizeof(ex)); in load_aout_library()
397 if (error != sizeof(ex)) in load_aout_library()
401 if ((N_MAGIC(ex) != ZMAGIC && N_MAGIC(ex) != QMAGIC) || N_TRSIZE(ex) || in load_aout_library()
402 N_DRSIZE(ex) || ((ex.a_entry & 0xfff) && N_MAGIC(ex) == ZMAGIC) || in load_aout_library()
403 i_size_read(inode) < ex.a_text+ex.a_data+N_SYMSIZE(ex)+N_TXTOFF(ex)) { in load_aout_library()
414 if (N_FLAGS(ex)) in load_aout_library()
420 start_addr = ex.a_entry & 0xfffff000; in load_aout_library()
422 if ((N_TXTOFF(ex) & ~PAGE_MASK) != 0) { in load_aout_library()
423 loff_t pos = N_TXTOFF(ex); in load_aout_library()
432 do_brk(start_addr, ex.a_text + ex.a_data + ex.a_bss); in load_aout_library()
436 ex.a_text + ex.a_data, &pos); in load_aout_library()
438 (unsigned long) start_addr + ex.a_text + ex.a_data); in load_aout_library()
445 error = do_mmap(file, start_addr, ex.a_text + ex.a_data, in load_aout_library()
448 N_TXTOFF(ex)); in load_aout_library()
454 len = PAGE_ALIGN(ex.a_text + ex.a_data); in load_aout_library()
455 bss = ex.a_text + ex.a_data + ex.a_bss; in load_aout_library()