A completely different approach to EH runtime

Alexandre Oliva aoliva@redhat.com
Wed Feb 21 15:00:00 GMT 2001


On Feb 21, 2001, "H . J . Lu" <hjl@valinux.com> wrote:

> Just think about you have more than libc.so.6 on your Linux machine in
> different direcories and they are both visibible to ld-linux.so.2. Can
> you tell me what may happen?

I see a few possible scenarios:

- it picks the first one it finds.

- it picks the newest one.

- it looks at all the dependency libraries of the program, all the
dependencies of libc.so.6 it finds, and chooses the one libc.so.6 that
doesn't have dependencies that conflict with those of the program.

- ld-linux.so.2 throws a virtual coin up, lets it fall down on the
floor and decides which libc.so.6 to use depending on the upside face
of the coin.  Multi-faced coins are used if multiple versions of
libc.so.6 are found.

:-)

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



More information about the Gcc mailing list