summary refs log tree commit diff
path: root/elf/rtld.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/rtld.c')
-rw-r--r--elf/rtld.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/elf/rtld.c b/elf/rtld.c
index 295a6aed7d..d6bd516dfc 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -266,6 +266,7 @@ of this helper program; chances are you did not intend to run this program.\n",
       main_map->l_phdr = phdr;
       main_map->l_phnum = phent;
       main_map->l_entry = *user_entry;
+      main_map->l_opencount = 1;
     }
 
   /* Scan the program header table for the dynamic section.  */