Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jul 2008 14:54:36 +0300
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Marcin Cieslak <saper@system.pl>
Cc:        freebsd-emulation@freebsd.org
Subject:   Re: linux emulation: Preliminary support for more auxvec's
Message-ID:  <20080711115436.GZ17123@deviant.kiev.zoral.com.ua>
In-Reply-To: <g57h1u$5od$1@ger.gmane.org>
References:  <g57h1u$5od$1@ger.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080711115436.GZ17123>