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