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()
178 if (N_MAGIC(ex) == OMAGIC) { in load_aout_binary()
182 text_addr = N_TXTADDR(ex); in load_aout_binary()
186 map_size = ex.a_text+ex.a_data + PAGE_SIZE - 1; in load_aout_binary()
189 map_size = ex.a_text+ex.a_data; in load_aout_binary()
196 ex.a_text+ex.a_data); in load_aout_binary()
200 if ((ex.a_text & 0xfff || ex.a_data & 0xfff) && in load_aout_binary()
201 (N_MAGIC(ex) != NMAGIC) && printk_ratelimit()) in load_aout_binary()
214 error = vm_brk(N_TXTADDR(ex), ex.a_text+ex.a_data); in load_aout_binary()
218 read_code(bprm->file, N_TXTADDR(ex), fd_offset, in load_aout_binary()
219 ex.a_text + ex.a_data); in load_aout_binary()
223 error = vm_mmap(bprm->file, N_TXTADDR(ex), ex.a_text, in load_aout_binary()
227 if (error != N_TXTADDR(ex)) in load_aout_binary()
230 error = vm_mmap(bprm->file, N_DATADDR(ex), ex.a_data, in load_aout_binary()
233 fd_offset + ex.a_text); in load_aout_binary()
234 if (error != N_DATADDR(ex)) in load_aout_binary()
247 regs->gp = ex.a_gpvalue; in load_aout_binary()
250 start_thread(regs, ex.a_entry, current->mm->start_stack); in load_aout_binary()
260 struct exec ex; in load_aout_library() local
266 error = kernel_read(file, &ex, sizeof(ex), &pos); in load_aout_library()
267 if (error != sizeof(ex)) in load_aout_library()
271 if ((N_MAGIC(ex) != ZMAGIC && N_MAGIC(ex) != QMAGIC) || N_TRSIZE(ex) || in load_aout_library()
272 N_DRSIZE(ex) || ((ex.a_entry & 0xfff) && N_MAGIC(ex) == ZMAGIC) || in load_aout_library()
273 i_size_read(inode) < ex.a_text+ex.a_data+N_SYMSIZE(ex)+N_TXTOFF(ex)) { in load_aout_library()
284 if (N_FLAGS(ex)) in load_aout_library()
290 start_addr = ex.a_entry & 0xfffff000; in load_aout_library()
292 if ((N_TXTOFF(ex) & ~PAGE_MASK) != 0) { in load_aout_library()
299 retval = vm_brk(start_addr, ex.a_text + ex.a_data + ex.a_bss); in load_aout_library()
303 read_code(file, start_addr, N_TXTOFF(ex), in load_aout_library()
304 ex.a_text + ex.a_data); in load_aout_library()
309 error = vm_mmap(file, start_addr, ex.a_text + ex.a_data, in load_aout_library()
312 N_TXTOFF(ex)); in load_aout_library()
317 len = PAGE_ALIGN(ex.a_text + ex.a_data); in load_aout_library()
318 bss = ex.a_text + ex.a_data + ex.a_bss; in load_aout_library()