From 9db1a6bef5a0f7d3a0ed80a1367649bbaae02e2a Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sat, 3 Jul 1999 23:48:40 +0000 Subject: 1999-07-03 Thomas Bushnell, BSG * 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. --- exec/elfcore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'exec/elfcore.c') 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; } -- cgit v1.2.3