Troubleshooting statically built application using backtrace.
ANDY KENNEDY
ANDY.KENNEDY at adtran.com
Fri May 17 18:58:11 UTC 2013
> > What did I do wrong?
> You have to add "-fexceptions" compiler option in command line, this
> enable the gcc to
> add frame unwind information for all functions.
> I used the same test and working fine without any problems on my SH target:
>
> root at arcidiaf:/home/filippo/bkt# gcc -static -o test-static-0.9.33
> -rdynamic -fexceptions test.c -lubacktrace -ldl
> root at arcidiaf:/home/filippo/bkt# ./test-static-0.9.33 3
> backtrace() returned 7 addresses
> [0x4003ea]
> [0x400504]
> [0x400548]
> [0x40053e]
> [0x40053e]
> [0x4005be]
> [0x40d3a6]
Yup that was it. We can now execute the hello_world app from the
man page and our app.
Thanks guys!
Andy
More information about the uClibc
mailing list