🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by darrell Fri, 17 Apr 1987 00:42
Re: Shared Libraries
#110
Author: darrell
Date: Fri, 17 Apr 1987 00:42
24 lines
1704 bytes
A combination of fixed addresses and binding at load time is possible,
by associating a version number with the library.  At link time, the
version number of the library is stored in the load module. At load
time, that version number is compared with the version number of the
library that is being shared. If they match (which we assume they will
usually do), all is fine. On a mismatch, more work is needed. Two
solutions come to mind:

- Load the version of the library needed by the load module. This
assumes that old versions of the library are kept around. It also means
that we waste space for multiple versions of the library, but no more
than that needed for non-shared libraries.

- Patch the references in the load module. The linker must save in the
load module a list of the places where library references have been
inserted. Then the loader can fix these up with the real references.
This assumes that the semantics of the library have not changed. It
also requires a more complex loader, and extra crud in the load
module.

        --Per Bothner

bothner@pescadero.stanford.edu  ...!decwrl!labrea!navajo!bothner
Computer Science Dept., Stanford University, Stanford CA 94305
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads