aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2006-05-01 01:13:42 +0000
committerYAMAMOTO Mitsuharu2006-05-01 01:13:42 +0000
commit6dc5c8a75b8ad0aea911c0236e4fdb35e1e0839f (patch)
tree2dbd8d8c3cf0a71976a18ad2091c2aae084efe22 /src
parenta019c41a5cd58fcc8b518edcdfc46e04471fbff9 (diff)
downloademacs-6dc5c8a75b8ad0aea911c0236e4fdb35e1e0839f.tar.gz
emacs-6dc5c8a75b8ad0aea911c0236e4fdb35e1e0839f.zip
(unexec): Error if trying unexec from dumped executable.
Diffstat (limited to 'src')
-rw-r--r--src/unexmacosx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unexmacosx.c b/src/unexmacosx.c
index 4ca0be829a2..f65fd9cbc22 100644
--- a/src/unexmacosx.c
+++ b/src/unexmacosx.c
@@ -1021,6 +1021,9 @@ void
1021unexec (char *outfile, char *infile, void *start_data, void *start_bss, 1021unexec (char *outfile, char *infile, void *start_data, void *start_bss,
1022 void *entry_address) 1022 void *entry_address)
1023{ 1023{
1024 if (in_dumped_exec)
1025 unexec_error ("Unexec from a dumped executable is not supported.");
1026
1024 infd = open (infile, O_RDONLY, 0); 1027 infd = open (infile, O_RDONLY, 0);
1025 if (infd < 0) 1028 if (infd < 0)
1026 { 1029 {