I've developped an application under Linux, that i want to port to
Windows (nothing to do with Playstation
). By the way, one can always
(build... and) use a cross compiler to do the job.
But it does not seem to be the more obvious solution ...
The operating systems calls are different between Linux and
Windows. It is not just a matter of extracting the machine code
from the ELF file and wrapping it into a .EXE file format:
the conversion program would have to detect each library call
and substitute a call to the appropriate Windows library.
You indicated earlier that the Linux binary was fully linked,
so everything in the Linux libc that it called upon would have
to be detected and converted to the appropriate Windows variation.
This is not always straight-forward: for example, the exact
parameters that you need to pass in Windows to create a network
socket are slightly different than what you need in Linux,
even though the routine name is the same and most of the parameters
are very close.
You may wish to load cygwin and MINGW onto the Windows box and use
it to recompile the Linux source.