Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Jul 2008 21:55:36 +0200
From:      Marcin Cieslak <saper@system.pl>
To:        freebsd-emulation@freebsd.org
Subject:   Re: linux emulation: Preliminary support for more auxvec's [patch]
Message-ID:  <4877BAB8.1030804@system.pl>
In-Reply-To: <20080711115436.GZ17123@deviant.kiev.zoral.com.ua>
References:  <g57h1u$5od$1@ger.gmane.org> <20080711115436.GZ17123@deviant.kiev.zoral.com.ua>

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

[-- Attachment #1 --]
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 
>> information (for background please see: 
>> http://lists.freebsd.org/pipermail/freebsd-emulation/2006-September/002591.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) 
i386/amd64 auxvecs are implemented, except for AT_SYSINFO and 
AT_SYSINFO_EHDR that are i386-specific and provide optional way of 
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 
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 
-current. It is also trivial to port to 64-bit amd64 emulation.

--Marcin



[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

iQCVAwUBSHe6uz2W2v2wY27ZAQNH1wQAk4BD1WAcfGJV/BQmNIR6GKniI5gF0CrI
vaVwJCv2HKHvhqY51yf5Rbzxni3Dshye/2ozaS6nozNIJn79XZ7oCv4Wn95YllNW
dZ6ocli+so6XUT2hUXrjE9raE9mqGVcgRqcdI1WZj6rPh58B1hqbvIHomUoHDk7q
x0wo7VV8TH0=
=hlz7
-----END PGP SIGNATURE-----

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