[safestack] Add option for non-TLS unsafe stack pointer.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Tue, 22 Dec 2015 00:13:11 +0000 (00:13 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Tue, 22 Dec 2015 00:13:11 +0000 (00:13 +0000)
commit776f33aede0eeb72764d19ff1c9b3c65e42c6efa
treec4076875333f1b1c5395e65d9ee434971981a2b2
parentceb49e0185080711a45510fe5c3aca7ed8aa1f34
[safestack] Add option for non-TLS unsafe stack pointer.

This patch adds an option, -safe-stack-no-tls, for using normal
storage instead of thread-local storage for the unsafe stack pointer.
This can be useful when SafeStack is applied to an operating system
kernel.

http://reviews.llvm.org/D15673

Patch by Michael LeMay.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256221 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Instrumentation/SafeStack.cpp
test/Transforms/SafeStack/array.ll