generic ret hardening test
This commit is contained in:
parent
c113030f6b
commit
a13239dac2
1 changed files with 13 additions and 0 deletions
|
|
@ -0,0 +1,13 @@
|
|||
// Test LVI ret hardening on generic rust code
|
||||
|
||||
// assembly-output: emit-asm
|
||||
// compile-flags: --crate-type staticlib
|
||||
// only-x86_64-fortanix-unknown-sgx
|
||||
|
||||
#[no_mangle]
|
||||
pub extern fn myret() {}
|
||||
// CHECK: myret:
|
||||
// CHECK: popq [[REGISTER:%[a-z]+]]
|
||||
// CHECK-NEXT: lfence
|
||||
// CHECK-NEXT: jmpq *[[REGISTER]]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue