summaryrefslogtreecommitdiff
path: root/macho64
diff options
context:
space:
mode:
authorJohn van Groningen2015-09-23 11:17:39 +0000
committerJohn van Groningen2015-09-23 11:17:39 +0000
commit5c19d645f853972c4fc92dc965425f35629c0401 (patch)
treea8678a072f230f22a902aafd623fec23922cde0c /macho64
parentone qword ptr is enough (diff)
use movsxd instead of movsx because the llvm assembler does not support it
Diffstat (limited to 'macho64')
-rw-r--r--macho64/aprofile.s4
-rw-r--r--macho64/atrace.s2
2 files changed, 3 insertions, 3 deletions
diff --git a/macho64/aprofile.s b/macho64/aprofile.s
index b2a6da9..39d200f 100644
--- a/macho64/aprofile.s
+++ b/macho64/aprofile.s
@@ -536,7 +536,7 @@ write_profile_lp:
push rdx
- movsx rax,dword ptr (-4)[rdx]
+ movsxd rax,dword ptr (-4)[rdx]
lea rdx,-4[rdx+rax]
mov eax,dword ptr [rdx]
add rdx,4
@@ -667,7 +667,7 @@ write_functions_on_stack:
mov rcx,qword ptr name_[rbx]
push rbp
-
+\
mov edx,dword ptr (-4)[rcx]
add rcx,8
diff --git a/macho64/atrace.s b/macho64/atrace.s
index 4f9bf6d..b60de3b 100644
--- a/macho64/atrace.s
+++ b/macho64/atrace.s
@@ -316,7 +316,7 @@ write_functions_on_stack:
push rbp
.if LINUX
- movsx rdx,dword ptr (-4)[rcx]
+ movsxd rdx,dword ptr (-4)[rcx]
lea rdx,-4[rcx+rdx]
lea rdi,8[rcx]
mov r12,rdx