diff options
author | Rich Felker <dalias@aerifal.cx> | 2017-03-14 19:00:02 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2017-03-14 19:00:02 -0400 |
commit | cb525397bb053ea49cf160965477a17b17286eb3 (patch) | |
tree | b6fcb5cdc1cc61f02fbce5cd7f3ddddd9c820bb0 /ldso | |
parent | c49d3c8adadfa24235fcf4779bb722b1aa6f480b (diff) | |
download | musl-cb525397bb053ea49cf160965477a17b17286eb3.tar.gz musl-cb525397bb053ea49cf160965477a17b17286eb3.tar.bz2 musl-cb525397bb053ea49cf160965477a17b17286eb3.tar.xz musl-cb525397bb053ea49cf160965477a17b17286eb3.zip |
remove unused refcnt field for shared libraries
Diffstat (limited to 'ldso')
-rw-r--r-- | ldso/dynlink.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/ldso/dynlink.c b/ldso/dynlink.c index 80d85e94..178fe27e 100644 --- a/ldso/dynlink.c +++ b/ldso/dynlink.c @@ -52,7 +52,6 @@ struct dso { Phdr *phdr; int phnum; size_t phentsize; - int refcnt; Sym *syms; Elf_Symndx *hashtab; uint32_t *ghashtab; @@ -971,7 +970,6 @@ static struct dso *load_library(const char *name, struct dso *needed_by) /* Search for the name to see if it's already loaded */ for (p=head->next; p; p=p->next) { if (p->shortname && !strcmp(p->shortname, name)) { - p->refcnt++; return p; } } @@ -1034,7 +1032,6 @@ static struct dso *load_library(const char *name, struct dso *needed_by) if (!p->shortname && pathname != name) p->shortname = strrchr(p->name, '/')+1; close(fd); - p->refcnt++; return p; } } @@ -1074,7 +1071,6 @@ static struct dso *load_library(const char *name, struct dso *needed_by) memcpy(p, &temp_dso, sizeof temp_dso); p->dev = st.st_dev; p->ino = st.st_ino; - p->refcnt = 1; p->needed_by = needed_by; p->name = p->buf; strcpy(p->name, pathname); |