Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 4d1d0c6

Browse files
committed
skeleton check module level assembly
1 parent bca8e07 commit 4d1d0c6

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Test LVI load hardening on SGX module level assembly code
2+
3+
// assembly-output: emit-asm
4+
// compile-flags: --crate-type staticlib
5+
// only-x86_64-fortanix-unknown-sgx
6+
7+
#![feature(global_asm)]
8+
9+
global_asm!(".start_module_asm:
10+
movq (%rdi), %rax
11+
retq
12+
.end_module_asm:" );
13+
14+
// CHECK: .start_module_asm
15+
// TODO add check, when module-level pass is corrected
16+
// CHECK: .end_module_asm

0 commit comments

Comments
 (0)