Posted by: Anonymous Coward
on April 19, 2006 10:38 AM
I didn't verify this, but I definately think that it's impossible to create an executable that is both a valid PE and an ELF file.
It definitely isn't, for one simple reason: PE files must start with the <a href="http://en.wikipedia.org/wiki/Magic_number_(programming)" title="wikipedia.org">magic string</a wikipedia.org> "MZ" (the initials of the <a href="http://en.wikipedia.org/wiki/Mark_Zbikowski" title="wikipedia.org">person</a wikipedia.org> who designed the DOS executable format it derives from), while ELF files must start with the byte 0x7f followed by the string "ELF".
Re:It's not a cross-platform binary
Posted by: Anonymous Coward on April 19, 2006 10:38 AMIt definitely isn't, for one simple reason: PE files must start with the <a href="http://en.wikipedia.org/wiki/Magic_number_(programming)" title="wikipedia.org">magic string</a wikipedia.org> "MZ" (the initials of the <a href="http://en.wikipedia.org/wiki/Mark_Zbikowski" title="wikipedia.org">person</a wikipedia.org> who designed the DOS executable format it derives from), while ELF files must start with the byte 0x7f followed by the string "ELF".
#