From owner-freebsd-questions@FreeBSD.ORG Thu Oct 27 19:20:35 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3681616A41F for ; Thu, 27 Oct 2005 19:20:35 +0000 (GMT) (envelope-from dpkirchner@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C97D43D48 for ; Thu, 27 Oct 2005 19:20:24 +0000 (GMT) (envelope-from dpkirchner@gmail.com) Received: by xproxy.gmail.com with SMTP id t5so56027wxc for ; Thu, 27 Oct 2005 12:20:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MdZxrehRM2xTC7cpmJ54axgaN9YefiHMG8bK6PU9c5kxWTKXoZew6eZFMDP+dsnIz4c5XgoaIiogySJYqlv3o8YOWMqd0Cb2KNk/sm/Yhcgz0SLiu+6ms86Ly49xXlc0Dq0J9ES+KZ1vLI3AY/GyTRWd71ESlGnb5gmrCWJPYgA= Received: by 10.70.105.5 with SMTP id d5mr1421060wxc; Thu, 27 Oct 2005 12:20:16 -0700 (PDT) Received: by 10.70.104.18 with HTTP; Thu, 27 Oct 2005 12:20:16 -0700 (PDT) Message-ID: <35c231bf0510271220i2fb3de62g55a80f3d06f03355@mail.gmail.com> Date: Thu, 27 Oct 2005 12:20:16 -0700 From: David Kirchner Sender: dpkirchner@gmail.com To: freebsd-questions@freebsd.org In-Reply-To: <20051027185157.GV29508@localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <17247.39311.203645.265116@jerusalem.litteratus.org> <200510262115.48144.krinklyfig@comcast.net> <4360DB59.7010900@ywave.com> <20051027154408.GS29508@localdomain> <43611E22.5030408@ywave.com> <20051027185157.GV29508@localdomain> Subject: Re: Which version of FreeBSD a binary was compiled for? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Oct 2005 19:20:35 -0000 On 10/27/05, Will Maier wrote: > Must be -- some flag produces unique bits in the executables. I'm a > little surprised there isn't (AFAICT) anything descriptive in > file(1)'s manpage or /u/s/mi/magic that would explain the > discrepancy. Didn't see anything in quick looks through gcc(1) or > make(1), either. > > Weird. It doesn't look like it's done in the magic file. Rather, it's something built in to file itself. Check out around line 400 of 'readelf.c'. This doesn't explain how it gets in to the binaries built, though.