[compiler-rt] [rtsan] Link in proper CXX ABI library (PR #109715)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 23 21:53:02 PDT 2024


vitalybuka wrote:

> @MaskRay or @vitalybuka should it be possible to use the STL, like `std::variant` in the sanitizer runtimes?
> 
> We introduced `std::variant` and `std::visit` to rtsan in this PR (https://github.com/llvm/llvm-project/pull/109529/files)
> 
> But after doing some searching, it seems like not many STL containers/algorithms are in compiler-rt.
> 
> I'm wondering if we made a mistake going this direction or if we just have some easily solvable configuration issue.

There could be multiple problems:
1. Linking C++ runtime maybe be required even for C binaries.
1. Also C++ binary can be linked with different vendor or version of stdlib.
1. Allocator or interceptors can be triggered.

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


More information about the llvm-commits mailing list