_init and dynamically loaded libraries
jcm at FreeBSD-uk.eu.org
Thu Mar 3 16:31:22 PST 2005
I'm having some trouble getting _init() to run when I use dlopen() to load a
library. I get this:
one.o: In function `_init':
/usr/home/jcm/exp/modules/libone/one.c:7: multiple definition of `_init'
/usr/lib/crti.o(.init+0x0): first defined here
With other signatures, _init() never gets called. What is the correct
procedure to use here?
More information about the freebsd-questions