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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/elf/dl-deps.c b/elf/dl-deps.c
index 5bc048edb9..4fc2943c14 100644
--- a/elf/dl-deps.c
+++ b/elf/dl-deps.c
@@ -201,7 +201,8 @@ _dl_map_object_deps (struct link_map *map,
/* Allocate a temporary record to contain the references to the
dependencies of this object. */
- if (l->l_searchlist.r_list == NULL && l != map && l->l_ldnum > 0)
+ if (l->l_searchlist.r_list == NULL && l->l_initfini == NULL
+ && l != map && l->l_ldnum > 0)
needed = (struct link_map **) alloca (l->l_ldnum
* sizeof (struct link_map *));