diff options
author | Masatake YAMATO <jet@gyve.org> | 2005-06-30 16:30:53 +0000 |
---|---|---|
committer | Masatake YAMATO <jet@gyve.org> | 2005-06-30 16:30:53 +0000 |
commit | 711877f36a52e234c80f8cecbae3d3d03c388ba9 (patch) | |
tree | 300878da5fae0b758f2bd4f30ba0102eb2d2ce0c /src/emacs.c | |
parent | 63f7ffb3deb917b90fd7119c5ff09875863329fd (diff) | |
download | emacs-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.c | 8 |
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. */ |