[PR #773] [MERGED] runtime: retain the TLS directory in the /GA test fixture #810

Closed
opened 2026-11-26 20:19:07 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • 1052aad runtime: 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 /GA removes the fixture's only _tls_index reference. lld-link then omits the PE TLS directory, so the loader never reaches the TLS rewrite. Add /INCLUDE:_tls_used to tiny_ga_tls and make the index assertion reject kNoTlsIndex. #532 independently reports the same seven failures on Windows with clang-cl and xwin.

Tested

  • Omarchy Linux, Wine 11.20, clang-cl/lld-link 23.1.3, xwin 0.10.0. Unpatched 2d73c242f failed 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 refreshed main at 47c651174.
  • All 15 focused loader CTests passed. loader_tls passed in Debug, Release, RelWithDebInfo, and MinSizeRel. Fixtures built with MSVC 19.44 and link.exe 14.44 also passed in all four configurations under Wine.

Pre-existing failure. The expanded run passed 28 of 29 tests. run_startup_cmdline also fails on unpatched main in 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.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/773 **Author:** [@moffington](https://github.com/moffington) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@ubiquitarianism](https://github.com/ubiquitarianism) **Base:** `main` ← **Head:** `fix/loader-tls-ga-fixture` --- ### 📝 Commits (1) - [`1052aad`](https://github.com/ubiquitarianism/leonida/commit/1052aad6c1a1e572a4432adccee8ce174d2a56a7) runtime: retain the TLS directory in the /GA test fixture ### 📊 Changes **2 files changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `runtime/CMakeLists.txt` (+2 -0) 📝 `runtime/test/loader_tls_test.cpp` (+2 -1) </details> ### 📄 Description Claimed in the coordination issue as: [loader_tls /GA fixture](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7133148588) ### What and why clang-cl's `/GA` removes the fixture's only `_tls_index` reference. lld-link then omits the PE TLS directory, so the loader never reaches the TLS rewrite. Add `/INCLUDE:_tls_used` to `tiny_ga_tls` and make the index assertion reject `kNoTlsIndex`. #532 independently reports the same seven failures on Windows with clang-cl and xwin. ### Tested - Omarchy Linux, Wine 11.20, clang-cl/lld-link 23.1.3, xwin 0.10.0. Unpatched `2d73c242f` failed 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 refreshed `main` at `47c651174`. - All 15 focused loader CTests passed. `loader_tls` passed in Debug, Release, RelWithDebInfo, and MinSizeRel. Fixtures built with MSVC 19.44 and `link.exe` 14.44 also passed in all four configurations under Wine. **Pre-existing failure.** The expanded run passed 28 of 29 tests. `run_startup_cmdline` also fails on unpatched `main` in 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:07 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#810
No description provided.