dale@uunet.uu.net (Dale Nielsen) (11/28/90)
I want to create a shared library on SunOS 4.0, but I have some nagging questions about them that I was unable to find specific answers to in the documentation. Are there tools for testing sharablility? Since a sun shared library will continue to work correctly (although inefficiently) if any of its pages are rendered unsharable, how does one know that this is happening? Is there someway to trace the execution of a program to determine if it is causing any of the shared libraries it uses to have its pages written to, rendering it unsharable. Do local statics need to be in .sa file? There is no discussion of the treatment of initialized statics in the documentation I've found. Since they are local to a module do they count as the "exported globals" referred to by the manual? If a process changes the contents of one of these statics will it cause pieces of the shared library to be unsharable? Do functions whose pointer value is used need special treatment? It seems as though functions whose pointer values are used in comparisons and assignments to function tables as well as being called need to be defined in the .sa library. Is it reasonable to have these definitions be stubs which call the real routine from the shared library? Please respond by email. I will summarize if there is interest. --Dale Nielsen ARPA: dale@vicorp.com V. I. Corporation UUCP: uunet!vicorp!dale 47 Pleasant Street PHONE: (413) 586-4144 x255 Northampton, Massachusetts 01060 FAX: (413) 586-3805