support lto

This commit is contained in:
2025-12-10 11:40:24 +01:00
parent c32cd74628
commit 557c98917c

View File

@@ -109,5 +109,9 @@ pub fn syscall_entry() callconv(.naked) void {
\\ # Restore Red Zone and Return \\ # Restore Red Zone and Return
\\ add $128, %rsp \\ add $128, %rsp
\\ ret \\ ret
:
// TODO: can we somehow use %[handler] in the assembly instead?
// Right now this is just here such that lto does not discard the `syscall_handler` function
: [handler] "i" (syscall_handler),
); );
} }