On Fri Jul 21 10:07:27 2023 +0000, Billy Laws wrote:
Yeah that should work, just need to store a pointer to the context on the stack in the trampoline to allow for LR recovery (LR requires explicit handling in builtin_unwind_dll as CFI on ARM64 isn't really capable of recovering both PC and LR). I'll switch to using the CFI macros from dwarf.h rather than manually escaping while I'm at it.
I've done as such, it doesn't cause any further test failures and works for exception handling on the WOW side so should be good.