summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn van Groningen2012-02-06 14:24:46 +0000
committerJohn van Groningen2012-02-06 14:24:46 +0000
commit38095230d44153ea842d68c9460c858c2097b62e (patch)
tree0d9ef036c097908ecee5ce8d0976a35799d1a5ba
parentuse linux calling convention for second call of file_read_s_line (instead of ... (diff)
use linux calling convention for second call of file_read_s_line (instead of windows calling convention)
-rw-r--r--macho64/afileIO3.s16
1 files changed, 9 insertions, 7 deletions
diff --git a/macho64/afileIO3.s b/macho64/afileIO3.s
index 64a270e..5d40dc2 100644
--- a/macho64/afileIO3.s
+++ b/macho64/afileIO3.s
@@ -824,16 +824,18 @@ st_copy_string2:
sub rcx,1
att_jnc copy_st_lp2
- mov r9,rsp
- mov r8,rdi
- lea rdx,[r15*8]
- mov rcx,rbx
-
+ mov rcx,rsp
+ mov rdx,rdi
mov rbp,rsp
- or rsp,8
- sub rsp,40
+ and rsp,-16
+ mov r13,rsi
+ lea rsi,[r15*8]
+ mov r14,rdi
+ mov rdi,rbx
att_call _file_read_s_line
mov rsp,rbp
+ mov rsi,r13
+ mov rdi,r14
test rax,rax
js readLineSF_again