From owner-freebsd-hackers Wed Oct 16 04:23:41 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id EAA12289 for hackers-outgoing; Wed, 16 Oct 1996 04:23:41 -0700 (PDT) Received: from genesis.atrad.adelaide.edu.au (genesis.atrad.adelaide.edu.au [129.127.96.120]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id EAA12276; Wed, 16 Oct 1996 04:23:35 -0700 (PDT) Received: from msmith@localhost by genesis.atrad.adelaide.edu.au (8.6.12/8.6.9) id UAA03542; Wed, 16 Oct 1996 20:53:31 +0930 From: Michael Smith Message-Id: <199610161123.UAA03542@genesis.atrad.adelaide.edu.au> Subject: Re: Linux compat issue(s) To: sos@FreeBSD.org Date: Wed, 16 Oct 1996 20:53:30 +0930 (CST) Cc: msmith@atrad.adelaide.edu.au, jdp@polstra.com, hackers@FreeBSD.org In-Reply-To: <199610161045.MAA21684@ra.dkuug.dk> from "sos@FreeBSD.org" at Oct 16, 96 12:45:15 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk sos@FreeBSD.org stands accused of saying: > > > Will your changes just reject an unidentifiable ELF binary out-of-hand, > > or could you add a sysctl variable to determine which format to > > presume? The latter method would be best, IMHO. > > Hmm, following the ELF style I guess default should always be native, or > one could argue for SVR4 compliant (which you dont have yet). > I'm not fond of it being variable, that will generate too much support > steam I'm afraid. Native would be pointless, as native binaries will always be identifiable. The reason I ask is that for the situation where the Linux emulator had been loaded, but not the (hypothetical) SVR4 emulator, you could default to Linux and not have to brand your binaries, and vice versa. The only situation where branding would be required would be when both emulations were active, and IMHO _that_ is likely to generate less support steam just by its rarity. One could also bias the selection based on the path of the executable, as that is visible in exec_elf_imgact. Anything under /compat/linux is likely to be a linux binary, &c &c. That would further limit the requirement for branding to "both emulators loaded and binary outside of compatability tree". The last ditch "I have no idea, winging it" case could just default to the last interpreter in the list - that would let the user alter the default if there were more than one available by unloading and reloading the LKM. > Soren Schmidt (sos@FreeBSD.org) FreeBSD Core Team -- ]] Mike Smith, Software Engineer msmith@atrad.adelaide.edu.au [[ ]] Genesis Software genesis@atrad.adelaide.edu.au [[ ]] High-speed data acquisition and (GSM mobile) 0411-222-496 [[ ]] realtime instrument control (ph/fax) +61-8-267-3039 [[ ]] Collector of old Unix hardware. "Where are your PEZ?" The Tick [[