Date: Tue, 2 Jun 1998 01:22:25 -0400 From: Matthew Hunt <mph@pobox.com> To: "J.A. Terranson" <sysadmin@mfn.org>, "'FreeBSD Questions'" <freebsd-questions@FreeBSD.ORG> Subject: Re: Dynamically Linked Code Message-ID: <19980602012225.B22507@mstar.astro.psu.edu> In-Reply-To: <01BD8DB8.C7F2A9F0@w3svcs.mfn.org>; from J.A. Terranson on Mon, Jun 01, 1998 at 11:55:38PM -0500 References: <01BD8DB8.C7F2A9F0@w3svcs.mfn.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 01, 1998 at 11:55:38PM -0500, J.A. Terranson wrote: > Has anybody ever compiled a list of which pieces of FreeBSD are > statically or dynamically linked? To a first approximation, /bin and /sbin are static, and most other stuff is dynamic. > Is there an easy way to tell if a given > executable is one or the other? Sure, "ldd filename" and/or "file filename": flarn:~$ ldd /bin/ls ldd: /bin/ls: not a dynamic executable flarn:~$ ldd /usr/bin/grep /usr/bin/grep: -lgnuregex.2 => /usr/lib/libgnuregex.so.2.0 (0x2002a000) -lc.3 => /usr/lib/libc.so.3.1 (0x20031000) flarn:~$ file /bin/ls /bin/ls: FreeBSD/i386 compact demand paged executable flarn:~$ file /usr/bin/grep /usr/bin/grep: FreeBSD/i386 compact demand paged dynamically linked executable -- Matthew Hunt <mph@pobox.com> * Stay close to the Vorlon. http://mph124.rh.psu.edu/~mph/pgp.key for PGP public key 0x67203349. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980602012225.B22507>