On Sun, 22 Oct 2000, Richard Levitte - VMS Whacker wrote:
> Hmm, I'm not knowledged enough to tell, but I've heard that it's
> difficult to create shared libraries woth a.out format. Is that true
> on NetBSD?
Not if you write your code in C. Just compile pic code
gcc -c -O2 -fpic foo.c
and use the shared flag to ld
ld -x -shared -o libfoo.so.0.0 foo.o
and you are done.
The problems with a.out shared libraries are for languages such as C++
that may need to run constructors for global objects. The problem is
basically what the compiler should output to let the runtime system call
those constructors before main(), since the a.out format does only have
three sections (data, text and bss) and no other fancy mechanism for this
(but this is difficult only for the compiler writer -- the user should not
need to deal with it...)
/Krister
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]