summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/ShadowCallStack.cpp
Commit message (Collapse)AuthorAgeFilesLines
* ShadowCallStack/x86_64: Ignore pseudo-machine instructionsVlad Tsyrklevich2018-04-101-1/+2
| | | | llvm-svn: 329656
* Fix bad #include path in r329139Vlad Tsyrklevich2018-04-041-1/+1
| | | | llvm-svn: 329140
* Add the ShadowCallStack passVlad Tsyrklevich2018-04-041-0/+325
Summary: The ShadowCallStack pass instruments functions marked with the shadowcallstack attribute. The instrumented prolog saves the return address to [gs:offset] where offset is stored and updated in [gs:0]. The instrumented epilog loads/updates the return address from [gs:0] and checks that it matches the return address on the stack before returning. Reviewers: pcc, vitalybuka Reviewed By: pcc Subscribers: cryptoad, eugenis, craig.topper, mgorny, llvm-commits, kcc Differential Revision: https://reviews.llvm.org/D44802 llvm-svn: 329139
OpenPOWER on IntegriCloud