Repair the truncated memo Manager vtable extent #725

Merged
coah80 merged 1 commits from agent/bittle/memo-vtable-extent into main 2026-10-02 05:02:01 +00:00
coah80 commented 2026-10-02 05:00:07 +00:00 (Migrated from github.com)

Two-line symbol-extent correction, with no score gain

The memo Manager vtable at 0x816680A8 is recorded as only 0xCC bytes, stopping inside its inherited/base slots. Extend the known table through its proven final virtual slot: 0x140 bytes. Keep the following 0x28 bytes separately unclassified at lbl_816681E8. The combined 0x168-byte range is unchanged; no data bytes move.

Evidence beyond a source-size guess

  • The original Manager::create assembly loads its own vtable and calls slots +0x130/+0x134/+0x138/+0x13C. At original object .text+0x4DC..+0x4EC, it loads the vtable from 0(r31), then lwz r12,0x13c(r12); mtctr r12; bctrl. A 0xCC-byte extent cannot contain that referenced slot.
  • The original relocation at the final slot (address 0x816681E4) targets createBG__Q49textinput6extend4memo7ManagerFv. The complete known 0x140-byte table agrees with the compiler-emitted table and the declared virtual methods, including inherited setLayoutScaleFor4x3 at +0xCC.
  • The old lbl_81668174 boundary was inside that table, precisely at +0xCC. Its only original external relocation was the false packed-Unicode pointer removed in #724. No code or real data consumer refers to this artificial internal boundary after #724.
  • The native object's remaining 0x28-byte tail discrepancy is NOT filled, deleted, reassigned, or declared solved. Keeping it separately named preserves that unresolved evidence.

Verification on 73f5b332 (after #724)

  • Full 43U all_source/progress/report/DOL build passes; all 3,867,904 DOL bytes compare identical. SHA1 26116613f624061ba99c8d1a299aaa6efa85670d.
  • All 1,027 compiled source objects have zero allocated-byte/normalized-relocation changes.
  • All unit and aggregate progress measures are unchanged. This fixes metadata; it claims no new code, data, or linking gain.
  • MyTiManager remains 91/91 instruction-exact, 20,196 exact code bytes, 76/1,132 reported matched data, and NonMatching/unlinked.
  • String pool 7/7 identical; workflow 7/7, pool 8/8, jump-table 27/27 tests pass; diff/worktree checks pass.
  • A whole-project vtable-size audit found this as the only named vtable whose native size exceeded its reference symbol's extent.

Only symbols.txt changes. No source/header/compiler/split edits, forced placement, synthetic padding, or weak-vtable deduplication workaround.
Tested/published tree a2405673d7. Review only; no assistant merge.

Note

Fix Manager vtable object size in 43U symbol table

Updates symbols.txt to repair a truncated memo Manager vtable entry. The Manager virtual-table object size is corrected from 0xCC to 0x140, and the symbol at 0x81668174 is replaced with lbl_816681E8 at address 0x816681E8 with size 0x28.

Macroscope summarized 25e22a2.

## Two-line symbol-extent correction, with no score gain The memo Manager vtable at 0x816680A8 is recorded as only 0xCC bytes, stopping inside its inherited/base slots. Extend the known table through its proven final virtual slot: 0x140 bytes. Keep the following 0x28 bytes separately unclassified at lbl_816681E8. The combined 0x168-byte range is unchanged; no data bytes move. ## Evidence beyond a source-size guess - The original Manager::create assembly loads its own vtable and calls slots +0x130/+0x134/+0x138/+0x13C. At original object .text+0x4DC..+0x4EC, it loads the vtable from 0(r31), then `lwz r12,0x13c(r12); mtctr r12; bctrl`. A 0xCC-byte extent cannot contain that referenced slot. - The original relocation at the final slot (address 0x816681E4) targets createBG__Q49textinput6extend4memo7ManagerFv. The complete known 0x140-byte table agrees with the compiler-emitted table and the declared virtual methods, including inherited setLayoutScaleFor4x3 at +0xCC. - The old lbl_81668174 boundary was inside that table, precisely at +0xCC. Its only original external relocation was the false packed-Unicode pointer removed in #724. No code or real data consumer refers to this artificial internal boundary after #724. - The native object's remaining 0x28-byte tail discrepancy is NOT filled, deleted, reassigned, or declared solved. Keeping it separately named preserves that unresolved evidence. ## Verification on 73f5b332 (after #724) - Full 43U all_source/progress/report/DOL build passes; all 3,867,904 DOL bytes compare identical. SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. - All 1,027 compiled source objects have zero allocated-byte/normalized-relocation changes. - All unit and aggregate progress measures are unchanged. This fixes metadata; it claims no new code, data, or linking gain. - MyTiManager remains 91/91 instruction-exact, 20,196 exact code bytes, 76/1,132 reported matched data, and NonMatching/unlinked. - String pool 7/7 identical; workflow 7/7, pool 8/8, jump-table 27/27 tests pass; diff/worktree checks pass. - A whole-project vtable-size audit found this as the only named vtable whose native size exceeded its reference symbol's extent. Only symbols.txt changes. No source/header/compiler/split edits, forced placement, synthetic padding, or weak-vtable deduplication workaround. Tested/published tree a2405673d702b4ef85dc146b051549a0546890c3. Review only; no assistant merge. <!-- 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] > ### Fix Manager vtable object size in 43U symbol table > Updates [symbols.txt](https://github.com/coah80/wii-ipl/pull/725/files#diff-92f49dd4754762deffc0a2c26a42d508945e86a4db65a437b06cd7a740fab114) to repair a truncated memo Manager vtable entry. The Manager virtual-table object size is corrected from 0xCC to 0x140, and the symbol at 0x81668174 is replaced with `lbl_816681E8` at address 0x816681E8 with size 0x28. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 25e22a2.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-02 05:01:59 +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.