Add more comments to _dl_load_cache_lookup().
authorCarlos O'Donell <carlos@redhat.com>
Thu, 7 Feb 2013 18:53:46 +0000 (13:53 -0500)
committerCarlos O'Donell <carlos@redhat.com>
Fri, 8 Feb 2013 17:55:34 +0000 (12:55 -0500)
Calling _dl_load_cache_lookup will load the cache if not already.
If loading the cache fails no more attempts will be made to load
the cache.

ChangeLog
elf/dl-cache.c

index 0fd23d3..ab411fd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
 
+       * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
+       loaded if not already and that a failure is permanent.
+
+2013-02-08  Carlos O'Donell  <carlos@redhat.com>
+
        [BZ #15006]
        * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
        * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
index 2c4bcc6..030fdca 100644 (file)
@@ -172,8 +172,9 @@ _dl_cache_libcmp (const char *p1, const char *p2)
 }
 
 
-/* Look up NAME in ld.so.cache and return the file name stored there,
-   or null if none is found.  */
+/* Look up NAME in ld.so.cache and return the file name stored there, or null
+   if none is found.  The cache is loaded if it was not already.  If loading
+   the cache previously failed there will be no more attempts to load it.  */
 
 const char *
 internal_function