aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorEli Zaretskii2019-01-16 17:55:53 +0200
committerEli Zaretskii2019-01-16 17:55:53 +0200
commitebd174e218f46e2d3e30646a8426f6ec1ae9e8d1 (patch)
treed0b88ce3b9538920d5f495e3c86503b259baaf71 /etc
parente96a54eb3bdfd75bafbe795ec6dd7b94ff65b8ac (diff)
downloademacs-ebd174e218f46e2d3e30646a8426f6ec1ae9e8d1.tar.gz
emacs-ebd174e218f46e2d3e30646a8426f6ec1ae9e8d1.zip
Improve documentation of pdumper; minor code cleanup
* src/emacs.c (usage_message): Add the --dump-file option. (string_starts_with_p, find_argument): Functions removed; use 'argmatch' instead. (PDUMP_FILE_ARG): Macro removed; use literal strings instead, as with other command-line options. Use HAVE_PDUMPER for cpp conditionals which used PDUMP_FILE_ARG. (load_pdump, main): Use 'argmatch' for "--dump-file" and "--temacs" arguments, thus supporting the "-dump-file" and "-temacs" variants, for consistency with other options. (main): Remove the extra fatal error for using --dump-file in unexec'ed Emacs: load_pdump does that anyway. (standard_args): Add --dump-file and --temacs, with appropriate priorities. * etc/NEWS: Expand on the pdumper support. * doc/emacs/cmdargs.texi (Initial Options): Document the '--dump-file' command-line option.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS22
1 files changed, 18 insertions, 4 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 5af0c1fab03..02503073c1c 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -59,10 +59,24 @@ option '--enable-check-lisp-object-type' is therefore no longer as
59useful and so is no longer enabled by default in developer builds, 59useful and so is no longer enabled by default in developer builds,
60to reduce differences between developer and production builds. 60to reduce differences between developer and production builds.
61 61
62** Emacs by default uses a "portable dumper" instead of unexec, 62+++
63improving compatibility with modern systems and supporting ASLR. 63** Emacs now uses a "portable dumper" instead of unexec.
64Emacs now needs an "emacs.pdmp" file, generated during the built, in 64This improves compatibility with memory allocation on modern systems,
65its data directory at runtime. 65and in particular better supports the Address Space Layout
66Randomization (ASLR) feature, a security technique used by most modern
67operating systems.
68
69Portable dumping can be disabled at configure time via the configure
70option '--with-pdumper=no' (but we don't recommend that, unless the
71portable dumping doesn't work on your system for some reason---please
72report such systems to the Emacs developers as bugs).
73
74When built with the portable dumping support (which is the default),
75Emacs looks for the 'emacs.pdmp' file, generated during the build, in
76its data directory at startup, and loads the dumped state from there.
77The new command-line argument '--dump-file=FILE' allows to specify a
78non-default '.pdmp' file to load the state from; see the node "Initial
79Options" in the Emacs manual for more information.
66 80
67** Ibuffer 81** Ibuffer
68 82