summaryrefslogtreecommitdiff
path: root/exec/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'exec/exec.c')
-rw-r--r--exec/exec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/exec/exec.c b/exec/exec.c
index ccf7bb36..3b4978d2 100644
--- a/exec/exec.c
+++ b/exec/exec.c
@@ -1285,6 +1285,9 @@ do_exec (file_t file,
}
+ /* Leave room for mmaps etc. before PIE binaries.
+ * Could add address randomization here. */
+ anywhere_start += 128 << 20;
/* Load the file into the task. */
anywhere_start = load (newtask, &e, anywhere_start);
if (e.error)