From: khan@xraylith.wisc.edu (Mumit Khan)
Subject: RE: dlopen patch [was Re: dlopen]
16 Nov 1998 09:26:28 -0800
Message-ID: <Pine.SUN.3.93.981116011414.24494A-101000.cygnus.gnu-win32@modi.xraylith.wisc.edu>
References: <000001be0d4d$16835060$020039c1@young>
Mime-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="1915750185-371683537-911200563=:24494"
To: Christian Jullien <Eligis@wanadoo.fr>
Cc: "Gary V. Vaughan" <gvaughan@oranda.demon.co.uk>,
        Geoffrey Noer <noer@cygnus.com>,
        Jorrit Tyberghein <Jorrit.Tyberghein@uz.kuleuven.ac.be>,
        gnu-win32@cygnus.com

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--1915750185-371683537-911200563=:24494
Content-Type: TEXT/PLAIN; charset=US-ASCII

"Christian Jullien" <Eligis@wanadoo.fr> writes:
> 
> But it does not work since all symbols MUST be exported (am I right ?). In
> my special case I can't export all symbols,
> I've also a lot (>= 50000) generated assembler lines.

That's correct. Of course, the solution is simple since all you need to 
do is to link with an export file (dlltool can create that easily), and 
with Gary's patch you can dlopen/dlsym the function quite easily.

> If you have a better solution I will be happy to test it (and/or to improve
> it).

I'm attaching a trivial example (to run this, you have to have Gary's
patch or wait for b20.1). Please let me know if this doesn't work for
your application.

btw, a good example for this is in Perl's configuration, where perl is
built as an exportable executable. You can also use dllwrap (with a
few extra semi-documented flags), but it's just as easy doing it using
the simple Makefile included in my example.

Regards,
Mumit


--1915750185-371683537-911200563=:24494
Content-Type: APPLICATION/octet-stream; name="exp-exe.tar.gz"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.SUN.3.93.981116011603.24494B@modi.xraylith.wisc.edu>
Content-Description: exportable executable example

H4sIAOnOTzYAA+2WbW+bMBDH87b+FLeskyAKaR54kNJtakbTqhJNojSV1mkS
YmBSNBdQAlWrad99ZyBNsnXdXrTZi91PUczZ5/8dGB/md6nG7/gBL9uWX3t+
Ou22qetQA4COUbW6UbSSTrvXATDNbs/STVPH605X17s1aL9ALr+QLzNvAVD7
eu3FT/mhWxjuIqHd8jqKfZEHHN4usyBKWtfv2VaXiL5s9wUi9GPZxW6TKAAW
JgkoKvvGANJFFGchKPU3yz4M77ifZ1E8b32O601w3cl0OJtduSeXI3t2Nh65
rnrIvjOGU4Dhm+e7qBz7oBSyjUDgegSCN8FP4mUG/jWuUiPMY7+Mld2nPOAh
FN5KQzZhqmImhzhYWhCm0ogwo1ew0lOZfOUWPMsXMXTkOP7Q910ZWGoEYnl/
A8o6gyLqWgp9NkW6lYjSWCdQDbXXd3jjRTEOwiMPKs442vM+PPGgADYfUSCS
lKPc6NJxmjCdOceuM/h0pTahjstRL/y3Yjjcu/2bEFEGSrtcl3/9YhI7gf9U
/3FPPXuMP9R/gF5vXf8NQ9Z/q6tT/d8Fo8H5EKrFZ8OPk/F0dsH2sIpQBfgv
WO3/c+8rDyPBXyIG7n/LMH6//w3LXO1/q2sV+79nWrT/d4Ft49Fn7vvAjh1n
Nh47aAZCZEkiGLMnkxNncHqBfdpZC5hdWdocGJtMx6fTwbkcXH08ZA1hzvHD
HKd1gKZz9kFajHlC9GFfWU3EwxDbmNl/kEk2BFO2t6/YtgpaAvtHj7ugZhVU
LS5lQHVTO11r4/dNKlY3K/2rS7cS0LQkz9I80wrhI7TlMXNjOmbtC+7Ffban
LW5AC0uNMraMvHWLODY8wbZRJLr6T/BUu+BUYgmCIAiCIAiCIAiCIAiCIAiC
IIjn5gfLiN/CACgAAA==
--1915750185-371683537-911200563=:24494--
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
