am 7653519f: Merge "[MIPS] Makes a build system use PIE flag"

* commit '7653519f4e9efaaef906d2e5d3b109909b6d45c7':
  [MIPS] Makes a build system use PIE flag
This commit is contained in:
Nick Kralevich 2012-10-04 17:12:46 -07:00 committed by Android Git Automerger
commit f3b02739a7
1 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ arch_include_dir := $(dir $(android_config_h))
TARGET_GLOBAL_CFLAGS += \
$(TARGET_mips_CFLAGS) \
-Ulinux -U__unix -U__unix__ -Umips \
-fpic \
-fpic -fPIE\
-ffunction-sections \
-fdata-sections \
-funwind-tables \
@ -244,7 +244,7 @@ $(hide) $(PRIVATE_CXX) \
endef
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,--gc-sections \
-Wl,-z,nocopyreloc \