winebuild: Use asm_name to add underscore prefix in asm_globl.

This commit is contained in:
Rémi Bernon 2022-10-02 23:38:36 +02:00 committed by Alexandre Julliard
parent 6932138f17
commit f35fbc5be9

View file

@ -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 );