Skip to content

Commit 691ef09

Browse files
committed
[safestack] Fix stack canary test on Mac.
Disable FORTIFY_SOURCE and explicitly disable stack protector in the no-stack-protector run. llvm-svn: 266106
1 parent ab1d3a9 commit 691ef09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/test/safestack/canary.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// RUN: %clang_safestack -g %s -o %t.nossp
1+
// RUN: %clang_safestack -fno-stack-protector -D_FORTIFY_SOURCE=0 -g %s -o %t.nossp
22
// RUN: %run %t.nossp 2>&1 | FileCheck --check-prefix=NOSSP %s
33

4-
// RUN: %clang_safestack -fstack-protector-all -g %s -o %t.ssp
4+
// RUN: %clang_safestack -fstack-protector-all -D_FORTIFY_SOURCE=0 -g %s -o %t.ssp
55
// RUN: not --crash %run %t.ssp 2>&1 | FileCheck -check-prefix=SSP %s
66

77
// Test stack canaries on the unsafe stack.

0 commit comments

Comments
 (0)