diff options
author | Fangrui Song <i@maskray.me> | 2024-02-27 16:32:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-27 16:32:53 -0800 |
commit | 062cfada643c1aa48a1bb81894e2920d390fe8cf (patch) | |
tree | c614265ec4b33ffeb05a33e73af77506e249110d /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp | |
parent | d699d9d609a24d80809df15efe47ac539da90e93 (diff) | |
download | llvm-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