From 5c19d645f853972c4fc92dc965425f35629c0401 Mon Sep 17 00:00:00 2001 From: John van Groningen Date: Wed, 23 Sep 2015 11:17:39 +0000 Subject: use movsxd instead of movsx because the llvm assembler does not support it --- macho64/aprofile.s | 4 ++-- macho64/atrace.s | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'macho64') 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 -- cgit v1.2.3