Evgeniy Stepanov
f17120a85f
[safestack] Add canary to unsafe stack frames
...
Add StackProtector to SafeStack. This adds limited protection against
data corruption in the caller frame. Current implementation treats
all stack protector levels as -fstack-protector-all.
llvm-svn: 266004
2016-04-11 22:27:48 +00:00
Anna Zaks
cad7994c3b
[safestack] Make sure the unsafe stack pointer is popped in all cases
...
The unsafe stack pointer is only popped in moveStaticAllocasToUnsafeStack so it won't happen if there are no static allocas.
Fixes https://llvm.org/bugs/show_bug.cgi?id=26122
Differential Revision: http://reviews.llvm.org/D16339
llvm-svn: 259447
2016-02-02 01:03:11 +00:00
Benjamin Kramer
390c33cd18
Move SafeStack to CodeGen.
...
It depends on the target machinery, that's not available for
instrumentation passes.
llvm-svn: 258942
2016-01-27 16:53:42 +00:00