aboutsummaryrefslogtreecommitdiff
path: root/gcc/common.opt
diff options
context:
space:
mode:
authorYury Gribov <y.gribov@samsung.com>2015-04-17 07:51:02 +0000
committerYury Gribov <ygribov@gcc.gnu.org>2015-04-17 07:51:02 +0000
commit18af8d16cf71b75081f20184d34206ff4ebce025 (patch)
tree09b053c21952ec3a007be7fb313cc8b3d5295944 /gcc/common.opt
parentd7cb230a931ffc5e4356bbffdb05998162df900c (diff)
downloadgcc-18af8d16cf71b75081f20184d34206ff4ebce025.zip
gcc-18af8d16cf71b75081f20184d34206ff4ebce025.tar.gz
gcc-18af8d16cf71b75081f20184d34206ff4ebce025.tar.bz2
asan.c (set_sanitized_sections): New function.
2015-04-17 Yury Gribov <y.gribov@samsung.com> gcc/ * asan.c (set_sanitized_sections): New function. (section_sanitized_p): Ditto. (asan_protect_global): Optionally sanitize user-defined sections. * asan.h (set_sanitized_sections): Declare new function. * common.opt (fsanitize-sections): New option. * doc/invoke.texi (-fsanitize-sections): Document new option. * opts-global.c (handle_common_deferred_options): Handle new option. gcc/testsuite/ * c-c++-common/asan/user-section-1.c: New test. From-SVN: r222168
Diffstat (limited to 'gcc/common.opt')
-rw-r--r--gcc/common.opt5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt
index b49ac46..380848c 100644
--- a/gcc/common.opt
+++ b/gcc/common.opt
@@ -897,6 +897,11 @@ fasan-shadow-offset=
Common Joined RejectNegative Var(common_deferred_options) Defer
-fasan-shadow-offset=<number> Use custom shadow memory offset.
+fsanitize-sections=
+Common Joined RejectNegative Var(common_deferred_options) Defer
+-fsanitize-sections=<sec1,sec2,...> Sanitize global variables
+in user-defined sections.
+
fsanitize-recover=
Common Report Joined
After diagnosing undefined behavior attempt to continue execution