[uClibc] [PATCH] Config option for /etc/ld.so.preload

Joakim Tjernlund joakim.tjernlund at lumentis.se
Tue Oct 5 07:21:01 UTC 2004


> After the addition of a configuration option for
> enabling the support of /etc/ld.so.cache, I thought
> it might be a good idea to add one for the support
> of the /etc/ld.so.preload file too. So here it is.
> 
> While doing this, I also noticed that the dynamic
> linker would hang indefinitely if either LD_PRELOAD 
> or /etc/ld.so.preload contained a library which was
> already loaded, so I made a patch for that too.
> 
> And of course, I could not resist from doing a little
> clean up of comments and indentation, so here is a
> patch for that too.
> 
> //Peter

While trying this patch out I noticed that if /etc/ld.so.preload is missing,
ldso will complain about that. Should ldso do that? There will be quite a few
messages during boot which are in the way.

Ldso will complain likewise if /etc/ld.so.cache is missing.

How does glibc do in this case?

 Jocke



More information about the uClibc mailing list