From 00e695f1554f2193e57a06613b1d7cc541551ae6 Mon Sep 17 00:00:00 2001 From: jeremyd2019 Date: Sun, 4 Jul 2021 20:18:23 -0700 Subject: [PATCH] fix fastcall mangling for rust_psm_on_stack All but the label were `@16`, but the label itself was `@20`. This was causing an error trying to build a mingw-w64 (windows-gnu) rust using clang/lld. --- psm/src/arch/x86_windows_gnu.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psm/src/arch/x86_windows_gnu.s b/psm/src/arch/x86_windows_gnu.s index 48826f9..cf7f483 100644 --- a/psm/src/arch/x86_windows_gnu.s +++ b/psm/src/arch/x86_windows_gnu.s @@ -66,7 +66,7 @@ .endef .globl @rust_psm_on_stack@16 .p2align 4 -@rust_psm_on_stack@20: +@rust_psm_on_stack@16: /* extern "fastcall" fn(%ecx: usize, %edx: usize, 4(%esp): extern "fastcall" fn(usize, usize), 8(%esp): *mut u8) */ .cfi_startproc pushl %ebp