Tool for comparing assembler files/dumps
Python
Latest commit 279c9be Jun 19, 2015 @davidmalcolm Tweak README.rst

README.rst

asmdiff

This is a tool for comparing the output of "objdump" for a before/after pair of .o files.

It attempts to be more useful than a purely textual "diff" in the following ways:

  • It ignores reorderings of functions, instead matching them by name.
  • It has heuristics for matching up methods between old and new even if the underlying class is renamed, or if a function becomes a method.
  • Functions that appear/disappear are reported by name, rather than emitting the body of the code.
  • Code locations and jump targets are tracked relative to the top of the function that they're in, so that movement of a function within the .text section doesn't show up as a difference.
  • Trailing nop instructions (for padding) are ignored