summaryrefslogtreecommitdiff
path: root/exec/priv.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-02-10 21:42:05 +0000
committerRoland McGrath <roland@gnu.org>2004-02-10 21:42:05 +0000
commit6b1ecbc6e533eb7f2395623dccb2f80d94dae764 (patch)
tree2546094869048a5e3c65c5effcdd64682a6c35f9 /exec/priv.h
parentb69041235d4c3b5d5d392fb0ae2f54d44e25e841 (diff)
2004-01-15 Roland McGrath <roland@frob.com>
* priv.h (struct execdata.info.elf): Add `execstack' flag. * exec.c (check_elf_phdr): Set it according to PT_GNU_STACK's PF_X flag bit. If no PT_GNU_STACK, default to set. (do_exec): If flag is clear, remove execute permission from stack.
Diffstat (limited to 'exec/priv.h')
-rw-r--r--exec/priv.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/exec/priv.h b/exec/priv.h
index 46cc919e..625ea477 100644
--- a/exec/priv.h
+++ b/exec/priv.h
@@ -1,5 +1,5 @@
/* GNU Hurd standard exec server, private declarations.
- Copyright (C) 1992,93,94,95,96,99,2000,02 Free Software Foundation, Inc.
+ Copyright (C) 1992,93,94,95,96,99,2000,02, 04 Free Software Foundation, Inc.
Written by Roland McGrath.
This file is part of the GNU Hurd.
@@ -151,6 +151,7 @@ struct execdata
ElfW(Word) phnum; /* Number of program header table elements. */
int anywhere; /* Nonzero if image can go anywhere. */
vm_address_t loadbase; /* Actual mapping location. */
+ int execstack; /* Zero if stack can be nonexecutable. */
} elf;
} info;
};