From eb4f5ac4e7fedae6061a9615d41dd6c2c8779c92 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Tue, 13 Jun 2017 13:45:12 +0200 Subject: Linux: built VeraCrypt binary with support for Address Space Layout Randomization (ASLR). --- src/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Makefile b/src/Makefile index 1b71f27f..3b6c0867 100644 --- a/src/Makefile +++ b/src/Makefile @@ -189,15 +189,15 @@ ifeq "$(shell uname -s)" "Linux" endif ifeq "$(TC_BUILD_CONFIG)" "Release" - C_CXX_FLAGS += -fdata-sections -ffunction-sections - LFLAGS += -Wl,--gc-sections + C_CXX_FLAGS += -fdata-sections -ffunction-sections -fpie + LFLAGS += -Wl,--gc-sections -pie ifneq "$(shell ld --help 2>&1 | grep sysv | wc -l)" "0" LFLAGS += -Wl,--hash-style=sysv endif - WXCONFIG_CFLAGS += -fdata-sections -ffunction-sections - WXCONFIG_CXXFLAGS += -fdata-sections -ffunction-sections + WXCONFIG_CFLAGS += -fdata-sections -ffunction-sections -fpie + WXCONFIG_CXXFLAGS += -fdata-sections -ffunction-sections -fpie endif ifneq "$(origin WXSTATIC)" "command line" -- cgit v1.2.3