symbols: correct AOSSThread allocation callback parameter names #759

Merged
coah80 merged 1 commits from agent/bittle/aoss-callback-symbols into main 2026-10-02 07:05:41 +00:00
coah80 commented 2026-10-02 07:04:28 +00:00 (Migrated from github.com)

Scope

Names-only metadata correction, two lines in config/43U/symbols.txt. No source, size, address, split, section attribute, or matching-flag changes. No new code/data/link gain claimed.

  • aossAlloc__Q33ipl5scene10AOSSThreadFv -> aossAlloc__Q33ipl5scene10AOSSThreadFUll (0x813FCC8C, size 0x58 unchanged)
  • aossFree__Q33ipl5scene10AOSSThreadFv -> aossFree__Q33ipl5scene10AOSSThreadFUlPvl (0x813FCCE4, size 0x50 unchanged)

Evidence

The native object emits exactly these two corrected names from the existing static callback definitions (u32,s32) and (u32,void*,s32). RevoEX soex.h defines SOAlloc and SOFree with those signatures; AOSSThread assigns them without casts to config.alloc/config.free and passes both to AOSSi_InitLocal.

Original allocation body saves incoming r4 at +0x10 and passes that size to MEMAllocFromAllocator at +0x2c. Original free body saves incoming r4 at +0x14 and passes that pointer to MEMFreeToAllocator at +0x2c. The old void-parameter names therefore do not describe the callback ABI. The unused id/align parameter types are supported by the callback typedefs and existing native source, not inferred from unused registers.

Verification on c9fb0697ca

  • Corrected exact-name ctxdiff: allocation 22/22 instructions, 0 differences; free 20/20, 0 differences; entire unit 10/10 exact.
  • Unit remains 1,892/1,892 code, 88/88 data, and fully linked; all overall report measures unchanged.
  • Pool identical (0/0 strings). New literal-reference audit analyzes all 10 functions without the previous two exact-name skips.
  • All 1,027 source objects: identical allocated bytes and normalized relocations versus main.
  • Full 43U all_source/progress/report/ok build passed; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d.
  • Tests: literal 36, jump-table 27, pool 8, workflow 7 pass. Diff/worktree checks pass.
  • Published tree b42f36829c matches tested local tree.

Draft for review; no merge performed.

Note

Correct AOSSThread allocation callback parameter names in symbol declarations

Updates the mangled signatures for aossAlloc and aossFree in symbols.txt. aossAlloc now includes an unsigned-long-long parameter; aossFree now includes unsigned-long, pointer-to-void, and long parameters. Addresses and recorded sizes are unchanged.

Macroscope summarized 37d1576.

## Scope Names-only metadata correction, two lines in config/43U/symbols.txt. No source, size, address, split, section attribute, or matching-flag changes. No new code/data/link gain claimed. - aossAlloc__Q33ipl5scene10AOSSThreadFv -> aossAlloc__Q33ipl5scene10AOSSThreadFUll (0x813FCC8C, size 0x58 unchanged) - aossFree__Q33ipl5scene10AOSSThreadFv -> aossFree__Q33ipl5scene10AOSSThreadFUlPvl (0x813FCCE4, size 0x50 unchanged) ## Evidence The native object emits exactly these two corrected names from the existing static callback definitions (u32,s32) and (u32,void*,s32). RevoEX soex.h defines SOAlloc and SOFree with those signatures; AOSSThread assigns them without casts to config.alloc/config.free and passes both to AOSSi_InitLocal. Original allocation body saves incoming r4 at +0x10 and passes that size to MEMAllocFromAllocator at +0x2c. Original free body saves incoming r4 at +0x14 and passes that pointer to MEMFreeToAllocator at +0x2c. The old void-parameter names therefore do not describe the callback ABI. The unused id/align parameter types are supported by the callback typedefs and existing native source, not inferred from unused registers. ## Verification on c9fb0697ca1af1a4934b8020b176d57068cf219e - Corrected exact-name ctxdiff: allocation 22/22 instructions, 0 differences; free 20/20, 0 differences; entire unit 10/10 exact. - Unit remains 1,892/1,892 code, 88/88 data, and fully linked; all overall report measures unchanged. - Pool identical (0/0 strings). New literal-reference audit analyzes all 10 functions without the previous two exact-name skips. - All 1,027 source objects: identical allocated bytes and normalized relocations versus main. - Full 43U all_source/progress/report/ok build passed; DOL SHA1 26116613f624061ba99c8d1a299aaa6efa85670d. - Tests: literal 36, jump-table 27, pool 8, workflow 7 pass. Diff/worktree checks pass. - Published tree b42f36829c67456c0ae295179a8dc45bc6bd9dd4 matches 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] > ### Correct AOSSThread allocation callback parameter names in symbol declarations > Updates the mangled signatures for `aossAlloc` and `aossFree` in [symbols.txt](https://github.com/coah80/wii-ipl/pull/759/files#diff-92f49dd4754762deffc0a2c26a42d508945e86a4db65a437b06cd7a740fab114). `aossAlloc` now includes an unsigned-long-long parameter; `aossFree` now includes unsigned-long, pointer-to-void, and long parameters. Addresses and recorded sizes are unchanged. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 37d1576.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-02 07:05:38 +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.