From owner-freebsd-emulation Wed Feb 4 07:16:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA29929 for freebsd-emulation-outgoing; Wed, 4 Feb 1998 07:16:12 -0800 (PST) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from bsd.synx.com (rt.synx.com [194.167.81.239]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id HAA29885 for ; Wed, 4 Feb 1998 07:16:07 -0800 (PST) (envelope-from remy@synx.com) Received: from s3.synx.com (s3 [192.1.1.247]) by bsd.synx.com (8.6.12/8.6.12) with SMTP id QAA11365; Wed, 4 Feb 1998 16:19:45 +0100 Received: from rs1 by s3.synx.com id aa19397; 4 Feb 98 16:05 GMT Date: Wed, 4 Feb 1998 16:10:26 -0100 (GMT) From: Remy NONNENMACHER To: Allan Strand cc: freebsd-emulation@FreeBSD.ORG Subject: Re: NetBSD emulation In-Reply-To: <86sopzlha5.fsf@linum.cofc.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe freebsd-emulation" On 4 Feb 1998, Allan Strand wrote: > Hi, > > I have searched the archives and never really gleaned a satisfactory > answer to the question, can I run NetBSD 1.2 binaries on freebsd? I > tried to post to freebsd-questions and basically got the "yeah, I > wonder too!" kind of answers. > > I have two NetBSD binaries that I use for my research. Unfortunately > the sources are difficult to come by. These are statically linked, > but emulation of binaries that use shared libs would be nice to know > about as well. > NetBSD *IS* emulated by FreeBSD. The problem is that someone (Net ? Free ?) reversed the exec magic number. This means that FreeBSD recognizes the NetBSD Magic, load and starts the binary. The binary try to load the ld.so dynamic linker *BUT*, before, it checks the ld.so magic number and find it reversed !! (then it dies, spiting something about 'bad ld.so magic'). That's an old problem. Nobody seems to worry about since porting from Net to Free is quiet easy. It would be a good solution to create a /emul/NetBSD lookup (like IBSC2) before the / lookup. (Okay, Okay, i now it's easier to say it than to do it. Don't hit on my head !! not my head !! was only a sugestion..).