diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2018-09-29 15:17:17 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2018-09-29 15:17:17 +0000 |
commit | 678769a9fc265efb669b9abcb13bc620f8b57dc0 (patch) | |
tree | fcd7fa397807e5b4cbe4972a32b800bcfcf7a972 /lib/libclang_rt | |
parent | ce44d808538c6e32a86b2d79302418d17b28a854 (diff) | |
parent | 005b7ed8f76756d94ef6266ded755ab7863cb936 (diff) | |
download | src-test2-678769a9fc265efb669b9abcb13bc620f8b57dc0.tar.gz src-test2-678769a9fc265efb669b9abcb13bc620f8b57dc0.zip |
Add compiler-rt's libFuzzer, not connected to buildworld yet.
For now, the libraries can be built and installed using:
cd /usr/src/lib/libclang_rt/fuzzer && \
make obj && \
make depend && \
make && \
sudo make install
cd /usr/src/lib/libclang_rt/fuzzer_no_main && \
make obj && \
make depend && \
make && \
sudo make install
See https://llvm.org/docs/LibFuzzer.html for more information.
Notes
Notes:
svn path=/projects/clang700-import/; revision=339014
Diffstat (limited to 'lib/libclang_rt')
-rw-r--r-- | lib/libclang_rt/fuzzer/Makefile | 33 | ||||
-rw-r--r-- | lib/libclang_rt/fuzzer_no_main/Makefile | 32 |
2 files changed, 65 insertions, 0 deletions
diff --git a/lib/libclang_rt/fuzzer/Makefile b/lib/libclang_rt/fuzzer/Makefile new file mode 100644 index 000000000000..e2f697edbde1 --- /dev/null +++ b/lib/libclang_rt/fuzzer/Makefile @@ -0,0 +1,33 @@ +# $FreeBSD$ + +.include <bsd.init.mk> + +LIB= clang_rt.fuzzer-${CRTARCH} + +SRCS+= fuzzer/FuzzerCrossOver.cpp +SRCS+= fuzzer/FuzzerDataFlowTrace.cpp +SRCS+= fuzzer/FuzzerDriver.cpp +SRCS+= fuzzer/FuzzerExtFunctionsDlsym.cpp +SRCS+= fuzzer/FuzzerExtFunctionsDlsymWin.cpp +SRCS+= fuzzer/FuzzerExtFunctionsWeak.cpp +SRCS+= fuzzer/FuzzerExtraCounters.cpp +SRCS+= fuzzer/FuzzerIO.cpp +SRCS+= fuzzer/FuzzerIOPosix.cpp +SRCS+= fuzzer/FuzzerIOWindows.cpp +SRCS+= fuzzer/FuzzerLoop.cpp +SRCS+= fuzzer/FuzzerMain.cpp +SRCS+= fuzzer/FuzzerMerge.cpp +SRCS+= fuzzer/FuzzerMutate.cpp +SRCS+= fuzzer/FuzzerSHA1.cpp +SRCS+= fuzzer/FuzzerShmemFuchsia.cpp +SRCS+= fuzzer/FuzzerShmemPosix.cpp +SRCS+= fuzzer/FuzzerShmemWindows.cpp +SRCS+= fuzzer/FuzzerTracePC.cpp +SRCS+= fuzzer/FuzzerUtil.cpp +SRCS+= fuzzer/FuzzerUtilDarwin.cpp +SRCS+= fuzzer/FuzzerUtilFuchsia.cpp +SRCS+= fuzzer/FuzzerUtilLinux.cpp +SRCS+= fuzzer/FuzzerUtilPosix.cpp +SRCS+= fuzzer/FuzzerUtilWindows.cpp + +.include <bsd.lib.mk> diff --git a/lib/libclang_rt/fuzzer_no_main/Makefile b/lib/libclang_rt/fuzzer_no_main/Makefile new file mode 100644 index 000000000000..61ae8ed945bb --- /dev/null +++ b/lib/libclang_rt/fuzzer_no_main/Makefile @@ -0,0 +1,32 @@ +# $FreeBSD$ + +.include <bsd.init.mk> + +LIB= clang_rt.fuzzer_no_main-${CRTARCH} + +SRCS+= fuzzer/FuzzerCrossOver.cpp +SRCS+= fuzzer/FuzzerDataFlowTrace.cpp +SRCS+= fuzzer/FuzzerDriver.cpp +SRCS+= fuzzer/FuzzerExtFunctionsDlsym.cpp +SRCS+= fuzzer/FuzzerExtFunctionsDlsymWin.cpp +SRCS+= fuzzer/FuzzerExtFunctionsWeak.cpp +SRCS+= fuzzer/FuzzerExtraCounters.cpp +SRCS+= fuzzer/FuzzerIO.cpp +SRCS+= fuzzer/FuzzerIOPosix.cpp +SRCS+= fuzzer/FuzzerIOWindows.cpp +SRCS+= fuzzer/FuzzerLoop.cpp +SRCS+= fuzzer/FuzzerMerge.cpp +SRCS+= fuzzer/FuzzerMutate.cpp +SRCS+= fuzzer/FuzzerSHA1.cpp +SRCS+= fuzzer/FuzzerShmemFuchsia.cpp +SRCS+= fuzzer/FuzzerShmemPosix.cpp +SRCS+= fuzzer/FuzzerShmemWindows.cpp +SRCS+= fuzzer/FuzzerTracePC.cpp +SRCS+= fuzzer/FuzzerUtil.cpp +SRCS+= fuzzer/FuzzerUtilDarwin.cpp +SRCS+= fuzzer/FuzzerUtilFuchsia.cpp +SRCS+= fuzzer/FuzzerUtilLinux.cpp +SRCS+= fuzzer/FuzzerUtilPosix.cpp +SRCS+= fuzzer/FuzzerUtilWindows.cpp + +.include <bsd.lib.mk> |