diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-04-03 16:08:03 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-04-05 16:29:40 +0200 |
commit | 9b5b5b8e3c3233fa2a0ebc1567ceb84352b06a53 (patch) | |
tree | 866a1289f906394138db3993b6ce1f65c41ec934 /platforms | |
parent | 5ad267e51bfb9cfb6cd72048d960bb09a7d8b588 (diff) | |
download | ptxdist-9b5b5b8e3c3233fa2a0ebc1567ceb84352b06a53.tar.gz ptxdist-9b5b5b8e3c3233fa2a0ebc1567ceb84352b06a53.tar.xz |
hardening: add option for -D_GLIBCXX_ASSERTIONS
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'platforms')
-rw-r--r-- | platforms/toolchain_hardening.in | 7 |
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 |