summary refs log tree commit diff
path: root/library/std/src/sys/sgx/abi
diff options
context:
space:
mode:
authorJethro Beekman <jethro@fortanix.com>2021-05-07 23:49:24 +0200
committerJethro Beekman <jethro@fortanix.com>2021-05-07 23:49:24 +0200
commit5bbf8cf331f9c6140117bb6c2ac385d2e451d26e (patch)
treef2cfc32804fc3ef4e6677a9b942c3cec4a1b14b0 /library/std/src/sys/sgx/abi
parentca712bc4255cd0912e00ec2eee5b6a547385c2b0 (diff)
downloadrust-5bbf8cf331f9c6140117bb6c2ac385d2e451d26e.tar.gz
rust-5bbf8cf331f9c6140117bb6c2ac385d2e451d26e.zip
Revert SGX inline asm syntax
This was erroneously changed in #83387
Diffstat (limited to 'library/std/src/sys/sgx/abi')
-rw-r--r--library/std/src/sys/sgx/abi/mem.rs4
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