encounter / objdiff

A local diffing tool for decompilation projects
Apache License 2.0
122 stars 21 forks source link

`objdiff-cli report changes` does not account for renames #91

Open ribbanya opened 3 months ago

ribbanya commented 3 months ago

It breaks if you rename a function or a translation unit.

The simplest solution would be to compare sections and functions by virtual address, rather than by name. It seems that changes would need to be restructured to compare the sections and functions across the whole project, instead of looping through the translation units. Then maybe they can be regrouped into units before outputting the JSON.

Would any projects have a problem with using virtual addresses instead of names?