Dynamic Linking In Unix(SunOS 4.0.3.c)
der Mouse
mouse at thunder.mcrcim.mcgill.edu
Fri Mar 15 20:11:10 AEST 1991
In article <Mar.11.11.48.43.1991.16658 at paul.rutgers.edu>, mukherje at paul.rutgers.edu (Sanjoy Mukherjee) writes:
> The link editor of SunOS (ld) provides a dynamic link facility with
> shared library objects (*.so).
Only relatively recent versions of SunOS. Definitely not before
release 4.*, and possibly not before 4.1* (not sure about 4.0.3).
> Though the "man" deals with it, it doesnot say ,as for example, how
> to create/maintain such shared objects.
You simply use ld to load a bunch of .o files together. You probably
want to use -assert pure-text. Apparently, the most critical thing is
the .so or .so.<major>.<minor> on the resulting file.
(You want to compile with -pic, and build the .so file with -assert
pure-text, because otherwise all the fixups that have to go on destroy
many of the advantages of shared "libraries".)
der Mouse
old: mcgill-vision!mouse
new: mouse at larry.mcrcim.mcgill.edu
More information about the Comp.unix.questions
mailing list