diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/emacs.c b/src/emacs.c index 8633e934e51..861d70735ca 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -712,10 +712,12 @@ main (int argc, char **argv) | |||
| 712 | bool disable_aslr = dumping; | 712 | bool disable_aslr = dumping; |
| 713 | # endif | 713 | # endif |
| 714 | 714 | ||
| 715 | if (disable_aslr && disable_address_randomization ()) | 715 | if (disable_aslr && disable_address_randomization () |
| 716 | && !getenv ("EMACS_HEAP_EXEC")) | ||
| 716 | { | 717 | { |
| 717 | /* Set this so the personality will be reverted before execs | 718 | /* Set this so the personality will be reverted before execs |
| 718 | after this one. */ | 719 | after this one, and to work around an re-exec loop on buggy |
| 720 | kernels (Bug#32083). */ | ||
| 719 | xputenv ("EMACS_HEAP_EXEC=true"); | 721 | xputenv ("EMACS_HEAP_EXEC=true"); |
| 720 | 722 | ||
| 721 | /* Address randomization was enabled, but is now disabled. | 723 | /* Address randomization was enabled, but is now disabled. |