From: John Hodge Date: Sat, 17 May 2014 12:15:06 +0000 (+0800) Subject: Usermode/ld-acess - Fix x86_64 not saving RBP on no-arg syscalls X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=fd3de744d418725c1fa4bc682b285bb63218a3ba;p=tpg%2Facess2.git Usermode/ld-acess - Fix x86_64 not saving RBP on no-arg syscalls --- diff --git a/Usermode/Libraries/ld-acess.so_src/arch/x86_64.asm.h b/Usermode/Libraries/ld-acess.so_src/arch/x86_64.asm.h index 350585a0..b80e092b 100644 --- a/Usermode/Libraries/ld-acess.so_src/arch/x86_64.asm.h +++ b/Usermode/Libraries/ld-acess.so_src/arch/x86_64.asm.h @@ -56,9 +56,11 @@ _errno: dw 0 ; Placed in .text, to allow use of relative addressing [global %1:func] %1: push rbx + push rbp mov eax, %2 SYSCALL_OP mov [DWORD rel _errno], ebx + pop rbp pop rbx ret %endmacro