delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, |
<http://sourceware.cygnus.com/ml/#faqs> | |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Date: | Thu, 26 Aug 1999 13:30:13 +0400 |
From: | Paul Sokolovsky <paul-ml AT is DOT lg DOT ua> |
X-Mailer: | The Bat! (v1.32) UNREG / CD5BF9353B3B7091 |
Reply-To: | Paul Sokolovsky <paul-ml AT is DOT lg DOT ua> |
X-Priority: | 3 (Normal) |
Message-ID: | <12562.990826@is.lg.ua> |
To: | Mumit Khan <khan AT xraylith DOT wisc DOT EDU>, James Stern <jsternitg AT yahoo DOT com> |
CC: | cygwin AT sourceware DOT cygnus DOT com |
Subject: | Re[2]: Importing a variable from a DLL |
In-reply-To: | <199908260629.BAA15928@mercury.xraylith.wisc.edu> |
References: | <199908260629 DOT BAA15928 AT mercury DOT xraylith DOT wisc DOT edu> |
Mime-Version: | 1.0 |
Hello Mumit, Mumit Khan <khan AT xraylith DOT wisc DOT EDU> wrote: MK> There is no silver bullet, sorry. [] MK> Functions are trivial to handle via thunks (via import MK> libraries created by dlltool or implib or some such tool); MK> it's the variables that you have to worry about, which have MK> no traditional way to "fix up" in the DLL model. But at least there might be achieved proper diagnostics of such issues, if dlltool would correctly mark data symbols in def, that implib would only contain __imp_<symbol> and not <symbol>, and we'd get link error when linking with object which doesn't have __declspec(dllimport) on that symbol, and not runtime segfaults, as we have now. MK> You'll just have to deal with it. MK> I know of one case where the developers talked about writing MK> a custom PE loader to deal with this (at the expense of MK> compatibility of existing tools), but that project never saw MK> daylight outside of the South Bay cafes. It would be better just use ELF and forget about all the gore. But rules defined by others. MK> Bearer of bad news, MK> Mumit Best regards, Paul mailto:paul-ml AT is DOT lg DOT ua -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |