From 30746aec19c0acf5d6d3bcdb9e930f2bbc5fa205 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Mon, 25 Apr 2022 00:41:02 +0200 Subject: [PATCH] Revert "Add ret to avoid data being "executed"" This reverts commit 1713a22ef442a92f633115bb52cd86dd6acc0a6c. --- src/dynafunc_aarch64_gnu.S | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/dynafunc_aarch64_gnu.S b/src/dynafunc_aarch64_gnu.S index 3e810e2..1b7d56a 100644 --- a/src/dynafunc_aarch64_gnu.S +++ b/src/dynafunc_aarch64_gnu.S @@ -23,10 +23,9 @@ .global g_dynafunc_end g_dynafunc: - ldr x0, .+16 - ldr x9, .+20 + ldr x0, .+12 + ldr x9, .+16 br x9 - ret .dword 0xdeadbeefdeadbeef //function parameter .dword 0xbadc0ffee0ddf00d //function pointer g_dynafunc_end: