I'm trying to launch a native Android app on Intel Atom Z2560, but it always crashes in the same place with SIGILL ILL_ILLOPN (illegal operand) signal.
The crash doesn't happen with -O0.
The compiler I'm using is GCC 4.8 from NDK r10. I tried to set -march to atom, but that doesn't change anything.
Anybody knows how can I configure my build scripts so there is no incompatible code generated?