mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-09 01:29:52 +00:00
b64d0b1e6d
This patch adds runtime support for the Safe Stack protection to compiler-rt (see http://reviews.llvm.org/D6094 for the detailed description of the Safe Stack). This patch is our implementation of the safe stack on top of compiler-rt. The patch adds basic runtime support for the safe stack to compiler-rt that manages unsafe stack allocation/deallocation for each thread. Original patch by Volodymyr Kuznetsov and others at the Dependable Systems Lab at EPFL; updates and upstreaming by myself. Differential Revision: http://reviews.llvm.org/D6096 llvm-svn: 239763
13 lines
180 B
C
13 lines
180 B
C
// REQUIRES: lto
|
|
|
|
// RUN: %clang_lto_safestack %s -o %t
|
|
// RUN: %run %t
|
|
|
|
// Test that safe stack works with LTO.
|
|
|
|
int main() {
|
|
char c[] = "hello world";
|
|
puts(c);
|
|
return 0;
|
|
}
|