Re: Dynamic library loader search path
- From: Paul Pluzhnikov <ppluzhnikov-nsp@xxxxxxxxxxx>
- Date: Sat, 30 Dec 2006 06:28:37 -0800
"Gregory" <g_greg@xxxxxxxxxxxxxxx> writes:
As I understand dl-sysdeps.c is glibc source file. However it seems
that ld-linux.so links statically with glibc.
Rather /lib/ld-linux.so.2 is one of many (hundreds) of glibc
"components", and shares source and object code with libc.so.6
So I also need to rebuild ld-linux.so. Correct ?
If you want to get rid of "capability strings", you must rebuild
and install entire glibc (ld-linux.so.6 and libc.so.6 *must* be
updated simultaneously and from the same build).
Be warned -- a small mistake and your system will be un-bootable.
For a safewr way to experiment with glibc builds, see this:
http://bitwagon.com/rtldi/rtldi.html
Where can I get ld-linux.so sources for RHEL 3 ? Is it gnu
application ?
It's (inseparable) part of glibc.
Well, may be I was too pessimistic. Lets reword my claim as "increase
search time".
Let's reword some more: "increase search time by a fraction of percent".
This is probably a case of "premature optimization"; you should
measure the time spent there ('strace -T ./a.out') and only optimize
if the "wasted" time accounts for significant percentage of all
syscall time (which it likely will not).
By the way I checked the strace output and found that in case the
directories augmented with "capacity strings" do not exist (this is
almost always the case) they are searched only once
Yes, this is one of many glibc optimizations ...
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
.
- Follow-Ups:
- Re: Dynamic library loader search path
- From: Gregory
- Re: Dynamic library loader search path
- References:
- Dynamic library loader search path
- From: Gregory
- Re: Dynamic library loader search path
- From: Paul Pluzhnikov
- Re: Dynamic library loader search path
- From: Gregory
- Dynamic library loader search path
- Prev by Date: Re: Dynamic library loader search path
- Next by Date: Re: Dynamic library loader search path
- Previous by thread: Re: Dynamic library loader search path
- Next by thread: Re: Dynamic library loader search path
- Index(es):
Relevant Pages
|