From owner-freebsd-questions@FreeBSD.ORG Fri Oct 28 07:27:38 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 72E2716A420 for ; Fri, 28 Oct 2005 07:27:38 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8E1A43D5C for ; Fri, 28 Oct 2005 07:27:23 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by zproxy.gmail.com with SMTP id x3so405627nzd for ; Fri, 28 Oct 2005 00:27:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Px0Yc/UW3g1MK5wtADgaeLJFTsHenXrlVEKrTPQGEU6o/X0V7RRE2+YMyI8ZsCuGJ+/v8S1cyPup8NqUMR2mJX6ABYjO+nHkh1oRPkuGutKdNEQzjAwl3VVwAgnMNGMGZKnTE+qag2uoQr3t2Eaw03MkvKqL/kqhWHmxU70YHLs= Received: by 10.37.15.73 with SMTP id s73mr440nzi; Fri, 28 Oct 2005 00:27:23 -0700 (PDT) Received: by 10.37.20.34 with HTTP; Fri, 28 Oct 2005 00:27:23 -0700 (PDT) Message-ID: Date: Fri, 28 Oct 2005 11:27:23 +0400 From: "Andrew P." To: Micah In-Reply-To: <436196DB.9000408@ywave.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200510262115.48144.krinklyfig@comcast.net> <4360DB59.7010900@ywave.com> <20051027154408.GS29508@localdomain> <43611E22.5030408@ywave.com> <20051027185157.GV29508@localdomain> <35c231bf0510271220i2fb3de62g55a80f3d06f03355@mail.gmail.com> <436196DB.9000408@ywave.com> Cc: David Kirchner , freebsd-questions@freebsd.org 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: Fri, 28 Oct 2005 07:27:38 -0000 On 10/28/05, Micah wrote: > David Kirchner wrote: > > 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. > > Here's some more to think about. I have a simple cpp program I used to > test something a while back. Running file on that executable returns: > > trisha% file floatpoint > floatpoint: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), > for FreeBSD 5.3.0, dynamically linked (uses shared libs), not stripped > > I just now recompiled with "c++ floatpoint.cpp" and now: > trisha% file a.out > a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), > dynamically linked (uses shared libs), not stripped > > And compiled with same commandline on the "working" machine: > alexis% file a.out > a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for > FreeBSD 5.4, dynamically linked (uses shared libs), not stripped > > I looked at my "env", but I do not see /any/ compiler related variables > set. Is there something up with the compiler itself? My processor? > (Athlon64 in i386 mode) > > Later, > Micah > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.o= rg" > Clearly, something has changed in the compiler suite.