[all-commits] [llvm/llvm-project] 973242: [sancov] add -sanitizer-coverage-drop-ctors (#137980)
Alexander Potapenko via All-commits
all-commits at lists.llvm.org
Wed May 7 07:30:04 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9732427f377ec076601d4d6ede697f39a4409ee4
https://github.com/llvm/llvm-project/commit/9732427f377ec076601d4d6ede697f39a4409ee4
Author: Alexander Potapenko <glider at google.com>
Date: 2025-05-07 (Wed, 07 May 2025)
Changed paths:
M llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp
M llvm/test/Instrumentation/SanitizerCoverage/trace-pc-guard.ll
Log Message:
-----------
[sancov] add -sanitizer-coverage-drop-ctors (#137980)
[sancov] add -sanitizer-coverage-drop-ctors
Add a hidden flag to omit the @sancov.module_ctor* constructors.
When building kernel modules with sanitizer coverage enabled,
constructors may reference global symbols, creating unsupported
relocations. Because the kernel does not strictly need these
constructors in order for coverage to work, allow the user to omit
them.
Also apply clang-format to SanitizerCoverage.cpp.
Fixes PR132393.
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