André Goddard Rosa wrote:
No. I'm using no flags in this example: # cat test.c #include <unistd.h> int main( int argc, char **argv ) { while(1) { write( 0, "Hello world!\n", 13 ); } } # # mips-linux-gcc -o test test.c # On the target, I just get # ./test Segmentation fault # mips-linux-objdump shows that NULL Program Header in this application too. I will try to get gdb to build with -static and see if I can trace where it is crashing. BTW, tried the other binutils, 2.18.50.0.1 with the same results. GDB seems unable to debug this as well. I built gdb with static libraries and tried to debug test.c I gets the Segmentation fault, and dumps out of gdb....weird I thought gdb was suppose to catch these things.. # gdb test 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 "mips-linux"... (gdb) l warning: Source file is more recent than executable. 1 #include <unistd.h> 2 3 int main( int argc, char **argv ) 4 { 5 while(1) { 6 write( 0, "Hello world!\n", 13 ); 7 } 8 } (gdb) b 3 Breakpoint 1 at 0x4005e0: file test.c, line 3. (gdb) run Starting program: /test Segmentation fault # Colin.. |
_______________________________________________ uClibc mailing list [email protected] http://lists.busybox.net/mailman/listinfo/uclibc
