From owner-freebsd-current Wed Feb 5 22:23:09 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA22044 for current-outgoing; Wed, 5 Feb 1997 22:23:09 -0800 (PST) Received: from emout05.mail.aol.com (emout05.mx.aol.com [198.81.11.96]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA21989 for ; Wed, 5 Feb 1997 22:23:03 -0800 (PST) From: StevenR362@aol.com Received: (from root@localhost) by emout05.mail.aol.com (8.7.6/8.7.3/AOL-2.0.0) id BAA04264; Thu, 6 Feb 1997 01:22:09 -0500 (EST) Date: Thu, 6 Feb 1997 01:22:09 -0500 (EST) Message-ID: <970206010953_818697893@emout05.mail.aol.com> To: msmith@atrad.adelaide.edu.au, rcarter@consys.com cc: current@freebsd.org Subject: Re: linux ELF codine no go on 2.2 Gamma Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In a message dated 97-02-05 20:59:53 EST, msmith@atrad.adelaide.edu.au (Michael Smith) writes: > > Russell L. Carter stands accused of saying: > > > > I've been trying to get codine 4 (http://www.genias.de/) > > for linux ELF going with the following result: > > > > $ cod_qmaster > > ELF binary type not known > > Abort trap > > $ file cod_qmaster > > cod_qmaster: ELF 32-bit LSB executable, Intel 80386, version 1 > > It's a static ELF binary; without the path of the linker to use as hint, > there's no way to tell which ABI it requires. Try > > # brandelf cod_qmaster > # brandelf -t Linux cod_qmaster > > > on the other hand, Wingz seems to be happy as a bug, and > > file reports the same: > > > > $ file /usr/X11/lib/X11/Wingz/bin/Wingz > > /usr/X11/lib/X11/Wingz/bin/Wingz: ELF 32-bit LSB executable, Intel 80386, > > version 1 > > It's linked shared, so the execution class code can guess what it is. > > > Russell I've been wondering if there is any way to abuse the filesystem to identify Linux, SCO, and BSDI binaries. Why not make the assumption in the kernel that any binary loaded from /compat/[linux,sco,bsdi] is an elf binary of the type denoted by the subdirectory. This would eliminate any need to brand the binaries. You would just install them under the appropriate subdirectory of /compat. This makes the implicit and reasonable assumption that any elf binary not under /compat is a native FreeBSD one. STeve