diff options
author | Dan McGregor <dan.mcgregor@usask.ca> | 2014-12-10 20:14:03 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-23 11:36:29 +0000 |
commit | 166015c809889ad66f1359520206ef3e52a81135 (patch) | |
tree | 3fd45cff4a594988c85030706d417d26691a83d2 /meta/conf/distro/include | |
parent | 5b985fd364c44d7067a7b63f119ec7ad04dcec33 (diff) | |
download | poky-166015c809889ad66f1359520206ef3e52a81135.tar.gz |
gcc-sanitizers: Enable GCC sanitizers
AddressSanitizer is a fast memory error detector.
ThreadSanitizer detects data races.
UBSanitizer detectes undefined behaviour.
All consist of compiler instrumentation and a run-time library.
The compiler instrumentation was already enabled, this builds
the run-time library component.
(From OE-Core rev: 1709bf0c3a84bb04bc52e9104ad8e09fba6c6f91)
Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/distro/include')
-rw-r--r-- | meta/conf/distro/include/security_flags.inc | 1 | ||||
-rw-r--r-- | meta/conf/distro/include/tcmode-default.inc | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/meta/conf/distro/include/security_flags.inc b/meta/conf/distro/include/security_flags.inc index d6f7e9c8cc..f996184b25 100644 --- a/meta/conf/distro/include/security_flags.inc +++ b/meta/conf/distro/include/security_flags.inc | |||
@@ -29,6 +29,7 @@ SECURITY_CFLAGS_pn-glibc-initial = "" | |||
29 | SECURITY_CFLAGS_pn-enchant = "${SECURITY_NO_PIE_CFLAGS}" | 29 | SECURITY_CFLAGS_pn-enchant = "${SECURITY_NO_PIE_CFLAGS}" |
30 | SECURITY_CFLAGS_pn-flac = "${SECURITY_NO_PIE_CFLAGS}" | 30 | SECURITY_CFLAGS_pn-flac = "${SECURITY_NO_PIE_CFLAGS}" |
31 | SECURITY_CFLAGS_pn-gcc-runtime = "${SECURITY_NO_PIE_CFLAGS}" | 31 | SECURITY_CFLAGS_pn-gcc-runtime = "${SECURITY_NO_PIE_CFLAGS}" |
32 | SECURITY_CFLAGS_pn-gcc-sanitizers = "${SECURITY_NO_PIE_CFLAGS}" | ||
32 | SECURITY_CFLAGS_pn-gdb = "${SECURITY_NO_PIE_CFLAGS}" | 33 | SECURITY_CFLAGS_pn-gdb = "${SECURITY_NO_PIE_CFLAGS}" |
33 | SECURITY_CFLAGS_pn-gmp = "${SECURITY_NO_PIE_CFLAGS}" | 34 | SECURITY_CFLAGS_pn-gmp = "${SECURITY_NO_PIE_CFLAGS}" |
34 | SECURITY_CFLAGS_pn-gnutls = "${SECURITY_NO_PIE_CFLAGS}" | 35 | SECURITY_CFLAGS_pn-gnutls = "${SECURITY_NO_PIE_CFLAGS}" |
diff --git a/meta/conf/distro/include/tcmode-default.inc b/meta/conf/distro/include/tcmode-default.inc index 2b4109053b..b4c3c70823 100644 --- a/meta/conf/distro/include/tcmode-default.inc +++ b/meta/conf/distro/include/tcmode-default.inc | |||
@@ -36,8 +36,10 @@ PREFERRED_VERSION_gcc-crosssdk-${SDK_ARCH} ?= "${SDKGCCVERSION}" | |||
36 | PREFERRED_VERSION_gcc-crosssdk-initial-${SDK_ARCH} ?= "${SDKGCCVERSION}" | 36 | PREFERRED_VERSION_gcc-crosssdk-initial-${SDK_ARCH} ?= "${SDKGCCVERSION}" |
37 | PREFERRED_VERSION_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "${GCCVERSION}" | 37 | PREFERRED_VERSION_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "${GCCVERSION}" |
38 | PREFERRED_VERSION_gcc-runtime ?= "${GCCVERSION}" | 38 | PREFERRED_VERSION_gcc-runtime ?= "${GCCVERSION}" |
39 | PREFERRED_VERSION_gcc-sanitizers ?= "${GCCVERSION}" | ||
39 | PREFERRED_VERSION_gcc-source ?= "${GCCVERSION}" | 40 | PREFERRED_VERSION_gcc-source ?= "${GCCVERSION}" |
40 | PREFERRED_VERSION_nativesdk-gcc-runtime ?= "${SDKGCCVERSION}" | 41 | PREFERRED_VERSION_nativesdk-gcc-runtime ?= "${SDKGCCVERSION}" |
42 | PREFERRED_VERSION_nativesdk-gcc-sanitizers ?= "${GCCVERSION}" | ||
41 | PREFERRED_VERSION_libgcc ?= "${GCCVERSION}" | 43 | PREFERRED_VERSION_libgcc ?= "${GCCVERSION}" |
42 | PREFERRED_VERSION_libgcc-initial ?= "${GCCVERSION}" | 44 | PREFERRED_VERSION_libgcc-initial ?= "${GCCVERSION}" |
43 | PREFERRED_VERSION_nativesdk-libgcc ?= "${SDKGCCVERSION}" | 45 | PREFERRED_VERSION_nativesdk-libgcc ?= "${SDKGCCVERSION}" |