Mail Archives: djgpp/1994/11/13/23:12:41
>>>>> On Sun, 13 Nov 1994 09:38:59 -0500 (CDT), Aaron Ucko <UCKO AT VAX1 DOT ROCKHURST DOT EDU> 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.
---
Dong Liu <dliu AT ace DOT njit DOT edu>
Electrical and Computer Engineering Department
New Jersey Institute of Technology, Newark, NJ 07102
- Raw text -