This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [XFree86-4.2.0] Now that we have an improved ld, please make libXt a shared library.


> 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





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