GJDuck / e9patch

A powerful static binary rewriting tool
GNU General Public License v3.0
986 stars 67 forks source link

Add support for source file and line information #79

Closed GJDuck closed 4 months ago

GJDuck commented 4 months ago

This changes adds support for matching/patching against the source file and line information. This assumes that the binary was compiled with DWARF debug information (-g) enabled, so will not work for non-debug and/or stripped binaries. However, there are several workflows where the source code is available, meaning that the program can be re-built using (-g) and instrumentation applied at the binary-level.