runtime: retain the TLS directory in the /GA test fixture #773
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/773"
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?
Imported from ubiquitarianism/leonida. Originally posted by moffington on 2026-11-24T13:39:56Z.
Claimed 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
Imported from ubiquitarianism/leonida. Originally posted by moffington on 2026-11-25T13:16:30Z.
Discord user is col0038