From owner-freebsd-emulation Fri Feb 6 08:47:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA10207 for freebsd-emulation-outgoing; Fri, 6 Feb 1998 08:47:16 -0800 (PST) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from spot.cs.utk.edu (SPOT.CS.UTK.EDU [128.169.92.189]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA10184 for ; Fri, 6 Feb 1998 08:47:02 -0800 (PST) (envelope-from moore@cs.utk.edu) Received: from cs.utk.edu by spot.cs.utk.edu with ESMTP (cf v2.11c-UTK) id LAA13854; Fri, 6 Feb 1998 11:45:45 -0500 (EST) Message-Id: <199802061645.LAA13854@spot.cs.utk.edu> X-URI: http://www.cs.utk.edu/~moore/ From: Keith Moore To: Remy NONNENMACHER cc: Allan Strand , freebsd-emulation@FreeBSD.ORG, moore@cs.utk.edu Subject: Re: NetBSD emulation In-reply-to: Your message of "Wed, 04 Feb 1998 16:10:26 -0100." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 06 Feb 1998 11:45:30 -0500 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe freebsd-emulation" > 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'). [...] > 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..). afaik, it's what NetBSD does. In order to use NetBSD's emulation with dynamic binaries, you typically need the native ld.so and lib*.so library files installed in /emul/whatever. It's probably a good idea to have an /emul directory for every emulation. It provides all kinds of flexibility to work around platform-specific ideosyncracies. Keith