From 67234372ef1e27c87a6be2e0141d70ae797231a1 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sat, 18 Apr 2020 12:36:52 +0200 Subject: prog: refactor target.MakeMmap Make MakeMmap return more than 1 call. This is a preparation for future changes. Also remove addr/size as they are effectively always the same and can be inferred from the target (will also conflict with the future changes). Also rename to MakeDataMmap to better represent the new purpose: it's just some arbitrary mmap, but rather mapping of the data segment. --- sys/trusty/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/trusty') diff --git a/sys/trusty/init.go b/sys/trusty/init.go index d437b5d3f..2ec63cbf3 100644 --- a/sys/trusty/init.go +++ b/sys/trusty/init.go @@ -9,5 +9,5 @@ import ( ) func InitTarget(target *prog.Target) { - target.MakeMmap = targets.MakeSyzMmap(target) + target.MakeDataMmap = targets.MakeSyzMmap(target) } -- cgit mrf-deployment