• Home
  • Raw
  • Download

Lines Matching refs:ex

264 	struct exec ex;  in load_aout_binary()  local
267 ex = *((struct exec *) bprm->buf); /* exec-header */ in load_aout_binary()
268 if ((N_MAGIC(ex) != ZMAGIC && N_MAGIC(ex) != OMAGIC && in load_aout_binary()
269 N_MAGIC(ex) != QMAGIC && N_MAGIC(ex) != NMAGIC) || in load_aout_binary()
270 N_TRSIZE(ex) || N_DRSIZE(ex) || in load_aout_binary()
272 ex.a_text+ex.a_data+N_SYMSIZE(ex)+N_TXTOFF(ex)) { in load_aout_binary()
276 fd_offset = N_TXTOFF(ex); in load_aout_binary()
285 if (ex.a_data + ex.a_bss > rlim) in load_aout_binary()
303 current->mm->end_code = ex.a_text + in load_aout_binary()
304 (current->mm->start_code = N_TXTADDR(ex)); in load_aout_binary()
305 current->mm->end_data = ex.a_data + in load_aout_binary()
306 (current->mm->start_data = N_DATADDR(ex)); in load_aout_binary()
307 current->mm->brk = ex.a_bss + in load_aout_binary()
308 (current->mm->start_brk = N_BSSADDR(ex)); in load_aout_binary()
316 if (N_MAGIC(ex) == OMAGIC) { in load_aout_binary()
319 text_addr = N_TXTADDR(ex); in load_aout_binary()
320 map_size = ex.a_text+ex.a_data; in load_aout_binary()
328 ex.a_text + ex.a_data); in load_aout_binary()
334 if ((ex.a_text & 0xfff || ex.a_data & 0xfff) && in load_aout_binary()
335 (N_MAGIC(ex) != NMAGIC) && in load_aout_binary()
352 vm_brk(N_TXTADDR(ex), ex.a_text+ex.a_data); in load_aout_binary()
353 read_code(bprm->file, N_TXTADDR(ex), fd_offset, in load_aout_binary()
354 ex.a_text+ex.a_data); in load_aout_binary()
358 error = vm_mmap(bprm->file, N_TXTADDR(ex), ex.a_text, in load_aout_binary()
364 if (error != N_TXTADDR(ex)) in load_aout_binary()
367 error = vm_mmap(bprm->file, N_DATADDR(ex), ex.a_data, in load_aout_binary()
371 fd_offset + ex.a_text); in load_aout_binary()
372 if (error != N_DATADDR(ex)) in load_aout_binary()
387 (regs)->ip = ex.a_entry; in load_aout_binary()
402 struct exec ex; in load_aout_library() local
406 error = kernel_read(file, 0, (char *) &ex, sizeof(ex)); in load_aout_library()
407 if (error != sizeof(ex)) in load_aout_library()
411 if ((N_MAGIC(ex) != ZMAGIC && N_MAGIC(ex) != QMAGIC) || N_TRSIZE(ex) || in load_aout_library()
412 N_DRSIZE(ex) || ((ex.a_entry & 0xfff) && N_MAGIC(ex) == ZMAGIC) || in load_aout_library()
414 ex.a_text+ex.a_data+N_SYMSIZE(ex)+N_TXTOFF(ex)) { in load_aout_library()
418 if (N_FLAGS(ex)) in load_aout_library()
424 start_addr = ex.a_entry & 0xfffff000; in load_aout_library()
426 if ((N_TXTOFF(ex) & ~PAGE_MASK) != 0) { in load_aout_library()
437 vm_brk(start_addr, ex.a_text + ex.a_data + ex.a_bss); in load_aout_library()
439 read_code(file, start_addr, N_TXTOFF(ex), in load_aout_library()
440 ex.a_text + ex.a_data); in load_aout_library()
445 error = vm_mmap(file, start_addr, ex.a_text + ex.a_data, in load_aout_library()
448 N_TXTOFF(ex)); in load_aout_library()
453 len = PAGE_ALIGN(ex.a_text + ex.a_data); in load_aout_library()
454 bss = ex.a_text + ex.a_data + ex.a_bss; in load_aout_library()