From owner-freebsd-questions@FreeBSD.ORG Fri Nov 9 00:43:46 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ABE7316A417 for ; Fri, 9 Nov 2007 00:43:46 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: from mail1.sea5.speakeasy.net (mail1.sea5.speakeasy.net [69.17.117.3]) by mx1.freebsd.org (Postfix) with ESMTP id 562B713C4B9 for ; Fri, 9 Nov 2007 00:43:46 +0000 (UTC) (envelope-from chuckr@chuckr.org) Received: (qmail 12627 invoked from network); 9 Nov 2007 00:16:54 -0000 Received: from april.chuckr.org (chuckr@[66.92.151.30]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 9 Nov 2007 00:16:54 -0000 Message-ID: <4733A6B5.4080205@chuckr.org> Date: Thu, 08 Nov 2007 19:15:49 -0500 From: Chuck Robey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.9) Gecko/20071107 SeaMonkey/1.1.6 MIME-Version: 1.0 To: John Smith References: <6dcf0dbc0711080901g49043bb1u1a8e38cfacbde15c@mail.gmail.com> In-Reply-To: <6dcf0dbc0711080901g49043bb1u1a8e38cfacbde15c@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Questions Mailing List Subject: Re: Determine FreeBSD version of binary 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, 09 Nov 2007 00:43:46 -0000 John Smith wrote: > > I was wondering if it was possible to determine for what version of > FreeBSD a binary was compiled, purely by examining the binary? As a suggestion, use the 'ldd' command to see what version of the libc is linked in with the binary. You didn['t mention if the binary was linked shared or not (if it's statically linked, well, you're out of luck with this particular method). Depending on how it's linked, you might even have probnlems using ldd, I think, then you'd have to use the objdump utility, along with grep, like this: objdump -x | grep NEEDED | grep libc and get the version of libc from there. It's the version of libc that you're after with all this song and dance. I've been gone from FreeBSD for a longish while (more than about 2 years) so I couldn't give you exact libc version versus date info, but if you post that to this list, most likely someone would have that right to hand. > > Any and all help and suggestions are greatly appreciated, > > > > Thanks, > > > john Smith > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"