Make results in a lot of assembler errors though (Error: selected processor does not support ARM mode `ldrex r2,[r3]`). Turning off optimizations helps a bit, down to 4 errors from a few hundred. Not sure if this will help in all cases, but adding: Code: -march=armv7-a -marm -mfloat-abi=softfp to CFLAGS resulted in a successful compile. Binary works.
-march=armv7-a -marm -mfloat-abi=softfp
Now to compile qtcreator...