aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/csource')
-rw-r--r--pkg/csource/csource.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/csource/csource.go b/pkg/csource/csource.go
index 6dd8bdcd6..1ba433f45 100644
--- a/pkg/csource/csource.go
+++ b/pkg/csource/csource.go
@@ -73,6 +73,13 @@ func (ctx *context) generateSource() ([]byte, error) {
for _, c := range append(mmapProg.Calls, ctx.p.Calls...) {
ctx.calls[c.Meta.CallName] = c.Meta.NR
+ for _, dep := range ctx.sysTarget.PseudoSyscallDeps[c.Meta.CallName] {
+ depCall := ctx.target.SyscallMap[dep]
+ if depCall == nil {
+ panic(dep + " is specified in PseudoSyscallDeps, but not present")
+ }
+ ctx.calls[depCall.CallName] = depCall.NR
+ }
}
varsBuf := new(bytes.Buffer)