summaryrefslogtreecommitdiffstats
path: root/tools/clang-fuzzer
diff options
context:
space:
mode:
authorMatt Morehouse <mascasa@google.com>2017-08-21 16:18:43 +0000
committerMatt Morehouse <mascasa@google.com>2017-08-21 16:18:43 +0000
commit4bd8b99c54fb6bf45036447e89e4190f0a4ba6e1 (patch)
treefaae63b345e00ea94e7d23100d223936beaabb0f /tools/clang-fuzzer
parent186aaf8183fe7c5507d8f9f59a34dff6d57565bf (diff)
[clang-proto-fuzzer] Update README.
Add instructions on how to modify the compiler invocation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@311345 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/clang-fuzzer')
-rw-r--r--tools/clang-fuzzer/README.txt23
1 files changed, 15 insertions, 8 deletions
diff --git a/tools/clang-fuzzer/README.txt b/tools/clang-fuzzer/README.txt
index 35476d33c5..66a6a6332c 100644
--- a/tools/clang-fuzzer/README.txt
+++ b/tools/clang-fuzzer/README.txt
@@ -29,6 +29,11 @@ Example:
-DLLVM_USE_SANITIZE_COVERAGE=YES -DLLVM_USE_SANITIZER=Address
ninja clang-fuzzer
+======================
+ Running clang-fuzzer
+======================
+ bin/clang-fuzzer CORPUS_DIR
+
=======================================================
Building clang-proto-fuzzer (Linux-only instructions)
@@ -62,14 +67,16 @@ Example:
This directory also contains a Dockerfile which sets up all required
dependencies and builds the fuzzers.
-=====================
- Running the fuzzers
-=====================
-clang-fuzzer:
- bin/clang-fuzzer CORPUS_DIR
-
-clang-proto-fuzzer:
+============================
+ Running clang-proto-fuzzer
+============================
bin/clang-proto-fuzzer CORPUS_DIR
-Translating a clang-proto-fuzzer corpus output to C++:
+Arguments can be specified after -ignore_remaining_args=1 to modify the compiler
+invocation. For example, the following command line will fuzz LLVM with a
+custom optimization level and target triple:
+ bin/clang-proto-fuzzer CORPUS_DIR -ignore_remaining_args=1 -O3 -triple \
+ arm64apple-ios9
+
+To translate a clang-proto-fuzzer corpus output to C++:
bin/clang-proto-to-cxx CORPUS_OUTPUT_FILE