On Feb 3, 2015, at 4:07 AM, Alexandre Julliard julliard@winehq.org wrote:
Charles Davis cdavis5x@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...)
Chip