OSDN Git Service

Enable stack-protector for x86
authorAndrew Hsieh <andrewhsieh@google.com>
Wed, 29 Aug 2012 07:13:23 +0000 (15:13 +0800)
committerAndrew Hsieh <andrewhsieh@google.com>
Wed, 29 Aug 2012 07:13:23 +0000 (15:13 +0800)
Change-Id: I7a169075ca49ab831c37625d416c1d4b026bfec3

core/combo/TARGET_linux-x86.mk

index f12ad3e..9a6e08e 100644 (file)
@@ -94,6 +94,7 @@ TARGET_GLOBAL_CFLAGS += \
                        -fstrict-aliasing \
                        -funswitch-loops \
                        -funwind-tables \
+                       -fstack-protector \
                        -include $(call select-android-config-h,target_linux-x86)
 
 # XXX: Not sure this is still needed. Must check with our toolchains.