Repository navigation
runtime: retain the TLS directory in the /GA test fixture - #773
Merged
ubiquitarianism merged 1 commit intoNov 24, 2026
Merged
Conversation
Force the CRT TLS directory into tiny_ga_tls when /GA removes the last _tls_index reference. Reject the unassigned TLS index in the test so missing metadata fails the index check.
Contributor
Author
|
Discord user is col0038 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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