Message ID | 1542150146-12188-2-git-send-email-matthew.weber@rockwellcollins.com |
---|---|
State | Superseded |
Headers | show |
Series | [1/5] package/compiler-rt: new package | expand |
Hi Matt, Le 14/11/2018 à 00:02, Matt Weber a écrit : > The compiler-rt fuzzer and address sanitizer tools require additional > LLVM binary tools installed to allow stack trace decoding actively during > executable analysis. > > https://github.com/google/sanitizers/wiki/AddressSanitizerCallStack > > Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> > --- > package/llvm/llvm.mk | 11 ++++++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) > > diff --git a/package/llvm/llvm.mk b/package/llvm/llvm.mk > index 1f9bd44..79477f0 100644 > --- a/package/llvm/llvm.mk > +++ b/package/llvm/llvm.mk > @@ -197,8 +197,17 @@ HOST_LLVM_CONF_OPTS += \ > # We need to activate LLVM_INCLUDE_TOOLS, otherwise it does not generate > # libLLVM.so > LLVM_CONF_OPTS += \ > - -DLLVM_INCLUDE_TOOLS=ON \ > + -DLLVM_INCLUDE_TOOLS=ON > + > +# The llvm-symbolizer binary is used by the Compiler-RT Fuzzer > +# and AddressSanitizer tools for stack traces. > +ifeq ($(BR2_PACKAGE_COMPILER_RT),y) > +LLVM_CONF_OPTS += \ > + -DLLVM_BUILD_TOOLS=ON > +else > +LLVM_CONF_OPTS += \ > -DLLVM_BUILD_TOOLS=OFF > +endif Reviewed-by: Romain Naour <romain.naour@smile.fr> Best regards, Romain > > # Compiler-rt not in the source tree. > # llvm runtime libraries are not in the source tree. >
diff --git a/package/llvm/llvm.mk b/package/llvm/llvm.mk index 1f9bd44..79477f0 100644 --- a/package/llvm/llvm.mk +++ b/package/llvm/llvm.mk @@ -197,8 +197,17 @@ HOST_LLVM_CONF_OPTS += \ # We need to activate LLVM_INCLUDE_TOOLS, otherwise it does not generate # libLLVM.so LLVM_CONF_OPTS += \ - -DLLVM_INCLUDE_TOOLS=ON \ + -DLLVM_INCLUDE_TOOLS=ON + +# The llvm-symbolizer binary is used by the Compiler-RT Fuzzer +# and AddressSanitizer tools for stack traces. +ifeq ($(BR2_PACKAGE_COMPILER_RT),y) +LLVM_CONF_OPTS += \ + -DLLVM_BUILD_TOOLS=ON +else +LLVM_CONF_OPTS += \ -DLLVM_BUILD_TOOLS=OFF +endif # Compiler-rt not in the source tree. # llvm runtime libraries are not in the source tree.
The compiler-rt fuzzer and address sanitizer tools require additional LLVM binary tools installed to allow stack trace decoding actively during executable analysis. https://github.com/google/sanitizers/wiki/AddressSanitizerCallStack Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> --- package/llvm/llvm.mk | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-)