diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2023-02-13 17:45:51 +0100 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2023-02-14 15:19:31 +0100 |
commit | 3fa98a6f29b0f370e32549ead7eb897c839af980 (patch) | |
tree | c82118e31596700bb899928349908c365e15bd11 /libcpu | |
parent | a4fafb7722c9950dacd5689f1ce8e31f8fa94ed5 (diff) | |
download | elfutils-3fa98a6f29b0f370e32549ead7eb897c839af980.tar.gz |
configure: Add --enable-sanitize-memory
Add support for clang Memory Sanitizer [1], which detects the usage of
uninitialized values. While elfutils itself is already checked with
valgrind, checking code that depends on elfutils requires elfutils to
be built with MSan.
MSan is not linked into shared libraries, and is linked into
executables statically. Therefore, unlike the other sanitizers, MSan
needs to be configured fairly early, since we need to drop
-D_FORTIFY_SOURCE [2], -Wl,-z,defs and --no-undefined.
Disable a few tests that run for more than 5 minutes due to test files
being statically linked with MSan.
[1] https://clang.llvm.org/docs/MemorySanitizer.html
[2] https://github.com/google/sanitizers/issues/247
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Diffstat (limited to 'libcpu')
0 files changed, 0 insertions, 0 deletions