x86: enable FORTIFY_SOURCE

Enable FORTIFY_SOURCE for Android x86.  This adds certain security
protections to Android programs, checking for common programming
mistakes and buffer overflows.

FORTIFY_SOURCE protections have been enabled for ARM since
a46c480e43 (Jun 4th 2012)

Change-Id: Idae6f93d37ddae605088867cd3029f12632456e1
This commit is contained in:
Nick Kralevich
2012-12-07 17:20:28 -08:00
parent f8b804f8c5
commit 40febcad47

View File

@@ -84,6 +84,7 @@ TARGET_GLOBAL_CFLAGS += \
-Ulinux \
-Wa,--noexecstack \
-Werror=format-security \
-D_FORTIFY_SOURCE=1 \
-Wstrict-aliasing=2 \
-fPIC -fPIE \
-ffunction-sections \