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

Commit c5da1a08 authored by Nick Kralevich's avatar Nick Kralevich Committed by Android Git Automerger
Browse files

am 60e3a5ac: Merge "enable PIE for dynamically linked executables"

* commit '60e3a5ac':
  enable PIE for dynamically linked executables
parents 0f7a8bad 60e3a5ac
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -102,7 +102,7 @@ android_config_h := $(call select-android-config-h,linux-arm)
arch_include_dir := $(dir $(android_config_h))

TARGET_GLOBAL_CFLAGS += \
			-msoft-float -fpic \
			-msoft-float -fpic -fPIE \
			-ffunction-sections \
			-fdata-sections \
			-funwind-tables \
@@ -266,7 +266,7 @@ $(hide) $(PRIVATE_CXX) \
endef

define transform-o-to-executable-inner
$(hide) $(PRIVATE_CXX) -nostdlib -Bdynamic -Wl,-T,$(BUILD_SYSTEM)/armelf.x \
$(hide) $(PRIVATE_CXX) -nostdlib -Bdynamic -fPIE -pie \
	-Wl,-dynamic-linker,/system/bin/linker \
    -Wl,--gc-sections \
	-Wl,-z,nocopyreloc \