summaryrefslogtreecommitdiffstats
path: root/platforms
diff options
context:
space:
mode:
Diffstat (limited to 'platforms')
-rw-r--r--platforms/toolchain_hardening.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/platforms/toolchain_hardening.in b/platforms/toolchain_hardening.in
index 0864c6564..b86404283 100644
--- a/platforms/toolchain_hardening.in
+++ b/platforms/toolchain_hardening.in
@@ -73,5 +73,12 @@ config TARGET_HARDEN_PIE
Space Layout randomization.
http://en.wikipedia.org/wiki/ASLR
+config TARGET_HARDEN_GLIBCXX_ASSERTIONS
+ bool
+ prompt "Build with '-D_GLIBCXX_ASSERTIONS'"
+ help
+ Enables extra error checking in the form of precondition
+ assertions, such as bounds checking in strings and null pointer
+ checks when dereferencing smart pointers (libstdc++).
endmenu