forked from Battelle/movfuscator
-
Notifications
You must be signed in to change notification settings - Fork 409
Closed
Description
i managed to compile a simple HelloWorld program with movcc.
#include <stdio.h>
int main()
{
printf("Hello World");
return 0;
}
when i compile it with gcc it just works, but when using movcc i get the following error:
bash: ./program: cannot execute binary file: Exec format error
i checked the format of both files, which are indeed different:
gcc produces an elf64-x86-64 binary
movcc produces an elf32-i386 binary
i tried to pass "-m elf_x86_64" with -Wl but then i get another error:
/usr/bin/ld: Incompatible /mnt/d/TMP/C/git/movfuscator/build//gcc/32/libgcc.a skipped search of -lgcc
What am i doing wrong?
Metadata
Metadata
Assignees
Labels
No labels