[uClibc] [PATCH] Config option for /etc/ld.so.preload
Peter Kjellerstedt
peter.kjellerstedt at axis.com
Tue Oct 5 10:42:54 UTC 2004
> -----Original Message-----
> From: Joakim Tjernlund [mailto:joakim.tjernlund at lumentis.se]
> Sent: 05 October 2004 11:55
> To: Peter Kjellerstedt; uclibc at uclibc.org
> Subject: RE: [uClibc] [PATCH] Config option for /etc/ld.so.preload
>
> [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.
> The same goes for ld.so.cache.
Well, the same solution applies here too I guess.
> Jocke
//Peter
More information about the uClibc
mailing list