aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEric B Munson <ebmunson@us.ibm.com>2010-03-27 16:49:36 +0000
committerEric B Munson <ebmunson@us.ibm.com>2010-03-30 06:48:42 +0100
commitd75b53309e2abd2f991acf4f272647491b59b952 (patch)
treee7b37f37b837be1a83a41a3788f353865ac6d4ca /Makefile
parent5b4b7cb2fbe2bafe681670a1188b48af2b37f6c2 (diff)
downloadlibhugetlbfs-d75b53309e2abd2f991acf4f272647491b59b952.tar.gz
Disable executable stacks for library and helpers V4
Currently the library and all the helpers are built with their stack mappings markes executable. This could be a security issue and shouldn't be allowed unless necessary. This patch disables executable stacks for the library and the helper programs. Signed-off-by: Eric B Munson <ebmunson@us.ibm.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 944ab0a..4d9ac6c 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ NODEPTARGETS=<version.h> <clean>
INSTALL = install
-LDFLAGS += --no-undefined-version -ldl
+LDFLAGS += -Wl,-z,noexecstack -ldl
CFLAGS ?= -O2 -g
CFLAGS += -Wall -fPIC
CPPFLAGS += -D__LIBHUGETLBFS__