Merge "[MIPS] Makes a build system use PIE flag"

This commit is contained in:
Nick Kralevich
2012-10-04 16:07:46 -07:00
committed by Gerrit Code Review

View File

@@ -84,7 +84,7 @@ arch_include_dir := $(dir $(android_config_h))
TARGET_GLOBAL_CFLAGS += \ TARGET_GLOBAL_CFLAGS += \
$(TARGET_mips_CFLAGS) \ $(TARGET_mips_CFLAGS) \
-Ulinux -U__unix -U__unix__ -Umips \ -Ulinux -U__unix -U__unix__ -Umips \
-fpic \ -fpic -fPIE\
-ffunction-sections \ -ffunction-sections \
-fdata-sections \ -fdata-sections \
-funwind-tables \ -funwind-tables \
@@ -244,7 +244,7 @@ $(hide) $(PRIVATE_CXX) \
endef endef
define transform-o-to-executable-inner define transform-o-to-executable-inner
$(hide) $(PRIVATE_CXX) -nostdlib -Bdynamic \ $(hide) $(PRIVATE_CXX) -nostdlib -Bdynamic -fPIE -pie \
-Wl,-dynamic-linker,/system/bin/linker \ -Wl,-dynamic-linker,/system/bin/linker \
-Wl,--gc-sections \ -Wl,--gc-sections \
-Wl,-z,nocopyreloc \ -Wl,-z,nocopyreloc \