diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-11-23 08:51:04 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-11-23 08:51:04 +0100 |
| commit | 7061d1973b6243565cfac50a853543fdffb5a073 (patch) | |
| tree | 1b9e32d1cd5d7fd8a1b6b8a62b444d7a26492320 /pkg/csource | |
| parent | 31af2ce0225268bd9d1ed27fef830debbed2a188 (diff) | |
sys/syz-extract: fix mmap on arm
__NR_mmap is missing on arm entirely,
so we disable mmap during generate.
Patch mmap to mmap2 right in syz-extract,
so that mmap is never missing.
Diffstat (limited to 'pkg/csource')
| -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 eda16bca9..d8a4a5a01 100644 --- a/pkg/csource/csource.go +++ b/pkg/csource/csource.go @@ -254,7 +254,7 @@ func (ctx *context) generateSyscallDefines() { if ctx.target.OS == "linux" && ctx.target.PtrSize == 4 { // This is a dirty hack. // On 32-bit linux mmap translated to old_mmap syscall which has a different signature. - // mmap2 has the right signature. executor translates mmap to mmap2, do the same here. + // mmap2 has the right signature. syz-extract translates mmap to mmap2, do the same here. ctx.printf("#undef __NR_mmap\n") ctx.printf("#define __NR_mmap __NR_mmap2\n") } |
