Path: utzoo!news-server.csri.toronto.edu!rutgers!dimacs.rutgers.edu!mips!sdd.hp.com!think.com!snorkelwacker.mit.edu!thunder.mcrcim.mcgill.edu!mouse From: mouse@thunder.mcrcim.mcgill.edu (der Mouse) Newsgroups: comp.unix.questions Subject: Re: Dynamic Linking In Unix(SunOS 4.0.3.c) Keywords: linking SunOS Message-ID: <1991Mar15.101110.13866@thunder.mcrcim.mcgill.edu> Date: 15 Mar 91 10:11:10 GMT References: Distribution: usa Organization: McGill Research Centre for Intelligent Machines Lines: 23 In article , mukherje@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.. 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@larry.mcrcim.mcgill.edu