From 5bbf8cf331f9c6140117bb6c2ac385d2e451d26e Mon Sep 17 00:00:00 2001 From: Jethro Beekman Date: Fri, 7 May 2021 23:49:24 +0200 Subject: Revert SGX inline asm syntax This was erroneously changed in #83387 --- library/std/src/sys/sgx/abi/mem.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'library/std/src/sys') 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 -- cgit 1.4.1-3-g733a5