Skip to content

Commit 5a24adb

Browse files
committed
Apparently the Android assembler doesn't understand movsxd.
Try `movsx` instead.
1 parent 2381cbc commit 5a24adb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/preload/syscall_hook.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ SYSCALLHOOK_START(_syscall_hook_trampoline_4c_8b_0d)
498498
mov 16(%rsp),%rbx
499499
/* Get PC-relative offset of patched instruction into %eax */
500500
mov -4(%rbx),%eax
501-
movsxd %eax,%rax
501+
movsx %eax,%rax
502502
mov (%rbx,%rax),%r9
503503
pop %rbx
504504
pop %rax

0 commit comments

Comments
 (0)