draperlaboratory / cbat_tools

Program analysis tools developed at Draper on the CBAT project.
MIT License
102 stars 14 forks source link

Fortunac/address rewrite #258

Closed fortunac closed 3 years ago

fortunac commented 4 years ago

This PR adds the --rewrite-addresses flag which maps addresses of symbols in the modified binary to their addresses in the original binary.

For example, if a symbol foo was at address 0xdeadbeef in the original and 0xcafef00d in the modified, every instance of 0xcafef00d found in the modified subroutine would be replaced with 0xdeadbeef.