forked from OSchip/llvm-project
3984eb4ad0
In order to use sanitizers on Windows, we need to link against many runtime libraries which will depend on the target being created (executable or dll) and the c runtime library used (MT/MD). By default, cmake uses link.exe for linking, which fails because we don't specify the appropiate dependencies. As we don't want to consider all of that possible situations which depends on the implementation of the compiler-rt, the simplest option is to change the rules for linking executables and shared libraries, using the compiler instead of link.exe. Clang driver will consider the sanitizer flags, and automatically provide the required libraries to the linker. Differential Revision: https://reviews.llvm.org/D27869 llvm-svn: 292669 |
||
---|---|---|
.. | ||
afl | ||
standalone | ||
test | ||
CMakeLists.txt | ||
FuzzerCorpus.h | ||
FuzzerCrossOver.cpp | ||
FuzzerDefs.h | ||
FuzzerDictionary.h | ||
FuzzerDriver.cpp | ||
FuzzerExtFunctions.def | ||
FuzzerExtFunctions.h | ||
FuzzerExtFunctionsDlsym.cpp | ||
FuzzerExtFunctionsWeak.cpp | ||
FuzzerExtFunctionsWeakAlias.cpp | ||
FuzzerFlags.def | ||
FuzzerIO.cpp | ||
FuzzerIO.h | ||
FuzzerIOPosix.cpp | ||
FuzzerIOWindows.cpp | ||
FuzzerInterface.h | ||
FuzzerInternal.h | ||
FuzzerLoop.cpp | ||
FuzzerMain.cpp | ||
FuzzerMerge.cpp | ||
FuzzerMerge.h | ||
FuzzerMutate.cpp | ||
FuzzerMutate.h | ||
FuzzerOptions.h | ||
FuzzerRandom.h | ||
FuzzerSHA1.cpp | ||
FuzzerSHA1.h | ||
FuzzerShmem.h | ||
FuzzerShmemPosix.cpp | ||
FuzzerTracePC.cpp | ||
FuzzerTracePC.h | ||
FuzzerTraceState.cpp | ||
FuzzerUtil.cpp | ||
FuzzerUtil.h | ||
FuzzerUtilDarwin.cpp | ||
FuzzerUtilLinux.cpp | ||
FuzzerUtilPosix.cpp | ||
FuzzerUtilWindows.cpp | ||
FuzzerValueBitMap.h | ||
README.txt | ||
build.sh | ||
cxx.dict |
README.txt
Move to http://llvm.org/docs/LibFuzzer.html