From 00942640a554c2b8816ca3a278ded3d36210cf0c Mon Sep 17 00:00:00 2001 From: fincs Date: Mon, 29 Jul 2019 17:11:38 +0200 Subject: [PATCH] nroEntrypointTrampoline: Fix g_lastRet write size access bug --- source/trampoline.s | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/trampoline.s b/source/trampoline.s index aba82e1..dd22138 100644 --- a/source/trampoline.s +++ b/source/trampoline.s @@ -21,8 +21,7 @@ nroEntrypointTrampoline: // Save retval adrp x1, g_lastRet - add x1, x1, #:lo12:g_lastRet - str x0, [x1] + str w0, [x1, #:lo12:g_lastRet] // Reset stack pointer and load next NRO. adrp x8, __stack_top