[compiler-rt] [asan] Implement interception on AIX (PR #131870)

Hubert Tong via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 10 22:03:43 PST 2025


================
@@ -778,7 +801,15 @@ static void AtCxaAtexit(void *unused) {
 }
 #endif
 
-#if ASAN_INTERCEPT___CXA_ATEXIT
+#  if ASAN_INTERCEPT_EXIT
+INTERCEPTOR(void, exit, int status) {
+  AsanInitFromRtl();
+  StopInitOrderChecking();
+  REAL(exit)(status);
+}
+#  endif
----------------
hubert-reinterpretcast wrote:

Maybe split adding new interceptors out to a separate PR and focus this PR on compatibility changes to existing sanitizer code.

https://github.com/llvm/llvm-project/pull/131870


More information about the llvm-commits mailing list