Hello all
I've got a RPi 3B board with linux installed. There I have a working installation of fpc/lazarus, which where built there from sources.
Now I want to build RPi-dedicated executables directly from my laptop with linux x86.
I have built the fpc cross-compiler following the instruction in the wiki
http://wiki.lazarus.freepascal.org/Setup_Cross_Compile_For_ARM.
Everything seems to be working, at least the hello-world executable is created without errors and cannot be run under laptop-OS, saying the format is wrong, which means that it is really for arm. But when I transfer executable to RPi and try to run it i get a segmentation fault (sigsegv) without any additional information. Under the gdb there is also no information about the error, the gdb says "During startup program terminated with signal SIGSEGV, Segmentation fault" - and that's all.
Does anyone know how to debug this, cause i'm totally confused?
According to `uname -a` the RPi kernel is for armv7l, which is afaik arm7a+softfloat, so i built crosscompiler with ARMV7A and SOFT for float operations. But i have also tried other float options and ARM* archs, nothing changed. So it seems that something else is wrong.
Could anyone give any direction for investigation of the problem, i'm out of ideas.