mirror of git://sourceware.org/git/glibc.git
(dl_main): Increment l_opencount for main binary.
This commit is contained in:
parent
d447d70d85
commit
e7beef5f19
|
|
@ -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;
|
_dl_loaded->l_map_end = 0;
|
||||||
/* Perhaps the executable has no PT_LOAD header entries at all. */
|
/* Perhaps the executable has no PT_LOAD header entries at all. */
|
||||||
_dl_loaded->l_map_start = ~0;
|
_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. */
|
/* Scan the program header table for the dynamic section. */
|
||||||
for (ph = phdr; ph < &phdr[phnum]; ++ph)
|
for (ph = phdr; ph < &phdr[phnum]; ++ph)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue