I have a x86_64 machine and want to compile for a machine, which has i586 arch.
I installed: libc6-dev-x32
and libc6-dev:i386
Then I tried to compile a simple hello world like this:
gcc -m32 -march=i586 -mcpu=i586 test.c -o test -static
It works on my machine but on the target I get the illegal instruction error on the CMOVE
instruction. So he doesn't know CMOVE
.
How can I solve this problem?