From owner-cvs-src-old@FreeBSD.ORG Wed Nov 10 08:46:51 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF4001065704 for ; Wed, 10 Nov 2010 08:46:51 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id CCC658FC26 for ; Wed, 10 Nov 2010 08:46:51 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id oAA8kp9l004058 for ; Wed, 10 Nov 2010 08:46:51 GMT (envelope-from kib@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id oAA8kpHg004057 for cvs-src-old@freebsd.org; Wed, 10 Nov 2010 08:46:51 GMT (envelope-from kib@repoman.freebsd.org) Message-Id: <201011100846.oAA8kpHg004057@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to kib@repoman.freebsd.org using -f From: Konstantin Belousov Date: Wed, 10 Nov 2010 08:46:29 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/libexec/rtld-elf rtld.c rtld.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2010 08:46:52 -0000 kib 2010-11-10 08:46:29 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) libexec/rtld-elf rtld.c rtld.h Log: SVN rev 215084 on 2010-11-10 08:46:29Z by kib MFC r214728: If dlopen() is called for the dso that has been already loaded as a dependency, then the dso never has its DAG initialized. Empty DAG makes ref_dag() call in dlopen() a nop, and the dso refcount is off by one. Initialize the DAG on the first dlopen() call, using a boolean flag to prevent double initialization. MFC r214776: Fix style. MFC r214777: Change init_dag() to not increment DAG refcount. Unconditionally call both init_dag() and ref_dag() in dlopen() for the case when the object was already loaded. Revision Changes Path 1.139.2.9 +13 -2 src/libexec/rtld-elf/rtld.c 1.43.2.3 +1 -0 src/libexec/rtld-elf/rtld.h