From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 21 21:35:38 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id C50AB679; Thu, 21 Feb 2013 21:35:38 +0000 (UTC) (envelope-from jlh@FreeBSD.org) Received: from smtp5-g21.free.fr (smtp5-g21.free.fr [IPv6:2a01:e0c:1:1599::14]) by mx1.freebsd.org (Postfix) with ESMTP id CFDE7D98; Thu, 21 Feb 2013 21:35:36 +0000 (UTC) Received: from endor.tataz.chchile.org (unknown [82.233.239.98]) by smtp5-g21.free.fr (Postfix) with ESMTP id 54179D48047; Thu, 21 Feb 2013 22:35:29 +0100 (CET) Received: from felucia.tataz.chchile.org (felucia.tataz.chchile.org [192.168.1.9]) by endor.tataz.chchile.org (Postfix) with ESMTP id 3F7199F7; Thu, 21 Feb 2013 22:35:28 +0100 (CET) Received: by felucia.tataz.chchile.org (Postfix, from userid 1000) id 3A09F13AA9; Thu, 21 Feb 2013 21:35:28 +0000 (UTC) Date: Thu, 21 Feb 2013 22:35:28 +0100 From: Jeremie Le Hen To: Damjan Jovanovic Subject: Re: [patch] Wine DLL base address patches Message-ID: <20130221213528.GD92116@felucia.tataz.chchile.org> Mail-Followup-To: Damjan Jovanovic , freebsd-emulation@freebsd.org, freebsd-hackers@freebsd.org, tijl@coosemans.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org, tijl@coosemans.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Feb 2013 21:35:38 -0000 Hi Damjan, On Wed, Feb 20, 2013 at 05:29:01PM +0200, Damjan Jovanovic wrote: > > Wine needs some of its libraries to be loaded at specific base > addresses (https://wiki.freebsd.org/Wine), something FreeBSD currently > lacks. > > I've written a patch to the dynamic loader (/libexec/ld-elf.so.1) that > loads libraries at their preferred base addresses > (http://www.freebsd.org/cgi/query-pr.cgi?pr=176216), as well as a port > of Prelink to FreeBSD which Wine uses to set base addresses > (http://www.freebsd.org/cgi/query-pr.cgi?pr=176283). Both work :-), > the changed dynamic loader doesn't show any problems in a few days of > testing, and prelink works with the --reloc-only option as used by > Wine. Thanks for this work. Out of curiosity, did you try to run prelink on the whole base system? If yes, did you make any measurement of the performance improvement? Thank you! -- Jeremie Le Hen Scientists say the world is made up of Protons, Neutrons and Electrons. They forgot to mention Morons.