Re: [patch] solib do not add ldd if in libc

Daniel Jacobowitz
2009-07-21T18:08:31Z

On Tue, Jul 21, 2009 at 11:11:47AM -0400, Aleksandar Ristovski wrote:
> I, unfortunately, can not verify that it doesn't break solaris... I
> think it doesn't, but I couldn't test it (AFAIK, solaris has dynamic
> linker in a separate shared library and so it should not be found in
> the so list, but I don't have Solaris to verify this).

You'll break Linux with prelinking; lm_addr is an offset, so on a
prelinked system everything ought to load with offset zero.

Also, by clearing both lm and ldsomap, you cause this check to run
over and over again instead of just once. IIRC you can leave ldsomap
set.

--
Daniel Jacobowitz
CodeSourcery