summaryrefslogtreecommitdiff
path: root/aclocal.m4
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2015-05-01 20:33:03 +1000
committerErik de Castro Lopo <erikd@mega-nerd.com>2015-05-05 07:34:34 +1000
commit63a10bbc42492c58feb377d79e05a185e6efcd5a (patch)
tree3932a87d04735f2a573ebd248d2d89b87f8140cd /aclocal.m4
parent4efa421327cf127ebefde59b2eece693e37dc3c6 (diff)
downloadhaskell-63a10bbc42492c58feb377d79e05a185e6efcd5a.tar.gz
arm: Force non-executable stack (#10369)
Test `T703` was found to be failing on arm/linux. The solution was to add a linker flag to explicitly set the stack to non-executable. Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com> Test Plan: validate on x86_64 and arm linux Reviewers: ezyang, rwbarton, austin Subscribers: bgamari, thomie Differential Revision: https://phabricator.haskell.org/D875 GHC Trac Issues: #10369
Diffstat (limited to 'aclocal.m4')
-rw-r--r--aclocal.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/aclocal.m4 b/aclocal.m4
index d6352cf029..bb46fda21c 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -570,7 +570,8 @@ AC_DEFUN([FPTOOLS_SET_C_LD_FLAGS],
# On arm/linux, aarch64/linux, arm/android and aarch64/android, tell
# gcc to link using the gold linker.
# Forcing LD to be ld.gold is done in FIND_LD m4 macro.
- $3="$$3 -fuse-ld=gold"
+ $3="$$3 -fuse-ld=gold -Wl,-z,noexecstack"
+ $4="$$4 -z,noexecstack"
;;
esac