diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2022-12-09 00:06:36 +0000 |
---|---|---|
committer | Sami Tolvanen <samitolvanen@google.com> | 2022-12-09 00:26:08 +0000 |
commit | 3b14862f0a968dc079530acbce4f2ca4aa7c1492 (patch) | |
tree | 93b0463fc14ed0df6a50fdb6eff6b1c27d6688e5 /llvm/lib/Object/WasmObjectFile.cpp | |
parent | 7710e0e270f0b9c3b3f8a8a66b0f4a702cbdef3e (diff) | |
download | llvm-3b14862f0a968dc079530acbce4f2ca4aa7c1492.zip llvm-3b14862f0a968dc079530acbce4f2ca4aa7c1492.tar.gz llvm-3b14862f0a968dc079530acbce4f2ca4aa7c1492.tar.bz2 |
[ModuleUtils][KCFI] Set !kcfi_type metadata for sanitizer constructors
Set KCFI type metadata for the sanitizer constructors to prevent
runtime failures when these functions are indirectly called in
instrumented code. This fixes a compatibility issue with KASAN and
-fsanitize=kcfi in the Linux kernel.
Link: https://github.com/ClangBuiltLinux/linux/issues/1742
Reviewed By: nickdesaulniers, MaskRay
Differential Revision: https://reviews.llvm.org/D138945
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions