From owner-svn-src-all@FreeBSD.ORG Mon Dec 12 17:39:07 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E24E91065670 for ; Mon, 12 Dec 2011 17:39:07 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from mo-p00-ob6.rzone.de (mo-p00-ob6.rzone.de [IPv6:2a01:238:20a:202:53f0::1]) by mx1.freebsd.org (Postfix) with ESMTP id 7D8598FC14 for ; Mon, 12 Dec 2011 17:39:02 +0000 (UTC) X-RZG-AUTH: :JiIXek6mfvEEUpFQdo7Fj1/zg48CFjWjQv0cW+St/nW/avgusCdvwXOZ/NA7x/bslxlDPy6G726REW7piU2JIqNTwRM= X-RZG-CLASS-ID: mo00 Received: from britannica.bec.de ([2001:6f8:13f0:0:5e26:aff:fe1e:99a9]) by smtp.strato.de (cohen mo2) (RZmta 26.15 AUTH) with (DHE-RSA-AES128-SHA encrypted) ESMTPA id Z024d1nBCG81Vm for ; Mon, 12 Dec 2011 18:38:50 +0100 (MET) Received: by britannica.bec.de (sSMTP sendmail emulation); Mon, 12 Dec 2011 18:38:48 +0100 Date: Mon, 12 Dec 2011 18:38:48 +0100 From: Joerg Sonnenberger To: svn-src-all@freebsd.org Message-ID: <20111212173847.GA1035@britannica.bec.de> References: <201112121103.pBCB3FuT097580@svn.freebsd.org> <20111212171709.GA22002@britannica.bec.de> <20111212172132.GN50300@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111212172132.GN50300@deviant.kiev.zoral.com.ua> User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: svn commit: r228435 - in head/libexec/rtld-elf: . amd64 arm i386 ia64 mips powerpc powerpc64 sparc64 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Dec 2011 17:39:08 -0000 On Mon, Dec 12, 2011 at 07:21:32PM +0200, Kostik Belousov wrote: > On Mon, Dec 12, 2011 at 06:17:09PM +0100, Joerg Sonnenberger wrote: > > On Mon, Dec 12, 2011 at 11:03:15AM +0000, Konstantin Belousov wrote: > > > To allow use of external references from the dispatch function, resolution > > > of the R_MACHINE_IRESOLVE relocations in PLT is postponed until GOT entries > > > for PLT are prepared, and normal resolution of the GOT entries is finished. > > > Similar to how it is done by GNU, IRELATIVE relocations are resolved in > > > advance, instead of normal lazy handling for PLT. > > > > Are you sure that you didn't introduce major locking issues with this? > What do you mean, exactly ? > > The dispatcher function is called under the bind lock, yes. What happens if the dispatcher function is trying to re-enter the dynamic linker? Joerg