[all-commits] [llvm/llvm-project] d44f99: [BOLT] Added fuzzer target (llvm-bolt-fuzzer)

Amir Ayupov via All-commits all-commits at lists.llvm.org
Sun Feb 20 17:24:33 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d44f99c748e0f35e9a322c9c9bea18d03168fae5
      https://github.com/llvm/llvm-project/commit/d44f99c748e0f35e9a322c9c9bea18d03168fae5
  Author: Amir Ayupov <aaupov at fb.com>
  Date:   2022-02-20 (Sun, 20 Feb 2022)

  Changed paths:
    M bolt/lib/Rewrite/RewriteInstance.cpp
    M bolt/tools/CMakeLists.txt
    A bolt/tools/llvm-bolt-fuzzer/CMakeLists.txt
    A bolt/tools/llvm-bolt-fuzzer/llvm-bolt-fuzzer.cpp

  Log Message:
  -----------
  [BOLT] Added fuzzer target (llvm-bolt-fuzzer)

This adds a target that would consume random binary as an
input ELF file.
TBD: add structured input support (ELF).

Build:
```
cmake /path/to/llvm-project/llvm -GNinja \
-DLLVM_TARGETS_TO_BUILD="X86;AArch64" \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_ASSERTIONS=1 \
-DCMAKE_C_COMPILER=<sanitizer-capable clang> \
-DCMAKE_CXX_COMPILER=<sanitizer-capable clang++> \
-DLLVM_ENABLE_PROJECTS="bolt"  \
-DLLVM_USE_SANITIZER=Address \
-DLLVM_USE_SANITIZE_COVERAGE=On
ninja llvm-bolt-fuzzer
```

Test Plan: ninja llvm-bolt-fuzzer

Reviewed By: maksfb

Differential Revision: https://reviews.llvm.org/D120016




More information about the All-commits mailing list