Date: Wed, 4 Feb 1998 16:10:26 -0100 (GMT) From: Remy NONNENMACHER <remy@synx.com> To: Allan Strand <astrand@linum.cofc.edu> Cc: freebsd-emulation@FreeBSD.ORG Subject: Re: NetBSD emulation Message-ID: <Pine.A32.3.91.980204155217.18981L-100000@rs1> In-Reply-To: <86sopzlha5.fsf@linum.cofc.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
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..).
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.A32.3.91.980204155217.18981L-100000>