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:
@@ -84,6 +84,7 @@ TARGET_GLOBAL_CFLAGS += \
|
|||||||
-Ulinux \
|
-Ulinux \
|
||||||
-Wa,--noexecstack \
|
-Wa,--noexecstack \
|
||||||
-Werror=format-security \
|
-Werror=format-security \
|
||||||
|
-D_FORTIFY_SOURCE=1 \
|
||||||
-Wstrict-aliasing=2 \
|
-Wstrict-aliasing=2 \
|
||||||
-fPIC -fPIE \
|
-fPIC -fPIE \
|
||||||
-ffunction-sections \
|
-ffunction-sections \
|
||||||
|
Reference in New Issue
Block a user