On Mon, Feb 12, 2007 at 09:07:06AM -0800, [EMAIL PROTECTED] wrote: > Quoting Nick ! <[EMAIL PROTECTED]>: > > > On 2/12/07, Karel Kulhavy <[EMAIL PROTECTED]> wrote: > > > Hello > > > > > > How do I figure out if my kernel was compiled with COMPAT_LINUX option or > > not? > > > I didn't compile it. I put "COMPAT_LINUX openbsd kernel" into google but > > didn't > > > find anything useful in the first several pages. > > > > > > I have 4.0 on i386 installed from a CD it must be running the default > > kernel. > > > > http://www.openbsd.org/faq/faq9.html#Interact > > "OpenBSD/i386 is able to run Linux binaries when the kernel is > > compiled with the COMPAT_LINUX option and the runtime sysctl > > kern.emul.linux is also set. If you are using the GENERIC kernel > > (which you should be), COMPAT_LINUX is already enabled, and you will > > just need to do:" > > > > -Nick > > > > > > Why do static linux binaries at least sometimes run > without executing "sysctl kern.emul.linux=1" and > without removing the "#" in front of the line for > "kern.emul.linux=1" in /etc/sysctl.conf?
Is there a way to take a dynamic binary on a Linux system and the dynamic libraries and make a static one from it? Isn't it that the libraries get linked and an image is created and that is then run? Isn't possible to dump the image to disk in an ELF form before it's executed? Then it would remove all the hassle with the dynamic libraries in Linux emulation. CL<