summaryrefslogtreecommitdiff
path: root/src/emacs.c
diff options
context:
space:
mode:
authorMasatake YAMATO <jet@gyve.org>2005-06-30 16:30:53 +0000
committerMasatake YAMATO <jet@gyve.org>2005-06-30 16:30:53 +0000
commit711877f36a52e234c80f8cecbae3d3d03c388ba9 (patch)
tree300878da5fae0b758f2bd4f30ba0102eb2d2ce0c /src/emacs.c
parent63f7ffb3deb917b90fd7119c5ff09875863329fd (diff)
downloademacs-711877f36a52e234c80f8cecbae3d3d03c388ba9.tar.gz
2005-07-01 Masatake YAMATO <jet@gyve.org>
* emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c
index fd38268386a..89d6070b176 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -918,7 +918,13 @@ main (argc, argv
{
/* Set this so we only do this once. */
putenv("EMACS_HEAP_EXEC=true");
- personality (PER_LINUX32);
+
+ /* A flag to turn off address randomization which is introduced
+ in linux kernel shipped with fedora core 4 */
+#define ADD_NO_RANDOMIZE 0x0040000
+ personality (PER_LINUX32 | ADD_NO_RANDOMIZE);
+#undef ADD_NO_RANDOMIZE
+
execvp (argv[0], argv);
/* If the exec fails, try to dump anyway. */