Correct concatenated isEnableCursorCache symbol #487

Merged
coah80 merged 1 commits from agent/bittle/cursor-cache-symbol into main 2026-10-01 21:53:28 +00:00
coah80 commented 2026-10-01 21:45:23 +00:00 (Migrated from github.com)

Evidence

One 43U symbol at 0x81427DD4 accidentally concatenates two complete names:
isEnableCursorCache__Q39textinput10textdrawer4BaseCFvgetStartPos__Q39textinput10textdrawer4BaseCFv.

Restore the canonical isEnableCursorCache__Q39textinput10textdrawer4BaseCFv. The original body is exactly lbz r3, 0x104(r3); blr, matching the existing ordinary C++ return mbCursorCache;. The distinct next function, getStartPos at 0x81427DDC, loads the 32-bit field at 0xBC instead. The compiler-generated method and vtable relocations already use the corrected name.

No function address, size, section extent, source implementation, vtable contents or weak-symbol policy changes. This fixes symbol identity rather than removing deduplicated weak vtables or forcing source aliases.

Fresh verification

Rebased against 3946983f. Fresh rebuild of tiInputForm, tiTextDrawer and MyTiLetterForm, regenerated reference objects and full report.

  • Corrected method: 8/8 bytes, 2/2 instructions, ctxdiff zero differences.
  • tiInputForm: 210 → 211 / 221 exact functions, matched code 38,924 → 38,932.
  • tiTextDrawer matched data 1,408 → 1,560 / 1,608 bytes.
  • MyTiLetterForm matched data 104 → 1,248 / 1,968 bytes; its .data section now reports 100%. Its separate .rodata ownership correction is PR #486, not included here.
  • Global matched data 1,670,308 → 1,671,604 (+1,296), matched code 2,619,852 → 2,619,860 (+8), matched functions 12,203 → 12,204. Total code/data and link totals unchanged.
  • No previously exact function or matched-data regression across the full report.
  • Pools identical: 20/20, empty, and 13/13. Workflow guards 7/7, pool tests 8/8, diff/worktree checks pass.
  • Full 43U build and build/43U/ok pass, SHA-1 26116613f624061ba99c8d1a299aaa6efa85670d.

All units remain at their existing linking status. Numbers reflect corrected attribution of existing compiled code/data, not new decompilation. Local ctxdiff uses the previously disclosed adapter. Left for Cole's review and merge.

Note

Fix concatenated isEnableCursorCache symbol entry at 0x81427DD4

Corrects the symbol table in symbols.txt. The entry at 0x81427DD4 now names only isEnableCursorCache__Q39textinput10textdrawer4BaseCFv; the concatenated getStartPos name is removed from it. getStartPos remains listed at 0x81427DDC.

Macroscope summarized f32c7a9.

