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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Fri, Jul 11, 2008 at 01:43:55PM +0200, Marcin Cieslak wrote: > Hello, > > Attached please find a simple diff to implement additional loader > information (for background please see: > http://lists.freebsd.org/pipermail/freebsd-emulation/2006-September/002591.html) > > This patch creates linux_get_machine() making linux_new_uname > platform-independent. > > AT_PLATFORM is not yet implemented, since I need to allocate a string > for it on the user stack. I *could* use something on the SPARE_USRSPACE, > 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 > > A bit better solution might be to change linux_copyout_strings to > allocate more space for the AT_PLATFORM (but how do I then pass the > pointer to the elf_linux_fixup?) > > This would also mean to bring the linux_copyout_strings to i386. > > What's the best way to do this? [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkh3SfsACgkQC3+MBN1Mb4i5PQCeKTfk78EgiiE9wrSD4HMRjAS/ QdEAn3sJLWVnaCvTwWTmq7zCjY3ArZUs =KZBv -----END PGP SIGNATURE-----home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080711115436.GZ17123>
