Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1e4df72 authored by Miroslav Ignjatovic's avatar Miroslav Ignjatovic Committed by Raghu Gandham
Browse files

[MIPS] Makes a build system use PIE flag

Change-Id: I07be4e8ae559dca615b0c59a71d7363adab4f49b
parent 7e300d60
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 \