Illegal instruction-Running Cross compiled c code on Android

Please, I need help on this: ((This problem was published earlier, but not resolved. I'm trying to run C code on the Android 2.3.3 platform on an emulator. Here is my code (not even a welcoming world): test.c

void main() { }

Cross compilation: arm-linux-gnueabi-gcc -static -o test test.c

->adb push test /data/local
->./test

I received: Illegal instruction. / test

I also tried compiling with -march = armv5, but the same result.

CPU Information:

->adb shell /proc/cpuinfo

Processor Architecture: 5TEJ

I already lost searching over the Internet for a solution. If someone resolves this or has any idea, share it. I appreciate your help.

+5
source share

All Articles