experimental developments with glibc

Metuki Sabhe sabhe.metuki@gmail.com
Sat Jul 14 03:33:00 GMT 2007


On 7/11/07, John Reiser <jreiser@bitwagon.com> wrote:
> >> > Is it possible to have 2 working libc libraries in the system
>
> >>  ... using LD_PRELOAD may work in many [dyanmic linking] cases.  ...
>
> > How would you easily test a static linkage with it ?
>
> Consult the Makefile for each application, and/or the "-Wl,..." options
> to gcc, and "info ld", etc., for possibilities in changing the
> static linking environment for each application.
>
> Note that static linking with glibc is specifically discouraged
> because of the difficulties with keeping all its pieces synchronized
> (ld-linux.so, libc.so, libc.a, libm, librt, libdl, libpthread,
> libnsl, libnss, gconv, ...)  Glibc does not always detect
> mismatches, and static linking increases the chances for trouble.
> It is likely that you will deceive yourself.

thank you,
metuki
>
> --
>



More information about the Libc-alpha mailing list