From owner-freebsd-stable@FreeBSD.ORG Thu Apr 18 03:39:39 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 0379F839 for ; Thu, 18 Apr 2013 03:39:39 +0000 (UTC) (envelope-from jdc@koitsu.org) Received: from qmta13.emeryville.ca.mail.comcast.net (qmta13.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:44:76:96:27:243]) by mx1.freebsd.org (Postfix) with ESMTP id DCB73815 for ; Thu, 18 Apr 2013 03:39:38 +0000 (UTC) Received: from omta10.emeryville.ca.mail.comcast.net ([76.96.30.28]) by qmta13.emeryville.ca.mail.comcast.net with comcast id RFKJ1l0060cQ2SLADFfeLx; Thu, 18 Apr 2013 03:39:38 +0000 Received: from koitsu.strangled.net ([67.180.84.87]) by omta10.emeryville.ca.mail.comcast.net with comcast id RFfd1l0071t3BNj8WFfdx0; Thu, 18 Apr 2013 03:39:37 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 1B4C273A33; Wed, 17 Apr 2013 20:39:37 -0700 (PDT) Date: Wed, 17 Apr 2013 20:39:37 -0700 From: Jeremy Chadwick To: Daniel O'Connor Subject: Re: Linux a.out binaries Message-ID: <20130418033937.GA20092@icarus.home.lan> References: <07612CF9-2DE4-4980-BF03-DF56FBC79BE1@gsoft.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <07612CF9-2DE4-4980-BF03-DF56FBC79BE1@gsoft.com.au> User-Agent: Mutt/1.5.21 (2010-09-15) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1366256378; bh=JcEEwJmsshhG2fQgRB4va5hKa57VVqo13V4kHywNJ1U=; h=Received:Received:Received:Date:From:To:Subject:Message-ID: MIME-Version:Content-Type; b=Xq1xe/lSow5mi67JhIWa9GnnBm4j7Io9vl4z9Z9bM5QJWMK1H3Vk4enFD7TfOOERl hY7VvHjOrpeySLKQGbrhKKFLFa++419TFZY6PczVQCACkjuyS65tJXH0hk2ZKWhNeY QCRMfRE7KorGtGMLh1T75BsCaInU1oLVE0wFdGdqn8hTSpjIjP2pGcDjRMqkTKQgAt mAG+eo9ZQ2F9KrEO2FTbqprDAANKOse+cz3FoK4Im5DHxPja+3OpAc2GAxvhcYrHEM gnej/DNbhbJGOozaMzJKJ0V4dgyZD9JeBfARIZvdGiCCksHBpzzqrxDt1+sXh2NxDY Kyw3unwo2n2pg== Cc: freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Apr 2013 03:39:39 -0000 On Thu, Apr 18, 2013 at 11:47:01AM +0930, Daniel O'Connor wrote: > I have some very old Linux a.out binaries that I have run on a FreeBSD 4 box. I recently tried them on a 9.1 system but I get an exec format error when trying to run them. > > [obtuse 11:45] ~ >/usr/local/rsi/idl_4/bin/bin.linux/idl > zsh: exec format error: /usr/local/rsi/idl_4/bin/bin.linux/idl > [obtuse 11:45] ~ >file /usr/local/rsi/idl_4/bin/bin.linux/idl > /usr/local/rsi/idl_4/bin/bin.linux/idl: Linux/i386 demand-paged executable (QMAGIC), stripped > > I presume it has rotted and was removed, does anyone know when? Good lord, the number of possibilities here are almost endless. You can't be serious... My first inclination is to ask you if that FreeBSD system is amd64 or i386. Your Linux a.out binaries are i386. If the FreeBSD system is amd64: I don't think this is going to work; I see nothing in /sys/amd64/conf/* that indicates a.out is supported. Sure, 32-bit binaries might be (with COMPAT_FREEBSD32), but that's architecture, not format. If the FreeBSD system is i386: /sys/i386/conf/NOTES mentions a kernel option called COMPAT_AOUT, which **is not** enabled in GENERIC. And of course don't forget COMPAT_LINUX. Also worth noting is the BUGS section of a.out(5). -- | Jeremy Chadwick jdc@koitsu.org | | UNIX Systems Administrator http://jdc.koitsu.org/ | | Mountain View, CA, US | | Making life hard for others since 1977. PGP 4BD6C0CB |