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

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


================
@@ -84,12 +97,19 @@ void InitializePlatformInterceptors();
 #    define ASAN_INTERCEPT__UNWIND_SJLJ_RAISEEXCEPTION 0
 #  endif
 
-#  if !SANITIZER_WINDOWS
+// AIX currently can't retrieve the address of __cxa_atexit
+#  if !SANITIZER_WINDOWS && !SANITIZER_AIX
 #    define ASAN_INTERCEPT___CXA_ATEXIT 1
 #  else
 #    define ASAN_INTERCEPT___CXA_ATEXIT 0
 #  endif
 
+#  if SANITIZER_AIX
+#    define ASAN_INTERCEPT_EXIT 1
----------------
hubert-reinterpretcast wrote:

What is special about AIX that we need it for AIX and not other platforms? What happens on AIX if we don't have this?

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


More information about the llvm-commits mailing list