diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-04-18 12:36:52 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-04-18 14:35:45 +0200 |
| commit | 67234372ef1e27c87a6be2e0141d70ae797231a1 (patch) | |
| tree | e6304ac41f5af586d81d84e31f9c8547754a32d9 /sys/linux/init.go | |
| parent | ea36da8271c508fe4c8bcc80af20ec81c812b95a (diff) | |
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.
Diffstat (limited to 'sys/linux/init.go')
| -rw-r--r-- | sys/linux/init.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/linux/init.go b/sys/linux/init.go index 7638860d5..6a10c7d82 100644 --- a/sys/linux/init.go +++ b/sys/linux/init.go @@ -48,7 +48,7 @@ func InitTarget(target *prog.Target) { ARCH_SET_GS: target.ConstMap["ARCH_SET_GS"], } - target.MakeMmap = targets.MakePosixMmap(target, true) + target.MakeDataMmap = targets.MakePosixMmap(target, true) target.Neutralize = arch.neutralize target.SpecialTypes = map[string]func(g *prog.Gen, typ prog.Type, old prog.Arg) ( prog.Arg, []*prog.Call){ |
