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.
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 address0xdeadbeef
in the original and0xcafef00d
in the modified, every instance of0xcafef00d
found in the modified subroutine would be replaced with0xdeadbeef
.