Skip to content

Commit

Permalink
disable execstack for kernelflinger
Browse files Browse the repository at this point in the history
Add flag: -Wa,--noexecstack

Change-Id: I6cd2c588a631c60036516180aae12b7f87486b46
Tracked-On: OAM-88872
Signed-off-by: JianFeng,Zhou <[email protected]>
  • Loading branch information
zhouji3x authored and sysopenci committed Dec 30, 2019
1 parent 53974a5 commit ff4b283
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/definitions.mk
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ TARGET_IAFW_GLOBAL_CFLAGS := -ggdb -O3 -fstack-protector-strong \
-Wno-unused-function \
-Wno-tautological-pointer-compare \
-Wformat -Wformat-security \
-D_FORTIFY_SOURCE=2
-D_FORTIFY_SOURCE=2 \
-Wa,--noexecstack

TARGET_IAFW_GLOBAL_LDFLAGS := -nostdlib --no-undefined \
--fatal-warnings -Bsymbolic -znocombreloc -znoexecstack -zrelro -znow
Expand Down

0 comments on commit ff4b283

Please sign in to comment.