Re: Dynamic library loader search path



"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.
.



Relevant Pages

  • Re: glibc 2.2 vs 2.3 issue back again
    ... libpthread is *inseparable* part of glibc. ... > executable itself require NPTL threads ... but such code is non-portable and I doubt Mathematica actually ... In order to understand recursion you must first understand recursion. ...
    (comp.os.linux.development.apps)
  • Re: glibc memory mapping questions
    ... > documentation that is about how glibc works and not what the ... > library functions do? ... You'll have to use the source for dynamic loader (which is part of ... In order to understand recursion you must first understand recursion. ...
    (comp.os.linux.development.system)
  • Re: Transparent Fiber/ Green Thread / Coroutine Library ?
    ... green threads if this is possible. ... Sounds like a case of premature optimization. ... Also note that some compilations of glibc depends on %esp ... In order to understand recursion you must first understand recursion. ...
    (comp.programming.threads)
  • Re: How to find glibc version?
    ... There is no product called "Red Hat Linux 3.2.3-20". ... If you want to know what distribution you do have, ... Gcc and glibc versions are independent. ... In order to understand recursion you must first understand recursion. ...
    (comp.unix.programmer)
  • Re: missing library
    ... opposite. ... There are all kinds of things besides DNS that you must also ... Since glibc may call any of these internally, ... In order to understand recursion you must first understand recursion. ...
    (comp.os.linux.development.system)