mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-03 10:53:23 +00:00
Unexec removal: Main part
* configure.ac: Remove unexec-specific parts. (EMACS_CONFIG_FEATURES): Always report that we do not have the UNEXEC feature. (AC_ECHO): No longer display a line about the unexec feature. * lisp/loadup.el: * lisp/startup.el: Remove unexec-specific code. * src/Makefile.in (base_obj): Drop 'UNEXEC_OBJ'. * src/alloc.c (staticvec): Never initialize this variable. (BLOCK_ALIGN): Always allow large blocks. (mmap_lisp_allowed_p): Remove unexec-specific code. * src/buffer.c (init_buffer): * src/conf_post.h (ADDRESS_SANITIZER): * src/emacs.c (load_pdump, main): Remove unexec-specific code. (Fdump_emacs): Remove function. (syms_of_emacs): Remove 'Fdump_emacs'. * src/lastfile.c: Remove unexec-specific code. * src/lisp.h (gflags): Remove unexec-specific flags. (will_dump_p, will_bootstrap_p, will_dump_with_unexec_p) (dumped_with_unexec_p, definitely_will_not_unexec_p): Remove or adjust predicates. (SUBR_SECTION_ATTRIBUTE): Remove unexec-specific definition. * src/pdumper.c (Fdump_emacs_portable): Remove unexec-specific warning. * src/process.c (init_process_emacs): Remove !unexec condition * src/sysdep.c (maybe_disable_address_randomization): Adjust comment. (init_signals): * src/timefns.c (init_timefns): Remove unexec-specific code. * src/w32heap.c (report_temacs_memory_usage): Remove function. * src/w32heap.h: Adjust comment. * src/w32image.c (globals_of_w32image): Remove unexec-specific code.
This commit is contained in:
parent
7ce34a3bcf
commit
15e2b14f03
17 changed files with 55 additions and 682 deletions
10
src/sysdep.c
10
src/sysdep.c
|
@ -165,9 +165,7 @@ maybe_disable_address_randomization (int argc, char **argv)
|
|||
|
||||
if (argc < 2 || strcmp (argv[1], aslr_disabled_option) != 0)
|
||||
{
|
||||
/* If dumping via unexec, ASLR must be disabled, as otherwise
|
||||
data may be scattered and undumpable as a simple executable.
|
||||
If pdumping, disabling ASLR lessens differences in the .pdmp file. */
|
||||
/* If pdumping, disabling ASLR lessens differences in the .pdmp file. */
|
||||
bool disable_aslr = will_dump_p ();
|
||||
# ifdef __PPC64__
|
||||
disable_aslr = true;
|
||||
|
@ -2036,12 +2034,6 @@ init_signals (void)
|
|||
main_thread_id = pthread_self ();
|
||||
#endif
|
||||
|
||||
/* Don't alter signal handlers if dumping with unexec. On some
|
||||
machines, changing signal handlers sets static data that would make
|
||||
signals fail to work right when the dumped Emacs is run. */
|
||||
if (will_dump_with_unexec_p ())
|
||||
return;
|
||||
|
||||
sigfillset (&process_fatal_action.sa_mask);
|
||||
process_fatal_action.sa_handler = deliver_fatal_signal;
|
||||
process_fatal_action.sa_flags = emacs_sigaction_flags ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue