Lines Matching refs:ex

108 	struct exec ex;  in load_aout_binary()  local
111 ex = *((struct exec *) bprm->buf); /* exec-header */ in load_aout_binary()
112 if ((N_MAGIC(ex) != ZMAGIC && N_MAGIC(ex) != OMAGIC && in load_aout_binary()
113 N_MAGIC(ex) != QMAGIC && N_MAGIC(ex) != NMAGIC) || in load_aout_binary()
114 N_TRSIZE(ex) || N_DRSIZE(ex) || in load_aout_binary()
116 ex.a_text+ex.a_data+N_SYMSIZE(ex)+N_TXTOFF(ex)) { in load_aout_binary()
120 fd_offset = N_TXTOFF(ex); in load_aout_binary()
129 if (ex.a_data + ex.a_bss > rlim) in load_aout_binary()
147 current->mm->end_code = ex.a_text + in load_aout_binary()
148 (current->mm->start_code = N_TXTADDR(ex)); in load_aout_binary()
149 current->mm->end_data = ex.a_data + in load_aout_binary()
150 (current->mm->start_data = N_DATADDR(ex)); in load_aout_binary()
151 current->mm->brk = ex.a_bss + in load_aout_binary()
152 (current->mm->start_brk = N_BSSADDR(ex)); in load_aout_binary()
158 if (N_MAGIC(ex) == OMAGIC) { in load_aout_binary()
161 text_addr = N_TXTADDR(ex); in load_aout_binary()
162 map_size = ex.a_text+ex.a_data; in load_aout_binary()
170 ex.a_text + ex.a_data); in load_aout_binary()
176 if ((ex.a_text & 0xfff || ex.a_data & 0xfff) && in load_aout_binary()
177 (N_MAGIC(ex) != NMAGIC) && in load_aout_binary()
194 error = vm_brk(N_TXTADDR(ex), ex.a_text+ex.a_data); in load_aout_binary()
198 read_code(bprm->file, N_TXTADDR(ex), fd_offset, in load_aout_binary()
199 ex.a_text+ex.a_data); in load_aout_binary()
203 error = vm_mmap(bprm->file, N_TXTADDR(ex), ex.a_text, in load_aout_binary()
208 if (error != N_TXTADDR(ex)) in load_aout_binary()
211 error = vm_mmap(bprm->file, N_DATADDR(ex), ex.a_data, in load_aout_binary()
214 fd_offset + ex.a_text); in load_aout_binary()
215 if (error != N_DATADDR(ex)) in load_aout_binary()
233 (regs)->ip = ex.a_entry; in load_aout_binary()
247 struct exec ex; in load_aout_library() local
251 error = kernel_read(file, &ex, sizeof(ex), &pos); in load_aout_library()
252 if (error != sizeof(ex)) in load_aout_library()
256 if ((N_MAGIC(ex) != ZMAGIC && N_MAGIC(ex) != QMAGIC) || N_TRSIZE(ex) || in load_aout_library()
257 N_DRSIZE(ex) || ((ex.a_entry & 0xfff) && N_MAGIC(ex) == ZMAGIC) || in load_aout_library()
259 ex.a_text+ex.a_data+N_SYMSIZE(ex)+N_TXTOFF(ex)) { in load_aout_library()
263 if (N_FLAGS(ex)) in load_aout_library()
269 start_addr = ex.a_entry & 0xfffff000; in load_aout_library()
271 if ((N_TXTOFF(ex) & ~PAGE_MASK) != 0) { in load_aout_library()
282 retval = vm_brk(start_addr, ex.a_text + ex.a_data + ex.a_bss); in load_aout_library()
286 read_code(file, start_addr, N_TXTOFF(ex), in load_aout_library()
287 ex.a_text + ex.a_data); in load_aout_library()
292 error = vm_mmap(file, start_addr, ex.a_text + ex.a_data, in load_aout_library()
295 N_TXTOFF(ex)); in load_aout_library()
300 len = PAGE_ALIGN(ex.a_text + ex.a_data); in load_aout_library()
301 bss = ex.a_text + ex.a_data + ex.a_bss; in load_aout_library()