(_dl_map_object_deps): The sorting of the dependencies must be stable
authordrepper <drepper>
Wed, 3 Apr 2002 06:13:39 +0000 (06:13 +0000)
committerdrepper <drepper>
Wed, 3 Apr 2002 06:13:39 +0000 (06:13 +0000)
to work correctly.

elf/dl-deps.c

index 6dac54a..9fd2dd2 100644 (file)
@@ -614,6 +614,10 @@ Filters not supported with LD_TRACE_PRELINKING"));
                             (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;
                  }
            }