I cross compiled a simple application, int main(){return 0;} on Ubuntu with
> arm-linux-gnueabihf-gcc-4.6 -g -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -marm hello.c -Wl,-t -o hello
When executed on a Raspberry Pi, it produced a segment fault.
If I compile on ubuntu and link on the Raspberry Pi, it works as expected.
GCC Bugzilla – Bug 56473
I cross compiled a simple application, int main(){return 0;} on Ubuntu with gnueabihf- gcc-4.6 -g -mcpu=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard -marm hello.c -Wl,-t -o hello
> arm-linux-
When executed on a Raspberry Pi, it produced a segment fault.
If I compile on ubuntu and link on the Raspberry Pi, it works as expected.
>lsb_release -rd arm-linux- gnueabihf arm-linux- gnueabihf: ross1.63 ross1.63 ross1.63 0 us.archive. ubuntu. com/ubuntu/ precise/universe amd64 Packages dpkg/status
Description: Ubuntu 12.04.2 LTS
Release: 12.04
>apt-cache policy gcc-4.6-
gcc-4.6-
Installed: 4.6.3-1ubuntu5c
Candidate: 4.6.3-1ubuntu5c
Version table:
*** 4.6.3-1ubuntu5c
500 http://
100 /var/lib/