emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building Emacs on WSL


From: Fabrice Popineau
Subject: Re: Building Emacs on WSL
Date: Wed, 21 Dec 2016 11:29:48 +0100



2016-12-21 10:00 GMT+01:00 Angelo Graziosi <address@hidden>:
Il 20/12/2016 13:40, Fabrice Popineau ha scritto:
However, there is a simple fix:

diff --git a/src/emacs.c b/src/emacs.c
index dc13b15..46a0593 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -699,6 +699,7 @@ main (int argc, char **argv)
   bool disable_aslr = dumping;
 # endif

+#if 0
   if (disable_aslr && disable_address_randomization ())
     {
       /* Set this so the personality will be reverted before execs
@@ -712,6 +713,7 @@ main (int argc, char **argv)
       /* If the exec fails, warn and then try anyway.  */
       perror (argv[0]);
     }
+#endif

 #ifndef CANNOT_DUMP
   might_dump = !initialized;

Now, Spacemacs loads as well with master.

Yes, Emacs master builds and works in console (same issue for packages manager, bug #25221) but I have to

echo 0 | sudo tee /proc/sys/kernel/randomize_va_space

before the build starts otherwise it fails.


Yes, this is needed and that won't change until unexec is removed from emacs (either replace by portable dumper or loading everything at runtime).

-- 
Fabrice

reply via email to

[Prev in Thread] Current Thread [Next in Thread]