summaryrefslogtreecommitdiff
path: root/exec/elfcore.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-07-03 23:48:40 +0000
committerThomas Bushnell <thomas@gnu.org>1999-07-03 23:48:40 +0000
commit9db1a6bef5a0f7d3a0ed80a1367649bbaae02e2a (patch)
tree62ade79aeb6624ee462840b6fdd4a26383aa9bbe /exec/elfcore.c
parent7bacbba638af0771383ad039f635261ebb177e2e (diff)
1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
* core.c (core_dump_task): Use munmap instead of vm_deallocate, when it's from our own task. * elfcore.c: Likewise. * exec.c (load_section): Likewise. (map): Likewise. (close_exec_stream): Likewise. (finish_mapping): Likewise. (load): Likewise. (do_exec): Likewise. (S_exec_setexecdata): Likewise. * hashexec.c (check_hashbang): Likewise. * main.c (deadboot): Likewise.
Diffstat (limited to 'exec/elfcore.c')
-rw-r--r--exec/elfcore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec/elfcore.c b/exec/elfcore.c
index 4388a135..523973d8 100644
--- a/exec/elfcore.c
+++ b/exec/elfcore.c
@@ -94,7 +94,7 @@
goto lose;
err = bfd_set_section_contents (bfd, sec, data, 0,
bfd_section_size (bfd, sec));
- vm_deallocate (mach_task_self (), data, bfd_section_size (bfd, sec));
+ munmap ((caddr_t) data, bfd_section_size (bfd, sec));
if (err)
goto bfdlose;
}