diff options
author | Kurt Miller <kurt@cvs.openbsd.org> | 2005-10-21 15:24:11 +0000 |
---|---|---|
committer | Kurt Miller <kurt@cvs.openbsd.org> | 2005-10-21 15:24:11 +0000 |
commit | 3e4b9a884d0ff3fd509b589e704222e5e7b8b272 (patch) | |
tree | 6b895f17b9436d6b082ffd4c802f1d9e77776d16 /libexec/ld.so/resolve.c | |
parent | 14545e3032c5fdfe7c59ed86edaf389219c05d5f (diff) |
using _dl_link_grpsym to increment refcounts made _dl_notify_unload_shlib
simpler, however it broke ldd refcount output. use _dl_link_child to
increment refcounts and adjust _dl_notify_unload_shlib to match.
work by drahn@ and myself. ok drahn@
Diffstat (limited to 'libexec/ld.so/resolve.c')
-rw-r--r-- | libexec/ld.so/resolve.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libexec/ld.so/resolve.c b/libexec/ld.so/resolve.c index 4d66288969a..ec7acbda769 100644 --- a/libexec/ld.so/resolve.c +++ b/libexec/ld.so/resolve.c @@ -1,4 +1,4 @@ -/* $OpenBSD: resolve.c,v 1.44 2005/10/17 22:14:18 kettenis Exp $ */ +/* $OpenBSD: resolve.c,v 1.45 2005/10/21 15:24:10 kurt Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -153,7 +153,6 @@ _dl_finalize_object(const char *objname, Elf_Dyn *dynp, const long *dl_data, } DL_DEB(("obj %s has %s as head\n", object->load_name, _dl_loading_object->load_name )); - /* refcount handled in _dl_link_grpsym_list */ object->refcount = 0; TAILQ_INIT(&object->child_list); object->opencount = 0; /* # dlopen() & exe */ |