diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-06-22 07:37:42 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-22 07:37:42 +0900 |
| commit | d6e344d45d751c449fa59542a2aa1dc1f2c6a6e6 (patch) | |
| tree | 82c7ab0c0d9600804c5c1569d98ea6a5f0d02811 /library/std/src/sys | |
| parent | 406d4a9cc3b9601cf98a07c6c83e0227d64f5d48 (diff) | |
| parent | 5bbf8cf331f9c6140117bb6c2ac385d2e451d26e (diff) | |
| download | rust-d6e344d45d751c449fa59542a2aa1dc1f2c6a6e6.tar.gz rust-d6e344d45d751c449fa59542a2aa1dc1f2c6a6e6.zip | |
Rollup merge of #85054 - jethrogb:jb/sgx-inline-asm, r=Amanieu
Revert SGX inline asm syntax This was erroneously changed in #83387
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/sgx/abi/mem.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/sgx/abi/mem.rs b/library/std/src/sys/sgx/abi/mem.rs index 1e743894a9f..52e8bec937c 100644 --- a/library/std/src/sys/sgx/abi/mem.rs +++ b/library/std/src/sys/sgx/abi/mem.rs @@ -36,9 +36,9 @@ pub fn image_base() -> u64 { let base: u64; unsafe { asm!( - "lea {}, qword ptr [rip + IMAGE_BASE]", + "lea IMAGE_BASE(%rip), {}", lateout(reg) base, - options(nostack, preserves_flags, nomem, pure), + options(att_syntax, nostack, preserves_flags, nomem, pure), ) }; base |
