I'm trying to use gcc 6.3.0 to cross-compile to the Pi Zero, however even a simple hello-world binary is not executable (SIGSEGV even before main is executed). Using gcc 6.3.0 to compile ON the Pi Zero works fine.
I'm cross-compiling with -marm -march=armv6 -mfpu=vfp -mfloat-abi=hard, and I can see that the same flags (less -marm) is used when compiling on the Pi Zero.
What have I missed ??
Btw. Using the same toolchain for cross-compiling to a RPi 3 works just fine, it is only a problem with Zero.