mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:25:53 +01:00
[PR #773] [MERGED] runtime: retain the TLS directory in the /GA test fixture #810
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#810
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/773
Author: @moffington
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism
Base:
main← Head:fix/loader-tls-ga-fixture📝 Commits (1)
1052aadruntime: retain the TLS directory in the /GA test fixture📊 Changes
2 files changed (+4 additions, -1 deletions)
View changed files
📝
runtime/CMakeLists.txt(+2 -0)📝
runtime/test/loader_tls_test.cpp(+2 -1)📄 Description
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.