aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.7/gcc/config/i386/i386.opt
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2012-10-31 21:02:46 -0700
committerAndrew Hsieh <andrewhsieh@google.com>2012-11-01 15:47:39 -0700
commit56ee0e6d36e35bbd4a1cda777359dcb7eaadb232 (patch)
treea9d6d744a3f8059b59d1b13d55779ea25ac8789d /gcc-4.7/gcc/config/i386/i386.opt
parentefb5994e8cb17f9b2347baff9d731af0338e5d5e (diff)
downloadtoolchain_gcc-56ee0e6d36e35bbd4a1cda777359dcb7eaadb232.tar.gz
toolchain_gcc-56ee0e6d36e35bbd4a1cda777359dcb7eaadb232.tar.bz2
toolchain_gcc-56ee0e6d36e35bbd4a1cda777359dcb7eaadb232.zip
Add -mstack-protector-guard= to x86 compilers
To choose between "global" (default) and "tls" (new) for -fstack-protector, -fstack-protector-all, and -fstack-protector-strong (GCC 4.6+). Note that this alone doesn't enable any -fstack-protector* For NDK: The default "global" generates code backward compatible with older bionic For AOSP: build may add "-mstack-protector-guard=tls" to build platform code with new bionic (*1) Related CL: https://android-review.googlesource.com/#/c/45416 (*1) https://android-review.googlesource.com/#/c/45784 Change-Id: Iedf5b7ae5148572db2e35f0add93bc3d13511304
Diffstat (limited to 'gcc-4.7/gcc/config/i386/i386.opt')
-rw-r--r--gcc-4.7/gcc/config/i386/i386.opt15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc-4.7/gcc/config/i386/i386.opt b/gcc-4.7/gcc/config/i386/i386.opt
index 4008fd0fe..492490f14 100644
--- a/gcc-4.7/gcc/config/i386/i386.opt
+++ b/gcc-4.7/gcc/config/i386/i386.opt
@@ -581,3 +581,18 @@ Split 32-byte AVX unaligned load
mavx256-split-unaligned-store
Target Report Mask(AVX256_SPLIT_UNALIGNED_STORE) Save
Split 32-byte AVX unaligned store
+
+mstack-protector-guard=
+Target RejectNegative Joined Enum(stack_protector_guard) Var(ix86_stack_protector_guard) Init(SSP_TLS)
+Use given stack-protector guard
+
+Enum
+Name(stack_protector_guard) Type(enum stack_protector_guard)
+Known stack protector guard (for use with the -mstack-protector-guard= option):
+
+EnumValue
+Enum(stack_protector_guard) String(tls) Value(SSP_TLS)
+
+EnumValue
+Enum(stack_protector_guard) String(global) Value(SSP_GLOBAL)
+