iplSensitivity: suppress Rect dtor weak (prep for Matching) #641

Merged
coah80 merged 1 commits from agent/linker/iplSensitivity-rect-dtor into main 2026-10-01 23:33:24 +00:00
coah80 commented 2026-10-01 23:25:32 +00:00 (Migrated from github.com)

Summary

  • #define IPL_CONTROLLER_TRIVIAL_RECT_DTOR before including nw4r/ut/Rect.h so this TU no longer emits weak ~nw4r::ut::Rect (+64 bytes).
  • Compiled .text is byte-identical to the extract (1112 bytes).

Matching status

Not flipping Matching yet. .sdata2 still mismatches (48 vs 56 bytes / wrong literal order). DOL SHA1 fails if Matching is enabled.

Target SHA1 gate: 26116613f624061ba99c8d1a299aaa6efa85670d (OK with this NonMatching change).

Before / after

  • Linked code %: unchanged (still NonMatching)
  • Unit .text: src size 1176 → 1112 (matches extract)

Note

Suppress Rect destructor in iplSensitivity.cpp via IPL_CONTROLLER_TRIVIAL_RECT_DTOR

Defines IPL_CONTROLLER_TRIVIAL_RECT_DTOR before including nw4r/ut/Rect.h in iplSensitivity.cpp, then undefines it before the project and Revolution includes. This is prep work for Matching.

Macroscope summarized 1185d3e.

## Summary - `#define IPL_CONTROLLER_TRIVIAL_RECT_DTOR` before including `nw4r/ut/Rect.h` so this TU no longer emits weak `~nw4r::ut::Rect` (+64 bytes). - Compiled `.text` is **byte-identical** to the extract (1112 bytes). ## Matching status **Not flipping Matching yet.** `.sdata2` still mismatches (48 vs 56 bytes / wrong literal order). DOL SHA1 fails if Matching is enabled. Target SHA1 gate: `26116613f624061ba99c8d1a299aaa6efa85670d` (OK with this NonMatching change). ## Before / after - Linked code %: unchanged (still NonMatching) - Unit `.text`: src size 1176 → 1112 (matches extract) <!-- 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] > ### Suppress `Rect` destructor in `iplSensitivity.cpp` via `IPL_CONTROLLER_TRIVIAL_RECT_DTOR` > Defines `IPL_CONTROLLER_TRIVIAL_RECT_DTOR` before including `nw4r/ut/Rect.h` in [iplSensitivity.cpp](https://github.com/coah80/wii-ipl/pull/641/files#diff-5507012851819e45559d38f8a6277b615460f00c631a9de53b1a1d6c1af32a5d), then undefines it before the project and Revolution includes. This is prep work for Matching. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 1185d3e.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
coah80 commented 2026-10-01 23:33:21 +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.