Date: Sun, 13 Nov 1994 19:19:26 -0500 (CDT) From: Aaron Ucko Subject: Re: Shared libraries To: dliu AT faraday-gw DOT njit DOT edu Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Organization: Rockhurst College; Kansas City, MO >>>>>> On Sun, 13 Nov 1994 09:38:59 -0500 (CDT), Aaron Ucko said: > >Aaron> My understanding of the situation is that the only thing keeping DJGPP >Aaron> from normally using shared libraries is global variables accessed by >Aaron> both the libraries and your program. Couldn't this be remedied by >Aaron> adding some sort of hook to the startup code to automatically export any >Aaron> desired global variables? Or is the only legal startup code to be found >Aaron> in (g)crt0.o? Just wondering... > >I have tried the ELF support in Linux, it is very simple to make a >shared library this way. So it seems now GCC and GAS are pretty much bug >free dealing "-fPIC" code. I'm thinking maybe DJGPP could also use ELF. >Or just use -fPIC with the coff format. I'm not expert in this area, >just my $0.02. Pardon my ignorance again, but...what's -fPIC? And don't the object-file utilities included in GCC allow it to be able to deal with both COFF and ELF format objects?...just my non-cents :-) --- Aaron Ucko (ucko AT vax1 DOT rockhurst DOT edu; finger for PGP public key) -=- httyp! -=*=-Just because you're paranoid doesn't mean they aren't out to get you.-=*=- Geek code 2.1 [finger hayden AT vax1 DOT mankato DOT msus DOT edu for explanation]: GCS/M/S d(-) H s g+ p? !au a-- w+ v+ C++(+++)>++++ U-(S+)>++++ P+ L>++ 3(-) E-(----) !N>++ K- W(--) M-(--) V(--) po-(--) Y+(++) t(+) !5 j R G tv--(-) b+++ !D(--) B--(---) e>++++(*) u++(@) h!() f(+) r-(--)>+++ n+(-) y?