Commit 63a10bbc authored by Erik de Castro Lopo's avatar Erik de Castro Lopo

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
Signed-off-by: Erik de Castro Lopo's avatarErik de Castro Lopo <>

Test Plan: validate on x86_64 and arm linux

Reviewers: ezyang, rwbarton, austin

Subscribers: bgamari, thomie

Differential Revision:

GHC Trac Issues: #10369
parent 4efa4213
......@@ -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 is done in FIND_LD m4 macro.
$3="$$3 -fuse-ld=gold"
$3="$$3 -fuse-ld=gold -Wl,-z,noexecstack"
$4="$$4 -z,noexecstack"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment