Definitions (static vs dynamic linking)

Mike Asher masher at bin19.com
Sun Feb 1 16:22:32 PST 2004


----- Original Message ----- 
From: "Henry K van Eyken" <vaneyken at sympatico.ca>
To: <lfs-support at linuxfromscratch.org>
Sent: Sunday, February 01, 2004 7:17 PM
Subject: Definitions (static vs dynamic linking)


> Having now an operational LFS (with some horrible errors still) I have
> gone back to the beginning of the LFS text to study it more carefully.
> This will give rise to some questions from time to time and I hope it is
> not out of order to post them on this list. (Heck, the answers may
> benefit others.)
>
> In the fourth paragraph under the heading "How things are going to be
> done" (in Chapter 1), I find the terms "linked statically" and
> "dynamically linked." I wonder if anyone here can write a precise
> explanation or definition of these terms in the context of that
> paragraph.
>

In brief, static linkage is including the code within the image of the
binary itself.  Dynamic linkage is including a "reference" to the location
of the code.  Its like the difference between giving someone a URL to a page
or sending them a cut-and-paste of the page itself.

-
Mike




More information about the lfs-support mailing list