diff options
| author | Eli Zaretskii | 2019-01-16 17:55:53 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2019-01-16 17:55:53 +0200 |
| commit | ebd174e218f46e2d3e30646a8426f6ec1ae9e8d1 (patch) | |
| tree | d0b88ce3b9538920d5f495e3c86503b259baaf71 /etc | |
| parent | e96a54eb3bdfd75bafbe795ec6dd7b94ff65b8ac (diff) | |
| download | emacs-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/NEWS | 22 |
1 files changed, 18 insertions, 4 deletions
| @@ -59,10 +59,24 @@ option '--enable-check-lisp-object-type' is therefore no longer as | |||
| 59 | useful and so is no longer enabled by default in developer builds, | 59 | useful and so is no longer enabled by default in developer builds, |
| 60 | to reduce differences between developer and production builds. | 60 | to reduce differences between developer and production builds. |
| 61 | 61 | ||
| 62 | ** Emacs by default uses a "portable dumper" instead of unexec, | 62 | +++ |
| 63 | improving compatibility with modern systems and supporting ASLR. | 63 | ** Emacs now uses a "portable dumper" instead of unexec. |
| 64 | Emacs now needs an "emacs.pdmp" file, generated during the built, in | 64 | This improves compatibility with memory allocation on modern systems, |
| 65 | its data directory at runtime. | 65 | and in particular better supports the Address Space Layout |
| 66 | Randomization (ASLR) feature, a security technique used by most modern | ||
| 67 | operating systems. | ||
| 68 | |||
| 69 | Portable dumping can be disabled at configure time via the configure | ||
| 70 | option '--with-pdumper=no' (but we don't recommend that, unless the | ||
| 71 | portable dumping doesn't work on your system for some reason---please | ||
| 72 | report such systems to the Emacs developers as bugs). | ||
| 73 | |||
| 74 | When built with the portable dumping support (which is the default), | ||
| 75 | Emacs looks for the 'emacs.pdmp' file, generated during the build, in | ||
| 76 | its data directory at startup, and loads the dumped state from there. | ||
| 77 | The new command-line argument '--dump-file=FILE' allows to specify a | ||
| 78 | non-default '.pdmp' file to load the state from; see the node "Initial | ||
| 79 | Options" in the Emacs manual for more information. | ||
| 66 | 80 | ||
| 67 | ** Ibuffer | 81 | ** Ibuffer |
| 68 | 82 | ||