From 5a49fc0097b833965c8d82900dc5021b9d5b66db Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Mon, 18 Nov 1996 23:44:07 +0000 Subject: Mon Nov 18 17:45:48 1996 Thomas Bushnell, n/BSG * exec.c (load_section): If ANYWHERE, then make sure ADDR starts out at least past the first page, so that we don't take it. Then the library can (if desired) make the page no-access. Fri Nov 15 17:34:23 1996 Thomas Bushnell, n/BSG * exec.c: Don't include any more. * main.c (S_exec_init): New arg syntax of trivfs_open. --- exec/exec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'exec/exec.c') diff --git a/exec/exec.c b/exec/exec.c index 12dab482..a3ef9240 100644 --- a/exec/exec.c +++ b/exec/exec.c @@ -32,7 +32,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "priv.h" #include #include -#include #include #include @@ -187,6 +186,8 @@ load_section (void *section, struct execdata *u) default: break; } + if (anywhere && addr < vm_page_size) + addr = vm_page_size; } if (memsz == 0) -- cgit v1.2.3