[libcxx-commits] [compiler-rt] [libcxx] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (PR #143230)
Daniil Kovalev via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Sep 22 09:59:11 PDT 2025
================
@@ -43,6 +43,102 @@
#define LIBUNWIND_AVAIL
#endif
+#if __has_feature(ptrauth_calls)
+
+ #include <ptrauth.h>
+
+ #if __has_extension(ptrauth_restricted_intptr_qualifier)
----------------
kovdan01 wrote:
We do not have `__ptrauth_restricted_intptr`, so let's avoid including these changes in mainline runtime libraries. I do get the point that such a qualifier is used in downstream Apple code, but it's better to keep macro definitions dependent on `__ptrauth_restricted_intptr` in Apple code and do not expose them to mainline since this literally makes no sense for anyone else.
See proposed fix a2390e1e285023af78d27d768540bb8f30efea76 in my branch https://github.com/kovdan01/llvm-project/commits/pointer-authenticated-unwinding-2025-09-22-with-fixes/
https://github.com/llvm/llvm-project/pull/143230
More information about the libcxx-commits
mailing list