Kostya Serebryany
a523135f97
[libFuzzer] switch -fsanitize=fuzzer from trace-pc-guard to inline-8bit-counters
...
llvm-svn: 312346
2017-09-01 18:34:36 +00:00
George Karpenkov
a2f383d072
Fixed driver tests for -fsanitize=fuzzer.
...
llvm-svn: 311412
2017-08-22 00:04:05 +00:00
George Karpenkov
9f6f74c2c5
Moving libFuzzer to compiler-rt: required updates to the Clang driver.
...
Differential Revision: https://reviews.llvm.org/D36909
llvm-svn: 311406
2017-08-21 23:25:19 +00:00
George Karpenkov
33613f63f6
Add -fsanitize=fuzzer-no-link flag to the driver.
...
The flag will perform instrumentation necessary to the fuzzing,
but will NOT link libLLVMFuzzer.a library.
Necessary when modifying CFLAGS for projects which may produce
executables as well as a fuzzable target.
Differential Revision: https://reviews.llvm.org/D36600
llvm-svn: 310733
2017-08-11 17:22:58 +00:00
Kostya Serebryany
7dbb1e179e
[libFuzzer] add -fsanitize-coverage-pc-table to -fsanitize=fuzzer
...
llvm-svn: 310136
2017-08-04 21:35:11 +00:00
George Karpenkov
3f984ecb45
[libFuzzer] Add Fuzzer to the list of sanitizers which support coverage.
...
Without this change, additional coverage flags specified after
-fsanitize=fuzzer would get discarded.
https://reviews.llvm.org/D34794
llvm-svn: 306734
2017-06-29 19:58:20 +00:00
George Karpenkov
2363fdd30f
[libFuzzer] Do not link in libFuzzer with -fsanitize=fuzzer when producing a shared object
...
https://reviews.llvm.org/D34791
llvm-svn: 306733
2017-06-29 19:52:33 +00:00
Ismail Donmez
b971198ea2
Fix fuzzer.c test on platforms where CLANG_DEFAULT_CXX_STDLIB is libc++
...
llvm-svn: 301302
2017-04-25 11:24:14 +00:00
George Karpenkov
d4fec71b9b
Specify a target explicitly in libfuzzer driver flag test
...
llvm-svn: 301246
2017-04-24 20:38:56 +00:00
George Karpenkov
38b0d82b2d
Remove erroneous driver test for -fsanitize=fuzzer flag
...
libfuzzer is not available on all platforms, and hence we can not always
rely that it was compiled.
llvm-svn: 301216
2017-04-24 18:36:31 +00:00
George Karpenkov
f2fc5b068e
Flag -fsanitize=fuzzer to enable libfuzzer
...
Previously, adding libfuzzer to a project was a multi-step procedure,
involving libfuzzer compilation, linking the library, and specifying
coverage flags.
With this change,libfuzzer can be enabled by adding a single
-fsanitize=fuzzer flag instead.
llvm-svn: 301212
2017-04-24 18:23:24 +00:00