b1fcb596fe
This patch adds support for the compiler-rt (CLANG runtime) library. It builds a set of static libraries and installs them into the CLANG/LLVM toolchain resource folder. These libraries can then be used by developers in the SDK for building target applications for analysis. What is fuzzing and why libfuzzer? https://www.moritz.systems/blog/an-introduction-to-llvm-libfuzzer/ The compiler-rt fuzzer and address sanitizer tools require additional LLVM binary tools installed to allow stack trace decoding actively during executable analysis. This patch conditionally enables these tools. https://github.com/google/sanitizers/wiki/AddressSanitizerCallStack Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com> Signed-off-by: James Hilliard <james.hilliard1@gmail.com> Cc: Romain Naour <romain.naour@smile.fr> Cc: Ricardo Martincoski <ricardo.martincoski@gmail.com> Cc: Valentin Korenblit <valentinkorenblit@gmail.com> Cc: Michael Drake <michael.drake@codethink.co.uk> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
15 lines
461 B
Plaintext
15 lines
461 B
Plaintext
config BR2_PACKAGE_COMPILER_RT
|
|
bool "compiler-rt"
|
|
depends on BR2_PACKAGE_LLVM
|
|
depends on BR2_TOOLCHAIN_USES_GLIBC # asan lib requires
|
|
help
|
|
A collection of runtime libraries primarily used by clang and
|
|
llvm to provide builtins, sanitizer runtimes, and profiling
|
|
at runtime.
|
|
|
|
https://compiler-rt.llvm.org/
|
|
|
|
comment "compiler-rt requires llvm to be enabled and a glibc toolchain"
|
|
depends on !BR2_PACKAGE_LLVM
|
|
depends on !BR2_TOOLCHAIN_USES_GLIBC
|