From owner-freebsd-questions Mon Jun 1 22:22:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA14618 for freebsd-questions-outgoing; Mon, 1 Jun 1998 22:22:54 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from nexus.astro.psu.edu (nexus.astro.psu.edu [128.118.147.20]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id WAA14588 for ; Mon, 1 Jun 1998 22:22:38 -0700 (PDT) (envelope-from mph@astro.psu.edu) Received: from mstar.astro.psu.edu by nexus.astro.psu.edu (4.1/Nexus-1.3) id AA26425; Tue, 2 Jun 98 01:22:29 EDT Received: by mstar.astro.psu.edu (SMI-8.6/Client-1.3) id BAA22708; Tue, 2 Jun 1998 01:22:26 -0400 Message-Id: <19980602012225.B22507@mstar.astro.psu.edu> Date: Tue, 2 Jun 1998 01:22:25 -0400 From: Matthew Hunt To: "J.A. Terranson" , "'FreeBSD Questions'" Subject: Re: Dynamically Linked Code Mail-Followup-To: "J.A. Terranson" , 'FreeBSD Questions' References: <01BD8DB8.C7F2A9F0@w3svcs.mfn.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <01BD8DB8.C7F2A9F0@w3svcs.mfn.org>; from J.A. Terranson on Mon, Jun 01, 1998 at 11:55:38PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 * 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