You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmd/link,cmd/compile: add -tls flag for TLS model control
Add -tls flag to control Thread Local Storage model selection with
options: auto, LE (Local Exec), IE (Initial Exec), GD (General Dynamic).
Default behavior selects GD for c-shared/c-archive builds on Unix
platforms to enable dlopen() compatibility with non-glibc systems.
Validates TLS model selection to prevent invalid combinations such as
LE with shared libraries. Updates all architectures (x86, ARM64, ARM,
PowerPC64, s390x, RISC-V, LoongArch64, MIPS) to use centralized TLS
model selection logic through ShouldUseTLSGD() and ShouldUseTLSLE()
helper functions.
Also fixes missing variable declaration in runtime/os_linux.go that
was causing build failures.
Fixes#13492
Co-Authored-By: Alexander Musman <[email protected]>
0 commit comments