Commit 5bd8743f authored by Edward Z. Yang's avatar Edward Z. Yang

Add test to check stack is not executable, to prevent #703 regressions.

Signed-off-by: Edward Z. Yang's avatarEdward Z. Yang <ezyang@mit.edu>
parent 504c0af3
......@@ -544,3 +544,9 @@ T6037:
T2507:
-LC_ALL=C "$(TEST_HC)" $(TEST_HC_OPTS_NO_RECOMP) -c T2507.hs
.PHONY: T703
T703:
$(RM) -rf T703
[ ! -d T703 ]
"$(TEST_HC)" $(TEST_HC_OPTS) --make T703.hs -v0
! readelf -W -l T703 2>/dev/null | grep 'GNU_STACK' | grep -q 'RWE'
......@@ -377,3 +377,4 @@ test('T2507',
run_command,
['$MAKE -s --no-print-directory T2507'])
test('T702', normal, run_command, ['$MAKE -s --no-print-directory T703'])
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