I want to run a "hello world" program on Android.
It is written in C, and I tried different cross-compilers.
arm-elf-gcc : when I type "./hello" on my phone with adb I get a "Segmentation Fault". However, arm-elf-gdb runs the hello program normally, without a segmentation fault.
arm-linux-gcc : when I type "./hello" on my phone, I get "Illegal instruction"
Any ideas on how I can run my program on my phone?