Linaro toolchain build for armv5 builds for Armv7

48 Views Asked by At

I'm trying to use the linaro toolchain on Windows to cross compile for an ArmV5 target. My command looks like this:

arm-none-linux-gnueabi-gcc.exe test.c -march=armv5te -v -mtune=arm926ej-s

With this, the code compiles. But if I readelf the output file, I see it still compiled for an ArmV7 and ignored my flags. Is it really ignoring it and always defaulting to ArmV7 or have I missed something? I tried running:

arm-none-linux-gnueabi-gcc.exe --targets-help

which tells me it is possible, but apparently not. Also, the code fails to run on my target. I'm planning to use crosstool-ng if this doesn't work. Just a final check before I proceed to that...

0

There are 0 best solutions below