Source-Changes-HG archive

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

[src/trunk]: src/share/mk Enhance the documentation of MKSANITIZER in bsd.README



details:   https://anonhg.NetBSD.org/src/rev/6b5734441dc2
branches:  trunk
changeset: 833429:6b5734441dc2
user:      kamil <kamil%NetBSD.org@localhost>
date:      Sun Jun 24 20:40:58 2018 +0000

description:
Enhance the documentation of MKSANITIZER in bsd.README

Note that the list of sanitizer features is just a selection, not a
complete list. Include there LSan and Scudo. Missing: hwmsan, esan,
ubsan_minimal etc.

Explain that USE_SANITIZER is an argument passed to -fsanitize= and it can
contain multiple options.

Mention SANITIZERFLAGS to pass even more sanitizer arguments.

Stop tracking in this file what compiler compiles what features. Just note
that the selection of supported features depends on a compiler version and
target CPU architecture.

diffstat:

 share/mk/bsd.README |  14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r 73095a0e817e -r 6b5734441dc2 share/mk/bsd.README
--- a/share/mk/bsd.README       Sun Jun 24 20:28:57 2018 +0000
+++ b/share/mk/bsd.README       Sun Jun 24 20:40:58 2018 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.README,v 1.375 2018/06/03 04:41:04 wiz Exp $
+#      $NetBSD: bsd.README,v 1.376 2018/06/24 20:40:58 kamil Exp $
 #      @(#)bsd.README  8.2 (Berkeley) 4/2/94
 
 This is the README file for the make "include" files for the NetBSD
@@ -389,15 +389,23 @@
 
 MKSANITIZER    if "yes", use the selected sanitizer to compile userland
                programs as defined in USE_SANITIZER, which defaults to
-               "address". Available sanitizers are:
+               "address". A selection of available sanitizers:
                        address:        A memory error detector (default)
                        thread:         A data race detector
                        memory:         An uninitializer read detector
                        undefined:      An undefined behavior detector
+                       leak:           A memory leak detector
                        dataflow:       A general data flow analysis
                        cfi:            A control flow detector
                        safe-stack:     Protect against stack-based corruption
-               Only "address" is currently available for gcc(1).
+                       scudo:          The Scudo Hardened allocator
+               It's possible to specify multiple sanitizers within the
+               USE_SANITIZER option (comma separated) and some combinations of
+               them work. The USE_SANITIZER value is passed to the -fsanitize=
+               argument to a compiler.
+               Additional arguments can be passed through SANITIZERFLAGS.
+               The list of supported features depends on the compiler version
+               and target CPU architecture.
 
 MKSHARE                If "no", act as "MKCATPAGES=no MKDOC=no MKHTML=no MKINFO=no
                MKMAN=no MKNLS=no".



Home | Main Index | Thread Index | Old Index