aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-deps.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-deps.c')
-rw-r--r--elf/dl-deps.c4
1 files changed, 4 insertions, 0 deletions
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;
}
}