This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

dlopen and dynamic code loader (not DLL !!!)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]