From 8693ad52d977cfde85bcd104a7f47dae6fe36c0b Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 3 Apr 2002 06:18:49 +0000 Subject: Update. * elf/dl-deps.c (_dl_map_object_deps): The sorting of the dependencies must be stable to work correctly. Reported by martin.lubich@datacon.at. --- elf/dl-deps.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'elf/dl-deps.c') diff --git a/elf/dl-deps.c b/elf/dl-deps.c index 6dac54ab23..9fd2dd23ef 100644 --- a/elf/dl-deps.c +++ b/elf/dl-deps.c @@ -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; } } -- cgit v1.2.3