diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-09-23 18:07:56 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2015-09-23 18:07:56 +0000 |
commit | a2002b08f7bd0e165a14a91322acf917bb6c52ea (patch) | |
tree | 4c769bbd2e49b5618af12131e59539102908680a /llvm/lib/CodeGen/Passes.cpp | |
parent | b14ecd34f73d8d5414dd6705d0d365eb873889ab (diff) | |
download | bcm5719-llvm-a2002b08f7bd0e165a14a91322acf917bb6c52ea.tar.gz bcm5719-llvm-a2002b08f7bd0e165a14a91322acf917bb6c52ea.zip |
Android support for SafeStack.
Add two new ways of accessing the unsafe stack pointer:
* At a fixed offset from the thread TLS base. This is very similar to
StackProtector cookies, but we plan to extend it to other backends
(ARM in particular) soon. Bionic-side implementation here:
https://android-review.googlesource.com/170988.
* Via a function call, as a fallback for platforms that provide
neither a fixed TLS slot, nor a reasonable TLS implementation (i.e.
not emutls).
This is a re-commit of a change in r248357 that was reverted in
r248358.
llvm-svn: 248405
Diffstat (limited to 'llvm/lib/CodeGen/Passes.cpp')
-rw-r--r-- | llvm/lib/CodeGen/Passes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/Passes.cpp b/llvm/lib/CodeGen/Passes.cpp index 7ea7b6e45ce..114c9d11be8 100644 --- a/llvm/lib/CodeGen/Passes.cpp +++ b/llvm/lib/CodeGen/Passes.cpp @@ -466,7 +466,7 @@ void TargetPassConfig::addISelPrepare() { // Add both the safe stack and the stack protection passes: each of them will // only protect functions that have corresponding attributes. - addPass(createSafeStackPass()); + addPass(createSafeStackPass(TM)); addPass(createStackProtectorPass(TM)); if (PrintISelInput) |