Restore letter animation-table rodata ownership #486

Merged
coah80 merged 1 commits from agent/bittle/letter-rodata-ownership into main 2026-10-01 21:52:47 +00:00
coah80 commented 2026-10-01 21:40:11 +00:00 (Migrated from github.com)

Evidence

Move the MyTiLetterForm / tiHwKeyboard .rodata boundary from 0x81616B88 to 0x81616BC8. This is a two-line split correction; no source, symbols, linking flags or binary contents change.

MyTiLetterForm naturally emits eight 68-byte animation records (544 bytes) followed by four 60-byte animation groups (240 bytes): 784 bytes total. The old 720-byte split cut off the final null pointer of group three plus all of group four, assigning those 64 bytes to tiHwKeyboard. The fourth group is N_SendMes, count 1, pointing to animationFiles[5]. Its two relocations at 0x81616B90 and 0x81616B98 resolve to the letter string pool (+124) and letter animationFiles (+340). Neither belongs to the hardware-keyboard tables.

Independently checked the corrected reference against the existing compiler output: 784/784 raw rodata bytes identical and all 18 normalized relocations identical. This confirms the earlier observation recorded in MyTiLetterForm.attempts.md. It is an animation-table boundary error, not weak-vtable deduplication.

Fresh verification

Reference/rebase: 3946983f. Rebuilt both source objects, regenerated split/reference objects and full report.

  • Letter .rodata: 720 bytes / 95.74468% → 784 bytes / 100%.
  • Letter matched data: 104/1,968 → 888/2,032 bytes.
  • Letter code remains 26/26 functions, 3,496/3,496 bytes exact. ctxdiff has zero differences for all 26 functions.
  • HW .rodata: 240 bytes / 10% → 176 bytes / 90.909096%. Its existing 16-byte table-order mismatch remains; no claim of full data matching or linking.
  • HW code remains objdiff 10/10, 4,596/4,596. ctxdiff still exposes its existing weak-static/rodata relocation-offset differences in four functions; those are not hidden or fixed here.
  • Global matched data 1,670,308 → 1,671,092 (+784); total data stays 1,832,684. Code/link totals unchanged, and no previously exact-function or matched-data regression anywhere in the report.
  • Both string pools identical (13/13 and empty). Workflow guards 7/7, pool tests 8/8, diff/worktree checks pass.
  • Full 43U build and build/43U/ok pass. DOL SHA-1 26116613f624061ba99c8d1a299aaa6efa85670d.

Both units remain NonMatching: the remaining data/relocation problems are separate from this proven ownership correction. Local ctxdiff adapter uses Capstone with raw-word fallback for unsupported Gekko instructions and normalized branch/relocation targets; no tooling modifications are part of this PR. Left for Cole's review and merge.

Note

Restore .rodata split boundary for MyTiLetterForm.cpp and tiHwKeyboard.cpp

Shifts the shared .rodata boundary in splits.txt from 0x81616B88 to 0x81616BC8. This moves 64 bytes of the letter animation-table rodata from src/keyboard/tiHwKeyboard.cpp back to src/keyboard/MyTiLetterForm.cpp. Other section ranges are unchanged. Risk: any symbol or size assertion near address 0x81616B88 in the 43U build may need updating.

Macroscope summarized 608e38b.

## Evidence Move the MyTiLetterForm / tiHwKeyboard `.rodata` boundary from **0x81616B88 to 0x81616BC8**. This is a two-line split correction; no source, symbols, linking flags or binary contents change. MyTiLetterForm naturally emits eight 68-byte animation records (544 bytes) followed by four 60-byte animation groups (240 bytes): **784 bytes** total. The old 720-byte split cut off the final null pointer of group three plus all of group four, assigning those 64 bytes to tiHwKeyboard. The fourth group is `N_SendMes`, count 1, pointing to animationFiles[5]. Its two relocations at **0x81616B90** and **0x81616B98** resolve to the letter string pool (+124) and letter animationFiles (+340). Neither belongs to the hardware-keyboard tables. Independently checked the corrected reference against the existing compiler output: **784/784 raw rodata bytes identical and all 18 normalized relocations identical**. This confirms the earlier observation recorded in MyTiLetterForm.attempts.md. It is an animation-table boundary error, not weak-vtable deduplication. ## Fresh verification Reference/rebase: **3946983f**. Rebuilt both source objects, regenerated split/reference objects and full report. - Letter `.rodata`: **720 bytes / 95.74468% → 784 bytes / 100%**. - Letter matched data: **104/1,968 → 888/2,032 bytes**. - Letter code remains **26/26 functions, 3,496/3,496 bytes exact**. ctxdiff has zero differences for all 26 functions. - HW `.rodata`: **240 bytes / 10% → 176 bytes / 90.909096%**. Its existing 16-byte table-order mismatch remains; no claim of full data matching or linking. - HW code remains objdiff **10/10, 4,596/4,596**. ctxdiff still exposes its existing weak-static/rodata relocation-offset differences in four functions; those are not hidden or fixed here. - Global matched data **1,670,308 → 1,671,092** (+784); total data stays **1,832,684**. Code/link totals unchanged, and no previously exact-function or matched-data regression anywhere in the report. - Both string pools identical (13/13 and empty). Workflow guards **7/7**, pool tests **8/8**, diff/worktree checks pass. - Full 43U build and `build/43U/ok` pass. DOL SHA-1 **26116613f624061ba99c8d1a299aaa6efa85670d**. Both units remain NonMatching: the remaining data/relocation problems are separate from this proven ownership correction. Local ctxdiff adapter uses Capstone with raw-word fallback for unsupported Gekko instructions and normalized branch/relocation targets; no tooling modifications are part of this PR. 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] > ### Restore `.rodata` split boundary for `MyTiLetterForm.cpp` and `tiHwKeyboard.cpp` > Shifts the shared `.rodata` boundary in [splits.txt](https://github.com/coah80/wii-ipl/pull/486/files#diff-d5132efbf4d83cc6fc61c89e9d57150d270f1361827760236aeab4e594f19366) from `0x81616B88` to `0x81616BC8`. This moves 64 bytes of the letter animation-table rodata from `src/keyboard/tiHwKeyboard.cpp` back to `src/keyboard/MyTiLetterForm.cpp`. Other section ranges are unchanged. Risk: any symbol or size assertion near address `0x81616B88` in the 43U build may need updating. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 608e38b.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-01 21:52:44 +00:00 (Migrated from github.com)

Reviewed and merged. Clean rebuild: DOL sha1 unchanged, 0 regressions. The relocation evidence (0x81616B90/98 resolving into the letter string pool and animationFiles) plus the 784/784 byte match is a solid ownership proof. Same feedback as #483: this is a high-value pattern, keep looking for split boundaries whose relocations point into the neighbouring unit.

Reviewed and merged. Clean rebuild: DOL sha1 unchanged, 0 regressions. The relocation evidence (0x81616B90/98 resolving into the letter string pool and animationFiles) plus the 784/784 byte match is a solid ownership proof. Same feedback as #483: this is a high-value pattern, keep looking for split boundaries whose relocations point into the neighbouring unit.
Sign in to join this conversation.