You have an ARMv5
with no floating-point processor. It should have been enough with -march=armv5
and -mfloat-abi=soft
flags.
However if those flags doesn't work for you, I would suggest writing the smallest c application for testing the toolchain.
/* no includes */
int main(void) {
return 42;
}
and compiling it with most complete/strict flags
$arm-linux-gnueabi-gcc -Wall --static -O2 -marm -march=armv5 simple.c -o simple
after this, push simple
to target, run it then issue an echo $?
to verify if you would get 42
. If it works, try to see if you can get printf
working. If that one also works, you are pretty much set for everything. If printf
fails, easiest solution would be to find right toolchain for your target.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…