Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 08 Feb 1997 21:29:35 -0500
From:      Dan Cross <tenser@spitfire.ecsel.psu.edu>
To:        Allen Hyer <allenh@wtrt.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: static vs. dynamically linked binaries 
Message-ID:  <19970209022935.21101.qmail@spitfire.ecsel.psu.edu>
In-Reply-To: Your message of "Sat, 08 Feb 1997 19:40:31 CST." <3.0.1.32.19970208194031.0075a288@wtrt.net> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Is there any way to figure out if a binary was linked statically or
> dynamically?  I have some binaries around that I don't have the sources
> installed for.  Can I tell with just the binary, or do I need to go back to
> the sources?  

I think that file(1) will do the trick.

: big-o; file /bin/sh
/bin/sh: BSD/i386 compact demand paged executable
: big-o; file /usr/bin/cc
/usr/bin/cc: BSD/i386 compact demand paged dynamically linked executable
: big-o; 

	- Dan C.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970209022935.21101.qmail>