[ncr.sys.unix] How to code/link SVR4 shared library init routines?

kornegay@oiscola.Columbia.NCR.COM (Michael L. Kornegay) (06/09/91)

I need to find out how to code and link a shared library init routine.

The SVR4 documentation discusses that this can be done, but does not
detail what must be done to accomplish it.

Note:  I know how to code a shared library, build a shared library,
and link a shared library with an executable.  I need to know how to
code, and specify an init routine for the library.

My guesses are that this routine may have to be written in assembler,
may have to have a specific name, and may be specified using entry
point option to ld (or cc).  I really dont know!

Thanks for any assistance,
-- 
----------
Michael L. Kornegay,
  michael.kornegay@columbiasc.ncr.com, x7628/x7507/x7956, or
  mlk@bir.com, and mlk@bir.uucp