about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/sys/sgx/abi/entry.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/sgx/abi/entry.S b/src/libstd/sys/sgx/abi/entry.S
index ca2848c61d9..a3e059e8131 100644
--- a/src/libstd/sys/sgx/abi/entry.S
+++ b/src/libstd/sys/sgx/abi/entry.S
@@ -115,11 +115,11 @@ IMAGE_BASE:
 .type elf_entry,function
 elf_entry:
 /* print error message */
-    movq $1,%rax                     /* write() syscall        */
-    movq $2,%rdi                     /* write to stderr (fd 2) */
+    movq $2,%rdi                      /* write to stderr (fd 2) */
     lea .Lelf_entry_error_msg(%rip),%rsi
     movq $.Lelf_entry_error_msg_end-.Lelf_entry_error_msg,%rdx
 .Lelf_entry_call:
+    movq $1,%rax                      /* write() syscall        */
     syscall
     test %rax,%rax
     jle .Lelf_exit                    /* exit on error          */