Add ret to avoid data being "executed"

This commit is contained in:
King_DuckZ 2022-04-24 22:07:39 +02:00
parent e157607df6
commit 1713a22ef4

View file

@ -23,9 +23,10 @@
.global g_dynafunc_end
g_dynafunc:
ldr x0, .+12
ldr x9, .+16
ldr x0, .+16
ldr x9, .+20
br x9
ret
.dword 0xdeadbeefdeadbeef //function parameter
.dword 0xbadc0ffee0ddf00d //function pointer
g_dynafunc_end: