From owner-freebsd-emulation@FreeBSD.ORG Fri Jul 11 12:35:56 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 CB5FB1065674 for ; Fri, 11 Jul 2008 12:35:56 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id 532E18FC12 for ; Fri, 11 Jul 2008 12:35:55 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m6BBsbKY077761 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 11 Jul 2008 14:54:37 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m6BBsaap054566; Fri, 11 Jul 2008 14:54:36 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m6BBsabh054565; Fri, 11 Jul 2008 14:54:36 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 11 Jul 2008 14:54:36 +0300 From: Kostik Belousov To: Marcin Cieslak Message-ID: <20080711115436.GZ17123@deviant.kiev.zoral.com.ua> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Owq9/LamPkWRn7rU" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on skuns.kiev.zoral.com.ua Cc: freebsd-emulation@freebsd.org Subject: Re: linux emulation: Preliminary support for more auxvec's 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 12:35:56 -0000 --Owq9/LamPkWRn7rU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 11, 2008 at 01:43:55PM +0200, Marcin Cieslak wrote: > Hello, >=20 > 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/00259= 1.html) >=20 > This patch creates linux_get_machine() making linux_new_uname=20 > platform-independent. >=20 > AT_PLATFORM is not yet implemented, since I need to allocate a string=20 > for it on the user stack. I *could* use something on the SPARE_USRSPACE,= =20 > but I think we got rid of all such tricks long time ago. I think I dealt with the similar problem in the implementation of the $ORIGIN support for the rtld, that is WIP for long time. Namely, AT_EXECPATH (somewhat similar to the Solaris auxvec of the same name) provides (might be relative) path for the binary being executed. See http://people.freebsd.org/~kib/misc/rtld-origin.1.patch >=20 > A bit better solution might be to change linux_copyout_strings to=20 > allocate more space for the AT_PLATFORM (but how do I then pass the=20 > pointer to the elf_linux_fixup?) >=20 > This would also mean to bring the linux_copyout_strings to i386. >=20 > What's the best way to do this? --Owq9/LamPkWRn7rU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkh3SfsACgkQC3+MBN1Mb4i5PQCeKTfk78EgiiE9wrSD4HMRjAS/ QdEAn3sJLWVnaCvTwWTmq7zCjY3ArZUs =KZBv -----END PGP SIGNATURE----- --Owq9/LamPkWRn7rU--