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

Joakim Tjernlund joakim.tjernlund at lumentis.se
Tue Oct 5 13:19:29 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.
> 
> Well, for the ld.so.preload case, that is easily fixed 
> by replacing the calls to _dl_dprintf(2, ...) with
> _dl_dprintf(_dl_debug_file, ...) where the results from
> _dl_open() and _dl_mmap() are tested.

I checked your latest patch into CVS as is. I don't have time to play with
this now.

 Jocke 



More information about the uClibc mailing list