[all-commits] [llvm/llvm-project] fe1d02: [sanitizer] Reject unsupported -static at link tim...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Tue Mar 12 23:09:58 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fe1d02b08ce2ca74de5b18d9f141d503b7985ec5
https://github.com/llvm/llvm-project/commit/fe1d02b08ce2ca74de5b18d9f141d503b7985ec5
Author: Fangrui Song <i at maskray.me>
Date: 2024-03-12 (Tue, 12 Mar 2024)
Changed paths:
M compiler-rt/lib/hwasan/hwasan_interceptors.cpp
M compiler-rt/lib/lsan/lsan_interceptors.cpp
M compiler-rt/lib/msan/msan_interceptors.cpp
M compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
A compiler-rt/test/sanitizer_common/TestCases/Linux/static-link.c
Log Message:
-----------
[sanitizer] Reject unsupported -static at link time (#83524)
Most sanitizers don't support static linking. One primary reason is the
incompatibility with interceptors. `GetTlsSize` is another reason.
asan/memprof use `__interception::DoesNotSupportStaticLinking`
(`_DYNAMIC` reference) to reject -static at link time. Port this
detector to other sanitizers. dfsan actually supports -static for
certain cases. Don't touch dfsan.
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