crt: Mark __guard_dispatch_icall_dummy as global In LLVM LTO builds with cfguard enabled, the non-extern __guard_dispatch_icall_dummy can't pose as replacement for the undefined symbol reference to an extern __guard_dispatch_icall_dummy. Signed-off-by: Martin Storsjö <martin@martin.st>
diff --git a/mingw-w64-crt/cfguard/mingw_cfguard_support.c b/mingw-w64-crt/cfguard/mingw_cfguard_support.c index cf4535a..1e777eb 100644 --- a/mingw-w64-crt/cfguard/mingw_cfguard_support.c +++ b/mingw-w64-crt/cfguard/mingw_cfguard_support.c
@@ -20,6 +20,7 @@ // When CFGuard is not active, directly tail-call the target address, which // is passed via %rax. __asm__( + ".globl __guard_dispatch_icall_dummy\n" "__guard_dispatch_icall_dummy:\n" " jmp *%rax\n" );