]> git.alrj.org Git - bold.git/commitdiff
Runtime: Cosmetic changes in x86_64 ASM code, rebuild object file.
authorAmand Tihon <amand.tihon@alrj.org>
Sun, 13 Mar 2011 16:03:06 +0000 (17:03 +0100)
committerAmand Tihon <amand.tihon@alrj.org>
Sun, 13 Mar 2011 16:07:21 +0000 (17:07 +0100)
runtime/bold_ibh-x86_64.asm
runtime/bold_ibh-x86_64.o

index afee6a198b037d5e42b310c3e0e70729f298a9f7..a9a37320c7e9c851f39db67e03780be1506cb2da 100644 (file)
@@ -84,6 +84,7 @@ _bold__ibh_start:
         lea rdx, [rdx + 16]               ; add rdx, 16
         xor eax, eax
         cmp [rdx], eax
+        ;cmp [rdx], dword 0               ; Gut feeling: would harm compression
         jnz short .dynamic_loop
 
       ; All DYNAMIC entries have been read.
@@ -127,13 +128,13 @@ _bold__ibh_start:
 
   ; When all is resolved, call main()
   call main
-  xchg edi, eax
 
 exit:
   ; Exit cleanly
+  xchg edi, eax
   push byte SYS_exit
   pop rax
   syscall
 
 %assign code_size $ - _bold__ibh_start
-%warning "Code size is:" code_size
+%warning Code size is: code_size
index 44e212f3b7a27790394193f92db8c2601a0c1c1f..b72a08bb7c6cbca470093a90230f6a1a6a230ec0 100644 (file)
Binary files a/runtime/bold_ibh-x86_64.o and b/runtime/bold_ibh-x86_64.o differ