## Evidence One 43U symbol at **0x81427DD4** accidentally concatenates two complete names: `isEnableCursorCache__Q39textinput10textdrawer4BaseCFvgetStartPos__Q39textinput10textdrawer4BaseCFv`. Restore the canonical `isEnableCursorCache__Q39textinput10textdrawer4BaseCFv`. The original body is exactly `lbz r3, 0x104(r3); blr`, matching the existing ordinary C++ `return mbCursorCache;`. The distinct next function, `getStartPos` at **0x81427DDC**, loads the 32-bit field at 0xBC instead. The compiler-generated method and vtable relocations already use the corrected name. No function address, size, section extent, source implementation, vtable contents or weak-symbol policy changes. This fixes symbol identity rather than removing deduplicated weak vtables or forcing source aliases. ## Fresh verification Rebased against **3946983f**. Fresh rebuild of tiInputForm, tiTextDrawer and MyTiLetterForm, regenerated reference objects and full report. - Corrected method: **8/8 bytes, 2/2 instructions, ctxdiff zero differences**. - tiInputForm: **210 → 211 / 221 exact functions**, matched code **38,924 → 38,932**. - tiTextDrawer matched data **1,408 → 1,560 / 1,608 bytes**. - MyTiLetterForm matched data **104 → 1,248 / 1,968 bytes**; its `.data` section now reports 100%. Its separate `.rodata` ownership correction is PR #486, not included here. - Global matched data **1,670,308 → 1,671,604** (+1,296), matched code **2,619,852 → 2,619,860** (+8), matched functions **12,203 → 12,204**. Total code/data and link totals unchanged. - No previously exact function or matched-data regression across the full report. - Pools identical: **20/20**, empty, and **13/13**. Workflow guards **7/7**, pool tests **8/8**, diff/worktree checks pass. - Full 43U build and `build/43U/ok` pass, SHA-1 **26116613f624061ba99c8d1a299aaa6efa85670d**. All units remain at their existing linking status. Numbers reflect corrected attribution of existing compiled code/data, not new decompilation. Local ctxdiff uses the previously disclosed adapter. Left for Cole's review and 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 concatenated `isEnableCursorCache` symbol entry at 0x81427DD4 > Corrects the symbol table in [symbols.txt](https://github.com/coah80/wii-ipl/pull/487/files#diff-92f49dd4754762deffc0a2c26a42d508945e86a4db65a437b06cd7a740fab114). The entry at 0x81427DD4 now names only `isEnableCursorCache__Q39textinput10textdrawer4BaseCFv`; the concatenated `getStartPos` name is removed from it. `getStartPos` remains listed at 0x81427DDC. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized f32c7a9.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-01 21:53:25 +00:00 (Migrated from github.com)

Reviewed and merged. Clean rebuild: DOL sha1 unchanged, 0 regressions. The concatenated name was clearly a symbol-table artifact (body is lbz r3,0x104(r3); blr and getStartPos is a separate function at 0x81427DDC), so restoring the canonical mangled name is right. This should also unblock linking tiTextDrawer, which #485's author tried and hit an undefined isEnableCursorCache.

Reviewed and merged. Clean rebuild: DOL sha1 unchanged, 0 regressions. The concatenated name was clearly a symbol-table artifact (body is lbz r3,0x104(r3); blr and getStartPos is a separate function at 0x81427DDC), so restoring the canonical mangled name is right. This should also unblock linking tiTextDrawer, which #485's author tried and hit an undefined isEnableCursorCache.
coah80 commented 2026-10-01 21:54:13 +00:00 (Migrated from github.com)

Review (post-merge): this is a good fix. Correcting a corrupted symbol name with no address/size change is legitimate, and the evidence (target body lbz r3,0x104(r3); blr, distinct next function, before/after per unit, DOL sha1) is exactly what we want. For future PRs like this:

  • Keep doing what you did here: name-only symbol fixes in their own PR, never mixed with source changes, and state plainly that the score gain is re-attribution, not new decompilation.
  • Never change a symbol's address or size to make a score go up; if a size looks wrong, open it as a finding with the asm evidence instead.
  • When you find one corrupted name, sweep symbols.txt for the same pattern (e.g. two mangled names joined, or a name containing a second __Q) and fix them together in one PR with a list.
  • Rebase right before opening: this one raced with other merges on main.
Review (post-merge): this is a good fix. Correcting a corrupted symbol *name* with no address/size change is legitimate, and the evidence (target body `lbz r3,0x104(r3); blr`, distinct next function, before/after per unit, DOL sha1) is exactly what we want. For future PRs like this: - Keep doing what you did here: name-only symbol fixes in their own PR, never mixed with source changes, and state plainly that the score gain is re-attribution, not new decompilation. - Never change a symbol's address or size to make a score go up; if a size looks wrong, open it as a finding with the asm evidence instead. - When you find one corrupted name, sweep symbols.txt for the same pattern (e.g. two mangled names joined, or a name containing a second `__Q`) and fix them together in one PR with a list. - Rebase right before opening: this one raced with other merges on main.
Sign in to join this conversation.