mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-11-27 11:54:24 +08:00
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>
This commit is contained in:
parent
aec22c4fec
commit
bc0d4ec997
@ -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"
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user