From 8a87aaa9d90ce2a9c7b1769c9da223828dc395a2 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sat, 27 Dec 2008 19:50:25 +0100 Subject: [PATCH] winebuild: Generate the __wine_call_from_32_regs function along with the 16-bit kernel routines. --- dlls/ntdll/ntdll.spec | 1 - tools/winebuild/relay.c | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec index 1e41e4d9bc0..1eb53d7d36e 100644 --- a/dlls/ntdll/ntdll.spec +++ b/dlls/ntdll/ntdll.spec @@ -1370,7 +1370,6 @@ # or 'wine_' (for user-visible functions) to avoid namespace conflicts. # Relays -@ cdecl -norelay -i386 __wine_call_from_32_regs() @ cdecl -i386 __wine_enter_vm86(ptr) # Server interface diff --git a/tools/winebuild/relay.c b/tools/winebuild/relay.c index 4ec0dbfb2f3..a1c7970520f 100644 --- a/tools/winebuild/relay.c +++ b/tools/winebuild/relay.c @@ -975,6 +975,12 @@ void BuildRelays16(void) output( "%s\n\t.long 0\n", asm_globl("CallTo16_DataSelector") ); output( "%s\n\t.long 0\n", asm_globl("CallTo16_TebSelector") ); if (UsePIC) output( "wine_ldt_copy_ptr:\t.long %s\n", asm_name("wine_ldt_copy") ); + + output( "\t.text\n" ); + output( "%s:\n\n", asm_name("__wine_spec_thunk_text_32") ); + BuildCallFrom32Regs(); + output_function_size( "__wine_spec_thunk_text_32" ); + output_gnu_stack_note(); }