diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2015-01-13 19:54:47 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2015-01-13 19:54:47 +0000 |
commit | 8028b78dbf6b2bce413fd7f1c2bec960f694b952 (patch) | |
tree | 8f0287406f357e41799e220f84b1cb8e6be46439 /etc | |
parent | 6b30e6ae6c26645a7d53dc9703954b6dea1db567 (diff) | |
download | src-8028b78dbf6b2bce413fd7f1c2bec960f694b952.tar.gz src-8028b78dbf6b2bce413fd7f1c2bec960f694b952.zip |
Connect libclang_rt to the build, for specific architectures. This
contains the libraries for Address Sanitizer (asan), Undefined Behavior
Sanitizer (ubsan) and Profile Guided Optimization.
ASan is a fast memory error detector. It can detect the following types
of bugs:
Out-of-bounds accesses to heap, stack and globals
Use-after-free
Use-after-return (to some extent)
Double-free, invalid free
Memory leaks (experimental)
Typical slowdown introduced by AddressSanitizer is 2x.
UBSan is a fast and compatible undefined behavior checker. It enables a
number of undefined behavior checks that have small runtime cost and no
impact on address space layout or ABI.
PLEASE NOTE: the sanitizers still have some rough edges on FreeBSD,
particularly on i386. These will hopefully be smoothed out in the
coming time.
Differential Revision: https://reviews.freebsd.org/D1505
Notes
Notes:
svn path=/head/; revision=277146
Diffstat (limited to 'etc')
-rw-r--r-- | etc/mtree/BSD.debug.dist | 8 | ||||
-rw-r--r-- | etc/mtree/BSD.usr.dist | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/etc/mtree/BSD.debug.dist b/etc/mtree/BSD.debug.dist index 7797a4c4173d..62d33e6ed091 100644 --- a/etc/mtree/BSD.debug.dist +++ b/etc/mtree/BSD.debug.dist @@ -24,6 +24,14 @@ games .. lib + clang + 3.5.0 + lib + freebsd + .. + .. + .. + .. engines .. i18n diff --git a/etc/mtree/BSD.usr.dist b/etc/mtree/BSD.usr.dist index 57509847bf22..022db7aa3f21 100644 --- a/etc/mtree/BSD.usr.dist +++ b/etc/mtree/BSD.usr.dist @@ -14,6 +14,14 @@ lib aout .. + clang + 3.5.0 + lib + freebsd + .. + .. + .. + .. compat aout .. |