[PATCH] nptl: proper soname handling

Rob Landley rob at landley.net
Sun May 2 00:47:51 UTC 2010


On Friday 23 April 2010 09:29:10 Austin Foxley wrote:
> > Since it seems that ld.so soname is hardcoded in GCC. If you want to
> > use something else than /lib/ld-uClibc.so.0 as dynamic linker, you also
> > need to update GCC default configration, create alternate specfile
> > overriding the hardcoded -dynamic-linker, or pass-in
> > -Wl,-dynamic-linker,...
> > when compiling.
>
> Hmm, I didn't realize GCC hardcoded that. I'll push a fix.

What does "pushing a fix" mean in this context?

ELF requires hardcoding an absolute path to the dynamic linker, because the 
kernel calls it directly and putting a search path in the kernel would be 
policy in kernel space.  So the compiler _has_ to put a hardcoded path in 
there, all you can do is change which one.  There are a number of ways to do 
that (command line options, gcc spec file, environment variables...)  The one I 
use is an updated version of the old uClibc wrapper script from 2005, which I 
maintain for my own use.  (Attached.)

Rob
-- 
Latency is more important than throughput. It's that simple. - Linus Torvalds
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ccwrap.c
Type: text/x-csrc
Size: 12701 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20100501/8e3af1f7/attachment.c>


More information about the uClibc mailing list