Link GCWindow with interpolation constructor in native emission order #765

Merged
coah80 merged 1 commits from agent/bittle/gcwindow-link into main 2026-10-02 07:24:56 +00:00
coah80 commented 2026-10-02 07:19:50 +00:00 (Migrated from github.com)

Scope

Follow up #755's 48/48 matching with native linkage. Move the existing empty LinearIntp constructor body from its GCWindow-specific class specialization into an inline out-of-class definition after MemoryBaseEvent's constructor; set GCWindow Matching. No body logic, symbol metadata, splits, data constants, or padding changes.

Shared-header disclosure

include/math/iplInterporation.h changes inside the existing IPL_GC_WINDOW_CPP specialization only. Only iplGCWindow.cpp defines that macro. The definition remains inline/weak. All 1,027 source objects were deleted and rebuilt to eliminate stale dependency paths; only GCWindow .text changes, and every other unit's allocated bytes/normalized relocations is unchanged.

Why needed

A flag-only link failed despite 48/48 exact functions and 50/50 identical pooled strings: the 16-byte interpolation constructor was emitted before MemoryBase/handler/event methods, shifting those three by +16 and the constructor by -196 in the final image. Moving its existing inline definition to the corresponding source position fixes emission order naturally. Simply deleting the explicit empty constructor did not fix the order and is not part of this PR.

Verification after rebase on 4aaa362c5e

  • Clean full 43U all_source/progress/report/ok build: DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d, byte-identical to original/main.
  • ctxdiff 48/48 exact; pool 50/50 identical; literal audit 63 compared arguments, 0 candidates/errors/skips.
  • Unit 9,964/9,964 code and 2,032/2,032 data exact and fully linked. +9,964 linked code, +2,032 linked data, +1 completed unit; no new exact-code attribution claimed.
  • All 1,027-object audit: only GCWindow .text differs (same 11,008-byte pre-dedup size). Data and ordinary linker-deduplicated weak definitions remain unchanged.
  • Global symbol-address audit: 0 differences.
  • Tests: literal 36, jump-table 27, pool 8, workflow 7 pass. Diff and main/leaf worktree checks pass.
  • Published tree 4497f02b59 equals the cleanly tested local tree.

Draft for review; no merge performed.

Note

Move LinearIntp<VEC3> constructor definition to iplGCWindow.cpp

Marks iplGCWindow.cpp as a matching build object and moves the math::LinearIntp<VEC3> inline constructor definition from iplInterporation.h into iplGCWindow.cpp under the existing conditional guard, with namespace transitions so the surrounding GCWindow code stays in the scene namespace. Behavioral Change: memoryCard module build configuration in configure.py now classifies iplGCWindow.cpp as Matching instead of NonMatching.

Macroscope summarized 6f1f126.

## Scope Follow up #755's 48/48 matching with native linkage. Move the existing empty LinearIntp<VEC3> constructor body from its GCWindow-specific class specialization into an inline out-of-class definition after MemoryBaseEvent's constructor; set GCWindow Matching. No body logic, symbol metadata, splits, data constants, or padding changes. ## Shared-header disclosure include/math/iplInterporation.h changes inside the existing IPL_GC_WINDOW_CPP specialization only. Only iplGCWindow.cpp defines that macro. The definition remains inline/weak. All 1,027 source objects were deleted and rebuilt to eliminate stale dependency paths; only GCWindow .text changes, and every other unit's allocated bytes/normalized relocations is unchanged. ## Why needed A flag-only link failed despite 48/48 exact functions and 50/50 identical pooled strings: the 16-byte interpolation constructor was emitted before MemoryBase/handler/event methods, shifting those three by +16 and the constructor by -196 in the final image. Moving its existing inline definition to the corresponding source position fixes emission order naturally. Simply deleting the explicit empty constructor did not fix the order and is not part of this PR. ## Verification after rebase on 4aaa362c5eb2ac1be17fe5fa533d5c2610d06473 - Clean full 43U all_source/progress/report/ok build: DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d, byte-identical to original/main. - ctxdiff 48/48 exact; pool 50/50 identical; literal audit 63 compared arguments, 0 candidates/errors/skips. - Unit 9,964/9,964 code and 2,032/2,032 data exact and fully linked. +9,964 linked code, +2,032 linked data, +1 completed unit; no new exact-code attribution claimed. - All 1,027-object audit: only GCWindow .text differs (same 11,008-byte pre-dedup size). Data and ordinary linker-deduplicated weak definitions remain unchanged. - Global symbol-address audit: 0 differences. - Tests: literal 36, jump-table 27, pool 8, workflow 7 pass. Diff and main/leaf worktree checks pass. - Published tree 4497f02b5969204e777574095f2b872b1ad8eb00 equals the cleanly tested local tree. Draft for review; no merge performed. <!-- Macroscope's pull request summary starts here --> <!-- Macroscope will only edit the content between these invisible markers, and the markers themselves will not be visible in the GitHub rendered markdown. --> <!-- If you delete either of the start / end markers from your PR's description, Macroscope will append its summary at the bottom of the description. --> > [!NOTE] > ### Move `LinearIntp<VEC3>` constructor definition to `iplGCWindow.cpp` > Marks `iplGCWindow.cpp` as a matching build object and moves the `math::LinearIntp<VEC3>` inline constructor definition from [iplInterporation.h](https://github.com/coah80/wii-ipl/pull/765/files#diff-c485c136e96704e9586c2f720fce17090862dc69e905bdf9a18167d198fdd573) into [iplGCWindow.cpp](https://github.com/coah80/wii-ipl/pull/765/files#diff-091dd6b9f7033be9d99ca3e8c0488c53131a9e71b4c8c88b43701b006daea429) under the existing conditional guard, with namespace transitions so the surrounding GCWindow code stays in the scene namespace. Behavioral Change: memoryCard module build configuration in [configure.py](https://github.com/coah80/wii-ipl/pull/765/files#diff-4d5f3192809ec1b9add6b33007e0c50031ad9a0a2f3f55a481b506468824db2c) now classifies `iplGCWindow.cpp` as Matching instead of NonMatching. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 6f1f126.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-02 07:24:54 +00:00 (Migrated from github.com)

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.

Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.
Sign in to join this conversation.