Commit Graph

10 Commits

Author SHA1 Message Date
LagoLunatic 6b911411f0 Actually fix debug_map_diff.py paths 2026-07-31 19:12:55 -04:00
LagoLunatic fa73747971 Fix paths in debug_map_diff.py 2026-07-31 19:02:36 -04:00
LagoLunatic 0f8be7a620 debug_map_diff.py: Diff alignment 2026-07-14 16:52:49 -04:00
LagoLunatic a498fbb50e Make debug_map_diff.py much more accurate for main.dol TUs
Functions are now marked as "FAKE?" instead of "FAKE" in cases where it's possible that they only seem fake due to the linker map not showing duplicate symbols multiple times (inlines used in multiple TUs).

"UNREFERENCED DUPLICATE" data in the base maps are now also taken into account. Also, limited linkage diffing can be done for main.dol symbols (based on the naming convention of l_ and g_ prefixes).
2026-07-14 16:38:20 -04:00
LagoLunatic bd46bc4866 debug_map_diff.py: Fix handling of localstatics in main.dol TUs 2026-07-13 13:27:40 -04:00
LagoLunatic 3cb9b3bdb4 debug_map_diff.py: Several improvements
Auto-detect if the TU is in main.dol or a REL. Detect this separately for the target and the base, in order to support TUs like d_a_npc_tt which are in main.dol for the debug build, but a REL for release builds. And disable linkage comparison when comparing a REL TU to a main.dol TU as the official main.dol maps do not include linkage information, but the REL maps do.
2026-07-13 13:20:35 -04:00
LagoLunatic 4fdf76cc41 Several improvements to debug_map_diff.py
Support checking linkage diffs, and checking if REL data symbols are missing/misnamed.
2026-07-08 13:58:18 -04:00
LagoLunatic 0d6d429ad1 Improve debug_map_diff.py, handle UNUSED symbols 2026-05-28 16:30:56 -04:00
LagoLunatic c3eab3103e debug_map_diff.py: Fix several bugs with main.dol TUs 2026-05-26 21:55:40 -04:00
LagoLunatic fe3b83dcc1 Add debug_map_diff.py to detect missing/wrong inlines 2026-05-22 18:01:30 -04:00