[llvm-dev] Relinking (syscall-free) ELF executable into Mach-O and PE executables

ardi via llvm-dev llvm-dev at lists.llvm.org
Fri Jul 20 00:46:05 PDT 2018


Hi,

Let's suppose we have an ELF executable that doesn't issue any syscall
(I mean, syscalls are issued from an external dynamic library, not
from the executable, and we can ignore such dynamic library because we
have the proper equivalent library with the proper syscalls in MacOS
and Windows).

So, the question: Is it "currently possible" (by "currently possible"
I mean that all the needed tools/code already exist) to somehow
"unlink" the code and data from the ELF executable, and relink it as
two new executables: one Mach-O and another PE?

Would this be possible with just LLVM tools, or would other
libraries/tools also be needed?

Thanks a lot!

ardi


More information about the llvm-dev mailing list