Segfault of executables with shared libraries.

André Goddard Rosa andre.goddard at gmail.com
Fri Feb 27 00:04:17 UTC 2009


On Thu, Feb 26, 2009 at 4:45 PM, Colin Whittaker
<colinw at occamnetworks.com>wrote:

> Hi, I'm new here. I searched and found a similar thread that didn't seem to
> get resolved. Any help would be grand.. :-)
>
> I'm trying to build a cross tool chain for mips using buildroot.
> uClibc 0.9.29
> gcc 4.2.3
> binutils 2.18
> Kernel headers 2.6.21.5
>
> Everything builds fine and my target system builds just fine.
> Kernel builds and runs just fine. Only problem:
> All the executables that load shared libraries segfault immediately.
> This was most difficult to find since init(busybox) was segfaulting, but it
> shows nothing. Once I built it with -static it runs.


Hi!

     Are you compiling it with both -rdynamic and -fPIC? Which compiler
flags do you use? Can you provide an example code?


-- 
[]s,
André Goddard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20090226/cb6fc3fc/attachment.htm>


More information about the uClibc mailing list