[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


================
@@ -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
----------------
hubert-reinterpretcast wrote:

```suggestion
12345678901234567890123456789012345678901234567890123456789012345678901234567890
// Clang on AIX neither uses `__cxa_atexit` nor links against a library with
// such.
// TODO: Consider intercepting `atexit` and `unatexit` on AIX.
```

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


More information about the llvm-commits mailing list