[PATCH] ntdll: Manually find the address of RtlUserThreadStart.

Alexandre Julliard julliard at winehq.org
Tue Jun 16 11:08:01 CDT 2020


Huw Davies <huw at codeweavers.com> writes:

> On Mon, Jun 15, 2020 at 02:27:19PM +0200, Alexandre Julliard wrote:
>> Huw Davies <huw at codeweavers.com> writes:
>> 
>> > On i386 macOS allowing the dynamic loader to do so results in eax and ebx
>> > being cleared.
>> 
>> This should go through the import table, not the dynamic loader. Where
>> do the registers get cleared?
>
> Ah, I see, eax isn't getting cleared, but it's being clobbered by
> __wine_spec_get_pc_thunk_eax .

Ah right, macOS is still using PIC. Anyway, these import thunks should
go away soon (the ultimate goal being for the Unix library to never
implicitly call back into PE).

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list