Commit 6dc5c8a7 authored by YAMAMOTO Mitsuharu's avatar YAMAMOTO Mitsuharu
Browse files

(unexec): Error if trying unexec from dumped executable.

parent a019c41a
......@@ -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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment