mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-19 04:21:45 -07:00
(unexec): Error if trying unexec from dumped executable.
This commit is contained in:
parent
a019c41a5c
commit
6dc5c8a75b
1 changed files with 3 additions and 0 deletions
|
|
@ -1021,6 +1021,9 @@ void
|
|||
unexec (char *outfile, char *infile, void *start_data, void *start_bss,
|
||||
void *entry_address)
|
||||
{
|
||||
if (in_dumped_exec)
|
||||
unexec_error ("Unexec from a dumped executable is not supported.");
|
||||
|
||||
infd = open (infile, O_RDONLY, 0);
|
||||
if (infd < 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue