[clang] Honor -fno-sanitize-link-runtime for libclang_rt.asan_static (PR #66414)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 22 12:29:35 PST 2023


MaskRay wrote:

* https://reviews.llvm.org/D65029 added `-fno-sanitize-link-runtime` for kernel-like scenarios with custom runtime.
* Patches related to https://reviews.llvm.org/D122407 link in `--whole-archive libclang_rt.asan_static.a --no-whole-archive` and define symbols like `__asan_report_store1_asm` (unless `--gc-sections` and `-asan-optimize-callbacks` is unused), which can be regarded as undesired.


I agree that `-fno-sanitize-link-runtime` skip `libclang_rt.asan_static.a` as well.

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


More information about the cfe-commits mailing list