platform_build/core/combo
Nick Kralevich 100acd1001 host compiler: enable compiler hardening flags
Enable the following compiler hardening flags:

* -Wl,-z,relro
* -Wl,-z,now
* -fstack-protector

relro / bind_now make the relro region read-only after linking,
preventing certain attacks against ELF data structures.

stack-protector adds stack canaries, which can detect exploits
which overwrite parts of the stack.

Explicitly not added in this change is FORTIFY_SOURCE=2. Adding that
option turns on glibc's warn_unused_result attributes. This generates
a huge number of new compile time warnings, and for the multiple
makefiles which have -Werror in them, turns those warnings into errors.
I'm not able to fix all the errors right away.

Bug: 20558757
Change-Id: I86791177c6695f5325233d9dd9a5dd3ccc2b1a2f
2015-04-24 21:26:08 -07:00
..
arch Don't use -Wl,--fix-cortex-a8 for Cortex A7, A9, A15, Krait or Denver 2015-03-25 17:21:02 +01:00
include/arch AndroidConfig.h: ensure HAVE_MALLOC_H always has a value. 2015-04-08 12:21:54 -07:00
fdo.mk Support "LOCAL_FDO_SUPPORT := always". 2015-03-13 11:36:15 -07:00
HOST_darwin-x86.mk Remove ancient ranlib workaround on Mac OS X. 2015-04-09 10:06:33 -07:00
HOST_darwin-x86_64.mk Remove ancient ranlib workaround on Mac OS X. 2015-04-09 10:06:33 -07:00
HOST_linux-x86.mk host compiler: enable compiler hardening flags 2015-04-24 21:26:08 -07:00
HOST_linux-x86_64.mk host compiler: enable compiler hardening flags 2015-04-24 21:26:08 -07:00
HOST_windows-x86.mk Merge "Add -DWIN32_LEAN_AND_MEAN build flag to get rid of winsock2.h warnings" into lmp-mr1-dev 2014-10-28 18:09:11 +00:00
HOST_windows-x86_64.mk Consistent use of USE_MINGW 2014-08-07 20:08:04 -07:00
javac.mk Remove Java 6 build support 2014-10-22 10:53:59 +01:00
mac_version.mk Fix building on modern versions of Xcode and OS X. 2014-11-10 14:42:30 +00:00
select.mk Remove unused variables from select.mk. 2014-11-10 20:47:49 -08:00
TARGET_linux-arm.mk Pack relocation tables for dynamic executables 2015-04-23 12:07:16 -07:00
TARGET_linux-arm64.mk Pack relocation tables for dynamic executables 2015-04-23 12:07:16 -07:00
TARGET_linux-mips.mk Pack relocations for mips 2015-04-24 12:20:02 -07:00
TARGET_linux-mips64.mk Pack relocations for mips64 2015-04-24 16:34:09 -07:00
TARGET_linux-x86.mk Pack relocations for x86 2015-04-24 10:34:59 -07:00
TARGET_linux-x86_64.mk Pack relocation tables for dynamic executables 2015-04-23 12:07:16 -07:00