HexHive / retrowrite

RetroWrite -- Retrofitting compiler passes through binary rewriting
Other
655 stars 78 forks source link

Share code between architectures as much as possible #39

Open diagprov opened 2 years ago

diagprov commented 2 years ago

Description of the problem

Currently, retrowrite duplicates code between its x64 and arm64 implementations.

Proposed solution

The proposal in this is to share as much as possible code between the two implementations. Specifically, handling of ELF files and DWARF structures should be relatively portable between implementations. Only the specific retrowriting techniques should be architecture-dependent.