www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/11/13/23:12:41

Date: Sun, 13 Nov 94 19:59:03 EST
From: dliu AT faraday-gw DOT njit DOT edu (Dong Liu)
To: Aaron Ucko <UCKO AT VAX1 DOT ROCKHURST DOT EDU>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Shared libraries
References: <01HJFCJ5AXW200495J AT VAX1 DOT ROCKHURST DOT EDU>
Mailer: VM 5.32 (beta) for GNU Emacs 18.59.5

>>>>> 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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019