From eafe659ee0600e41ff5d63a51b542fca050f7a4a Mon Sep 17 00:00:00 2001 From: Ralf Jung <post@ralfj.de> Date: Tue, 11 Jul 2017 17:24:15 -0700 Subject: [PATCH] hooking mmap is no longer needed --- src/terminator/mod.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/terminator/mod.rs b/src/terminator/mod.rs index 9602e5798a7..dc6610a2213 100644 --- a/src/terminator/mod.rs +++ b/src/terminator/mod.rs @@ -861,12 +861,6 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> { self.write_primval(dest, result, dest_ty)?; } - "mmap" => { - // This is a horrible hack, but well... the guard page mechanism calls mmap and expects a particular return value, so we give it that value - let addr = args[0].read_ptr(&self.memory)?; - self.write_ptr(dest, addr, dest_ty)?; - } - // Hook pthread calls that go to the thread-local storage memory subsystem "pthread_key_create" => { let key_ptr = args[0].read_ptr(&self.memory)?;