1

ARM cross compiling

view story
linux-howto

http://stackoverflow.com – I have installed ARM cross compiler tool chain on my x86 Ubuntu12.04 linux. now I have arm-linux-gnueabi-gcc cross compiler. I have coded simple hello world program as follow #include <stdio.h> int main(){ printf("hello world\n"); return 0; } and I cross compiled this program using arm-linux-gnueabi-gcc -o a a.c -static the result of compiled binary is as follow $ file a a: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically lined, for GNU/Linux 2.6.31, not stripped if I run this binary on my ARM debian linux on QEMU it says 'Illegal Instruction' but if I compile t (HowTos)