summaryrefslogtreecommitdiff
path: root/coreconf/Linux.mk
diff options
context:
space:
mode:
authorMartin Thomson <martin.thomson@gmail.com>2017-04-18 20:59:28 +1000
committerMartin Thomson <martin.thomson@gmail.com>2017-04-18 20:59:28 +1000
commit7216c47049a6a7c0e7e8163bffe38374a43e3f51 (patch)
tree2e94192095d731b58c5360e411c8bddcf48dcd04 /coreconf/Linux.mk
parent11b0f6253d3451860fb5b81ef5ab9840daaccce3 (diff)
downloadnss-hg-7216c47049a6a7c0e7e8163bffe38374a43e3f51.tar.gz
Bug 1357216 - Ensure that the stack is not executable, r=franziskus
Diffstat (limited to 'coreconf/Linux.mk')
-rw-r--r--coreconf/Linux.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreconf/Linux.mk b/coreconf/Linux.mk
index dde68c67c..bb9db413b 100644
--- a/coreconf/Linux.mk
+++ b/coreconf/Linux.mk
@@ -148,7 +148,7 @@ DSO_LDOPTS = -shared $(ARCHFLAG) -Wl,--gc-sections
# against the libsanitizer runtime built into the main executable.
ZDEFS_FLAG = -Wl,-z,defs
DSO_LDOPTS += $(if $(findstring 2.11.90.0.8,$(shell ld -v)),,$(ZDEFS_FLAG))
-LDFLAGS += $(ARCHFLAG)
+LDFLAGS += $(ARCHFLAG) -z noexecstack
# On Maemo, we need to use the -rpath-link flag for even the standard system
# library directories.