aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2024-02-27 16:32:53 -0800
committerGitHub <noreply@github.com>2024-02-27 16:32:53 -0800
commit062cfada643c1aa48a1bb81894e2920d390fe8cf (patch)
treec614265ec4b33ffeb05a33e73af77506e249110d /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
parentd699d9d609a24d80809df15efe47ac539da90e93 (diff)
downloadllvm-062cfada643c1aa48a1bb81894e2920d390fe8cf.zip
llvm-062cfada643c1aa48a1bb81894e2920d390fe8cf.tar.gz
llvm-062cfada643c1aa48a1bb81894e2920d390fe8cf.tar.bz2
[builtins] Disable COMPILER_RT_CRT_USE_EH_FRAME_REGISTRY by default (#83201)
Most of GCC's Linux targets have a link spec `%{!static|static-pie:--eh-frame-hdr}` that doesn't pass --eh-frame-hdr for `-static` links. `-static` links are supposed to utilize `__register_frame_info` (called by `crtbeginT.o`, not by crtbegin.o or crtbeginS.o) as a replacement. compiler-rt crtbegin (not used with GCC) has some ehframe code, which is not utilized because Clang driver unconditionally passes --eh-frame-hdr for Linux targets, even for -static. In addition, LLVM libunwind implements `__register_frame_info` as an empty stub. Furthermore, in a non-static link, the `__register_frame_info` references can cause an undesired weak dynamic symbol. For now, just disable the config by default.
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions