[all-commits] [llvm/llvm-project] c46c34: [tysan] Guard mallopt() use on SANITIZER_GLIBC ins...
Brian Cain via All-commits
all-commits at lists.llvm.org
Wed Jun 24 12:05:12 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c46c34284d4a059050fca105ad65acb4f27bfca6
https://github.com/llvm/llvm-project/commit/c46c34284d4a059050fca105ad65acb4f27bfca6
Author: Brian Cain <brian.cain at oss.qualcomm.com>
Date: 2026-06-24 (Wed, 24 Jun 2026)
Changed paths:
M compiler-rt/lib/tysan/tysan_interceptors.cpp
Log Message:
-----------
[tysan] Guard mallopt() use on SANITIZER_GLIBC instead of SANITIZER_LINUX (#203118)
mallopt() is a glibc extension, not provided by other Linux C libraries
such as musl, but its declaration and its use in
InitializeInterceptors() are gated on SANITIZER_LINUX. Linking the TySan
runtime for a musl target therefore fails:
ld.lld: error: undefined symbol: mallopt
>>> referenced by tysan_interceptors.cpp:215 in
>>> __tysan::InitializeInterceptors() in libclang_rt.tysan-hexagon.a
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list