In SCM, the ability to save running program images is called dump
(see Dump). In order to make dump available to SCM, build
with feature `dump'. dumped executables are compatible with
dynamic linking.
Most of the code for dump is taken from
`emacs-19.34/src/unex*.c'. No modifications to the emacs source
code were required to use `unexelf.c'. Dump has not been ported to
all platforms. If `unexec.c' or `unexelf.c' don't work for
you, try using the appropriate `unex*.c' file from emacs.