--- wikisrc/users/kamil/sanitizers.mdwn 2018/08/11 12:19:03 1.3 +++ wikisrc/users/kamil/sanitizers.mdwn 2018/08/11 12:26:35 1.5 @@ -43,6 +43,17 @@ The compiler-rt package ships with libBl As a NetBSD specific extension, there is a micro-UBSan runtime developed and maintained in the NetBSD source code. It is designed to function inside libc (uUBSan - usermode-UBSan) and inside the kernel (kUBSan - kernel-UBSan). +# Types of runtimes + +There are two types of sanitizer runtimes: + + * dynamically linked ones (default in GCC) + * statically linked ones (default in Clang) + +Base GCC/NetBSD works with the former, upstream HEAD version of LLVM/NetBSD works with the latter. + +Both compilers should support both of them, but the other options (GCC/NetBSD & static runtime, LLVM/NetBSD & dynamic runtime) are to be done. + # Sanitizers in NetBSD Sanitizers in NetBSD are shipped with the following options: @@ -115,17 +126,17 @@ The LLVM support is available only with Name | NetBSD status ----------|--------------------------------- -UBSan | works with all ports -ASan | works with amd64 and i386 -MSan | works with amd64 -TSan | works with amd64 +UBSan | mostly works with all LLVM ports +ASan | mostly works with amd64 and i386 +MSan | mostly works with amd64 +TSan | mostly works with amd64 ### LLVM with MKSANITIZER Name | NetBSD status ----------|--------------------------------- -UBSan | works with all ports -ASan | works with amd64 and i386 +UBSan | mostly works with all LLVM ports +ASan | mostly works with amd64 and i386 ### LLVM with MKLIBCSANITIZER