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