From 0636fd22495c040b3ca9a14003a8decfb3c47378 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Fri, 24 May 2024 12:41:39 +0200 Subject: [PATCH] Buildfix but only tested on amd64 --- src/dynafunc_aarch64_gnu.S | 2 ++ src/dynafunc_amd64_gnu.S | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/dynafunc_aarch64_gnu.S b/src/dynafunc_aarch64_gnu.S index e59674e..c30da76 100644 --- a/src/dynafunc_aarch64_gnu.S +++ b/src/dynafunc_aarch64_gnu.S @@ -21,6 +21,8 @@ .global g_dynafunc .global g_dynafunc_end +.section .note.GNU-stack,"",@progbits +.text g_dynafunc: ldr x0, .+20 diff --git a/src/dynafunc_amd64_gnu.S b/src/dynafunc_amd64_gnu.S index 975bf17..67f9bc8 100644 --- a/src/dynafunc_amd64_gnu.S +++ b/src/dynafunc_amd64_gnu.S @@ -21,6 +21,8 @@ .global g_dynafunc .global g_dynafunc_end +.section .note.GNU-stack,"",@progbits +.text g_dynafunc: //VM pointer, parameter 1