Warning patrol.
authorRoland McGrath <roland@hack.frob.com>
Sun, 14 Aug 2011 22:59:11 +0000 (15:59 -0700)
committerRoland McGrath <roland@hack.frob.com>
Sun, 14 Aug 2011 22:59:11 +0000 (15:59 -0700)
ChangeLog
elf/rtld.c
sysdeps/generic/ldsodefs.h

index 45e389e..c67904e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-08-14  Roland McGrath  <roland@hack.frob.com>
+
+       * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
+       * elf/rtld.c (dl_main): Invert order of assignment in last change,
+       to avoid a warning.
+
 2011-08-14  David S. Miller  <davem@davemloft.net>
 
        * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
index b84a3e7..478d037 100644 (file)
@@ -1391,7 +1391,7 @@ of this helper program; chances are you did not intend to run this program.\n\
              char *copy = malloc (len);
              if (copy == NULL)
                _dl_fatal_printf ("out of memory\n");
-             l->l_name = l->l_libname->name = memcpy (copy, dsoname, len);
+             l->l_libname->name = l->l_name = memcpy (copy, dsoname, len);
            }
 
          /* Add the vDSO to the object list.  */
index a5f0a25..8c7f00f 100644 (file)
@@ -396,7 +396,7 @@ struct rtld_global
        uint32_t hashval;
        const char *name;
        const ElfW(Sym) *sym;
-       struct link_map *map;
+       const struct link_map *map;
       } *entries;
       size_t size;
       size_t n_elements;