Add ret to avoid data being "executed"
This commit is contained in:
parent
e157607df6
commit
1713a22ef4
1 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue