diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-09-02 07:27:51 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-09-02 07:27:51 +0000 |
commit | e7beef5f1992a08510ed58d3acd2bdf32090f0da (patch) | |
tree | 43b2ea3db860652e53473b47239a1a1415228156 /elf | |
parent | d447d70d85dfb4f43fe2eff1b2171c36f90a4fa1 (diff) | |
download | glibc-e7beef5f1992a08510ed58d3acd2bdf32090f0da.tar glibc-e7beef5f1992a08510ed58d3acd2bdf32090f0da.tar.gz glibc-e7beef5f1992a08510ed58d3acd2bdf32090f0da.tar.bz2 glibc-e7beef5f1992a08510ed58d3acd2bdf32090f0da.zip |
(dl_main): Increment l_opencount for main binary.
Diffstat (limited to 'elf')
-rw-r--r-- | elf/rtld.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/elf/rtld.c b/elf/rtld.c index a01594a3ca..cf7f7efca9 100644 --- a/elf/rtld.c +++ b/elf/rtld.c @@ -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) |