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/loader.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/loader.c')
-rw-r--r-- | libexec/ld.so/loader.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/ld.so/loader.c b/libexec/ld.so/loader.c index 84942ce4221..8d2bbe2af40 100644 --- a/libexec/ld.so/loader.c +++ b/libexec/ld.so/loader.c @@ -1,4 +1,4 @@ -/* $OpenBSD: loader.c,v 1.98 2005/10/16 04:14:22 kurt Exp $ */ +/* $OpenBSD: loader.c,v 1.99 2005/10/21 15:24:10 kurt Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -427,6 +427,7 @@ _dl_boot(const char **argv, char **envp, const long loff, long *dl_data) dl_data[AUX_base], loff); _dl_add_object(dyn_obj); + dyn_obj->refcount++; _dl_link_grpsym(dyn_obj); dyn_obj->status |= STAT_RELOC_DONE; |