Handle objects without .data in pool_diff #478
Reference in New Issue
Block a user
Delete Branch "agent/bittle/pool-missing-data"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Separate tooling follow-up requested in #476's review. Rebased/checked against
f4fd16f8immediately before publishing..datasection now represents an empty string pool instead of raisingKeyError.Validation:
python tools/decomp-assist/test_pool_diff.pypasses 8/8; running the tool on both freshly built NAND driver objects now reportsPOOL IDENTICAL up to 0 (mine=0 base=0);git diff --checkpasses. This tool still compares string pools, not all data sections; objdiff and the DOL hash remain required.No matching flags, original binaries, or C/C++ source changes. Left for Cole to review and merge.
Reviewed and merged: the 8 unit tests pass locally, missing .data now reads as an empty pool, and the extra-strings case finally returns non-zero (that was a real bug). Good catch adding that. Feedback: keep tests next to the tool like this; and when you change an exit code, note in the body who consumes it (here nothing in CI depends on pool_diff's exit status, so it's safe).