From 41692eb0bc805051c4cdc07f4a49d978f4024939 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Tue, 17 May 2022 01:33:51 +0200 Subject: [PATCH] Fix for aarch64 --- src/dynafunc_aarch64_gnu.S | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/dynafunc_aarch64_gnu.S b/src/dynafunc_aarch64_gnu.S index 1692c67..e59674e 100644 --- a/src/dynafunc_aarch64_gnu.S +++ b/src/dynafunc_aarch64_gnu.S @@ -23,9 +23,13 @@ .global g_dynafunc_end g_dynafunc: - ldr x0, .+12 - ldr x9, .+16 + ldr x0, .+20 + ldr x1, .+24 + ldr x2, .+28 + ldr x9, .+32 br x9 - .dword 0xdeadbeefdeadbeef //function parameter + .dword 0xdeadbeefdeadbeef //function VM& parameter + .dword 0x1badb0021badb002 //ModuleAndName parameter, string part + .dword 0xfee1deadfee1dead //ModuleAndName parameter, data part .dword 0xbadc0ffee0ddf00d //function pointer g_dynafunc_end: