summaryrefslogtreecommitdiffstats
path: root/meta/conf/distro/include
diff options
context:
space:
mode:
authorDan McGregor <dan.mcgregor@usask.ca>2014-12-10 20:14:03 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-01-23 11:36:29 +0000
commit166015c809889ad66f1359520206ef3e52a81135 (patch)
tree3fd45cff4a594988c85030706d417d26691a83d2 /meta/conf/distro/include
parent5b985fd364c44d7067a7b63f119ec7ad04dcec33 (diff)
downloadpoky-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.inc1
-rw-r--r--meta/conf/distro/include/tcmode-default.inc2
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 = ""
29SECURITY_CFLAGS_pn-enchant = "${SECURITY_NO_PIE_CFLAGS}" 29SECURITY_CFLAGS_pn-enchant = "${SECURITY_NO_PIE_CFLAGS}"
30SECURITY_CFLAGS_pn-flac = "${SECURITY_NO_PIE_CFLAGS}" 30SECURITY_CFLAGS_pn-flac = "${SECURITY_NO_PIE_CFLAGS}"
31SECURITY_CFLAGS_pn-gcc-runtime = "${SECURITY_NO_PIE_CFLAGS}" 31SECURITY_CFLAGS_pn-gcc-runtime = "${SECURITY_NO_PIE_CFLAGS}"
32SECURITY_CFLAGS_pn-gcc-sanitizers = "${SECURITY_NO_PIE_CFLAGS}"
32SECURITY_CFLAGS_pn-gdb = "${SECURITY_NO_PIE_CFLAGS}" 33SECURITY_CFLAGS_pn-gdb = "${SECURITY_NO_PIE_CFLAGS}"
33SECURITY_CFLAGS_pn-gmp = "${SECURITY_NO_PIE_CFLAGS}" 34SECURITY_CFLAGS_pn-gmp = "${SECURITY_NO_PIE_CFLAGS}"
34SECURITY_CFLAGS_pn-gnutls = "${SECURITY_NO_PIE_CFLAGS}" 35SECURITY_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}"
36PREFERRED_VERSION_gcc-crosssdk-initial-${SDK_ARCH} ?= "${SDKGCCVERSION}" 36PREFERRED_VERSION_gcc-crosssdk-initial-${SDK_ARCH} ?= "${SDKGCCVERSION}"
37PREFERRED_VERSION_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "${GCCVERSION}" 37PREFERRED_VERSION_gcc-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "${GCCVERSION}"
38PREFERRED_VERSION_gcc-runtime ?= "${GCCVERSION}" 38PREFERRED_VERSION_gcc-runtime ?= "${GCCVERSION}"
39PREFERRED_VERSION_gcc-sanitizers ?= "${GCCVERSION}"
39PREFERRED_VERSION_gcc-source ?= "${GCCVERSION}" 40PREFERRED_VERSION_gcc-source ?= "${GCCVERSION}"
40PREFERRED_VERSION_nativesdk-gcc-runtime ?= "${SDKGCCVERSION}" 41PREFERRED_VERSION_nativesdk-gcc-runtime ?= "${SDKGCCVERSION}"
42PREFERRED_VERSION_nativesdk-gcc-sanitizers ?= "${GCCVERSION}"
41PREFERRED_VERSION_libgcc ?= "${GCCVERSION}" 43PREFERRED_VERSION_libgcc ?= "${GCCVERSION}"
42PREFERRED_VERSION_libgcc-initial ?= "${GCCVERSION}" 44PREFERRED_VERSION_libgcc-initial ?= "${GCCVERSION}"
43PREFERRED_VERSION_nativesdk-libgcc ?= "${SDKGCCVERSION}" 45PREFERRED_VERSION_nativesdk-libgcc ?= "${SDKGCCVERSION}"