]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(dl_main): Increment l_opencount for main binary.
authorUlrich Drepper <drepper@redhat.com>
Sun, 2 Sep 2001 07:27:51 +0000 (07:27 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 2 Sep 2001 07:27:51 +0000 (07:27 +0000)
elf/rtld.c

index a01594a3ca4b5e1670c0a0547c128857b50ff4b8..cf7f7efca976630d2c04f58c3f1d3fa32b292cb5 100644 (file)
@@ -554,6 +554,8 @@ of this helper program; chances are you did not intend to run this program.\n\
   _dl_loaded->l_map_end = 0;
   /* Perhaps the executable has no PT_LOAD header entries at all.  */
   _dl_loaded->l_map_start = ~0;
+  /* We opened the file, account for it.  */
+  ++_dl_loaded->l_opencount;
 
   /* Scan the program header table for the dynamic section.  */
   for (ph = phdr; ph < &phdr[phnum]; ++ph)