1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 11:08:02 -06:00
Mounir IDRASSI
2024-07-05 10:36:04 +02:00
parent d7e442258a
commit 1ba6865ea1

View File

@@ -219,6 +219,12 @@ ifeq "$(shell uname -s)" "Linux"
CXXFLAGS += -std=gnu++14 CXXFLAGS += -std=gnu++14
endif endif
# Linked in GCC versions below 6 was setting large value for MAXPAGESIZE which is not good for ASLR security
# So, we need to manually add the linker flag "-z max-page-size=4096" to set the maximum page size to 4KB
# in order to improve ASLR security. Starting from GCC 6, the default value of MAXPAGESIZE is 4KB.
ifeq ($(shell expr $(GCC_VERSION) \< 600), 1)
LFLAGS += -Wl,-z,max-page-size=4096
endif
ifeq "$(SIMD_SUPPORTED)" "1" ifeq "$(SIMD_SUPPORTED)" "1"
CFLAGS += -msse2 CFLAGS += -msse2