tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Ship with llvm-symbolizer for MKLLVM=yes



I propose to ship with llvm-symbolizer for MKLLVM=yes.

llvm-symbolizer is an addr2line replacement from LLVM.

Rationale:

 - llvm-symbolizer integrates well with LLVM sanitizers and gives better
results that addr2line.
 - basesystem llvm-symbolizer is necessary in MKLLVM=yes MKSANITIZER /
MKLIBCSANITIZER environment as otherwise backtraces are useless.
 - A workaround to basesystem's llvm-symbolizer is installing an
external one into $PATH, but this requires manual build of statically
linked llvm-symbolizer (generally upstream LLVM does not support well
static builds).
 - Shipping llvm-symbolizer by default makes everything easy and
functional out of the box.

llvm-symbolizer needs building of 4 additional libraries:
 - libLLVMDebugInfoPDB
 - libLLVMDebugInfoPDBNative
 - libLLVMDebugInfoSymbolize
 - libLLVMObjectYAML

Once the LLDB branch will be merged into src/, the same LLVM libraries
are needed for LLDB.

http://netbsd.org/~kamil/patch-00260-install-llvm-symbolizer.txt

This addition is intended to be used during GSoC 2020 for the rumpkernel
fuzzing projects.

Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index