mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-16 09:38:01 +00:00
![Dmitry Vyukov](/assets/img/avatar_default.png)
Syscall numbers for different architectures are now pulled in from kernel headers. This solves 2 problems: - we don't need to hardcode numbers for new syscalls (that don't present in typical distro headers) - we have correct number for different archs (previously hardcoded numbers were for x86_64) This also makes syscall numbers available for Go code, which can be useful.
43 lines
1.1 KiB
Makefile
43 lines
1.1 KiB
Makefile
# Copyright 2015 syzkaller project authors. All rights reserved.
|
|
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
|
|
|
|
.PHONY: all format clean manager fuzzer executor execprog mutate prog2c stress generate
|
|
|
|
all: manager fuzzer executor
|
|
|
|
all-tools: execprog mutate prog2c stress repro
|
|
|
|
manager:
|
|
go build -o ./bin/syz-manager github.com/google/syzkaller/syz-manager
|
|
|
|
fuzzer:
|
|
go build -o ./bin/syz-fuzzer github.com/google/syzkaller/syz-fuzzer
|
|
|
|
executor:
|
|
gcc -o ./bin/syz-executor executor/executor.cc -lpthread -static -Wall -O1 -g
|
|
|
|
execprog:
|
|
go build -o ./bin/syz-execprog github.com/google/syzkaller/tools/syz-execprog
|
|
|
|
repro:
|
|
go build -o ./bin/syz-repro github.com/google/syzkaller/tools/syz-repro
|
|
|
|
mutate:
|
|
go build -o ./bin/syz-mutate github.com/google/syzkaller/tools/syz-mutate
|
|
|
|
prog2c:
|
|
go build -o ./bin/syz-prog2c github.com/google/syzkaller/tools/syz-prog2c
|
|
|
|
stress:
|
|
go build -o ./bin/syz-stress github.com/google/syzkaller/tools/syz-stress
|
|
|
|
generate:
|
|
go run sysgen/*.go -linux=$(LINUX) sys/sys.txt
|
|
|
|
format:
|
|
go fmt ./...
|
|
clang-format --style=file -i executor/executor.cc
|
|
|
|
clean:
|
|
rm -rf ./bin/
|