aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/BasicBlockSections.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-02-14 10:50:24 -0800
committerGitHub <noreply@github.com>2024-02-14 10:50:24 -0800
commit2d5fb27db71b57f299793160181ef28fea5573e7 (patch)
treeee4e5c082503ed3dfb8a55d543a10b50763aefbd /llvm/lib/CodeGen/BasicBlockSections.cpp
parent6d4ffbdfa8ff90e4ee6081ad8dbb8ec24e982a02 (diff)
downloadllvm-2d5fb27db71b57f299793160181ef28fea5573e7.zip
llvm-2d5fb27db71b57f299793160181ef28fea5573e7.tar.gz
llvm-2d5fb27db71b57f299793160181ef28fea5573e7.tar.bz2
[ubsan] Support static linking with standalone runtime (#80943)
The standalone runtime (not -fsanitize-minimal-runtime/-fsanitize-trap=undefined) installs some signal handlers using `real_sigaction`. With static linking (-static/-static-pie), the called `REAL(sigaction)` is null, leading to an immediate segfault, which is confusing (#51538). Fix #51538 by bailing out. `// REQUIRES: librt_has_multf3` from https://reviews.llvm.org/D109709 actually disabled the test because `librt_has_*` features are only for `compiler-rt/test/builtins`. The test does not reproduce for me: libclang_rt.builtins.a or libgcc. Revert the REQUIRES.
Diffstat (limited to 'llvm/lib/CodeGen/BasicBlockSections.cpp')
0 files changed, 0 insertions, 0 deletions