Rustbuild compiles proc macros with -Ztls-model=inital-exec when cross-compiling #92976
Labels
A-linkage
Area: linking into static, shared libraries and binaries
A-thread-locals
Area: Thread local storage (TLS)
C-bug
Category: This is a bug.
E-needs-mcve
Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
T-bootstrap
Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Proc macros are dlopen'ed.
-Ztls-model=initial-exec
is not allowed for dlopen'ed dynamic libraries. Only for dynamic libraries declared directly or indirectly asDT_NEEDED
of the main executable. While at least glibc reserves a bit of space just in case someone tries to dlopen a dynamic library compiled with the initial-exec tls model, this space is limited and running out of it will cause a failure to load.cc https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/bypassing.20llvm-libunwind.20build.20on.20musl/near/268196922
The text was updated successfully, but these errors were encountered: