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 /pkg/csource/csource.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 'pkg/csource/csource.go')
| -rw-r--r-- | pkg/csource/csource.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/csource/csource.go b/pkg/csource/csource.go index 2754686ae..b198b826e 100644 --- a/pkg/csource/csource.go +++ b/pkg/csource/csource.go @@ -32,7 +32,7 @@ func Write(p *prog.Prog, opts Options) ([]byte, error) { return nil, err } - mmapProg := p.Target.GenerateUberMmapProg() + mmapProg := p.Target.DataMmapProg() mmapCalls, _, err := ctx.generateProgCalls(mmapProg, false) if err != nil { return nil, err |
