Skip to content

Commit

Permalink
(dl_main): Increment l_opencount for main binary.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Sep 2, 2001
1 parent d447d70 commit e7beef5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions elf/rtld.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e7beef5

Please sign in to comment.