This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
dlopen and dynamic code loader (not DLL !!!)
- To: <gnu-win32 at cygnus dot com>
- Subject: dlopen and dynamic code loader (not DLL !!!)
- From: "Christian Jullien" <Eligis at wanadoo dot fr>
- Date: Thu, 5 Nov 1998 20:35:02 +0100
Using cygwin form B14 (sic !!) I finally decided to port one of my Lisp
system with B20 (Le-Lisp in fact, OpenLisp - my own ISLISP - still works
well) .
The dlopen and dlsym (or 'old' nlist) was required to make the code loader
works.
TWO BIG questions:
1) -- On Linux, Solaris or Unixware:
void* main_addr = dlsym( NULL, "main" );
returns the current address of symbol main (like nm) form RUNNING! process.
There is no needs to make dlopen before.
??
?? How to have the same result with B20.
??
- If you give me the source code, I'm ready to make the patch. -
2) -- I need to dynamically add code (not with DLL) but rather a byte code
loader
(like a poke in memory).
Again in Linux, Solaris or Unixware and even NT/95 there is an alias of
code
and data segment. i.e. %CS == %DS.
??
?? Is there an option to tell the linker that this behavior is needed.
??
Christian Jullien
Eligis@wanadoo.fr
OOP Consultant
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".