Skip to content

Mark non-preemptible TLS definitions as dso_local - #5317

Draft
kubo39 wants to merge 1 commit into
ldc-developers:masterfrom
kubo39:tls-dso-local
Draft

kubo39 wants to merge 1 commit into
ldc-developers:masterfrom
kubo39:tls-dso-local

Conversation

@kubo39

@kubo39 kubo39 commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

With non-PIC code or a PIE level, TLS definitions cannot be preempted, so mark them dso_local to let LLVM select the local-exec TLS model instead of initial-exec. Declarations are left alone, as they may be defined in a shared library (e.g., with -link-defaultlib-shared).

With non-PIC code or a PIE level, TLS definitions cannot be preempted,
so mark them dso_local to let LLVM select the local-exec TLS model
instead of initial-exec. Declarations are left alone, as they may be
defined in a shared library (e.g., with -link-defaultlib-shared).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant