[PR #2215] runtime: link no-relocation fixtures without incremental linking #2219

Open
opened 2026-11-26 21:20:27 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/2215
Author: @whoalin1
Created: 11/26/2026
Status: 🔄 Open

Base: main ← Head: runtime-incremental-no-reloc-fixtures


📝 Commits (1)

  • e895cca runtime: link no-relocation fixtures without incremental linking

📊 Changes

2 files changed (+55 additions, -4 deletions)

View changed files

📝 runtime/CMakeLists.txt (+9 -4)
➕ tests/test_runtime_incremental_link.py (+46 -0)

📄 Description

Summary

  • pass /INCREMENTAL:NO when linking fixture images that have no base relocations (/FIXED or /NODEFAULTLIB)
  • cover tiny_game_fixed, tiny_tls_cb_only, dll_thread_calls, and gameinput_host
  • add a small static regression test so a new fixture of that kind does not regress the workaround

Item: BUILD-INCREMENTAL-NO-RELOC-FIXTURES

This carries forward the still-uncarried fix in old-pr/10053, originally written by wavehs, reapplied and verified on current main. The original report measured MSVC 14.51.35927 crashing with LNK1000 in IncrCalcPtrs on the default incremental relink of images with no base-relocation table; Microsoft fixed the linker itself in Visual Studio 2026 18.6, but non-incremental links are also correct for these fixtures.

Tests

Under the local machine coordination lock:

  • control: the static guard fails on unpatched runtime/CMakeLists.txt, finding all four vulnerable targets
  • fixed: python -I tests/test_runtime_incremental_link.py — 2 tests, OK
  • python -m compileall -q tests/test_runtime_incremental_link.py — pass
  • git diff --cached --check — pass

No game files or GPU.

AI-assisted with Devin.


🔄 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/2215 **Author:** [@whoalin1](https://github.com/whoalin1) **Created:** 11/26/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `runtime-incremental-no-reloc-fixtures` --- ### 📝 Commits (1) - [`e895cca`](https://github.com/ubiquitarianism/leonida/commit/e895cca952e35141ae6bf9cd9f018d70442baa9a) runtime: link no-relocation fixtures without incremental linking ### 📊 Changes **2 files changed** (+55 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `runtime/CMakeLists.txt` (+9 -4) ➕ `tests/test_runtime_incremental_link.py` (+46 -0) </details> ### 📄 Description ## Summary - pass `/INCREMENTAL:NO` when linking fixture images that have no base relocations (`/FIXED` or `/NODEFAULTLIB`) - cover `tiny_game_fixed`, `tiny_tls_cb_only`, `dll_thread_calls`, and `gameinput_host` - add a small static regression test so a new fixture of that kind does not regress the workaround Item: BUILD-INCREMENTAL-NO-RELOC-FIXTURES This carries forward the still-uncarried fix in old-pr/10053, originally written by wavehs, reapplied and verified on current main. The original report measured MSVC 14.51.35927 crashing with `LNK1000` in `IncrCalcPtrs` on the default incremental relink of images with no base-relocation table; Microsoft fixed the linker itself in Visual Studio 2026 18.6, but non-incremental links are also correct for these fixtures. ## Tests Under the local machine coordination lock: - control: the static guard fails on unpatched `runtime/CMakeLists.txt`, finding all four vulnerable targets - fixed: `python -I tests/test_runtime_incremental_link.py` — 2 tests, OK - `python -m compileall -q tests/test_runtime_incremental_link.py` — pass - `git diff --cached --check` — pass No game files or GPU. AI-assisted with Devin. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#2219
No description provided.