How to code/link SVR4 shared library init routines?

Michael L. Kornegay kornegay at oiscola.Columbia.NCR.COM
Mon Jun 10 01:03:38 AEST 1991


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 at columbiasc.ncr.com, x7628/x7507/x7956, or
  mlk at bir.com, and mlk at bir.uucp



More information about the Comp.unix.programmer mailing list