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.
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.