[PATCH] D102453: [CMake][ELF] Add -fno-semantic-interposition for GCC and Clang>=13
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 12 23:56:15 PST 2022
MaskRay added a comment.
In D102453#3239524 <https://reviews.llvm.org/D102453#3239524>, @MaskRay wrote:
> We need to understand the precise condition and exclude the exact case.
> -fno-semantic-interposition is used by projects like CPython. It's important to know what issues Clang has.
>
> OK, I can reproduce now. I think the issue is the combination of -fsanitize=fuzzer-no-link -fPIC -fno-semantic-interposition (`-DLLVM_USE_SANITIZE_COVERAGE=ON`) when a shared object is built (e.g. `-DLLVM_LINK_LLVM_DYLIB=ON`).
> -fsanitize=fuzzer-no-link has a bug that it incorrectly adds comdat to a dso_local function.
> We can move the discussion to D117144 <https://reviews.llvm.org/D117144>.
D117190 <https://reviews.llvm.org/D117190> will fix the -fPIC -fno-semantic-interposition -fsanitize-coverage incompatibility.
D117183 <https://reviews.llvm.org/D117183> may be safe for release/13.x
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102453/new/
https://reviews.llvm.org/D102453
More information about the llvm-commits
mailing list