Merge "enable PIE for dynamically linked Linux host executables"
diff --git a/core/definitions.mk b/core/definitions.mk
index e1eb9f1..4e1a25d 100644
--- a/core/definitions.mk
+++ b/core/definitions.mk
@@ -1368,6 +1368,7 @@
 	$(PRIVATE_LDFLAGS) \
 	$(if $(PRIVATE_NO_DEFAULT_COMPILER_FLAGS),, \
 		$(HOST_GLOBAL_LDFLAGS) \
+		-fPIE -pie \
 	) \
 	-o $@ \
 	$(PRIVATE_LDLIBS)