linux emulation

Malcolm Kay malcolm.kay at internode.on.net
Fri Dec 3 05:24:39 PST 2004


On Fri, 3 Dec 2004 07:38 am, Dick Davies wrote:
> * Mikko Heiskanen <mikko at whitecortex.net> [1244 16:44]:
> > I've been wondering about this some time now.
> > The linux compatibility layer (kernel module + linux_base -port)
> > is told to be able to run linux binaries. The handbook even describes
> > for a couple of heavy-duty applications how this is done.
> > However, after reading that part of the handbook and googling around the
> > net, I haven't the slightest idea how I'm supposed to run such program.
>
> Same as any other binary.
>
> > Let's say I have a program. Should I put it in /compat/linux/somewhere,
> > run it like /compat/linux/somewhere/executable and it just somehow
> > works? Or should I chroot to /compat/linux?
> > How does FreeBSD know when to use linuxemu?
>
> A Linux binary looks different to a native one. The system notices and
> kicks off the emulation layer. (effectively you have a different system
> call table for each emulated OS, if that means anything to you).
>
Depends somewhat on how you came by the binary. You may need to run 'brandelf'
over binary executables.
# brandelf -t Linux linuxbinary

Malcolm



More information about the freebsd-questions mailing list