runtime: retain the TLS directory in the /GA test fixture #773
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!773
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/773/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@moffington on GitHub · 2026-11-24 13:39 UTC · original
moffington:fix/loader-tls-ga-fixture→main· +4 −1 · 2 files · 1 commits · merged 2026-11-24 14:37 UTCClaimed in the coordination issue as: loader_tls /GA fixture
What and why
clang-cl's
/GAremoves the fixture's only_tls_indexreference. lld-link then omits the PE TLS directory, so the loader never reaches the TLS rewrite. Add/INCLUDE:_tls_usedtotiny_ga_tlsand make the index assertion rejectkNoTlsIndex. #532 independently reports the same seven failures on Windows with clang-cl and xwin.Tested
2d73c242ffailed 7 of 95 checks. The fix restores the TLS directory, rewrites two sites per load, and passes 95 of 95 checks, including when applied to refreshedmainat47c651174.loader_tlspassed in Debug, Release, RelWithDebInfo, and MinSizeRel. Fixtures built with MSVC 19.44 andlink.exe14.44 also passed in all four configurations under Wine.Pre-existing failure. The expanded run passed 28 of 29 tests.
run_startup_cmdlinealso fails on unpatchedmainin the standalone fixture check before invoking the loader.GPUs tested: NVIDIA GeForce RTX 3060, driver 615.78.08, Omarchy Linux (Vulkan frame tests). TLS tests are CPU-only.
AI-assisted: yes
@moffington on GitHub · 2026-11-25 13:16 UTC · original
Discord user is col0038