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

Joakim Tjernlund joakim.tjernlund at lumentis.se
Tue Oct 5 09:55:23 UTC 2004


[SNIP]
> > 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.
> 
> Oops, this was my fault. I forgot to invert an if-statement
> when I performed the clean up (effectively preventing the
> use of the /etc/ld.so.preload file). I have attached a new 
> version of the clean up patch to rectify this.

OK, this works. However, I looked into glibc and there every
error is silently ignored. So I think you should just
try to open and mmap the file and if that fails , just skip the
preload stuff without any error message.

The same goes for ld.so.cache.

 Jocke



More information about the uClibc mailing list