This is the mail archive of the
cygwin-xfree@cygwin.com
mailing list for the Cygwin XFree86 project.
Re: new runtime pseudo-reloc in cygwin 1.3.18
- From: Alexander Gottwald <Alexander dot Gottwald at s1999 dot tu-chemnitz dot de>
- To: cygwin-xfree at cygwin dot com
- Date: Tue, 31 Dec 2002 18:12:50 +0100 (MET)
- Subject: Re: new runtime pseudo-reloc in cygwin 1.3.18
- Reply-to: cygwin-xfree at cygwin dot com
Charles Wilson wrote:
> I seem to remember that pointer comparisons across a DLL boundary is a
> Bad Thing; relocations and such. But I don't remember where I saw that
> -- MSDN or ld docs, and I can't find it now. :-(
I changed it so that libXt uses _XtInherit and all other libraries and code
uses _imp___XtInherit. Now it seems that the comparisation is passed, but
It's worse than that.
Can libXt.dll call a function from libXaw.dll? eg:
in Xt:
void XtCallFunction(void (*func)(void)) {
(*func)();
}
in Xaw:
void XawFoo(void) {
}
void XawBar(void) {
XtCallFunction(XawFoo)
}
If not, then we can skip the whole shared libXaw and libXt part. Some of
the widget classes from libXaw have callbacks defined which are called in
libXt functions.
NP: VNV Nation - Prologue
--
Alexander.Gottwald@informatik.tu-chemnitz.de
http://www.gotti.org ICQ: 126018723