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:
commit
f3b02739a7
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue