On Fri Jul 21 10:07:27 2023 +0000, Alexandre Julliard wrote:
Do we actually need the extra copy? Couldn't the CFI point to the initial context?
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.