From: Alexandre Julliard Subject: Re: [PATCH 1/2] ntdll: Fix KiUserExceptionDispatcher ABI on x86. Message-Id: <87v9j63yjj.fsf@wine> Date: Thu, 02 Jul 2020 14:13:20 +0200 In-Reply-To: <20200702084802.549219-1-pgofman@codeweavers.com> (Paul Gofman's message of "Thu, 2 Jul 2020 11:48:01 +0300") References: <20200702084802.549219-1-pgofman@codeweavers.com> Paul Gofman writes: > @@ -243,6 +243,13 @@ NTSTATUS WINAPI KiUserExceptionDispatcher( EXCEPTION_RECORD *rec, CONTEXT *conte > return NtRaiseException( rec, context, FALSE ); > } > > +__ASM_GLOBAL_FUNC( KiUserExceptionDispatcher@8, You need to use __ASM_STDCALL_FUNC. > +__ASM_GLOBAL_FUNC( call_user_exception_dispatcher, > + "add $4,%esp\n\t" > + "jmp *pKiUserExceptionDispatcher\n\t") You can't access the variable this way for PIC code. -- Alexandre Julliard julliard@winehq.org