[PATCH 1/2] ntdll: Support 64-bit Mac OS.

cdavis5x at gmail.com cdavis5x at gmail.com
Tue Feb 3 11:34:31 CST 2015

> On Feb 3, 2015, at 4:07 AM, Alexandre Julliard <julliard at winehq.org> wrote:
> Charles Davis <cdavis5x at gmail.com> writes:
>> diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec
>> index 51de6e7..acd0271 100644
>> --- a/dlls/ntdll/ntdll.spec
>> +++ b/dlls/ntdll/ntdll.spec
>> @@ -1429,6 +1429,7 @@
>> # signal handling
>> @ cdecl __wine_set_signal_handler(long ptr)
>> +@ cdecl -arch=x86_64 __wine_current_teb()
> That's not better than exporting NtCurrentTeb.
Are you sure? The NtCurrentTeb() function isn’t exported from x64 ntdll. If we export it from ours, then we have to export it on every x86-64 platform, because AFAICT there’s no way to say “Only export this function on Mac OS x86-64”.

Like I explained in the other thread, I’m just afraid that some program out there depends on NtCurrentTeb() not being exported from ntdll on x86-64. (Then again, if it depends on that, it probably depends on the TEB being accessible through %gs...)


More information about the wine-devel mailing list