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 makelibXt a shared library.


On Fri, 1 Aug 2003, Ralf Habacker wrote:

> _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.

_XtInherit is now used in initialisation of static structures. So any substitute
must not contain terms which value is only known at runtime. This includes return
values of function and memory access (which includes variables and your example).

bye
	ago 
-- 
 Alexander.Gottwald@s1999.tu-chemnitz.de 
 http://www.gotti.org           ICQ: 126018723


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