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ö <mar...@martin.st> --- mingw-w64-crt/cfguard/mingw_cfguard_support.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mingw-w64-crt/cfguard/mingw_cfguard_support.c b/mingw-w64-crt/cfguard/mingw_cfguard_support.c index cf4535afd..1e777ebfc 100644 --- a/mingw-w64-crt/cfguard/mingw_cfguard_support.c +++ b/mingw-w64-crt/cfguard/mingw_cfguard_support.c @@ -20,6 +20,7 @@ static void __guard_check_icall_dummy(void) {} // 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" ); -- 2.34.1 _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public