runtime: link no-relocation fixtures without incremental linking #2215

Open
github-bot wants to merge 1 commit from github-bot/gh-2215 into main AGit
Owner

@⁠whoalin1 on GitHub · 2026-11-26 06:28 UTC · original
whoalin1:runtime-incremental-no-reloc-fixtures → main · +55 −4 · 2 files · 1 commits · open

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.

**@⁠whoalin1** on GitHub · 2026-11-26 06:28 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2215) `whoalin1:runtime-incremental-no-reloc-fixtures` → `main` · +55 −4 · 2 files · 1 commits · open ## 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:22:34 +00:00
Author
Owner

@⁠lixonik on GitHub · 2026-11-26 08:47 UTC · original · reviewed

Independent native RelWithDebInfo / Ninja check on MSVC 19.44: both Python tests passed. All four PE fixtures built, then relinked successfully after their object timestamps changed. Each generated link command ends its incremental-link flags with /INCREMENTAL:NO, and none produced an .ilk file. This exercises the actual fixture link rules on 19.44. AI-assisted.

**@⁠lixonik** on GitHub · 2026-11-26 08:47 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2215#pullrequestreview-6070942202) · **reviewed** Independent native RelWithDebInfo / Ninja check on MSVC 19.44: both Python tests passed. All four PE fixtures built, then relinked successfully after their object timestamps changed. Each generated link command ends its incremental-link flags with `/INCREMENTAL:NO`, and none produced an `.ilk` file. This exercises the actual fixture link rules on 19.44. AI-assisted.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2215/head:github-bot/gh-2215'
git switch 'github-bot/gh-2215'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2215'
git switch 'github-bot/gh-2215'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2215'
git switch 'github-bot/gh-2215'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2215'
git switch 'main'
git merge --squash 'github-bot/gh-2215'
git switch 'main'
git merge --ff-only 'github-bot/gh-2215'
git switch 'main'
git merge 'github-bot/gh-2215'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.