Text File

Aucbvax.4860 fa.unix-wizards utzoo!decvax!ucbvax!unix-wizards Sat Oct 31 17:56:24 1981 Re: shared libraries >From decvax!duke!unc!smb@Berkeley Sat Oct 31 17:44:47 1981 In-real-life: Steven M. Bellovin

Shared libraries can be implemented fairly cleanly, at the cost of branching through a transfer vector. That is, the first module of the shared segment (and the only one directly addressable) contains something like

int (*list)()[] = { &printf, &scanf, NULL, &ctime, ...

The order in this list would be fixed for all time, and the routine actually linked in would branch indirectly through the start of the shared module plus the proper offset.

----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen <jgoerzen@complete.org> of http://communication.ucsd.edu/A-News/

This Usenet Oldnews Archive article may be copied and distributed freely, provided:

1. There is no money collected for the text(s) of the articles.

2. The following notice remains appended to each copy:

The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.