aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2017-09-14 10:32:29 +0200
committerDmitry Vyukov <dvyukov@google.com>2017-09-15 16:02:37 +0200
commit91def5c506951f8a55f31979ce54657de460f528 (patch)
tree949774a5ae9e74524bb5a4e0b8a15bb7aa74332a /sys
parentc0cabacda7db153dcdb0940972a680296a9e56f3 (diff)
prog: remove special knowledge about "mmap" syscall
Abstract "mmap" away as it can be called differently on another OS.
Diffstat (limited to 'sys')
-rw-r--r--sys/linux/init.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/linux/init.go b/sys/linux/init.go
index 8d96ac27a..cbf93e963 100644
--- a/sys/linux/init.go
+++ b/sys/linux/init.go
@@ -20,6 +20,7 @@ func initArch(syscalls []*prog.Syscall, resources []*prog.ResourceDesc,
DataOffset: dataOffset,
Syscalls: syscalls,
Resources: resources,
+ MmapSyscall: arch.mmapSyscall,
MakeMmap: arch.makeMmap,
AnalyzeMmap: arch.analyzeMmap,
SanitizeCall: arch.sanitizeCall,