Jacek Caban : winebuild: Don' t underscore local symbols in func_declaration.
Module: wine Branch: master Commit: e574d4f8f989b7c149c0f720084cef275fe8862c URL: https://source.winehq.org/git/wine.git/?a=commit;h=e574d4f8f989b7c149c0f7200... Author: Jacek Caban <jacek(a)codeweavers.com> Date: Sun Aug 25 18:49:39 2019 +0200 winebuild: Don't underscore local symbols in func_declaration. This is the case in output_call16_function. GNU ld happens to handle it, but LLD does not. Signed-off-by: Jacek Caban <jacek(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- tools/winebuild/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/winebuild/utils.c b/tools/winebuild/utils.c index 31a6b28..fe82ad7 100644 --- a/tools/winebuild/utils.c +++ b/tools/winebuild/utils.c @@ -1093,7 +1093,7 @@ const char *func_declaration( const char *func ) return ""; case PLATFORM_WINDOWS: free( buffer ); - buffer = strmake( ".def %s%s; .scl 2; .type 32; .endef", target_cpu == CPU_x86 ? "_" : "", func ); + buffer = strmake( ".def %s; .scl 2; .type 32; .endef", asm_name(func) ); break; default: free( buffer );
participants (1)
-
Alexandre Julliard