encounter / objdiff

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

Combine data sections with equal names #76

Closed AetiasHax closed 5 months ago

AetiasHax commented 5 months ago

Some compilers such as mwccarm can generate multiple .data sections in the same object file, but clicking a data symbol in objdiff shows a hex view for only the first .data section. Meanwhile, the target object has only one .data section, so the hex view is diffing all of the target data with only a single chunk of base object data.

My proposed solution is to "combine" sections with equal names, ordered from lowest to highest section index. There's a checkbox under "Diff Options" to enable this when needed.