From owner-freebsd-emulation@FreeBSD.ORG Fri Jul 11 19:55:51 2008 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 543311065693 for ; Fri, 11 Jul 2008 19:55:51 +0000 (UTC) (envelope-from freebsd-emulation@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id DFF958FC39 for ; Fri, 11 Jul 2008 19:55:50 +0000 (UTC) (envelope-from freebsd-emulation@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KHOib-0004kw-3l for freebsd-emulation@freebsd.org; Fri, 11 Jul 2008 19:55:49 +0000 Received: from 81.210.247.130 ([81.210.247.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Jul 2008 19:55:49 +0000 Received: from saper by 81.210.247.130 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 11 Jul 2008 19:55:49 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-emulation@freebsd.org From: Marcin Cieslak Date: Fri, 11 Jul 2008 21:55:36 +0200 Lines: 55 Message-ID: <4877BAB8.1030804@system.pl> References: <20080711115436.GZ17123@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enigA19EF0E5CE03EC51E963D795" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 81.210.247.130 User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8.1.13) Gecko/20080405 SeaMonkey/1.1.9 Mnenhy/0.7.5.0 In-Reply-To: <20080711115436.GZ17123@deviant.kiev.zoral.com.ua> X-Enigmail-Version: 0.95.6 Sender: news Subject: Re: linux emulation: Preliminary support for more auxvec's [patch] X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jul 2008 19:55:51 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA19EF0E5CE03EC51E963D795 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: quoted-printable Kostik Belousov wrote: > On Fri, Jul 11, 2008 at 01:43:55PM +0200, Marcin Cieslak wrote: >> Hello, >> >> Attached please find a simple diff to implement additional loader=20 >> information (for background please see:=20 >> http://lists.freebsd.org/pipermail/freebsd-emulation/2006-September/00= 2591.html) > Namely, AT_EXECPATH (somewhat similar to the Solaris auxvec of the same= > name) provides (might be relative) path for the binary being executed. Thank you very much. I have implemented the AT_PLATFORM, therefore all 2.6.16 (and later)=20 i386/amd64 auxvecs are implemented, except for AT_SYSINFO and=20 AT_SYSINFO_EHDR that are i386-specific and provide optional way of=20 invoking linux syscalls (using so-called virtual dynamic shared object). I think we don't need those. The code is completely untested on i386. My first attempts show that=20 skype and acroread8 launch faster (probably due to the "hz" effect). The patch is here: http://akson.sgh.waw.pl/~saper/FreeBSD/linux/auxvec.diff This was made against 7-STABLE, but there no major differences in=20 -current. It is also trivial to port to 64-bit amd64 emulation. --Marcin --------------enigA19EF0E5CE03EC51E963D795 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQCVAwUBSHe6uz2W2v2wY27ZAQNH1wQAk4BD1WAcfGJV/BQmNIR6GKniI5gF0CrI vaVwJCv2HKHvhqY51yf5Rbzxni3Dshye/2ozaS6nozNIJn79XZ7oCv4Wn95YllNW dZ6ocli+so6XUT2hUXrjE9raE9mqGVcgRqcdI1WZj6rPh58B1hqbvIHomUoHDk7q x0wo7VV8TH0= =hlz7 -----END PGP SIGNATURE----- --------------enigA19EF0E5CE03EC51E963D795--