summaryrefslogtreecommitdiff
path: root/exec/exec.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1996-11-18 23:44:07 +0000
committerThomas Bushnell <thomas@gnu.org>1996-11-18 23:44:07 +0000
commit5a49fc0097b833965c8d82900dc5021b9d5b66db (patch)
tree712905728171ddae4502d12012c6222be1919b4b /exec/exec.c
parent75134b8f36fb816af5b9d783b156dd71224ce9dd (diff)
Mon Nov 18 17:45:48 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>
* 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 <thomas@gnu.ai.mit.edu> * exec.c: Don't include <hurd/shared.h> any more. * main.c (S_exec_init): New arg syntax of trivfs_open.
Diffstat (limited to 'exec/exec.c')
-rw-r--r--exec/exec.c3
1 files changed, 2 insertions, 1 deletions
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 <hurd.h>
#include <hurd/exec.h>
-#include <hurd/shared.h>
#include <sys/stat.h>
#include <unistd.h>
@@ -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)