diff src/unexmacosx.c @ 70306:470ac698d6f7

(unexec): Error if trying unexec from dumped executable.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Mon, 01 May 2006 01:13:42 +0000
parents de28ca2dd3c3
children fd7f97a75198 2ecafc6d5db7
line wrap: on
line diff
--- 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)
     {