encounter / decomp-toolkit

A GameCube & Wii decompilation toolkit
Apache License 2.0
115 stars 16 forks source link

[BUG] `ninja diff` complains about finding `...rodata` label instead of the first object in `rodata` #68

Open roeming opened 3 months ago

roeming commented 3 months ago

Repository URL

https://github.com/roeming/pikmin2-dtk

Game Name

Pikmin 2

Game Version

GPVE01

Description

The game currently matches, but ninja diff complains about looking for a string in rodata, but instead found the label for the start of rodata. The string does exist, and it matches, but it found the label at that location first, and doesn't realize the string is there.

> ninja diff
[1/2] SPLIT config\GPVE01\config.yml
 INFO Loading config\GPVE01\config.yml
 INFO Loading and analyzing 1 module (using 1 thread)
 INFO Initial analysis completed in 0.210s (found 24952 functions)
 INFO Rebuilding relocations and splitting
 INFO Splitting completed in 5.210s (wrote 1153 objects)
 INFO Total time: 5.426s
[2/2] RUN configure.py
[1/1] DIFF build\GPVE01\main.elf
FAILED: dol_diff
build\tools\dtk.exe -L error dol diff config\GPVE01\config.yml build\GPVE01\main.elf
ERROR Expected to find symbol @2932 (type Object, size 0xC) at 0x80495A70
ERROR At 0x80495A70, found: ...rodata.0 (type Unknown, size 0x0)
ERROR At 0x80495A70, found: @593 (type Object, size 0xA)
ERROR Instead, found @2932 (type Object, size 0xE) at 0x8049D8F8
ninja: build stopped: subcommand failed.