[all-commits] [llvm/llvm-project] 8443ce: [sanitizer] Lift AsanDoesNotSupportStaticLinkage t...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Fri Feb 16 19:36:50 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8443ce563bf3500b705ab3507ae586e2a72d31f4
https://github.com/llvm/llvm-project/commit/8443ce563bf3500b705ab3507ae586e2a72d31f4
Author: Fangrui Song <i at maskray.me>
Date: 2024-02-16 (Fri, 16 Feb 2024)
Changed paths:
M compiler-rt/lib/asan/asan_fuchsia.cpp
M compiler-rt/lib/asan/asan_internal.h
M compiler-rt/lib/asan/asan_linux.cpp
M compiler-rt/lib/asan/asan_mac.cpp
M compiler-rt/lib/asan/asan_rtl.cpp
M compiler-rt/lib/asan/asan_win.cpp
M compiler-rt/lib/interception/interception.h
M compiler-rt/lib/memprof/memprof_internal.h
M compiler-rt/lib/memprof/memprof_linux.cpp
M compiler-rt/lib/memprof/memprof_rtl.cpp
Log Message:
-----------
[sanitizer] Lift AsanDoesNotSupportStaticLinkage to sanitizer_common.h. NFC (#80948)
The `_DYNAMIC` reference from `AsanDoesNotSupportStaticLinkage` ensures
that `clang++ -fsanitize=address -static` gets a linker error.
`MemprofDoesNotSupportStaticLinkage` is similar for `-fmemory-profile`.
Move the functions to sanitizer_common.h to be used by more sanitizers
on ELF platforms.
Fuchsia does not use interposition and opts out the check (its
`AsanDoesNotSupportStaticLinkage` is a no-op).
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