Reproducer: ```cc struct c { ~c() {} }; thread_local c v; int main() { (void)v; } ``` ``` $ ./wasi-sdk-31.0-x86_64-linux/bin/clang++ repro.cc wasm-ld: error: /tmp/repro-dd1ad7.o: undefined symbol: __cxa_thread_atexit clang++: error: linker command failed with exit code 1 (use -v to see invocation) ``` The likely cause is a regression in libcxxabi in LLVM 22 caused by this commit: https://github.com/llvm/llvm-project/commit/3c100d5d548d511d09746dd5a2fee29bdd00805c#diff-dbd1a25cfceec4576394ed83e2d85cdf7108370b5132f5911a2c074d67ef216cR109. I assume this was a mistake or a misunderstanding since the commit seems like it was meant as an "NFC" one...
Reproducer:
The likely cause is a regression in libcxxabi in LLVM 22 caused by this commit: llvm/llvm-project@3c100d5#diff-dbd1a25cfceec4576394ed83e2d85cdf7108370b5132f5911a2c074d67ef216cR109. I assume this was a mistake or a misunderstanding since the commit seems like it was meant as an "NFC" one...