mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-09 17:43:57 +00:00
[safestack] Fix stack canary test on Mac.
Disable FORTIFY_SOURCE and explicitly disable stack protector in the no-stack-protector run. llvm-svn: 266106
This commit is contained in:
parent
ab1d3a9d50
commit
691ef096d0
@ -1,7 +1,7 @@
|
||||
// RUN: %clang_safestack -g %s -o %t.nossp
|
||||
// RUN: %clang_safestack -fno-stack-protector -D_FORTIFY_SOURCE=0 -g %s -o %t.nossp
|
||||
// RUN: %run %t.nossp 2>&1 | FileCheck --check-prefix=NOSSP %s
|
||||
|
||||
// RUN: %clang_safestack -fstack-protector-all -g %s -o %t.ssp
|
||||
// RUN: %clang_safestack -fstack-protector-all -D_FORTIFY_SOURCE=0 -g %s -o %t.ssp
|
||||
// RUN: not --crash %run %t.ssp 2>&1 | FileCheck -check-prefix=SSP %s
|
||||
|
||||
// Test stack canaries on the unsafe stack.
|
||||
|
Loading…
Reference in New Issue
Block a user