diff options
| author | Vlad Tsyrklevich <vlad@tsyrklevich.net> | 2018-04-04 01:21:16 +0000 |
|---|---|---|
| committer | Vlad Tsyrklevich <vlad@tsyrklevich.net> | 2018-04-04 01:21:16 +0000 |
| commit | e3446017ed82fe7f3158c892d65eb4ded24bafe8 (patch) | |
| tree | 016ff644f00c309fca88de87a2a325ab9a41d7c1 /llvm/test/CodeGen/X86/O3-pipeline.ll | |
| parent | 086b1c8118430cd19f04e903df8ebcc00f6d924f (diff) | |
| download | bcm5719-llvm-e3446017ed82fe7f3158c892d65eb4ded24bafe8.tar.gz bcm5719-llvm-e3446017ed82fe7f3158c892d65eb4ded24bafe8.zip | |
Add the ShadowCallStack pass
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
Diffstat (limited to 'llvm/test/CodeGen/X86/O3-pipeline.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/O3-pipeline.ll | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/O3-pipeline.ll b/llvm/test/CodeGen/X86/O3-pipeline.ll index 8ad2c6ad117..42e5f391938 100644 --- a/llvm/test/CodeGen/X86/O3-pipeline.ll +++ b/llvm/test/CodeGen/X86/O3-pipeline.ll @@ -142,6 +142,7 @@ ; CHECK-NEXT: ReachingDefAnalysis ; CHECK-NEXT: X86 Execution Dependency Fix ; CHECK-NEXT: BreakFalseDeps +; CHECK-NEXT: Shadow Call Stack ; CHECK-NEXT: X86 Indirect Branch Tracking ; CHECK-NEXT: X86 vzeroupper inserter ; CHECK-NEXT: MachineDominator Tree Construction |

