projects
/
platform
/
upstream
/
linaro-glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d447d70
)
(dl_main): Increment l_opencount for main binary.
author
Ulrich Drepper
<drepper@redhat.com>
Sun, 2 Sep 2001 07:27:51 +0000
(07:27 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Sun, 2 Sep 2001 07:27:51 +0000
(07:27 +0000)
elf/rtld.c
patch
|
blob
|
history
diff --git
a/elf/rtld.c
b/elf/rtld.c
index
a01594a
..
cf7f7ef
100644
(file)
--- 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)