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

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

View File

@ -81,7 +81,7 @@ endif
TARGET_GLOBAL_CFLAGS += \
$(TARGET_mips_CFLAGS) \
-Ulinux -U__unix -U__unix__ -Umips \
-fpic \
-fpic -fPIE\
-ffunction-sections \
-fdata-sections \
-funwind-tables \
@ -243,7 +243,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 \