diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2022-09-15 13:36:15 +0000 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2022-09-27 13:07:37 +0200 |
| commit | 2b420c9686b7c95216d491a97fcd5158acb810f2 (patch) | |
| tree | 091b25ff54bf7f41a7fcf3a027a714fb2e7255b8 /sys/linux/init.go | |
| parent | 1856cdc9b3652a082c5bfa0e08a9f883baece8ec (diff) | |
sys/linux: extract raw images from syz_mount_image
To simplify the extraction code, let's make segments non-overlapping
even before execution.
Diffstat (limited to 'sys/linux/init.go')
| -rw-r--r-- | sys/linux/init.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/linux/init.go b/sys/linux/init.go index 9080cbd7c..09b70f092 100644 --- a/sys/linux/init.go +++ b/sys/linux/init.go @@ -54,6 +54,7 @@ func InitTarget(target *prog.Target) { target.MakeDataMmap = targets.MakePosixMmap(target, true, true) target.Neutralize = arch.neutralize + target.ExtractMountedImage = arch.extractSyzMountImage target.SpecialTypes = map[string]func(g *prog.Gen, typ prog.Type, dir prog.Dir, old prog.Arg) ( prog.Arg, []*prog.Call){ "timespec": arch.generateTimespec, |
