[XFree86-4.2.0] Now that we have an improved ld, please make libXt a shared library.
Ralf Habacker
Ralf.Habacker@freenet.de
Thu Jul 31 22:45:00 GMT 2003
> The solution used with sun does not work too. The link a function _XtInherit
> staticly to each library but inside the different libraries the symbols
> map to different addresses and are not equal.
>
> The only solution I see is the usage of a constant value.
What about the following:
Each imported symbol creates a stub like
_XInherit:
jmp (*xyz)
where xyz is the address of the image allocation table, in which the address of
the real function address is stored.
So using *(long *)((long)_XInherit+2) in a client dll for comparing gives the
real function address.
BTW: This seems to be a very hard stuff
Ralf
More information about the Cygwin-xfree
mailing list