I loaded the kernel and rootfs from esky.
I build a hello app which prints "hello" with gcc-4.3.2
When I put it in mini2440 and try to run it then it gives me a "Segmentation Fault".
Never before got this.
How can it be resolved.
Thanks,
Guillermo.
This is the app code:
File: main.c
Code: Select all
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char** argv) {
printf( "hola\n" ) ;
return (EXIT_SUCCESS);
}
Code: Select all
arm-linux-gcc -o hello main.c
ANOTHER THING I SAW
I downloaded from angstrom the gdb and tried to execute it.
Then it gave me "Illegal Instruction".
So I downloaded the libc6 from angstrom. (Install it)
and then the gdb worked.
But not the hello app.
GDB output
Code: Select all
[root@FriendlyARM /home]# gdb /home/hello
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-angstrom-linux-gnueabi"...
"/home/hello": not in executable format: File format not recognized