# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1146446022 0 # Node ID 470ac698d6f7bdd1a635cec3ab73498ea7df883b # Parent 5efeadbe7324339f10a352f0f2b18b65e9d8fd62 (unexec): Error if trying unexec from dumped executable. diff -r 5efeadbe7324 -r 470ac698d6f7 src/unexmacosx.c --- a/src/unexmacosx.c Mon May 01 01:13:29 2006 +0000 +++ b/src/unexmacosx.c Mon May 01 01:13:42 2006 +0000 @@ -1021,6 +1021,9 @@ 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) {