]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(_dl_map_object_deps): The sorting of the dependencies must be stable to work
authorUlrich Drepper <drepper@redhat.com>
Wed, 3 Apr 2002 06:14:48 +0000 (06:14 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 3 Apr 2002 06:14:48 +0000 (06:14 +0000)
correctly.

elf/dl-deps.c

index ec613266147ffae5432b315506a552fd52aa9697..96ee5646ee124a5a3a36a4ffe4c27dddf5973ea1 100644 (file)
@@ -552,6 +552,10 @@ _dl_map_object_deps (struct link_map *map,
                             (k - j) * sizeof (struct link_map *));
                    map->l_initfini[j] = here;
 
+                   /* Don't insert further matches before the last
+                      entry moved to the front.  */
+                   ++j;
+
                    break;
                  }
            }