[codex] Match MSL strtoul unit #209

Merged
coah80 merged 1 commits from agent/worker68/strtoul-20260922 into main 2026-09-23 02:30:48 +00:00
coah80 commented 2026-09-23 02:28:11 +00:00 (Migrated from github.com)

Implements the MSL strtoul conversion unit in readable C and marks it as matching, adding all seven functions to the 43U build.

Validation on the rebased leaf:

  • Focused 43U strtoul.o build passed.
  • pool_diff.py reports identical pools (no strings in either object).
  • objdiff reports 7/7 functions at 100%, 3264/3264 code bytes and 276/276 data bytes matched and fully linked, and all sections complete.
  • ctxdiff.py reports equal instruction counts and zero differences for all seven functions.

The full 43U build and DOL hash remain for parent-side verification.

Note

Match MSL_Common/strtoul.c and mark object as matching

  • Implements the full strtoul, strtoull, strtol, atoi, and atol APIs in strtoul.c, along with the internal __strtoul and __strtoull callback-driven scanners that handle whitespace, signs, auto/explicit bases, hex prefixes, and overflow detection.
  • Updates configure.py to change the MSL_Common/strtoul.c library object from NonMatching to Matching and adds the C++ exceptions compiler flag to its object-specific options.
  • Risk: none — this is a decompilation matching change with no runtime behavior difference; the generated code should now match the original binary.

Macroscope summarized 269bb5a.

Implements the MSL `strtoul` conversion unit in readable C and marks it as matching, adding all seven functions to the 43U build. Validation on the rebased leaf: - Focused 43U `strtoul.o` build passed. - `pool_diff.py` reports identical pools (no strings in either object). - `objdiff` reports 7/7 functions at 100%, 3264/3264 code bytes and 276/276 data bytes matched and fully linked, and all sections complete. - `ctxdiff.py` reports equal instruction counts and zero differences for all seven functions. The full 43U build and DOL hash remain for parent-side verification. <!-- 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] > ### Match `MSL_Common/strtoul.c` and mark object as matching > - Implements the full `strtoul`, `strtoull`, `strtol`, `atoi`, and `atol` APIs in [strtoul.c](https://github.com/coah80/wii-ipl/pull/209/files#diff-2dd9e3493ccd8aa95966e3db4bb02fad580201cfc90af80fb70ec7c8952a9651), along with the internal `__strtoul` and `__strtoull` callback-driven scanners that handle whitespace, signs, auto/explicit bases, hex prefixes, and overflow detection. > - Updates [configure.py](https://github.com/coah80/wii-ipl/pull/209/files#diff-4d5f3192809ec1b9add6b33007e0c50031ad9a0a2f3f55a481b506468824db2c) to change the `MSL_Common/strtoul.c` library object from `NonMatching` to `Matching` and adds the C++ exceptions compiler flag to its object-specific options. > - Risk: none — this is a decompilation matching change with no runtime behavior difference; the generated code should now match the original binary. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 269bb5a.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
Sign in to join this conversation.