Jacek Caban : winebuild: Use asm_name for __wine_syscall.

Alexandre Julliard julliard at winehq.org
Thu Jul 9 17:10:39 CDT 2020


Module: wine
Branch: master
Commit: 7e4ea871a33f226684ecef9ba158cf9cf8efe42d
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=7e4ea871a33f226684ecef9ba158cf9cf8efe42d

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Thu Jul  9 13:31:18 2020 +0200

winebuild: Use asm_name for __wine_syscall.

Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 tools/winebuild/import.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/winebuild/import.c b/tools/winebuild/import.c
index edbe8d0c0f..97191ca89e 100644
--- a/tools/winebuild/import.c
+++ b/tools/winebuild/import.c
@@ -1591,7 +1591,7 @@ void output_syscalls( DLLSPEC *spec )
             else
             {
                 output( "\tmovl $%u,%%eax\n", i );
-                output( "\tmovl $__wine_syscall,%%edx\n" );
+                output( "\tmovl $%s,%%edx\n", asm_name("__wine_syscall") );
             }
             output( "\tcall *%%edx\n" );
             output( "\tret $%u\n", get_args_size( odp ));
@@ -1650,7 +1650,7 @@ void output_syscalls( DLLSPEC *spec )
     {
         output( "\t.align %d\n", get_alignment(16) );
         output( "\t%s\n", func_declaration("__wine_syscall") );
-        output( "__wine_syscall:\n" );
+        output( "%s:\n", asm_name("__wine_syscall") );
         output( "\tjmp *(%s)\n", asm_name("__wine_syscall_dispatcher") );
         output_function_size( "__wine_syscall" );
     }




More information about the wine-cvs mailing list