Date: Tue, 25 Oct 2005 22:05:37 -0500 From: Will Maier <willmaier@ml1.net> To: freebsd-questions@freebsd.org Subject: Re: Which version of FreeBSD a binary was compiled for? Message-ID: <20051026030537.GV18987@localdomain> In-Reply-To: <cb5206420510251524r32ddd9adx7d4fdce8f82a85be@mail.gmail.com> References: <cb5206420510251524r32ddd9adx7d4fdce8f82a85be@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 26, 2005 at 02:24:54AM +0400, Andrew P. wrote: > How to tell? Apart from trying to launch it on different versions > without COMPAT* in the kernel? file (1) > One can always carefully examine the output of ldd, readelf and > other such tools, but that requires much knowledge and a small lab > with all kinds of BSD's set up. Is there a better way? | ~ % file /usr/local/bin/screen | /usr/local/bin/screen: setuid ELF 32-bit LSB executable, Intel | 80386, version 1 (FreeBSD), for FreeBSD 5.4, dynamically linked | (uses shared libs), stripped | ~ % uname -a | FreeBSD vger.caenn.wisc.edu 5.4-RELEASE-p8 FreeBSD 5.4-RELEASE-p8 | #1: Tue Oct 11 20:19:50 CDT 2005 | root@myhost.net:/usr/obj/usr/src/sys/VGER20050925 i386 -- o--------------------------{ Will Maier }--------------------------o | jabber:..wcmaier@jabber.ccc.de | email:..........wcmaier@ml1.net | | \.........wcmaier@cae.wisc.edu | \..........wcmaier@cae.wisc.edu | *------------------[ BSD Unix: Live Free or Die ]------------------*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051026030537.GV18987>