[libc-commits] [libc] [libc][AArch64] Support LFI in setjmp and longjmp (PR #238092)
Schrodinger ZHU Yifan via libc-commits
libc-commits at lists.llvm.org
Mon Nov 2 15:58:39 PST 2026
================
@@ -32,7 +32,18 @@ namespace LIBC_NAMESPACE_DECL {
// address at the start of longjmp, because we're not going to use it anyway!
asm(
- // Reload the callee-saved GPRs, including fp and lr.
+ // Reload the callee-saved GPRs, including fp and lr.
+#ifdef __LFI__
----------------
SchrodingerZhu wrote:
I vote for arch since SGX/LFI also restrict certain microarch instructions.
https://github.com/llvm/llvm-project/pull/238092
More information about the libc-commits
mailing list