Rémi Bernon : winebuild: Use asm_name to add underscore prefix in asm_globl.
Module: wine Branch: master Commit: f35fbc5be9e4c293c88f713be309183a2f2638ac URL: https://gitlab.winehq.org/wine/wine/-/commit/f35fbc5be9e4c293c88f713be309183... Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Sun Oct 2 23:38:36 2022 +0200 winebuild: Use asm_name to add underscore prefix in asm_globl. --- tools/winebuild/utils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/winebuild/utils.c b/tools/winebuild/utils.c index bac249673b6..16d9c28d918 100644 --- a/tools/winebuild/utils.c +++ b/tools/winebuild/utils.c @@ -1021,8 +1021,7 @@ const char *asm_globl( const char *func ) break; case PLATFORM_MINGW: case PLATFORM_WINDOWS: - buffer = strmake( "\t.globl %s%s\n%s%s:", target.cpu == CPU_i386 ? "_" : "", func, - target.cpu == CPU_i386 ? "_" : "", func ); + buffer = strmake( "\t.globl %s\n%s:", asm_name( func ), asm_name( func ) ); break; default: buffer = strmake( "\t.globl %s\n\t.hidden %s\n%s:", func, func, func );
participants (1)
-
Alexandre Julliard