From 803cf5d16c7bc7baee9499251599f52958fc121e Mon Sep 17 00:00:00 2001 From: Seonah Moon Date: Wed, 9 Aug 2017 17:19:56 +0900 Subject: [PATCH] Apply ASLR to curl command tool Change-Id: Iffcece4c6629c0521545a1e841fe1858687befad Signed-off-by: Seonah Moon --- src/Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index 19bab68..fb97da2 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -57,7 +57,9 @@ include Makefile.inc curl_SOURCES = $(CURL_FILES) # This might hold -Werror -CFLAGS += @CURL_CFLAG_EXTRAS@ +# Enable Position Independent Executable flag +CFLAGS += @CURL_CFLAG_EXTRAS@ -fPIE +LDFLAGS += -pie # Prevent LIBS from being used for all link targets LIBS = $(BLANK_AT_MAKETIME) -- 2.7.4