3 ms·
Funnily enough I'm doing something similar, but with the extra step of turning parts of programs into object files first. That means I'm not limited to extant o
by boricj 3y ago
Funnily enough I'm doing something similar, but with the extra step of turning parts of programs into object files first. That means I'm not limited to extant object files, but it requires some amount of reverse-engineering to make it work.
I have a proof-of-concept with aln [1], the Atari Jaguar linker. I start with a Linux x86 a.out executable, which I delink into an ELF object file and then relink as an ELF x86 executable, working around mismatched ABIs as needed.
[1] https://forums.atariage.com/topic/354341-porting-the-original-atari-jaguar-sdk-to-elf/ https://forums.atariage.com/topic/354341-porting-the-origina...