aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-check/check.go
diff options
context:
space:
mode:
Diffstat (limited to 'tools/syz-check/check.go')
-rw-r--r--tools/syz-check/check.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/syz-check/check.go b/tools/syz-check/check.go
index a648aa54f..3a2726822 100644
--- a/tools/syz-check/check.go
+++ b/tools/syz-check/check.go
@@ -372,7 +372,8 @@ func checkNetlink(OS, arch, obj string, structTypes []prog.Type,
if rodata == nil {
return nil, fmt.Errorf("object file %v does not contain .rodata section", obj)
}
- symbols, err := symbolizer.ReadRodataSymbols(obj)
+ symb := symbolizer.NewSymbolizer(targets.Get(OS, arch))
+ symbols, err := symb.ReadRodataSymbols(obj)
if err != nil {
return nil, err
}