Mail Archives: djgpp/1994/11/14/13:52:04
> My understanding of the situation is that the only thing keeping DJGPP
> from normally using shared libraries is global variables accessed by
> both the libraries and your program. Couldn't this be remedied by
> adding some sort of hook to the startup code to automatically export any
> desired global variables? Or is the only legal startup code to be found
> in (g)crt0.o? Just wondering...
The biggest problem is that once the program is built and stripped,
you don't know *where* the variables are - strip removes that
information.
The other big problem is that shared libraries are normally loaded by
the OS, and ms-dos is still the OS in this case. To use shared
libraries, each program would have to have the loader linked into it,
which is almost as much space as the library itself.
- Raw text -